Lines Matching refs:ITree
43 using ITree = Antlr.Runtime.Tree.ITree; typedef
59 ITree t = new CommonTree(new CommonToken(101)); in testSingleNode()
77 ITree t = new CommonTree(new CommonToken(101)); in test4Nodes()
95 ITree root = new CommonTree((IToken)null); in testList()
97 ITree t = new CommonTree(new CommonToken(101)); in testList()
102 ITree u = new CommonTree(new CommonToken(105)); in testList()
120 ITree root = new CommonTree((IToken)null); in testFlatList()
139 ITree root = new CommonTree((IToken)null); in testListWithOneNode()
156 ITree t = new CommonTree(new CommonToken(101)); in testAoverB()
173 ITree t = new CommonTree(new CommonToken(101)); in testLT()
179 Assert.AreEqual(101, ((ITree)stream.LT(1)).Type); in testLT()
180 Assert.AreEqual(Token.Down, ((ITree)stream.LT(2)).Type); in testLT()
181 Assert.AreEqual(102, ((ITree)stream.LT(3)).Type); in testLT()
182 Assert.AreEqual(Token.Down, ((ITree)stream.LT(4)).Type); in testLT()
183 Assert.AreEqual(103, ((ITree)stream.LT(5)).Type); in testLT()
184 Assert.AreEqual(Token.Up, ((ITree)stream.LT(6)).Type); in testLT()
185 Assert.AreEqual(104, ((ITree)stream.LT(7)).Type); in testLT()
186 Assert.AreEqual(Token.Up, ((ITree)stream.LT(8)).Type); in testLT()
187 Assert.AreEqual(Token.EndOfFile, ((ITree)stream.LT(9)).Type); in testLT()
189 Assert.AreEqual(Token.EndOfFile, ((ITree)stream.LT(100)).Type); in testLT()
198 ITree r0 = new CommonTree(new CommonToken(101)); in testMarkRewindEntire()
199 ITree r1 = new CommonTree(new CommonToken(102)); in testMarkRewindEntire()
202 ITree r2 = new CommonTree(new CommonToken(106)); in testMarkRewindEntire()
215 Assert.AreEqual(Token.EndOfFile, ((ITree)stream.LT(1)).Type); in testMarkRewindEntire()
216 Assert.AreEqual(Token.Up, ((ITree)stream.LT(-1)).Type); in testMarkRewindEntire()
225 Assert.AreEqual(Token.EndOfFile, ((ITree)stream.LT(1)).Type); in testMarkRewindEntire()
226 Assert.AreEqual(Token.Up, ((ITree)stream.LT(-1)).Type); in testMarkRewindEntire()
235 ITree r0 = new CommonTree(new CommonToken(101)); in testMarkRewindInMiddle()
236 ITree r1 = new CommonTree(new CommonToken(102)); in testMarkRewindInMiddle()
239 ITree r2 = new CommonTree(new CommonToken(106)); in testMarkRewindInMiddle()
251 Assert.AreEqual(107, ((ITree)stream.LT(1)).Type); in testMarkRewindInMiddle()
259 Assert.AreEqual(107, ((ITree)stream.LT(1)).Type); in testMarkRewindInMiddle()
261 Assert.AreEqual(Token.Up, ((ITree)stream.LT(1)).Type); in testMarkRewindInMiddle()
263 Assert.AreEqual(Token.Up, ((ITree)stream.LT(1)).Type); in testMarkRewindInMiddle()
265 Assert.AreEqual(104, ((ITree)stream.LT(1)).Type); in testMarkRewindInMiddle()
268 Assert.AreEqual(105, ((ITree)stream.LT(1)).Type); in testMarkRewindInMiddle()
270 Assert.AreEqual(Token.Up, ((ITree)stream.LT(1)).Type); in testMarkRewindInMiddle()
272 Assert.AreEqual(Token.EndOfFile, ((ITree)stream.LT(1)).Type); in testMarkRewindInMiddle()
273 Assert.AreEqual(Token.Up, ((ITree)stream.LT(-1)).Type); in testMarkRewindInMiddle()
282 ITree r0 = new CommonTree(new CommonToken(101)); in testMarkRewindNested()
283 ITree r1 = new CommonTree(new CommonToken(102)); in testMarkRewindNested()
286 ITree r2 = new CommonTree(new CommonToken(106)); in testMarkRewindNested()
302 Assert.AreEqual(102, ((ITree)stream.LT(1)).Type); in testMarkRewindNested()
304 Assert.AreEqual(Token.Down, ((ITree)stream.LT(1)).Type); in testMarkRewindNested()
308 Assert.AreEqual(101, ((ITree)stream.LT(1)).Type); in testMarkRewindNested()
310 Assert.AreEqual(Token.Down, ((ITree)stream.LT(1)).Type); in testMarkRewindNested()
312 Assert.AreEqual(102, ((ITree)stream.LT(1)).Type); in testMarkRewindNested()
314 Assert.AreEqual(Token.Down, ((ITree)stream.LT(1)).Type); in testMarkRewindNested()
323 ITree r0 = new CommonTree(new CommonToken(101)); in testSeek()
324 ITree r1 = new CommonTree(new CommonToken(102)); in testSeek()
327 ITree r2 = new CommonTree(new CommonToken(106)); in testSeek()
338 Assert.AreEqual(107, ((ITree)stream.LT(1)).Type); in testSeek()
342 Assert.AreEqual(104, ((ITree)stream.LT(1)).Type); in testSeek()
351 ITree r0 = new CommonTree(new CommonToken(101)); in testSeekFromStart()
352 ITree r1 = new CommonTree(new CommonToken(102)); in testSeekFromStart()
355 ITree r2 = new CommonTree(new CommonToken(106)); in testSeekFromStart()
363 Assert.AreEqual(107, ((ITree)stream.LT(1)).Type); in testSeekFromStart()
367 Assert.AreEqual(104, ((ITree)stream.LT(1)).Type); in testSeekFromStart()
376 ITree r0 = new CommonTree(new CommonToken(101)); in testPushPop()
377 ITree r1 = new CommonTree(new CommonToken(102)); in testPushPop()
380 ITree r2 = new CommonTree(new CommonToken(104)); in testPushPop()
383 ITree r3 = new CommonTree(new CommonToken(106)); in testPushPop()
403 Assert.AreEqual(107, ((ITree)stream.LT(1)).Type); in testPushPop()
405 Assert.AreEqual(102, ((ITree)stream.LT(1)).Type); in testPushPop()
407 Assert.AreEqual(Token.Down, ((ITree)stream.LT(1)).Type); in testPushPop()
409 Assert.AreEqual(103, ((ITree)stream.LT(1)).Type); in testPushPop()
411 Assert.AreEqual(Token.Up, ((ITree)stream.LT(1)).Type); in testPushPop()
414 Assert.AreEqual(107, ((ITree)stream.LT(1)).Type); in testPushPop()
423 ITree r0 = new CommonTree(new CommonToken(101)); in testNestedPushPop()
424 ITree r1 = new CommonTree(new CommonToken(102)); in testNestedPushPop()
427 ITree r2 = new CommonTree(new CommonToken(104)); in testNestedPushPop()
430 ITree r3 = new CommonTree(new CommonToken(106)); in testNestedPushPop()
447 Assert.AreEqual(107, ((ITree)stream.LT(1)).Type); in testNestedPushPop()
450 Assert.AreEqual(102, ((ITree)stream.LT(1)).Type); in testNestedPushPop()
452 Assert.AreEqual(Token.Down, ((ITree)stream.LT(1)).Type); in testNestedPushPop()
454 Assert.AreEqual(103, ((ITree)stream.LT(1)).Type); in testNestedPushPop()
460 Assert.AreEqual(104, ((ITree)stream.LT(1)).Type); in testNestedPushPop()
462 Assert.AreEqual(Token.Down, ((ITree)stream.LT(1)).Type); in testNestedPushPop()
464 Assert.AreEqual(105, ((ITree)stream.LT(1)).Type); in testNestedPushPop()
466 Assert.AreEqual(Token.Up, ((ITree)stream.LT(1)).Type); in testNestedPushPop()
470 Assert.AreEqual(Token.Up, ((ITree)stream.LT(1)).Type); in testNestedPushPop()
473 Assert.AreEqual(107, ((ITree)stream.LT(1)).Type); in testNestedPushPop()
482 ITree r0 = new CommonTree(new CommonToken(101)); in testPushPopFromEOF()
483 ITree r1 = new CommonTree(new CommonToken(102)); in testPushPopFromEOF()
486 ITree r2 = new CommonTree(new CommonToken(104)); in testPushPopFromEOF()
489 ITree r3 = new CommonTree(new CommonToken(106)); in testPushPopFromEOF()
503 Assert.AreEqual(Token.EndOfFile, ((ITree)stream.LT(1)).Type); in testPushPopFromEOF()
507 Assert.AreEqual(102, ((ITree)stream.LT(1)).Type); in testPushPopFromEOF()
509 Assert.AreEqual(Token.Down, ((ITree)stream.LT(1)).Type); in testPushPopFromEOF()
511 Assert.AreEqual(103, ((ITree)stream.LT(1)).Type); in testPushPopFromEOF()
513 Assert.AreEqual(Token.Up, ((ITree)stream.LT(1)).Type); in testPushPopFromEOF()
516 Assert.AreEqual(Token.EndOfFile, ((ITree)stream.LT(1)).Type); in testPushPopFromEOF()
520 Assert.AreEqual(104, ((ITree)stream.LT(1)).Type); in testPushPopFromEOF()
522 Assert.AreEqual(Token.Down, ((ITree)stream.LT(1)).Type); in testPushPopFromEOF()
524 Assert.AreEqual(105, ((ITree)stream.LT(1)).Type); in testPushPopFromEOF()
526 Assert.AreEqual(Token.Up, ((ITree)stream.LT(1)).Type); in testPushPopFromEOF()
529 Assert.AreEqual(Token.EndOfFile, ((ITree)stream.LT(1)).Type); in testPushPopFromEOF()
536 ITree r0 = new CommonTree(new CommonToken(101)); in testStackStretch()
558 ITree t = new CommonTree(new CommonToken(101)); in testBufferOverflow()
601 ITree t = new CommonTree((IToken)null); in testBufferWrap()
611 ITree node = (ITree)stream.LT(1); in testBufferWrap()
622 ITree node = (ITree)stream.LT(i); // look ahead to ith token in testBufferWrap()