Class: LibRubyParser::Nodes::Next

Inherits:
LibRubyParser::Node show all
Defined in:
lib/lib-ruby-parser/nodes.rb

Overview

Represents next keyword

Instance Attribute Summary collapse

Instance Attribute Details

#args::Array<Node> (readonly)

Arguments given to next

Returns:



2953
2954
2955
# File 'lib/lib-ruby-parser/nodes.rb', line 2953

def args
  @args
end

#expression_lLoc (readonly)

Location of the full expression

next(42)
~~~~~~~~

Returns:



2971
2972
2973
# File 'lib/lib-ruby-parser/nodes.rb', line 2971

def expression_l
  @expression_l
end

#keyword_lLoc (readonly)

Location of the next keyword

next 42
~~~~

Returns:



2962
2963
2964
# File 'lib/lib-ruby-parser/nodes.rb', line 2962

def keyword_l
  @keyword_l
end