Home
last modified time | relevance | path

Searched refs:newTree (Results 1 – 25 of 33) sorted by relevance

12

/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRDebugTreeAdaptor.m94 id<ANTLRBaseTree> newTree = [ANTLRCommonTree newTreeWithToken:payload];
95 …[debugListener createNode:[treeAdaptor uniqueIdForTree:newTree] fromTokenAtIndex:[payload getToken…
96 return newTree;
101 id<ANTLRBaseTree> newTree = [treeAdaptor newEmptyTree];
102 [debugListener createNilNode:[treeAdaptor uniqueIdForTree:newTree]];
103 return newTree;
123 id<ANTLRBaseTree> newTree = [treeAdaptor becomeRoot:newRoot old:oldRoot];
124 …[debugListener becomeRoot:[treeAdaptor uniqueIdForTree:newTree] old:[self uniqueIdForTree:oldRoot]…
125 return newTree;
150 id<ANTLRBaseTree> newTree = [treeAdaptor newANTLRTreeWithTokenType:tokenType];
[all …]
DANTLRBaseTree.h35 + (id<ANTLRBaseTree>) newTree;
36 + (id<ANTLRBaseTree>) newTree:(id<ANTLRBaseTree>)node;
110 + (id<ANTLRBaseTree>) newTree;
111 + (id<ANTLRBaseTree>) newTree:(id<ANTLRBaseTree>)node;
DANTLRTreeAdaptor.m80 id<ANTLRBaseTree> newTree = [self create:newToken];
82 return newTree;
96 id<ANTLRBaseTree> newTree = [self create:newToken];
98 return newTree;
111 id<ANTLRBaseTree> newTree = [self create:newToken];
113 return newTree;
DANTLRBaseTree.m64 + newTree
73 + newTree:(id<ANTLRBaseTree>) node
263 id<ANTLRBaseTree> newTree = (id<ANTLRBaseTree>) t;
266 if ( [newTree isNil] ) {
267 newChildren = newTree.children;
271 [newChildren addObject:newTree];
DANTLRBaseTreeAdaptor.m115 id newTree = [self dupNode:t];
117 [self setChildIndex:newTree With:[self getChildIndex:t]]; // same index in new tree
118 [self setParent:newTree With:parent];
123 [self addChild:newSubTree toTree:newTree];
125 return newTree;
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3commontree.c97 factory->newTree = newPoolTree; in antlr3ArboretumNew()
215 pANTLR3_BASE_TREE newTree; in newFromTree() local
217 newTree = factory->newTree(factory); in newFromTree()
219 if (newTree == NULL) in newFromTree()
226 ((pANTLR3_COMMON_TREE)(newTree->super))->token = tree->token; in newFromTree()
227 newTree->u = tree->baseTree.u; // Copy any user pointer in newFromTree()
229 return newTree; in newFromTree()
235 pANTLR3_BASE_TREE newTree; in newFromToken() local
237 newTree = factory->newTree(factory); in newFromToken()
239 if (newTree == NULL) in newFromToken()
[all …]
Dantlr3basetree.c259 pANTLR3_BASE_TREE newTree; in dupTree() local
263 newTree = tree->dupNode (tree); in dupTree()
279 newTree->addChild(newTree, newNode); in dupTree()
284 return newTree; in dupTree()
339 …_TREE parent, ANTLR3_INT32 startChildIndex, ANTLR3_INT32 stopChildIndex, pANTLR3_BASE_TREE newTree) in replaceChildren() argument
361 if (newTree->isNilNode(newTree)) in replaceChildren()
363 newChildren = newTree->children; in replaceChildren()
374 newChildren->add(newChildren, (void *)newTree, NULL); in replaceChildren()
Dantlr3basetreeadaptor.c469 pANTLR3_BASE_TREE newTree; in dupTreeTT() local
479 newTree = t->dupNode(t); in dupTreeTT()
483 adaptor->setChildIndex (adaptor, newTree, t->getChildIndex(t)); in dupTreeTT()
484 adaptor->setParent (adaptor, newTree, parent); in dupTreeTT()
491 adaptor->addChild (adaptor, newTree, newSubTree); in dupTreeTT()
493 return newTree; in dupTreeTT()
/external/antlr/antlr-3.4/runtime/ObjC/Framework/test/runtime/tree/
DANTLRCommonTreeTest.m21 ANTLRCommonTree *tree = [ANTLRCommonTree newTree];
29 ANTLRCommonTree *tree = [ANTLRCommonTree newTree];
74 ANTLRCommonTree *newTree = [ANTLRCommonTree newTreeWithTree:tree];
75 STAssertNotNil(newTree, @"New tree was nil");
76 STAssertNotNil(newTree.token, @"New tree token was nil");
77 STAssertEquals(newTree.token, tree.token, @"Tokens did not match");
78 …STAssertEquals(newTree.startIndex, tree.startIndex, @"Token start index did not match %d:%d", newT…
79 …STAssertEquals(newTree.stopIndex, tree.stopIndex, @"Token stop index did not match %d:%d", newTree
82 //[newTree release];
93 ANTLRCommonTree *newTree = (ANTLRCommonTree *)[tree copyWithZone:nil];
[all …]
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/tree/
DBaseTreeAdaptor.js42 var newTree = this.dupNode(t);
44 this.setChildIndex(newTree, this.getChildIndex(t)); // same index in new tree
45 this.setParent(newTree, parent);
51 this.addChild(newTree, newSubTree);
53 return newTree;
DBaseTree.js137 var newTree = t;
140 if ( newTree.isNil() ) {
141 newChildren = newTree.children;
145 newChildren.push(newTree);
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DBaseTreeAdaptor.cs95 object newTree = DupNode(t); in DupTree()
97 SetChildIndex(newTree, GetChildIndex(t)); // same index in new tree in DupTree()
98 SetParent(newTree, parent); in DupTree()
103 AddChild(newTree, newSubTree); in DupTree()
105 return newTree; in DupTree()
DBaseTree.cs284 ITree newTree = (ITree)t; in ReplaceChildren()
287 if (newTree.IsNil) { in ReplaceChildren()
288 BaseTree baseTree = newTree as BaseTree; in ReplaceChildren()
293 int n = newTree.ChildCount; in ReplaceChildren()
295 newChildren.Add(newTree.GetChild(i)); in ReplaceChildren()
299 newChildren.Add(newTree); in ReplaceChildren()
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/
DBaseTreeAdaptor.java85 Object newTree = dupNode(t); in dupTree() local
87 setChildIndex(newTree, getChildIndex(t)); // same index in new tree in dupTree()
88 setParent(newTree, parent); in dupTree()
93 addChild(newTree, newSubTree); in dupTree()
95 return newTree; in dupTree()
DBaseTree.java192 BaseTree newTree = (BaseTree)t; in replaceChildren() local
195 if ( newTree.isNil() ) { in replaceChildren()
196 newChildren = newTree.children; in replaceChildren()
200 newChildren.add(newTree); in replaceChildren()
DTreeRewriter.java102 public void reportTransformation(Object oldTree, Object newTree) { in reportTransformation() argument
104 ((Tree)newTree).toStringTree()); in reportTransformation()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DBaseTree.cs335 ITree newTree = (ITree)t; in ReplaceChildren()
338 if ( newTree.IsNil ) in ReplaceChildren()
340 BaseTree baseTree = newTree as BaseTree; in ReplaceChildren()
348 int n = newTree.ChildCount; in ReplaceChildren()
350 newChildren.Add( newTree.GetChild( i ) ); in ReplaceChildren()
356 newChildren.Add( newTree ); in ReplaceChildren()
DBaseTreeAdaptor.cs126 object newTree = DupNode( t ); in DupTree()
128 SetChildIndex( newTree, GetChildIndex( t ) ); // same index in new tree in DupTree()
129 SetParent( newTree, parent ); in DupTree()
135 AddChild( newTree, newSubTree ); in DupTree()
137 return newTree; in DupTree()
DTreeRewriter.cs135 protected virtual void ReportTransformation(object oldTree, object newTree) in ReportTransformation() argument
138 ITree @new = newTree as ITree; in ReportTransformation()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DRopeByteString.java631 ByteString newTree = prefixesStack.pop(); in insert() local
635 newTree = new RopeByteString(left, newTree); in insert()
639 newTree = new RopeByteString(newTree, byteString); in insert()
643 depthBin = getDepthBinForLength(newTree.size()); in insert()
647 newTree = new RopeByteString(left, newTree); in insert()
652 prefixesStack.push(newTree); in insert()
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/tree/
DBaseTreeAdaptor.as56 var newTree:Object = dupNode(t);
58 setChildIndex(newTree, getChildIndex(t)); // same index in new tree
59 setParent(newTree, parent);
64 addChild(newTree, newSubTree);
66 return newTree;
DBaseTree.as165 var newTree:BaseTree = BaseTree(t);
168 if ( newTree.isNil ) {
169 newChildren = newTree.children;
173 newChildren.push(newTree);
/external/antlr/antlr-3.4/runtime/Python/antlr3/
Dtree.py793 def replaceChildren(self, startChildIndex, stopChildIndex, newTree): argument
809 if newTree.isNil():
810 newChildren = newTree.children
813 newChildren = [newTree]
1003 newTree = self.dupNode(t)
1008 self.setChildIndex(newTree, self.getChildIndex(t))
1010 self.setParent(newTree, parent)
1015 self.addChild(newTree, newSubTree)
1017 return newTree
/external/antlr/antlr-3.4/runtime/C/include/
Dantlr3commontree.h151 pANTLR3_BASE_TREE (*newTree) (struct ANTLR3_ARBORETUM_struct * factory); member
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/
DANTLRTreeRewriter.h66 - (void)reportTransformation:(id<ANTLRTree>)oldTree Tree:(id<ANTLRTree>)newTree;

12