Home
last modified time | relevance | path

Searched refs:newRoot (Results 1 – 25 of 67) sorted by relevance

123

/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/tree/
DBaseTreeAdaptor.js95 becomeRoot: function(newRoot, oldRoot) { argument
96 if (newRoot instanceof org.antlr.runtime.Token || !newRoot) {
97 newRoot = this.create(newRoot);
100 var newRootTree = newRoot,
103 return newRoot;
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRTreeException.m38 + (id) newException:(id<ANTLRBaseTree>)theOldRoot newRoot:(id<ANTLRBaseTree>)theNewRoot stream:(id<…
40 return [[ANTLRTreeException alloc] initWithOldRoot:theOldRoot newRoot:theNewRoot stream:aStream];
43 - (id) initWithOldRoot:(id<ANTLRBaseTree>)theOldRoot newRoot:(id<ANTLRBaseTree>)theNewRoot stream:(…
64 if (newRoot != aTree) {
66 if ( newRoot ) [newRoot release];
67 newRoot = aTree;
82 …: <%@> new root: <%@>", [super description], [oldRoot treeDescription], [newRoot treeDescription]];
DANTLRTreeException.h33 id<ANTLRBaseTree> newRoot; variable
36 + (id) newException:(id<ANTLRBaseTree>)theOldRoot newRoot:(id<ANTLRBaseTree>)theNewRoot stream:(id<…
37 - (id) initWithOldRoot:(id<ANTLRBaseTree>)theOldRoot newRoot:(id<ANTLRBaseTree>)theNewRoot stream:(…
DANTLRBaseTreeAdaptor.m146 /** 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.
152 * If newRoot is a nil-rooted single child tree, use the single
158 * If oldRoot was null, it's ok, just return newRoot (even if isNil).
163 * Return newRoot. Throw an exception if newRoot is not a
165 * node. If newRoot is ^(nil x) return x as newRoot.
167 * Be advised that it's ok for newRoot to point at oldRoot's
172 - (id)becomeRoot:(id)newRoot old:(id)oldRoot
175 return newRoot;
177 //System.out.println("becomeroot new "+newRoot.toString()+" old "+oldRoot);
[all …]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
DITreeFixture.cs175 CommonTree newRoot = new CommonTree(new CommonToken(5)); in testBecomeRoot()
183 adaptor.BecomeRoot(newRoot, oldRoot); in testBecomeRoot()
184 newRoot.SanityCheckParentAndChildIndexes(); in testBecomeRoot()
191 CommonTree newRoot = new CommonTree(new CommonToken(5)); in testBecomeRoot2()
198 adaptor.BecomeRoot(newRoot, oldRoot); in testBecomeRoot2()
199 newRoot.SanityCheckParentAndChildIndexes(); in testBecomeRoot2()
206 CommonTree newRoot = new CommonTree((IToken)null); in testBecomeRoot3()
207 newRoot.AddChild(new CommonTree(new CommonToken(5))); in testBecomeRoot3()
215 adaptor.BecomeRoot(newRoot, oldRoot); in testBecomeRoot3()
216 newRoot.SanityCheckParentAndChildIndexes(); in testBecomeRoot3()
[all …]
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestTrees.java169 CommonTree newRoot = new CommonTree(new CommonToken(5)); in testBecomeRoot() local
177 adaptor.becomeRoot(newRoot, oldRoot); in testBecomeRoot()
178 newRoot.sanityCheckParentAndChildIndexes(); in testBecomeRoot()
183 CommonTree newRoot = new CommonTree(new CommonToken(5)); in testBecomeRoot2() local
190 adaptor.becomeRoot(newRoot, oldRoot); in testBecomeRoot2()
191 newRoot.sanityCheckParentAndChildIndexes(); in testBecomeRoot2()
196 CommonTree newRoot = new CommonTree((Token)null); in testBecomeRoot3() local
197 newRoot.addChild(new CommonTree(new CommonToken(5))); in testBecomeRoot3()
205 adaptor.becomeRoot(newRoot, oldRoot); in testBecomeRoot3()
206 newRoot.sanityCheckParentAndChildIndexes(); in testBecomeRoot3()
[all …]
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/
DANTLRTreeException.h33 id<ANTLRTree> newRoot; variable
36 + (id) exceptionWithOldRoot:(id<ANTLRTree>)theOldRoot newRoot:(id<ANTLRTree>)theNewRoot stream:(id<…
37 - (id) initWithOldRoot:(id<ANTLRTree>)theOldRoot newRoot:(id<ANTLRTree>)theNewRoot stream:(id<ANTLR…
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Headers/
DANTLRTreeException.h33 id<ANTLRTree> newRoot; variable
36 + (id) exceptionWithOldRoot:(id<ANTLRTree>)theOldRoot newRoot:(id<ANTLRTree>)theNewRoot stream:(id<…
37 - (id) initWithOldRoot:(id<ANTLRTree>)theOldRoot newRoot:(id<ANTLRTree>)theNewRoot stream:(id<ANTLR…
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/
DANTLRTreeException.h33 id<ANTLRTree> newRoot; variable
36 + (id) exceptionWithOldRoot:(id<ANTLRTree>)theOldRoot newRoot:(id<ANTLRTree>)theNewRoot stream:(id<…
37 - (id) initWithOldRoot:(id<ANTLRTree>)theOldRoot newRoot:(id<ANTLRTree>)theNewRoot stream:(id<ANTLR…
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/tree/
DBaseTreeAdaptor.as82 /** If oldRoot is a nil root, just copy or move the children to newRoot.
83 * If not a nil root, make oldRoot a child of newRoot.
88 * If newRoot is a nil-rooted single child tree, use the single
94 * If oldRoot was null, it's ok, just return newRoot (even if isNil).
99 * Return newRoot. Throw an exception if newRoot is not a
101 * node. If newRoot is ^(nil x) return x as newRoot.
103 * Be advised that it's ok for newRoot to point at oldRoot's
108 public function becomeRoot(newRoot:Object, oldRoot:Object):Object {
110 if (newRoot is Token) {
111 newRoot = createWithPayload(Token(newRoot));
[all …]
DTreeAdaptor.as94 /** If oldRoot is a nil root, just copy or move the children to newRoot.
95 * If not a nil root, make oldRoot a child of newRoot.
100 * If newRoot is a nil-rooted single child tree, use the single
106 * If oldRoot was null, it's ok, just return newRoot (even if isNil).
111 * Return newRoot. Throw an exception if newRoot is not a
113 * node. If newRoot is ^(nil x) return x as newRoot.
115 * Be advised that it's ok for newRoot to point at oldRoot's
120 function becomeRoot(newRoot:Object, oldRoot:Object):Object;
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
DDebugTreeAdaptor.cs124 public virtual object BecomeRoot(object newRoot, object oldRoot) { in BecomeRoot() argument
125 object n = adaptor.BecomeRoot(newRoot, oldRoot); in BecomeRoot()
126 dbg.BecomeRoot(newRoot, oldRoot); in BecomeRoot()
139 public virtual object BecomeRoot(IToken newRoot, object oldRoot) { in BecomeRoot() argument
140 object n = this.Create(newRoot); in BecomeRoot()
142 dbg.BecomeRoot(newRoot, oldRoot); in BecomeRoot()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/
DDebugTreeAdaptor.cs160 public virtual object BecomeRoot( object newRoot, object oldRoot ) in BecomeRoot() argument
162 object n = adaptor.BecomeRoot( newRoot, oldRoot ); in BecomeRoot()
163 dbg.BecomeRoot( newRoot, oldRoot ); in BecomeRoot()
178 public virtual object BecomeRoot( IToken newRoot, object oldRoot ) in BecomeRoot() argument
180 object n = this.Create( newRoot ); in BecomeRoot()
182 dbg.BecomeRoot( newRoot, oldRoot ); in BecomeRoot()
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/
DDebugTreeAdaptor.java120 public Object becomeRoot(Object newRoot, Object oldRoot) { in becomeRoot() argument
121 Object n = adaptor.becomeRoot(newRoot, oldRoot); in becomeRoot()
122 dbg.becomeRoot(newRoot, oldRoot); in becomeRoot()
135 public Object becomeRoot(Token newRoot, Object oldRoot) { in becomeRoot() argument
136 Object n = this.create(newRoot); in becomeRoot()
138 dbg.becomeRoot(newRoot, oldRoot); in becomeRoot()
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DBaseTreeAdaptor.cs153 public virtual object BecomeRoot(object newRoot, object oldRoot) { in BecomeRoot() argument
155 ITree newRootTree = (ITree)newRoot; in BecomeRoot()
158 return newRoot; in BecomeRoot()
194 public virtual object BecomeRoot(IToken newRoot, object oldRoot) { in BecomeRoot() argument
195 return BecomeRoot(Create(newRoot), oldRoot); in BecomeRoot()
DITreeAdaptor.cs143 object BecomeRoot(object newRoot, object oldRoot); in BecomeRoot() argument
194 object BecomeRoot(IToken newRoot, object oldRoot); in BecomeRoot() argument
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/
DBaseTreeAdaptor.java137 public Object becomeRoot(Object newRoot, Object oldRoot) { in becomeRoot() argument
139 Tree newRootTree = (Tree)newRoot; in becomeRoot()
142 return newRoot; in becomeRoot()
178 public Object becomeRoot(Token newRoot, Object oldRoot) { in becomeRoot() argument
179 return becomeRoot(create(newRoot), oldRoot); in becomeRoot()
DTreeAdaptor.java122 public Object becomeRoot(Object newRoot, Object oldRoot); in becomeRoot() argument
161 public Object becomeRoot(Token newRoot, Object oldRoot); in becomeRoot() argument
/external/chromium_org/third_party/skia/src/gpu/gl/
DGrGLNameAllocator.cpp248 SparseNameTree* newRoot = static_cast<SparseNameTree*>((this->*Tall).detach()); in rotate() local
250 (this->*Tall).reset((newRoot->*Short).detach()); in rotate()
253 (newRoot->*Short).reset(this->takeRef()); in rotate()
254 newRoot->updateStats(); in rotate()
256 return newRoot; in rotate()
/external/skia/src/gpu/gl/
DGrGLNameAllocator.cpp248 SparseNameTree* newRoot = static_cast<SparseNameTree*>((this->*Tall).detach()); in rotate() local
250 (this->*Tall).reset((newRoot->*Short).detach()); in rotate()
253 (newRoot->*Short).reset(this->takeRef()); in rotate()
254 newRoot->updateStats(); in rotate()
256 return newRoot; in rotate()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DBaseTreeAdaptor.cs187 public virtual object BecomeRoot( object newRoot, object oldRoot ) in BecomeRoot() argument
190 ITree newRootTree = (ITree)newRoot; in BecomeRoot()
194 return newRoot; in BecomeRoot()
237 public virtual object BecomeRoot( IToken newRoot, object oldRoot ) in BecomeRoot() argument
239 return BecomeRoot( Create( newRoot ), oldRoot ); in BecomeRoot()
DITreeAdaptor.cs199 object BecomeRoot( object newRoot, object oldRoot ); in BecomeRoot() argument
250 object BecomeRoot( IToken newRoot, object oldRoot ); in BecomeRoot() argument
/external/guava/guava-tests/test/com/google/common/collect/
DBstOperationsTest.java393 SimpleNode newRoot = BstOperations.insertMin(d, a, nodeFactory, balancePolicy); in testInsertMin1() local
394 assertInOrderTraversalIs(newRoot, "abcdfg"); in testInsertMin1()
409 SimpleNode newRoot = BstOperations.insertMin(d, a, nodeFactory, balancePolicy); in testInsertMin2() local
410 assertInOrderTraversalIs(newRoot, "abdfg"); in testInsertMin2()
415 SimpleNode newRoot = BstOperations.insertMin(null, a, nodeFactory, balancePolicy); in testInsertMinEmpty() local
416 assertInOrderTraversalIs(newRoot, "a"); in testInsertMinEmpty()
432 SimpleNode newRoot = BstOperations.insertMax(d, h, nodeFactory, balancePolicy); in testInsertMax1() local
433 assertInOrderTraversalIs(newRoot, "bcdfgh"); in testInsertMax1()
448 SimpleNode newRoot = BstOperations.insertMax(d, h, nodeFactory, balancePolicy); in testInsertMax2() local
449 assertInOrderTraversalIs(newRoot, "bdefh"); in testInsertMax2()
[all …]
/external/antlr/antlr-3.4/runtime/Python/antlr3/
Ddebug.py294 def becomeRoot(self, newRoot, oldRoot): argument
295 if isinstance(newRoot, Token):
296 n = self.createWithPayload(newRoot)
299 n = self.adaptor.becomeRoot(newRoot, oldRoot)
301 self.dbg.becomeRoot(newRoot, oldRoot)
687 def becomeRoot(self, newRoot, oldRoot): argument
804 def becomeRoot(self, newRoot, oldRoot): argument
806 self.adaptor.getUniqueID(newRoot),
1092 def becomeRoot(self, newRoot, oldRoot): argument
1094 self.adaptor.getUniqueID(newRoot),
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3basetreeadaptor.c51 …TREE becomeRoot (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE newRoot, pANTLR3_BASE_TRE…
52 …EE dbgBecomeRoot (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE newRoot, pANTLR3_BASE_TRE…
56 static pANTLR3_BASE_TREE becomeRootToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, void * newRoot, pANT…
57 static pANTLR3_BASE_TREE dbgBecomeRootToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, void * newRoot, pA…
740 becomeRootToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, void * newRoot, pANTLR3_BASE_TREE oldRoot) in becomeRootToken() argument
742 return adaptor->becomeRoot(adaptor, adaptor->create(adaptor, newRoot), oldRoot); in becomeRootToken()
745 dbgBecomeRootToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, void * newRoot, pANTLR3_BASE_TREE oldRoot) in dbgBecomeRootToken() argument
749 t = adaptor->becomeRoot(adaptor, adaptor->create(adaptor, newRoot), oldRoot); in dbgBecomeRootToken()

123