Home
last modified time | relevance | path

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

123

/external/antlr/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/tool/src/test/java/org/antlr/test/
DTestTrees.java174 CommonTree oldRoot = new CommonTree((Token)null); in testBecomeRoot() local
175 oldRoot.addChild(new CommonTree(new CommonToken(101))); in testBecomeRoot()
176 oldRoot.addChild(new CommonTree(new CommonToken(102))); in testBecomeRoot()
177 oldRoot.addChild(new CommonTree(new CommonToken(103))); in testBecomeRoot()
180 adaptor.becomeRoot(newRoot, oldRoot); in testBecomeRoot()
188 CommonTree oldRoot = new CommonTree(new CommonToken(101)); in testBecomeRoot2() local
189 oldRoot.addChild(new CommonTree(new CommonToken(102))); in testBecomeRoot2()
190 oldRoot.addChild(new CommonTree(new CommonToken(103))); in testBecomeRoot2()
193 adaptor.becomeRoot(newRoot, oldRoot); in testBecomeRoot2()
202 CommonTree oldRoot = new CommonTree((Token)null); in testBecomeRoot3() local
[all …]
/external/antlr/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()
/external/antlr/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/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/runtime/Java/src/main/java/org/antlr/runtime/debug/
DDebugTreeAdaptor.java128 public Object becomeRoot(Object newRoot, Object oldRoot) { in becomeRoot() argument
129 Object n = adaptor.becomeRoot(newRoot, oldRoot); in becomeRoot()
130 dbg.becomeRoot(newRoot, oldRoot); in becomeRoot()
145 public Object becomeRoot(Token newRoot, Object oldRoot) { in becomeRoot() argument
147 adaptor.becomeRoot(n, oldRoot); in becomeRoot()
148 dbg.becomeRoot(newRoot, oldRoot); in becomeRoot()
/external/antlr/runtime/ObjC/Framework/
DTreeException.m73 if (oldRoot != aTree) {
75 if ( oldRoot ) [oldRoot release];
76 oldRoot = aTree;
82 …ingWithFormat:@"%@ old root: <%@> new root: <%@>", [super description], [oldRoot treeDescription],…
DBaseTreeAdaptor.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 …]
DTreeAdaptor.m132 - (id) makeNode:(id)newRoot parentOf:(id)oldRoot
136 if (oldRoot == nil)
142 @throw [TreeException 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];
DDebugTreeAdaptor.m121 - (id<BaseTree>) becomeRoot:(id<BaseTree>)newRoot old:(id<BaseTree>)oldRoot
123 id<BaseTree> newTree = [treeAdaptor becomeRoot:newRoot old:oldRoot];
124 …[debugListener becomeRoot:[treeAdaptor uniqueIdForTree:newTree] old:[self uniqueIdForTree:oldRoot]…
142 - (id<BaseTree>) makeToken:(id<Token>)newRoot parentOf:(id<BaseTree>)oldRoot
145 return [self becomeRoot:newNode old:oldRoot];
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/tree/
DBaseTreeAdaptor.java143 public Object becomeRoot(Object newRoot, Object oldRoot) { in becomeRoot() argument
146 Tree oldRootTree = (Tree)oldRoot; in becomeRoot()
147 if ( oldRoot==null ) { in becomeRoot()
186 public Object becomeRoot(Token newRoot, Object oldRoot) { in becomeRoot() argument
187 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/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/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/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 …REE)adaptor->becomeRoot(adaptor, adaptor->create(adaptor, (pANTLR3_COMMON_TOKEN)newRoot), oldRoot); in becomeRootToken()
745 dbgBecomeRootToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, void * newRoot, pANTLR3_BASE_TREE oldRoot) in dbgBecomeRootToken() argument
749 …REE)adaptor->becomeRoot(adaptor, adaptor->create(adaptor, (pANTLR3_COMMON_TOKEN)newRoot), oldRoot); in dbgBecomeRootToken()
751 adaptor->debugger->becomeRoot(adaptor->debugger,t, oldRoot); in dbgBecomeRootToken()
/external/antlr/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/runtime/Python3/unittests/
Dtesttree.py669 oldRoot = CommonTree(None)
670 oldRoot.addChild(CommonTree(CommonToken(101)))
671 oldRoot.addChild(CommonTree(CommonToken(102)))
672 oldRoot.addChild(CommonTree(CommonToken(103)))
674 self.adaptor.becomeRoot(newRoot, oldRoot)
682 oldRoot = CommonTree(CommonToken(101))
683 oldRoot.addChild(CommonTree(CommonToken(102)))
684 oldRoot.addChild(CommonTree(CommonToken(103)))
686 self.adaptor.becomeRoot(newRoot, oldRoot)
695 oldRoot = CommonTree(None)
[all …]
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/tree/
DBaseTreeAdaptor.js95 becomeRoot: function(newRoot, oldRoot) { argument
101 oldRootTree = oldRoot;
102 if ( !oldRoot ) {
/external/antlr/runtime/Cpp/include/
Dantlr3commontreeadaptor.hpp65 TreeType* becomeRoot( TreeType* newRoot, TreeType* oldRoot);
68 TreeType* becomeRootToken(CommonTokenType* newRoot, TreeType* oldRoot);
146 TreeType* becomeRootToken(TreeType* newRoot, TreeType* oldRoot);
/external/antlr/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)))
/external/antlr/runtime/Python3/antlr3/
Ddebug.py301 def becomeRoot(self, newRoot, oldRoot): argument
304 self.adaptor.becomeRoot(n, oldRoot)
306 n = self.adaptor.becomeRoot(newRoot, oldRoot)
308 self.dbg.becomeRoot(newRoot, oldRoot)
687 def becomeRoot(self, newRoot, oldRoot): argument
804 def becomeRoot(self, newRoot, oldRoot): argument
807 self.adaptor.getUniqueID(oldRoot)))
1089 def becomeRoot(self, newRoot, oldRoot): argument
1092 self.adaptor.getUniqueID(oldRoot)))
/external/antlr/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

123