Lines Matching refs:newRoot
361 def becomeRoot(self, newRoot, oldRoot): argument
1030 def becomeRoot(self, newRoot, oldRoot): argument
1059 if isinstance(newRoot, Token):
1060 newRoot = self.create(newRoot)
1063 return newRoot
1065 if not isinstance(newRoot, CommonTree):
1066 newRoot = self.createWithPayload(newRoot)
1069 if newRoot.isNil():
1070 nc = newRoot.getChildCount()
1072 newRoot = newRoot.getChild(0)
1081 newRoot.addChild(oldRoot)
1082 return newRoot