Class: IV::Phonic::AST::Statement

Inherits:
Node
  • Object
show all
Defined in:
lib/iv/phonic/ast.rb

Class Method Summary collapse

Methods inherited from Node

#begin_position, #end_position, #initialize, #program, #source

Constructor Details

This class inherits a constructor from IV::Phonic::AST::Node

Class Method Details

.as(parent, stmt) ⇒ Object



66
67
68
# File 'lib/iv/phonic/ast.rb', line 66

def self.as parent, stmt
  return StatementType2Class[stmt[:type]].new parent, stmt
end