/external/antlr/antlr-3.4/runtime/ObjC/Framework/ |
ANTLRTreeException.m | 73 if (oldRoot != aTree) { 75 if ( oldRoot ) [oldRoot release]; 76 oldRoot = aTree; 82 return [NSMutableString stringWithFormat:@"%@ old root: <%@> new root: <%@>", [super description], [oldRoot treeDescription], [newRoot treeDescription]];
|
ANTLRTreeAdaptor.m | 132 - (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];
|
ANTLRBaseTreeAdaptor.m | 146 /** 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 [all...] |
ANTLRDebugTreeAdaptor.m | 121 - (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];
|
ANTLRBaseTreeAdaptor.h | 80 /** If oldRoot is a nil root, just copy or move the children to newRoot. 81 * If not a nil root, make oldRoot a child of newRoot. 92 * If oldRoot was null, it's ok, just return newRoot (even if isNil). 101 * Be advised that it's ok for newRoot to point at oldRoot's 106 - (id<ANTLRBaseTree>)becomeRoot:(id<ANTLRBaseTree>)aNewRoot old:(id<ANTLRBaseTree>)oldRoot; 111 - (id<ANTLRBaseTree>)becomeRootfromToken:(id<ANTLRToken>)aNewRoot old:(id<ANTLRBaseTree>)oldRoot;
|
ANTLRTreeAdaptor.h | 72 /** If oldRoot is a nil root, just copy or move the children to newRoot. 73 * If not a nil root, make oldRoot a child of newRoot. 84 * If oldRoot was null, it's ok, just return newRoot (even if isNil). 93 * Be advised that it's ok for newRoot to point at oldRoot's 98 - (id) becomeRoot:(id)newRoot old:(id)oldRoot;
|
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/tree/ |
BaseTreeAdaptor.js | 69 /** If oldRoot is a nil root, just copy or move the children to newRoot. 70 * If not a nil root, make oldRoot a child of newRoot. 81 * If oldRoot was null, it's ok, just return newRoot (even if isNil). 90 * Be advised that it's ok for newRoot to point at oldRoot's 95 becomeRoot: function(newRoot, oldRoot) { 101 oldRootTree = oldRoot; 102 if ( !oldRoot ) { 115 // add oldRoot to newRoot; addChild takes care of case where oldRoot 116 // is a flat list (i.e., nil-rooted tree). All children of oldRoot [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/ |
BaseTreeAdaptor.cs | 124 * If oldRoot is a nil root, just copy or move the children to newRoot. 125 * If not a nil root, make oldRoot a child of newRoot. 138 * If oldRoot was null, it's ok, just return newRoot (even if isNil). 147 * Be advised that it's ok for newRoot to point at oldRoot's 153 public virtual object BecomeRoot(object newRoot, object oldRoot) { 154 //System.out.println("becomeroot new "+newRoot.toString()+" old "+oldRoot); 156 ITree oldRootTree = (ITree)oldRoot; 157 if (oldRoot == null) { 170 // add oldRoot to newRoot; addChild takes care of case where oldRoot [all...] |
ITreeAdaptor.cs | 114 * If oldRoot is a nil root, just copy or move the children to newRoot. 115 * If not a nil root, make oldRoot a child of newRoot. 128 * If oldRoot was null, it's ok, just return newRoot (even if isNil). 137 * Be advised that it's ok for newRoot to point at oldRoot's 143 object BecomeRoot(object newRoot, object oldRoot); 178 * Create a node for newRoot make it the root of oldRoot. 179 * If oldRoot is a nil root, just copy or move the children to newRoot. 180 * If not a nil root, make oldRoot a child of newRoot. 194 object BecomeRoot(IToken newRoot, object oldRoot);
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/ |
BaseTreeAdaptor.java | 111 /** If oldRoot is a nil root, just copy or move the children to newRoot. 112 * If not a nil root, make oldRoot a child of newRoot. 123 * If oldRoot was null, it's ok, just return newRoot (even if isNil). 132 * Be advised that it's ok for newRoot to point at oldRoot's 137 public Object becomeRoot(Object newRoot, Object oldRoot) { 138 //System.out.println("becomeroot new "+newRoot.toString()+" old "+oldRoot); 140 Tree oldRootTree = (Tree)oldRoot; 141 if ( oldRoot==null ) { 153 // add oldRoot to newRoot; addChild takes care of case where oldRoot [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/ |
ITreeFixture.cs | 177 CommonTree oldRoot = new CommonTree((IToken)null); 178 oldRoot.AddChild(new CommonTree(new CommonToken(101))); 179 oldRoot.AddChild(new CommonTree(new CommonToken(102))); 180 oldRoot.AddChild(new CommonTree(new CommonToken(103))); 183 adaptor.BecomeRoot(newRoot, oldRoot); 193 CommonTree oldRoot = new CommonTree(new CommonToken(101)); 194 oldRoot.AddChild(new CommonTree(new CommonToken(102))); 195 oldRoot.AddChild(new CommonTree(new CommonToken(103))); 198 adaptor.BecomeRoot(newRoot, oldRoot); 209 CommonTree oldRoot = new CommonTree((IToken)null) [all...] |
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/ |
TestTrees.java | 171 CommonTree oldRoot = new CommonTree((Token)null); 172 oldRoot.addChild(new CommonTree(new CommonToken(101))); 173 oldRoot.addChild(new CommonTree(new CommonToken(102))); 174 oldRoot.addChild(new CommonTree(new CommonToken(103))); 177 adaptor.becomeRoot(newRoot, oldRoot); 185 CommonTree oldRoot = new CommonTree(new CommonToken(101)); 186 oldRoot.addChild(new CommonTree(new CommonToken(102))); 187 oldRoot.addChild(new CommonTree(new CommonToken(103))); 190 adaptor.becomeRoot(newRoot, oldRoot); 199 CommonTree oldRoot = new CommonTree((Token)null) [all...] |
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/tree/ |
BaseTreeAdaptor.as | 82 /** 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 [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/ |
BaseTreeAdaptor.cs | 158 * If oldRoot is a nil root, just copy or move the children to newRoot. 159 * If not a nil root, make oldRoot a child of newRoot. 172 * If oldRoot was null, it's ok, just return newRoot (even if isNil). 181 * Be advised that it's ok for newRoot to point at oldRoot's 187 public virtual object BecomeRoot( object newRoot, object oldRoot ) 189 //System.out.println("becomeroot new "+newRoot.toString()+" old "+oldRoot); 191 ITree oldRootTree = (ITree)oldRoot; 192 if ( oldRoot == null ) 208 // add oldRoot to newRoot; addChild takes care of case where oldRoot [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/SlimParsing/Tree/ |
ITreeAdaptor`1.cs | 102 * If oldRoot is a nil root, just copy or move the children to newRoot. 103 * If not a nil root, make oldRoot a child of newRoot. 116 * If oldRoot was null, it's ok, just return newRoot (even if isNil). 125 * Be advised that it's ok for newRoot to point at oldRoot's 131 T BecomeRoot(T newRoot, T oldRoot); 166 * Create a node for newRoot make it the root of oldRoot. 167 * If oldRoot is a nil root, just copy or move the children to newRoot. 168 * If not a nil root, make oldRoot a child of newRoot. 182 T BecomeRoot(IToken newRoot, T oldRoot);
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/ |
DebugTreeAdaptor.cs | 124 public virtual object BecomeRoot(object newRoot, object oldRoot) { 125 object n = adaptor.BecomeRoot(newRoot, oldRoot); 126 dbg.BecomeRoot(newRoot, oldRoot); 139 public virtual object BecomeRoot(IToken newRoot, object oldRoot) { 141 adaptor.BecomeRoot(n, oldRoot); 142 dbg.BecomeRoot(newRoot, oldRoot);
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/ |
DebugTreeAdaptor.cs | 160 public virtual object BecomeRoot( object newRoot, object oldRoot ) 162 object n = adaptor.BecomeRoot( newRoot, oldRoot ); 163 dbg.BecomeRoot( newRoot, oldRoot ); 178 public virtual object BecomeRoot( IToken newRoot, object oldRoot ) 181 adaptor.BecomeRoot( n, oldRoot ); 182 dbg.BecomeRoot( newRoot, oldRoot );
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/ |
DebugTreeAdaptor.java | 120 public Object becomeRoot(Object newRoot, Object oldRoot) { 121 Object n = adaptor.becomeRoot(newRoot, oldRoot); 122 dbg.becomeRoot(newRoot, oldRoot); 135 public Object becomeRoot(Token newRoot, Object oldRoot) { 137 adaptor.becomeRoot(n, oldRoot); 138 dbg.becomeRoot(newRoot, oldRoot);
|
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Headers/ |
ANTLRBaseTreeAdaptor.h | 88 /** If oldRoot is a nil root, just copy or move the children to newRoot. 89 * If not a nil root, make oldRoot a child of newRoot. 100 * If oldRoot was null, it's ok, just return newRoot (even if isNil). 109 * Be advised that it's ok for newRoot to point at oldRoot's 114 - (id<ANTLRTree>)becomeRoot:(id<ANTLRTree>)aNewRoot old:(id<ANTLRTree>)oldRoot; 119 - (id<ANTLRTree>)becomeRootfromToken:(id<ANTLRToken>)aNewRoot old:(id<ANTLRTree>)oldRoot;
|
ANTLRTreeAdaptor.h | 76 /** If oldRoot is a nil root, just copy or move the children to newRoot. 77 * If not a nil root, make oldRoot a child of newRoot. 88 * If oldRoot was null, it's ok, just return newRoot (even if isNil). 97 * Be advised that it's ok for newRoot to point at oldRoot's 102 - (id) becomeRoot:(id<ANTLRTree>)newRoot old:(id<ANTLRTree>)oldRoot;
|
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/ |
ANTLRBaseTreeAdaptor.h | 88 /** If oldRoot is a nil root, just copy or move the children to newRoot. 89 * If not a nil root, make oldRoot a child of newRoot. 100 * If oldRoot was null, it's ok, just return newRoot (even if isNil). 109 * Be advised that it's ok for newRoot to point at oldRoot's 114 - (id<ANTLRTree>)becomeRoot:(id<ANTLRTree>)aNewRoot old:(id<ANTLRTree>)oldRoot; 119 - (id<ANTLRTree>)becomeRootfromToken:(id<ANTLRToken>)aNewRoot old:(id<ANTLRTree>)oldRoot;
|
ANTLRTreeAdaptor.h | 76 /** If oldRoot is a nil root, just copy or move the children to newRoot. 77 * If not a nil root, make oldRoot a child of newRoot. 88 * If oldRoot was null, it's ok, just return newRoot (even if isNil). 97 * Be advised that it's ok for newRoot to point at oldRoot's 102 - (id) becomeRoot:(id<ANTLRTree>)newRoot old:(id<ANTLRTree>)oldRoot;
|
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/ |
ANTLRBaseTreeAdaptor.h | 88 /** If oldRoot is a nil root, just copy or move the children to newRoot. 89 * If not a nil root, make oldRoot a child of newRoot. 100 * If oldRoot was null, it's ok, just return newRoot (even if isNil). 109 * Be advised that it's ok for newRoot to point at oldRoot's 114 - (id<ANTLRTree>)becomeRoot:(id<ANTLRTree>)aNewRoot old:(id<ANTLRTree>)oldRoot; 119 - (id<ANTLRTree>)becomeRootfromToken:(id<ANTLRToken>)aNewRoot old:(id<ANTLRTree>)oldRoot;
|
ANTLRTreeAdaptor.h | 76 /** If oldRoot is a nil root, just copy or move the children to newRoot. 77 * If not a nil root, make oldRoot a child of newRoot. 88 * If oldRoot was null, it's ok, just return newRoot (even if isNil). 97 * Be advised that it's ok for newRoot to point at oldRoot's 102 - (id) becomeRoot:(id<ANTLRTree>)newRoot old:(id<ANTLRTree>)oldRoot;
|
/external/antlr/antlr-3.4/runtime/C/src/ |
antlr3basetreeadaptor.c | 51 static pANTLR3_BASE_TREE becomeRoot (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE newRoot, pANTLR3_BASE_TREE oldRoot); 52 static pANTLR3_BASE_TREE dbgBecomeRoot (pANTLR3_BASE_TREE_ADAPTOR adaptor, pANTLR3_BASE_TREE newRoot, pANTLR3_BASE_TREE oldRoot); 56 static pANTLR3_BASE_TREE becomeRootToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, void * newRoot, pANTLR3_BASE_TREE oldRoot); 57 static pANTLR3_BASE_TREE dbgBecomeRootToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, void * newRoot, pANTLR3_BASE_TREE oldRoot); 587 /** If oldRoot is a nil root, just copy or move the children to newRoot. 588 * If not a nil root, make oldRoot a child of newRoot. 603 * If oldRoot was null, it's ok, just return newRoot (even if isNilNode). 614 * Be advised that it's ok for newRoot to point at oldRoot's 664 /* Add old root into new root. addChild takes care of the case where oldRoot 665 * is a flat list (nill rooted tree). All children of oldroot are added t [all...] |