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