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