• Home
  • Raw
  • Download

Lines Matching refs:CommonTree

44 	using CommonTree = Antlr.Runtime.Tree.CommonTree;  typedef
52 #region CommonTree Tests
57 CommonTree t = new CommonTree(new CommonToken(101)); in testSingleNode()
66 CommonTree r0 = new CommonTree(new CommonToken(101)); in test4Nodes()
67 r0.AddChild(new CommonTree(new CommonToken(102))); in test4Nodes()
68 r0.GetChild(0).AddChild(new CommonTree(new CommonToken(103))); in test4Nodes()
69 r0.AddChild(new CommonTree(new CommonToken(104))); in test4Nodes()
79 CommonTree r0 = new CommonTree((IToken)null); in testList()
80 CommonTree c0, c1, c2; in testList()
81 r0.AddChild(c0 = new CommonTree(new CommonToken(101))); in testList()
82 r0.AddChild(c1 = new CommonTree(new CommonToken(102))); in testList()
83 r0.AddChild(c2 = new CommonTree(new CommonToken(103))); in testList()
100 CommonTree root = new CommonTree(new CommonToken(5)); in testList2()
103 CommonTree r0 = new CommonTree((IToken)null); in testList2()
104 CommonTree c0, c1, c2; in testList2()
105 r0.AddChild(c0 = new CommonTree(new CommonToken(101))); in testList2()
106 r0.AddChild(c1 = new CommonTree(new CommonToken(102))); in testList2()
107 r0.AddChild(c2 = new CommonTree(new CommonToken(103))); in testList2()
127 CommonTree root = new CommonTree(new CommonToken(5)); in testAddListToExistChildren()
128 root.AddChild(new CommonTree(new CommonToken(6))); in testAddListToExistChildren()
131 CommonTree r0 = new CommonTree((IToken)null); in testAddListToExistChildren()
132 CommonTree c0, c1, c2; in testAddListToExistChildren()
133 r0.AddChild(c0 = new CommonTree(new CommonToken(101))); in testAddListToExistChildren()
134 r0.AddChild(c1 = new CommonTree(new CommonToken(102))); in testAddListToExistChildren()
135 r0.AddChild(c2 = new CommonTree(new CommonToken(103))); in testAddListToExistChildren()
154 CommonTree r0 = new CommonTree(new CommonToken(101)); in testDupTree()
155 CommonTree r1 = new CommonTree(new CommonToken(102)); in testDupTree()
157 r1.AddChild(new CommonTree(new CommonToken(103))); in testDupTree()
158 ITree r2 = new CommonTree(new CommonToken(106)); in testDupTree()
159 r2.AddChild(new CommonTree(new CommonToken(107))); in testDupTree()
161 r0.AddChild(new CommonTree(new CommonToken(104))); in testDupTree()
162 r0.AddChild(new CommonTree(new CommonToken(105))); in testDupTree()
164 CommonTree dup = (CommonTree)(new CommonTreeAdaptor()).DupTree(r0); in testDupTree()
175 CommonTree newRoot = new CommonTree(new CommonToken(5)); in testBecomeRoot()
177 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()
191 CommonTree newRoot = new CommonTree(new CommonToken(5)); in testBecomeRoot2()
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()
206 CommonTree newRoot = new CommonTree((IToken)null); in testBecomeRoot3()
207 newRoot.AddChild(new CommonTree(new CommonToken(5))); in testBecomeRoot3()
209 CommonTree oldRoot = new CommonTree((IToken)null); in testBecomeRoot3()
210 oldRoot.AddChild(new CommonTree(new CommonToken(101))); in testBecomeRoot3()
211 oldRoot.AddChild(new CommonTree(new CommonToken(102))); in testBecomeRoot3()
212 oldRoot.AddChild(new CommonTree(new CommonToken(103))); in testBecomeRoot3()
223 CommonTree newRoot = new CommonTree((IToken)null); in testBecomeRoot5()
224 newRoot.AddChild(new CommonTree(new CommonToken(5))); in testBecomeRoot5()
226 CommonTree oldRoot = new CommonTree(new CommonToken(101)); in testBecomeRoot5()
227 oldRoot.AddChild(new CommonTree(new CommonToken(102))); in testBecomeRoot5()
228 oldRoot.AddChild(new CommonTree(new CommonToken(103))); in testBecomeRoot5()
240 CommonTree root_0 = (CommonTree)adaptor.Nil(); in testBecomeRoot6()
241 CommonTree root_1 = (CommonTree)adaptor.Nil(); in testBecomeRoot6()
242 root_1 = (CommonTree)adaptor.BecomeRoot(new CommonTree(new CommonToken(5)), root_1); in testBecomeRoot6()
244 adaptor.AddChild(root_1, new CommonTree(new CommonToken(6))); in testBecomeRoot6()
256 CommonTree t = new CommonTree(new CommonToken(101)); in testReplaceWithNoChildren()
257 CommonTree newChild = new CommonTree(new CommonToken(5)); in testReplaceWithNoChildren()
274 CommonTree t = new CommonTree(new CommonToken(99, "a")); in testReplaceWithOneChildren()
275 CommonTree c0 = new CommonTree(new CommonToken(99, "b")); in testReplaceWithOneChildren()
278 CommonTree newChild = new CommonTree(new CommonToken(99, "c")); in testReplaceWithOneChildren()
288 CommonTree t = new CommonTree(new CommonToken(99, "a")); in testReplaceInMiddle()
289 t.AddChild(new CommonTree(new CommonToken(99, "b"))); in testReplaceInMiddle()
290 t.AddChild(new CommonTree(new CommonToken(99, "c"))); // index 1 in testReplaceInMiddle()
291 t.AddChild(new CommonTree(new CommonToken(99, "d"))); in testReplaceInMiddle()
293 CommonTree newChild = new CommonTree(new CommonToken(99, "x")); in testReplaceInMiddle()
303 CommonTree t = new CommonTree(new CommonToken(99, "a")); in testReplaceAtLeft()
304 t.AddChild(new CommonTree(new CommonToken(99, "b"))); // index 0 in testReplaceAtLeft()
305 t.AddChild(new CommonTree(new CommonToken(99, "c"))); in testReplaceAtLeft()
306 t.AddChild(new CommonTree(new CommonToken(99, "d"))); in testReplaceAtLeft()
308 CommonTree newChild = new CommonTree(new CommonToken(99, "x")); in testReplaceAtLeft()
318 CommonTree t = new CommonTree(new CommonToken(99, "a")); in testReplaceAtRight()
319 t.AddChild(new CommonTree(new CommonToken(99, "b"))); in testReplaceAtRight()
320 t.AddChild(new CommonTree(new CommonToken(99, "c"))); in testReplaceAtRight()
321 t.AddChild(new CommonTree(new CommonToken(99, "d"))); // index 2 in testReplaceAtRight()
323 CommonTree newChild = new CommonTree(new CommonToken(99, "x")); in testReplaceAtRight()
334 CommonTree t = new CommonTree(new CommonToken(99, "a")); in testReplaceOneWithTwoAtLeft()
335 t.AddChild(new CommonTree(new CommonToken(99, "b"))); in testReplaceOneWithTwoAtLeft()
336 t.AddChild(new CommonTree(new CommonToken(99, "c"))); in testReplaceOneWithTwoAtLeft()
337 t.AddChild(new CommonTree(new CommonToken(99, "d"))); in testReplaceOneWithTwoAtLeft()
339 CommonTree newChildren = (CommonTree)adaptor.Nil(); in testReplaceOneWithTwoAtLeft()
340 newChildren.AddChild(new CommonTree(new CommonToken(99, "x"))); in testReplaceOneWithTwoAtLeft()
341 newChildren.AddChild(new CommonTree(new CommonToken(99, "y"))); in testReplaceOneWithTwoAtLeft()
353 CommonTree t = new CommonTree(new CommonToken(99, "a")); in testReplaceOneWithTwoAtRight()
354 t.AddChild(new CommonTree(new CommonToken(99, "b"))); in testReplaceOneWithTwoAtRight()
355 t.AddChild(new CommonTree(new CommonToken(99, "c"))); in testReplaceOneWithTwoAtRight()
356 t.AddChild(new CommonTree(new CommonToken(99, "d"))); in testReplaceOneWithTwoAtRight()
358 CommonTree newChildren = (CommonTree)adaptor.Nil(); in testReplaceOneWithTwoAtRight()
359 newChildren.AddChild(new CommonTree(new CommonToken(99, "x"))); in testReplaceOneWithTwoAtRight()
360 newChildren.AddChild(new CommonTree(new CommonToken(99, "y"))); in testReplaceOneWithTwoAtRight()
372 CommonTree t = new CommonTree(new CommonToken(99, "a")); in testReplaceOneWithTwoInMiddle()
373 t.AddChild(new CommonTree(new CommonToken(99, "b"))); in testReplaceOneWithTwoInMiddle()
374 t.AddChild(new CommonTree(new CommonToken(99, "c"))); in testReplaceOneWithTwoInMiddle()
375 t.AddChild(new CommonTree(new CommonToken(99, "d"))); in testReplaceOneWithTwoInMiddle()
377 CommonTree newChildren = (CommonTree)adaptor.Nil(); in testReplaceOneWithTwoInMiddle()
378 newChildren.AddChild(new CommonTree(new CommonToken(99, "x"))); in testReplaceOneWithTwoInMiddle()
379 newChildren.AddChild(new CommonTree(new CommonToken(99, "y"))); in testReplaceOneWithTwoInMiddle()
390 CommonTree t = new CommonTree(new CommonToken(99, "a")); in testReplaceTwoWithOneAtLeft()
391 t.AddChild(new CommonTree(new CommonToken(99, "b"))); in testReplaceTwoWithOneAtLeft()
392 t.AddChild(new CommonTree(new CommonToken(99, "c"))); in testReplaceTwoWithOneAtLeft()
393 t.AddChild(new CommonTree(new CommonToken(99, "d"))); in testReplaceTwoWithOneAtLeft()
395 CommonTree newChild = new CommonTree(new CommonToken(99, "x")); in testReplaceTwoWithOneAtLeft()
406 CommonTree t = new CommonTree(new CommonToken(99, "a")); in testReplaceTwoWithOneAtRight()
407 t.AddChild(new CommonTree(new CommonToken(99, "b"))); in testReplaceTwoWithOneAtRight()
408 t.AddChild(new CommonTree(new CommonToken(99, "c"))); in testReplaceTwoWithOneAtRight()
409 t.AddChild(new CommonTree(new CommonToken(99, "d"))); in testReplaceTwoWithOneAtRight()
411 CommonTree newChild = new CommonTree(new CommonToken(99, "x")); in testReplaceTwoWithOneAtRight()
422 CommonTree t = new CommonTree(new CommonToken(99, "a")); in testReplaceAllWithOne()
423 t.AddChild(new CommonTree(new CommonToken(99, "b"))); in testReplaceAllWithOne()
424 t.AddChild(new CommonTree(new CommonToken(99, "c"))); in testReplaceAllWithOne()
425 t.AddChild(new CommonTree(new CommonToken(99, "d"))); in testReplaceAllWithOne()
427 CommonTree newChild = new CommonTree(new CommonToken(99, "x")); in testReplaceAllWithOne()
439 CommonTree t = new CommonTree(new CommonToken(99, "a")); in testReplaceAllWithTwo()
440 t.AddChild(new CommonTree(new CommonToken(99, "b"))); in testReplaceAllWithTwo()
441 t.AddChild(new CommonTree(new CommonToken(99, "c"))); in testReplaceAllWithTwo()
442 t.AddChild(new CommonTree(new CommonToken(99, "d"))); in testReplaceAllWithTwo()
444 CommonTree newChildren = (CommonTree)adaptor.Nil(); in testReplaceAllWithTwo()
445 newChildren.AddChild(new CommonTree(new CommonToken(99, "x"))); in testReplaceAllWithTwo()
446 newChildren.AddChild(new CommonTree(new CommonToken(99, "y"))); in testReplaceAllWithTwo()