Class: LibRubyParser::Nodes::Until
- Inherits:
- 
      LibRubyParser::Node
      
        - Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Until
 
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents until loop
Instance Attribute Summary collapse
- 
  
    
      #begin_l  ⇒ Loc? 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Location of the dokeyword.
- 
  
    
      #body  ⇒ Node? 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Body of the loop. 
- 
  
    
      #cond  ⇒ Node 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Condition of the loop. 
- 
  
    
      #end_l  ⇒ Loc? 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Location of the endkeyword.
- 
  
    
      #expression_l  ⇒ Loc 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Location of the full expression. 
- 
  
    
      #keyword_l  ⇒ Loc 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Location of the untilkeyword.
Instance Attribute Details
#begin_l ⇒ Loc? (readonly)
Location of the do keyword
until cond do; foo; end
           ~~
do is optional, and so begin_l can be None
| 4102 4103 4104 | # File 'lib/lib-ruby-parser/nodes.rb', line 4102 def begin_l @begin_l end | 
#body ⇒ Node? (readonly)
Body of the loop.
None if body is empty
| 4082 4083 4084 | # File 'lib/lib-ruby-parser/nodes.rb', line 4082 def body @body end | 
#cond ⇒ Node (readonly)
Condition of the loop
| 4076 4077 4078 | # File 'lib/lib-ruby-parser/nodes.rb', line 4076 def cond @cond end | 
#end_l ⇒ Loc? (readonly)
Location of the end keyword
until cond do; foo; end
                    ~~~
None if loop is a modifier (i.e. foo until bar)
| 4113 4114 4115 | # File 'lib/lib-ruby-parser/nodes.rb', line 4113 def end_l @end_l end | 
#expression_l ⇒ Loc (readonly)
Location of the full expression
until cond do; foo; end
~~~~~~~~~~~~~~~~~~~~~~~
foo until bar
~~~~~~~~~~~~~
| 4125 4126 4127 | # File 'lib/lib-ruby-parser/nodes.rb', line 4125 def expression_l @expression_l end | 
#keyword_l ⇒ Loc (readonly)
Location of the until keyword
until cond do; foo; end
~~~~~
| 4091 4092 4093 | # File 'lib/lib-ruby-parser/nodes.rb', line 4091 def keyword_l @keyword_l end |