Class: IV::Phonic::AST::ThrowStatement

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) ⇒ ThrowStatement

Returns a new instance of ThrowStatement.



264
265
266
267
# File 'lib/iv/phonic/ast.rb', line 264

def initialize parent, stmt
  super parent, stmt
  @expr = Expression.as self, stmt[:expr]
end