Home | History | Annotate | Download | only in antlr3

Lines Matching refs:oldRoot

361     def becomeRoot(self, newRoot, oldRoot):
363 If oldRoot is a nil root, just copy or move the children to newRoot.
364 If not a nil root, make oldRoot a child of newRoot.
375 If oldRoot was null, it's ok, just return newRoot (even if isNil).
384 Be advised that it's ok for newRoot to point at oldRoot's
1037 def becomeRoot(self, newRoot, oldRoot):
1039 If oldRoot is a nil root, just copy or move the children to newRoot.
1040 If not a nil root, make oldRoot a child of newRoot.
1051 If oldRoot was null, it's ok, just return newRoot (even if isNil).
1060 Be advised that it's ok for newRoot to point at oldRoot's
1069 if oldRoot is None:
1085 # add oldRoot to newRoot; addChild takes care of case where oldRoot
1086 # is a flat list (i.e., nil-rooted tree). All children of oldRoot
1088 newRoot.addChild(oldRoot)