Class: IV::Phonic::AST::Statement
Direct Known Subclasses
Block, BreakStatement, ContinueStatement, DebuggerStatement, DoWhileStatement, EmptyStatement, ExpressionStatement, ForInStatement, ForStatement, FunctionDeclaration, FunctionStatement, IfStatement, LabelledStatement, ReturnStatement, SwitchStatement, ThrowStatement, TryStatement, VariableStatement, WhileStatement, WithStatement
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 |