Home
last modified time | relevance | path

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

12

/external/antlr/runtime/ObjC/Framework/
DDebugTreeAdaptor.m94 id<BaseTree> newTree = [CommonTree newTreeWithToken:payload];
95 …[debugListener createNode:[treeAdaptor uniqueIdForTree:newTree] fromTokenAtIndex:[payload getToken…
96 return newTree;
101 id<BaseTree> newTree = [treeAdaptor newEmptyTree];
102 [debugListener createNilNode:[treeAdaptor uniqueIdForTree:newTree]];
103 return newTree;
123 id<BaseTree> newTree = [treeAdaptor becomeRoot:newRoot old:oldRoot];
124 …[debugListener becomeRoot:[treeAdaptor uniqueIdForTree:newTree] old:[self uniqueIdForTree:oldRoot]…
125 return newTree;
150 id<BaseTree> newTree = [treeAdaptor newTreeWithTokenType:tokenType];
[all …]
DBaseTree.h35 + (id<BaseTree>) newTree;
36 + (id<BaseTree>) newTree:(id<BaseTree>)node;
110 + (id<BaseTree>) newTree;
111 + (id<BaseTree>) newTree:(id<BaseTree>)node;
DTreeAdaptor.m80 id newTree = [self create:newToken];
82 return newTree;
96 id newTree = [self create:newToken];
98 return newTree;
111 id newTree = [self create:newToken];
113 return newTree;
/external/antlr/runtime/C/src/
Dantlr3commontree.c97 factory->newTree = newPoolTree; in antlr3ArboretumNew()
234 pANTLR3_BASE_TREE newTree; in newFromTree() local
236 newTree = factory->newTree(factory); in newFromTree()
238 if (newTree == NULL) in newFromTree()
245 ((pANTLR3_COMMON_TREE)(newTree->super))->token = tree->token; in newFromTree()
246 newTree->u = tree->baseTree.u; // Copy any user pointer in newFromTree()
248 return newTree; in newFromTree()
254 pANTLR3_BASE_TREE newTree; in newFromToken() local
256 newTree = factory->newTree(factory); in newFromToken()
258 if (newTree == NULL) in newFromToken()
[all …]
Dantlr3basetree.c263 pANTLR3_BASE_TREE newTree; in dupTree() local
267 newTree = (pANTLR3_BASE_TREE)tree->dupNode (tree); in dupTree()
283 newTree->addChild(newTree, newNode); in dupTree()
288 return newTree; in dupTree()
343 …_TREE parent, ANTLR3_INT32 startChildIndex, ANTLR3_INT32 stopChildIndex, pANTLR3_BASE_TREE newTree) in replaceChildren() argument
365 if (newTree->isNilNode(newTree)) in replaceChildren()
367 newChildren = newTree->children; in replaceChildren()
378 newChildren->add(newChildren, (void *)newTree, NULL); in replaceChildren()
Dantlr3basetreeadaptor.c469 pANTLR3_BASE_TREE newTree; in dupTreeTT() local
479 newTree = (pANTLR3_BASE_TREE)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/runtime/ObjC/Framework/test/runtime/tree/
DCommonTreeTest.m21 CommonTree *tree = [CommonTree newTree];
29 CommonTree *tree = [CommonTree newTree];
74 CommonTree *newTree = [CommonTree 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 CommonTree *newTree = (CommonTree *)[tree copyWithZone:nil];
[all …]
/external/antlr/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/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/runtime/Java/src/main/java/org/antlr/runtime/tree/
DBaseTreeAdaptor.java89 Object newTree = dupNode(t); in dupTree() local
91 setChildIndex(newTree, getChildIndex(t)); // same index in new tree in dupTree()
92 setParent(newTree, parent); in dupTree()
97 addChild(newTree, newSubTree); in dupTree()
99 return newTree; in dupTree()
DBaseTree.java205 BaseTree newTree = (BaseTree)t; in replaceChildren() local
208 if ( newTree.isNil() ) { in replaceChildren()
209 newChildren = newTree.children; in replaceChildren()
213 newChildren.add(newTree); in replaceChildren()
DTreeRewriter.java104 public void reportTransformation(Object oldTree, Object newTree) { in reportTransformation() argument
106 ((Tree)newTree).toStringTree()); in reportTransformation()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DBaseTree.cs359 ITree newTree = (ITree)t; in ReplaceChildren()
362 if ( newTree.IsNil ) in ReplaceChildren()
364 BaseTree baseTree = newTree as BaseTree; in ReplaceChildren()
372 int n = newTree.ChildCount; in ReplaceChildren()
374 newChildren.Add( newTree.GetChild( i ) ); in ReplaceChildren()
380 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.java671 ByteString newTree = prefixesStack.pop(); in insert() local
674 newTree = new RopeByteString(left, newTree); in insert()
678 newTree = new RopeByteString(newTree, byteString); in insert()
682 depthBin = getDepthBinForLength(newTree.size()); in insert()
686 newTree = new RopeByteString(left, newTree); in insert()
691 prefixesStack.push(newTree); in insert()
/external/antlr/runtime/Cpp/include/
Dantlr3commontree.inl171 …raits>::replaceChildren(ANTLR_INT32 startChildIndex, ANTLR_INT32 stopChildIndex, TreeType* newTree) argument
193 if (newTree->isNilNode())
195 newChildren = newTree->get_children_p();
200 newChildren->push_back(newTree);
293 TreeType* newTree; local
297 newTree = this->dupNode();
313 newTree->addChild(newNode);
318 return newTree;
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/objectid/
DObjectWithCreator1261Test.java81 JsonNode newTree = mapper.readTree(reserializedAnswerString); in testObjectIds1261() local
82 if (!tree.equals(newTree)) { in testObjectIds1261()
/external/skia/infra/bots/gen_tasks_logic/
Dcompile_cas.go190 func newTree() *tree { func
217 t := newTree()
/external/antlr/runtime/C/include/
Dantlr3commontree.h151 pANTLR3_BASE_TREE (*newTree) (struct ANTLR3_ARBORETUM_struct * factory); member
/external/antlr/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;
/external/antlr/runtime/Python3/antlr3/
Dtree.py789 def replaceChildren(self, startChildIndex, stopChildIndex, newTree): argument
804 if newTree.isNil():
805 newChildren = newTree.children
808 newChildren = [newTree]
996 newTree = self.dupNode(t)
1001 self.setChildIndex(newTree, self.getChildIndex(t))
1003 self.setParent(newTree, parent)
1008 self.addChild(newTree, newSubTree)
1010 return newTree
/external/antlr/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

12