public CommonTree( CommonTree node ) : base(node) { if (node == null) throw new ArgumentNullException("node"); this.Token = node.Token; this.startIndex = node.startIndex; this.stopIndex = node.stopIndex; }
protected IList<CommonTree> GetSubTrees(CommonTree parent, int type) { return parent.Children.Where(child => child.Type == type).Cast<CommonTree>().ToList(); }