Class: IV::Phonic::AST::BreakStatement
- Defined in:
- lib/iv/phonic/ast.rb
Instance Method Summary collapse
-
#initialize(parent, stmt) ⇒ BreakStatement
constructor
A new instance of BreakStatement.
Methods inherited from Statement
Methods inherited from Node
#begin_position, #end_position, #program, #source
Constructor Details
#initialize(parent, stmt) ⇒ BreakStatement
Returns a new instance of BreakStatement.
205 206 207 208 209 210 211 212 |
# File 'lib/iv/phonic/ast.rb', line 205 def initialize parent, stmt super parent, stmt if stmt[:label] @label = Identifier.new self, stmt[:label] else @label = nil end end |