Class: IV::Phonic::AST::LabelledStatement
- Defined in:
- lib/iv/phonic/ast.rb
Instance Method Summary collapse
-
#initialize(parent, stmt) ⇒ LabelledStatement
constructor
A new instance of LabelledStatement.
Methods inherited from Statement
Methods inherited from Node
#begin_position, #end_position, #program, #source
Constructor Details
#initialize(parent, stmt) ⇒ LabelledStatement
Returns a new instance of LabelledStatement.
235 236 237 238 239 |
# File 'lib/iv/phonic/ast.rb', line 235 def initialize parent, stmt super parent, stmt @label = Identifier.new self, stmt[:label] @body = Statement.as self, stmt[:body] end |