Example #1
0
 public AstNode(Token token, params AstNode[] children)
 {
     this.token = token;
     this.children = children;
 }
Example #2
0
 public AstNode(Token token, List<AstNode> children)
 {
     this.token = token;
     this.children = children.ToArray();
 }
Example #3
0
 public AstNode(Token token, string value)
 {
     this.token = token;
     this.value = value;
     children = new AstNode[0];
 }