Lines Matching refs:ITree
48 public abstract class BaseTree : ITree {
49 List<ITree> children;
60 public BaseTree(ITree node) { in BaseTree()
68 public virtual IList<ITree> Children {
74 #region ITree Members
86 public virtual ITree Parent {
141 public virtual ITree GetChild(int i) { in GetChild()
151 public virtual ITree GetFirstChildWithType(int type) { in GetFirstChildWithType()
152 foreach (ITree child in children) { in GetFirstChildWithType()
168 public virtual void AddChild(ITree t) { in AddChild()
189 ITree c = t.GetChild(i); in AddChild()
215 public virtual void AddChildren(IEnumerable<ITree> kids) { in AddChildren()
219 foreach (ITree t in kids) in AddChildren()
223 public virtual void SetChild(int i, ITree t) { in SetChild()
250 ITree killed = children[i]; in DeleteChild()
284 ITree newTree = (ITree)t; in ReplaceChildren()
285 List<ITree> newChildren = null; in ReplaceChildren()
298 newChildren = new List<ITree>(1); in ReplaceChildren()
308 ITree child = newChildren[j]; in ReplaceChildren()
342 protected virtual List<ITree> CreateChildrenList() { in CreateChildrenList()
343 return new List<ITree>(); in CreateChildrenList()
354 ITree child = GetChild(c); in FreshenParentAndChildIndexes()
364 public virtual void SanityCheckParentAndChildIndexes(ITree parent, int i) { in SanityCheckParentAndChildIndexes()
384 public virtual ITree GetAncestor(int ttype) { in GetAncestor()
385 ITree t = this; in GetAncestor()
400 public virtual IList<ITree> GetAncestors() { in GetAncestors()
404 List<ITree> ancestors = new List<ITree>(); in GetAncestors()
405 ITree t = this; in GetAncestors()
426 ITree t = children[i]; in ToStringTree()
442 public abstract ITree DupNode(); in DupNode()