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