Class: LibRubyParser::Nodes::WhilePost

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

Overview

Represents a post-while loop

begin
foo
end while bar

Instance Attribute Summary collapse

Instance Attribute Details

#bodyNode (readonly)

Body of the loop

Returns:



4277
4278
4279
# File 'lib/lib-ruby-parser/nodes.rb', line 4277

def body
  @body
end

#condNode (readonly)

Condition of the loop

Returns:



4273
4274
4275
# File 'lib/lib-ruby-parser/nodes.rb', line 4273

def cond
  @cond
end

#expression_lLoc (readonly)

Location of the while keyword

begin; foo; end while bar
~~~~~~~~~~~~~~~~~~~~~~~~~

Returns:



4295
4296
4297
# File 'lib/lib-ruby-parser/nodes.rb', line 4295

def expression_l
  @expression_l
end

#keyword_lLoc (readonly)

Location of the while keyword

begin; foo; end while bar
                ~~~~~

Returns:



4286
4287
4288
# File 'lib/lib-ruby-parser/nodes.rb', line 4286

def keyword_l
  @keyword_l
end