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