Lines Matching refs:oldRoot
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.
158 * If oldRoot was null, it's ok, just return newRoot (even if isNil).
167 * Be advised that it's ok for newRoot to point at oldRoot's
172 - (id)becomeRoot:(id)newRoot old:(id)oldRoot
174 if ( oldRoot == nil ) {
177 //System.out.println("becomeroot new "+newRoot.toString()+" old "+oldRoot);
179 id oldRootTree = (id)oldRoot;
189 // add oldRoot to newRoot; addChild takes care of case where oldRoot
190 // is a flat list (i.e., nil-rooted tree). All children of oldRoot
215 - (id)becomeRootfromToken:(id<Token>)newRoot old:(id)oldRoot
217 return [self becomeRoot:(id)[self create:newRoot] old:oldRoot];