Example #1
0
 public AndNode(Node receiver, Node argument)
 {
     this.receiver = receiver;
     this.argument = argument;
 }
Example #2
0
 public IfNode(Node condition, Node ifBody, Node elseBody)
 {
     this.condition = condition;
     this.ifBody = ifBody;
     this.elseBody = elseBody;
 }
Example #3
0
 public LocalAssignNode(string name,Node expression)
 {
     this.name = name;
     this.expression = expression;
 }
 public ConstantAssignNode(string name, Node expression)
 {
     this.expression = expression;
     this.name = name;
 }
Example #5
0
 public CallNode(string method, Node receiver, Node argument)
     : this(method,receiver,new List<Node>())
 {
     this.arguments.Add(argument);
 }
Example #6
0
 public NotNode(Node receiver)
 {
     this.receiver = receiver;
 }
 public InstanceVariableAssignNode(string name,Node expression)
 {
     this.name = name;
     this.expression = expression;
 }
Example #8
0
 public CallNode(string method, Node receiver, List<Node> arguments)
 {
     this.method = method;
     this.receiver = receiver;
     this.arguments = arguments;
 }
Example #9
0
 public CatchBlock(string typeName, string localName, Node body)
 {
     this.typeName = typeName;
     this.localName = localName;
     this.body = body;
 }
 public ClassDefinitionNode(string name, string superName,Node body)
 {
     this.name = name;
     this.superName = superName;
     this.body = body;
 }
Example #11
0
 public void AddCatchBlock(string typeName,string localName, Node body)
 {
     catchBlocks.Add(new CatchBlock(typeName,localName,body));
 }
Example #12
0
 public TryNode(Node body)
 {
     this.body = body;
     catchBlocks = new List<CatchBlock>();
 }
Example #13
0
 public WhileNode(Node condition, Node body)
 {
     this.condition = condition;
     this.body = body;
 }
 public MethodDefinitionNode(string name, List<string> parameters, Node body)
 {
     this.name = name;
     this.parameters = parameters;
     this.body = body;
 }
Example #15
0
 public void Add(Node n)
 {
     nodes.Add(n);
 }