internal SingleChildNode(Rule rule, RuleExpression expression, ParserNode child) : base(rule, expression) { if (child == null) { throw new ArgumentNullException("Argument 'child' cannot be null!"); } this.Child = child; child.SetParent(this, 0); }
public void AddChild(ParserNode node) { node.SetParent(this, _childs.Count); _childs.Add(node); }