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