Class: LibRubyParser::Nodes::Until

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

Overview

Represents until loop

Instance Attribute Summary collapse

Instance Attribute Details

#begin_lLoc? (readonly)

Location of the do keyword

until cond do; foo; end
           ~~

do is optional, and so begin_l can be None

Returns:



4102
4103
4104
# File 'lib/lib-ruby-parser/nodes.rb', line 4102

def begin_l
  @begin_l
end

#bodyNode? (readonly)

Body of the loop.

None if body is empty

Returns:



4082
4083
4084
# File 'lib/lib-ruby-parser/nodes.rb', line 4082

def body
  @body
end

#condNode (readonly)

Condition of the loop

Returns:



4076
4077
4078
# File 'lib/lib-ruby-parser/nodes.rb', line 4076

def cond
  @cond
end

#end_lLoc? (readonly)

Location of the end keyword

until cond do; foo; end
                    ~~~

None if loop is a modifier (i.e. foo until bar)

Returns:



4113
4114
4115
# File 'lib/lib-ruby-parser/nodes.rb', line 4113

def end_l
  @end_l
end

#expression_lLoc (readonly)

Location of the full expression

until cond do; foo; end
~~~~~~~~~~~~~~~~~~~~~~~

foo until bar
~~~~~~~~~~~~~

Returns:



4125
4126
4127
# File 'lib/lib-ruby-parser/nodes.rb', line 4125

def expression_l
  @expression_l
end

#keyword_lLoc (readonly)

Location of the until keyword

until cond do; foo; end
~~~~~

Returns:



4091
4092
4093
# File 'lib/lib-ruby-parser/nodes.rb', line 4091

def keyword_l
  @keyword_l
end