Class: IV::Phonic::AST::DoWhileStatement
- Defined in:
- lib/iv/phonic/ast.rb
Instance Method Summary collapse
-
#initialize(parent, stmt) ⇒ DoWhileStatement
constructor
A new instance of DoWhileStatement.
Methods inherited from Statement
Methods inherited from Node
#begin_position, #end_position, #program, #source
Constructor Details
#initialize(parent, stmt) ⇒ DoWhileStatement
Returns a new instance of DoWhileStatement.
147 148 149 150 151 |
# File 'lib/iv/phonic/ast.rb', line 147 def initialize parent, stmt super parent, stmt @cond = Expression.as self, stmt[:cond] @body = Statement.as self, stmt[:body] end |