Module: Johnson::Nodes

Included in:
SpiderMonkey::MutableTreeVisitor
Defined in:
lib/johnson/nodes/for.rb,
lib/johnson/nodes/list.rb,
lib/johnson/nodes/node.rb,
lib/johnson/nodes/for_in.rb,
lib/johnson/nodes/function.rb,
lib/johnson/nodes/binary_node.rb,
lib/johnson/nodes/ternary_node.rb

Defined Under Namespace

Classes: BinaryNode, For, ForIn, Function, List, Node, TernaryNode

Constant Summary collapse

LIST_NODES =
%w{
  SourceElements
  VarStatement
  LetStatement
  Comma
  ObjectLiteral
  ArrayLiteral
  New
  FunctionCall
  Import
  Export
}
SINGLE_NODES =
%w{
  BitwiseNot
  Break
  Continue
  Delete
  False
  Name
  Not
  Null
  Number
  Parenthesis
  PostfixIncrement
  PrefixIncrement
  PostfixDecrement
  PrefixDecrement
  Regexp
  Return
  String
  This
  Throw
  True
  Typeof
  UnaryNegative
  UnaryPositive
  Void
}
BINARY_NODES =
%w{
  And
  DoWhile
  Case
  Default
  While
  With
  In
  Switch
  InstanceOf
  AssignExpr
  BracketAccess
  DotAccessor
  LexicalScope
  Equal
  GetterProperty
  Label
  GreaterThan
  LessThan
  GreaterThanOrEqual
  LessThanOrEqual
  NotEqual
  OpAdd
  OpAddEqual
  OpBitAnd
  OpBitAndEqual
  OpBitOr
  OpBitOrEqual
  OpBitXor
  OpBitXorEqual
  OpDivide
  OpDivideEqual
  OpEqual
  OpLShift
  OpLShiftEqual
  OpMod
  OpModEqual
  OpMultiply
  OpMultiplyEqual
  OpRShift
  OpRShiftEqual
  OpSubtract
  OpSubtractEqual
  OpURShift
  OpURShiftEqual
  Or
  Property
  SetterProperty
  StrictEqual
  StrictNotEqual
}
TERNARY_NODES =
%w{
  Ternary
  If
  Try
  Catch
}