Class: IV::Phonic::AST::ThrowStatement
- Defined in:
- lib/iv/phonic/ast.rb
Instance Method Summary collapse
-
#initialize(parent, stmt) ⇒ ThrowStatement
constructor
A new instance of ThrowStatement.
Methods inherited from Statement
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 |