Example #1
0
 public BinaryOpNode(Node left, Node right, ExpressionType op)
     : base(NodeType.BinaryOp)
 {
     Left = left;
     Right = right;
     Op = op;
 }
Example #2
0
 public LambdaNode(List<IdentifierNode> args, Node body, string name)
     : base(NodeType.Lambda)
 {
     Args = args;
     Body = body;
     Name = name;
 }
Example #3
0
 public WhileNode(Node test, Node body, WhileType type)
     : base(NodeType.While)
 {
     Test = test;
     Body = body;
     Loop = type;
 }
Example #4
0
 public LogicalNode(Node left, Node right, ExpressionType op)
     : base(NodeType.Logical)
 {
     Left = left;
     Right = right;
     Op = op;
 }
Example #5
0
 public TryNode(Node body, CatchNode _catch, Node _finally)
     : base(NodeType.Try)
 {
     Body = body;
     Catch = _catch;
     Finally = _finally;
 }
Example #6
0
 public ForInNode(Node target, Node source, Node body)
     : base(NodeType.ForIn)
 {
     Target = target;
     Source = source;
     Body = body;
 }
Example #7
0
 public StrictCompareNode(Node left, Node right, ExpressionType op)
     : base(NodeType.StrictCompare)
 {
     Left = left;
     Right = right;
     Op = op;
 }
Example #8
0
 public SwitchNode(Node taret, Node _default, List<Tuple<Node, Node>> cases)
     : base(NodeType.Switch)
 {
     Target = taret;
     Default = _default;
     Cases = cases;
     Label = null;
 }
Example #9
0
 public IfNode(Node test, Node trueBranch, Node elseBranch)
     : base(NodeType.If)
 {
     Test = test;
     TrueBranch = trueBranch;
     ElseBranch = elseBranch;
     HasElseBranch = elseBranch != null;
 }
Example #10
0
 public ForStepNode(Node setup, Node test, Node incr, Node body)
     : base(NodeType.ForStep)
 {
     Setup = setup;
     Test = test;
     Incr = incr;
     Body = body;
 }
Example #11
0
 public IfNode(Node test, Node trueBranch, Node elseBranch, bool isTernary)
     : base(NodeType.If)
 {
     Test = test;
     TrueBranch = trueBranch;
     ElseBranch = elseBranch;
     HasElseBranch = elseBranch != null;
     IsTernary = isTernary;
 }
Example #12
0
 public TypeOfNode(Node target)
     : base(NodeType.TypeOf)
 {
     Target = target;
 }
 public PostfixOperatorNode(Node node, ExpressionType op)
     : base(NodeType.PostfixOperator)
 {
     Target = node;
     Op = op;
 }
Example #14
0
 public UnaryOpNode(Node target, ExpressionType op)
     : base(NodeType.UnaryOp)
 {
     Target = target;
     Op = op;
 }
Example #15
0
 public AutoPropertyNode(object name, Node value)
     : base(NodeType.AutoProperty)
 {
     Name = name;
     Value = value;
 }
Example #16
0
 public IndexAccessNode(Node target, Node index)
     : base(NodeType.IndexAccess)
 {
     Target = target;
     Index = index;
 }
 public UnsignedRightShiftNode(Node left, Node right)
     : base(NodeType.UnsignedRightShift)
 {
     Left = left;
     Right = right;
 }
Example #18
0
 public AssignNode(Node target, Node value)
     : base(NodeType.Assign)
 {
     Target = target;
     Value = value;
 }
Example #19
0
 public ThrowNode(Node target)
     : base(NodeType.Throw)
 {
     Target = target;
 }
Example #20
0
 public InNode(Node target, Node property)
     : base(NodeType.In)
 {
     Target = target;
     Property = property;
 }
Example #21
0
 public DeleteNode(Node target)
     : base(NodeType.Delete)
 {
     Target = target;
 }
Example #22
0
 public VoidNode(Node target)
     : base(NodeType.Void)
 {
     Target = target;
 }
Example #23
0
 public ReturnNode(Node value)
     : base(NodeType.Return)
 {
     Value = value;
 }
Example #24
0
 public CatchNode(Node target, Node body)
     : base(NodeType.Catch)
 {
     Target = target;
     Body = body;
 }
Example #25
0
 public MemberAccessNode(Node target, string member)
     : base(NodeType.MemberAccess)
 {
     Target = target;
     Name = member;
 }
Example #26
0
 public InstanceOfNode(Node target, Node function)
     : base(NodeType.InstanceOf)
 {
     Target = target;
     Function = function;
 }
Example #27
0
 public NewNode(Node target, List<Node> args)
     : base(NodeType.New)
 {
     Target = target;
     Args = args;
 }
Example #28
0
 public WithNode(Node target, Node body)
     : base(NodeType.With)
 {
     Target = target;
     Body = body;
 }
Example #29
0
 public CallNode(Node target, List<Node> args)
     : base(NodeType.Call)
 {
     Target = target;
     Args = args;
 }
Example #30
0
 public ThrowNode(Node value)
     : base(NodeType.Throw)
 {
     Value = value;
 }