Lines Matching refs:newRoot
361 def becomeRoot(self, newRoot, oldRoot): argument
1037 def becomeRoot(self, newRoot, oldRoot): argument
1066 if isinstance(newRoot, Token):
1067 newRoot = self.create(newRoot)
1070 return newRoot
1072 if not isinstance(newRoot, CommonTree):
1073 newRoot = self.createWithPayload(newRoot)
1076 if newRoot.isNil():
1077 nc = newRoot.getChildCount()
1079 newRoot = newRoot.getChild(0)
1088 newRoot.addChild(oldRoot)
1089 return newRoot