Lines Matching refs:newRoot
124 * If oldRoot is a nil root, just copy or move the children to newRoot.
125 * If not a nil root, make oldRoot a child of newRoot.
132 * If newRoot is a nil-rooted single child tree, use the single
138 * If oldRoot was null, it's ok, just return newRoot (even if isNil).
143 * Return newRoot. Throw an exception if newRoot is not a
145 * node. If newRoot is ^(nil x) return x as newRoot.
147 * Be advised that it's ok for newRoot to point at oldRoot's
153 public virtual object BecomeRoot(object newRoot, object oldRoot) {
154 //System.out.println("becomeroot new "+newRoot.toString()+" old "+oldRoot);
155 ITree newRootTree = (ITree)newRoot;
158 return newRoot;
170 // add oldRoot to newRoot; addChild takes care of case where oldRoot
172 // are added to newRoot.
194 public virtual object BecomeRoot(IToken newRoot, object oldRoot) {
195 return BecomeRoot(Create(newRoot), oldRoot);