Example #1
0
        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;
        }
Example #2
0
 protected IList<CommonTree> GetSubTrees(CommonTree parent, int type)
 {
     return parent.Children.Where(child => child.Type == type).Cast<CommonTree>().ToList();
 }