Class: IV::Phonic::AST::FunctionStatement
- Defined in:
- lib/iv/phonic/ast.rb
Instance Method Summary collapse
-
#initialize(parent, stmt) ⇒ FunctionStatement
constructor
A new instance of FunctionStatement.
Methods inherited from Statement
Methods inherited from Node
#begin_position, #end_position, #program, #source
Constructor Details
#initialize(parent, stmt) ⇒ FunctionStatement
Returns a new instance of FunctionStatement.
83 84 85 86 |
# File 'lib/iv/phonic/ast.rb', line 83 def initialize parent, stmt super parent, stmt @body = FunctionLiteral.new self, stmt[:body] end |