Lines Matching refs:newRoot
146 /** If oldRoot is a nil root, just copy or move the children to newRoot.
147 * If not a nil root, make oldRoot a child of newRoot.
152 * If newRoot is a nil-rooted single child tree, use the single
158 * If oldRoot was null, it's ok, just return newRoot (even if isNil).
163 * Return newRoot. Throw an exception if newRoot is not a
165 * node. If newRoot is ^(nil x) return x as newRoot.
167 * Be advised that it's ok for newRoot to point at oldRoot's
172 - (id)becomeRoot:(id)newRoot old:(id)oldRoot
175 return newRoot;
177 //System.out.println("becomeroot new "+newRoot.toString()+" old "+oldRoot);
178 id newRootTree = (id)newRoot;
189 // add oldRoot to newRoot; addChild takes care of case where oldRoot
191 // are added to newRoot.
215 - (id)becomeRootfromToken:(id<Token>)newRoot old:(id)oldRoot
217 return [self becomeRoot:(id)[self create:newRoot] old:oldRoot];