Home
last modified time | relevance | path

Searched refs:oldRoot (Results 1 – 25 of 62) sorted by relevance

123

/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
DITreeFixture.cs177 CommonTree oldRoot = new CommonTree((IToken)null); in testBecomeRoot()
178 oldRoot.AddChild(new CommonTree(new CommonToken(101))); in testBecomeRoot()
179 oldRoot.AddChild(new CommonTree(new CommonToken(102))); in testBecomeRoot()
180 oldRoot.AddChild(new CommonTree(new CommonToken(103))); in testBecomeRoot()
183 adaptor.BecomeRoot(newRoot, oldRoot); in testBecomeRoot()
193 CommonTree oldRoot = new CommonTree(new CommonToken(101)); in testBecomeRoot2()
194 oldRoot.AddChild(new CommonTree(new CommonToken(102))); in testBecomeRoot2()
195 oldRoot.AddChild(new CommonTree(new CommonToken(103))); in testBecomeRoot2()
198 adaptor.BecomeRoot(newRoot, oldRoot); in testBecomeRoot2()
209 CommonTree oldRoot = new CommonTree((IToken)null); in testBecomeRoot3()
[all …]
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestTrees.java171 CommonTree oldRoot = new CommonTree((Token)null); in testBecomeRoot() local
172 oldRoot.addChild(new CommonTree(new CommonToken(101))); in testBecomeRoot()
173 oldRoot.addChild(new CommonTree(new CommonToken(102))); in testBecomeRoot()
174 oldRoot.addChild(new CommonTree(new CommonToken(103))); in testBecomeRoot()
177 adaptor.becomeRoot(newRoot, oldRoot); in testBecomeRoot()
185 CommonTree oldRoot = new CommonTree(new CommonToken(101)); in testBecomeRoot2() local
186 oldRoot.addChild(new CommonTree(new CommonToken(102))); in testBecomeRoot2()
187 oldRoot.addChild(new CommonTree(new CommonToken(103))); in testBecomeRoot2()
190 adaptor.becomeRoot(newRoot, oldRoot); in testBecomeRoot2()
199 CommonTree oldRoot = new CommonTree((Token)null); in testBecomeRoot3() local
[all …]
/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
141 adaptor.BecomeRoot(n, oldRoot); in BecomeRoot()
142 dbg.BecomeRoot(newRoot, oldRoot); in BecomeRoot()
DDebugEventRepeater.cs149 public virtual void BecomeRoot(object newRoot, object oldRoot) { in BecomeRoot() argument
150 _listener.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
181 adaptor.BecomeRoot( n, oldRoot ); in BecomeRoot()
182 dbg.BecomeRoot( newRoot, oldRoot ); in BecomeRoot()
DDebugEventRepeater.cs181 public virtual void BecomeRoot( object newRoot, object oldRoot ) in BecomeRoot() argument
183 _listener.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
137 adaptor.becomeRoot(n, oldRoot); in becomeRoot()
138 dbg.becomeRoot(newRoot, oldRoot); in becomeRoot()
DTraceDebugEventListener.java81 public void becomeRoot(Object newRoot, Object oldRoot) { in becomeRoot() argument
83 adaptor.getUniqueID(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
156 ITree oldRootTree = (ITree)oldRoot; in BecomeRoot()
157 if (oldRoot == null) { 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
140 Tree oldRootTree = (Tree)oldRoot; in becomeRoot()
141 if ( oldRoot==null ) { 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/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRTreeException.m73 if (oldRoot != aTree) {
75 if ( oldRoot ) [oldRoot release];
76 oldRoot = aTree;
82 …ingWithFormat:@"%@ old root: <%@> new root: <%@>", [super description], [oldRoot treeDescription],…
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.
158 * If oldRoot was null, it's ok, just return newRoot (even if isNil).
167 * Be advised that it's ok for newRoot to point at oldRoot's
172 - (id)becomeRoot:(id)newRoot old:(id)oldRoot
174 if ( oldRoot == nil ) {
177 //System.out.println("becomeroot new "+newRoot.toString()+" old "+oldRoot);
179 id oldRootTree = (id)oldRoot;
189 // add oldRoot to newRoot; addChild takes care of case where oldRoot
190 // is a flat list (i.e., nil-rooted tree). All children of oldRoot
[all …]
DANTLRTreeAdaptor.m132 - (id) makeNode:(id<ANTLRBaseTree>)newRoot parentOf:(id<ANTLRBaseTree>)oldRoot
136 if (oldRoot == nil)
142 @throw [ANTLRTreeException exceptionWithOldRoot:oldRoot newRoot:newRootNode stream:nil];
150 // the handling of an empty node at the root of oldRoot happens in addChild:
151 [newRootNode addChild:oldRoot];
153 // to the variable originally holding oldRoot. If we don't release we leak the reference.
156 [oldRoot release];
DANTLRDebugTreeAdaptor.m121 - (id<ANTLRBaseTree>) becomeRoot:(id<ANTLRBaseTree>)newRoot old:(id<ANTLRBaseTree>)oldRoot
123 id<ANTLRBaseTree> newTree = [treeAdaptor becomeRoot:newRoot old:oldRoot];
124 …[debugListener becomeRoot:[treeAdaptor uniqueIdForTree:newTree] old:[self uniqueIdForTree:oldRoot]…
142 - (id<ANTLRBaseTree>) makeToken:(id<ANTLRToken>)newRoot parentOf:(id<ANTLRBaseTree>)oldRoot
145 return [self becomeRoot:newNode old:oldRoot];
/external/chromium_org/third_party/WebKit/Source/core/dom/shadow/
DElementShadow.cpp175 while (RefPtrWillBeRawPtr<ShadowRoot> oldRoot = m_shadowRoots.head()) { in removeDetachedShadowRoots() local
176 InspectorInstrumentation::willPopShadowRoot(shadowHost, oldRoot.get()); in removeDetachedShadowRoots()
177 shadowHost->document().removeFocusedElementOfSubtree(oldRoot.get()); in removeDetachedShadowRoots()
179 oldRoot->setParentOrShadowHostNode(0); in removeDetachedShadowRoots()
180 oldRoot->setParentTreeScope(shadowHost->document()); in removeDetachedShadowRoots()
181 oldRoot->setPrev(0); in removeDetachedShadowRoots()
182 oldRoot->setNext(0); in removeDetachedShadowRoots()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DBaseTreeAdaptor.cs187 public virtual object BecomeRoot( object newRoot, object oldRoot ) in BecomeRoot() argument
191 ITree oldRootTree = (ITree)oldRoot; in BecomeRoot()
192 if ( oldRoot == null ) 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/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.
94 * If oldRoot was null, it's ok, just return newRoot (even if isNil).
103 * Be advised that it's ok for newRoot to point at oldRoot's
108 public function becomeRoot(newRoot:Object, oldRoot:Object):Object {
115 var oldRootTree:Tree = Tree(oldRoot);
116 if ( oldRoot==null ) {
128 // add oldRoot to newRoot; addChild takes care of case where oldRoot
129 // is a flat list (i.e., nil-rooted tree). All children of oldRoot
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/tree/
DBaseTreeAdaptor.js95 becomeRoot: function(newRoot, oldRoot) { argument
101 oldRootTree = oldRoot;
102 if ( !oldRoot ) {
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3basetreeadaptor.c51 …eRoot (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE newRoot, pANTLR3_BASE_TREE oldRoot);
52 …meRoot (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE newRoot, pANTLR3_BASE_TREE oldRoot);
56 …E becomeRootToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, void * newRoot, pANTLR3_BASE_TREE oldRoot);
57 …dbgBecomeRootToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, void * newRoot, pANTLR3_BASE_TREE oldRoot);
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()
751 adaptor->debugger->becomeRoot(adaptor->debugger,t, oldRoot); in dbgBecomeRootToken()
/external/antlr/antlr-3.4/runtime/Python/unittests/
Dtesttree.py672 oldRoot = CommonTree(None)
673 oldRoot.addChild(CommonTree(CommonToken(101)))
674 oldRoot.addChild(CommonTree(CommonToken(102)))
675 oldRoot.addChild(CommonTree(CommonToken(103)))
677 self.adaptor.becomeRoot(newRoot, oldRoot)
685 oldRoot = CommonTree(CommonToken(101))
686 oldRoot.addChild(CommonTree(CommonToken(102)))
687 oldRoot.addChild(CommonTree(CommonToken(103)))
689 self.adaptor.becomeRoot(newRoot, oldRoot)
698 oldRoot = CommonTree(None)
[all …]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/SlimParsing/Tree/
DITreeAdaptor`1.cs131 T BecomeRoot(T newRoot, T oldRoot); in BecomeRoot() argument
182 T BecomeRoot(IToken newRoot, T oldRoot); in BecomeRoot() argument
/external/antlr/antlr-3.4/runtime/Python/antlr3/
Ddebug.py294 def becomeRoot(self, newRoot, oldRoot): argument
297 self.adaptor.becomeRoot(n, oldRoot)
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
807 self.adaptor.getUniqueID(oldRoot)))
1092 def becomeRoot(self, newRoot, oldRoot): argument
1095 self.adaptor.getUniqueID(oldRoot)))

123