Lines Matching refs:ITree
50 public abstract class BaseTree : ITree
52 private IList<ITree> _children;
64 public BaseTree( ITree node ) in BaseTree()
73 public virtual IList<ITree> Children
86 #region ITree Members
100 public virtual ITree Parent
169 public virtual ITree GetChild( int i ) in GetChild()
180 public virtual ITree GetFirstChildWithType( int type ) in GetFirstChildWithType()
182 foreach ( ITree child in Children ) in GetFirstChildWithType()
199 public virtual void AddChild( ITree t ) in AddChild()
227 ITree c = t.GetChild( i ); in AddChild()
258 public virtual void AddChildren( IEnumerable<ITree> kids ) in AddChildren()
263 foreach ( ITree t in kids ) in AddChildren()
267 public virtual void SetChild( int i, ITree t ) in SetChild()
293 public virtual void InsertChild(int i, ITree t) in InsertChild()
323 ITree killed = Children[i]; in DeleteChild()
359 ITree newTree = (ITree)t; in ReplaceChildren()
360 IList<ITree> newChildren = null; in ReplaceChildren()
379 newChildren = new List<ITree>( 1 ); in ReplaceChildren()
391 ITree child = newChildren[j]; in ReplaceChildren()
433 protected virtual IList<ITree> CreateChildrenList() in CreateChildrenList()
435 return new List<ITree>(); in CreateChildrenList()
449 ITree child = GetChild( c ); in FreshenParentAndChildIndexes()
465 ITree child = GetChild(c); in FreshenParentAndChildIndexesDeeply()
479 public virtual void SanityCheckParentAndChildIndexes( ITree parent, int i ) in SanityCheckParentAndChildIndexes()
504 public virtual ITree GetAncestor( int ttype ) in GetAncestor()
506 ITree t = this; in GetAncestor()
522 public virtual IList<ITree> GetAncestors() in GetAncestors()
527 List<ITree> ancestors = new List<ITree>(); in GetAncestors()
528 ITree t = this; in GetAncestors()
554 ITree t = Children[i]; in ToStringTree()
572 public abstract ITree DupNode(); in DupNode()