Class: IV::Phonic::AST::BreakStatement

Inherits:
Statement show all
Defined in:
lib/iv/phonic/ast.rb

Instance Method Summary collapse

Methods inherited from Statement

as

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