Class: IV::Phonic::AST::ForInStatement

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

Returns a new instance of ForInStatement.



185
186
187
188
189
190
# File 'lib/iv/phonic/ast.rb', line 185

def initialize parent, stmt
  super parent, stmt
  @each = Statement.as self, stmt[:each]
  @enum = Expression.as self, stmt[:enum]
  @body = Statement.as self, stmt[:body]
end