Class: LibRubyParser::Nodes::Yield

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

Overview

Represents an yield keyword

Instance Attribute Summary collapse

Instance Attribute Details

#args::Array<Node> (readonly)

A list of arguments given to yield

Returns:



4393
4394
4395
# File 'lib/lib-ruby-parser/nodes.rb', line 4393

def args
  @args
end

#begin_lLoc? (readonly)

Location of the open parenthesis

yield(1, 2)
     ~

None if there are no parentheses

Returns:



4413
4414
4415
# File 'lib/lib-ruby-parser/nodes.rb', line 4413

def begin_l
  @begin_l
end

#end_lLoc? (readonly)

Location of the closing parenthesis

yield(1, 2)
          ~

None if there are no parentheses

Returns:



4424
4425
4426
# File 'lib/lib-ruby-parser/nodes.rb', line 4424

def end_l
  @end_l
end

#expression_lLoc (readonly)

Location of the full expression

yield(1, 2)
~~~~~~~~~~~

Returns:



4433
4434
4435
# File 'lib/lib-ruby-parser/nodes.rb', line 4433

def expression_l
  @expression_l
end

#keyword_lLoc (readonly)

Location of the yield keyword

yield 1, 2
~~~~~

Returns:



4402
4403
4404
# File 'lib/lib-ruby-parser/nodes.rb', line 4402

def keyword_l
  @keyword_l
end