Home
last modified time | relevance | path

Searched refs:newRootTree (Results 1 – 7 of 7) sorted by relevance

/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/tree/
DBaseTreeAdaptor.js100 var newRootTree = newRoot,
106 if ( newRootTree.isNil() ) {
107 var nc = newRootTree.getChildCount();
109 newRootTree = newRootTree.getChild(0);
118 newRootTree.addChild(oldRootTree);
119 return newRootTree;
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3basetreeadaptor.c620 becomeRoot (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE newRootTree, pANTLR3_BASE_TREE old… in becomeRoot() argument
628 if (newRootTree == NULL) in becomeRoot()
638 return newRootTree; in becomeRoot()
643 if (newRootTree->isNilNode(newRootTree)) in becomeRoot()
645 if (newRootTree->getChildCount(newRootTree) > 1) in becomeRoot()
650 return newRootTree; in becomeRoot()
656 saveRoot = newRootTree; in becomeRoot()
657 newRootTree = newRootTree->getChild(newRootTree, 0); in becomeRoot()
668 newRootTree->addChild(newRootTree, oldRootTree); in becomeRoot()
687 return newRootTree; in becomeRoot()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DBaseTreeAdaptor.cs155 ITree newRootTree = (ITree)newRoot; in BecomeRoot()
161 if (newRootTree.IsNil) { in BecomeRoot()
162 int nc = newRootTree.ChildCount; in BecomeRoot()
164 newRootTree = (ITree)newRootTree.GetChild(0); in BecomeRoot()
173 newRootTree.AddChild(oldRootTree); in BecomeRoot()
174 return newRootTree; in BecomeRoot()
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/
DBaseTreeAdaptor.java139 Tree newRootTree = (Tree)newRoot; in becomeRoot() local
145 if ( newRootTree.isNil() ) { in becomeRoot()
146 int nc = newRootTree.getChildCount(); in becomeRoot()
147 if ( nc==1 ) newRootTree = (Tree)newRootTree.getChild(0); in becomeRoot()
156 newRootTree.addChild(oldRootTree); in becomeRoot()
157 return newRootTree; in becomeRoot()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DBaseTreeAdaptor.cs190 ITree newRootTree = (ITree)newRoot; in BecomeRoot()
197 if ( newRootTree.IsNil ) in BecomeRoot()
199 int nc = newRootTree.ChildCount; in BecomeRoot()
201 newRootTree = (ITree)newRootTree.GetChild( 0 ); in BecomeRoot()
211 newRootTree.AddChild( oldRootTree ); in BecomeRoot()
212 return newRootTree; in BecomeRoot()
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/tree/
DBaseTreeAdaptor.as114 var newRootTree:Tree = Tree(newRoot);
120 if ( newRootTree.isNil ) {
121 var nc:int = newRootTree.childCount;
122 if ( nc==1 ) newRootTree = Tree(newRootTree.getChild(0));
131 newRootTree.addChild(oldRootTree);
132 return newRootTree;
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRBaseTreeAdaptor.m178 id newRootTree = (id)newRoot;
181 if ( [newRootTree isNil] ) {
182 NSInteger nc = [newRootTree getChildCount];
183 if ( nc == 1 ) newRootTree = [(id)newRootTree getChild:0];
192 [newRootTree addChild:oldRootTree];
193 return newRootTree;