Lines Matching refs:tns
54 static pANTLR3_BASE_TREE_ADAPTOR getTreeAdaptor (pANTLR3_TREE_NODE_STREAM tns);
55 static pANTLR3_BASE_TREE getTreeSource (pANTLR3_TREE_NODE_STREAM tns);
56 static pANTLR3_BASE_TREE _LT (pANTLR3_TREE_NODE_STREAM tns, ANTLR3_INT32 k);
57 static pANTLR3_BASE_TREE get (pANTLR3_TREE_NODE_STREAM tns, ANTLR3_INT32 k);
58 static void setUniqueNavigationNodes (pANTLR3_TREE_NODE_STREAM tns, ANTLR3_BOOLEAN uniqueNavig…
59 static pANTLR3_STRING toString (pANTLR3_TREE_NODE_STREAM tns);
60 static pANTLR3_STRING toStringSS (pANTLR3_TREE_NODE_STREAM tns, pANTLR3_BASE_TREE start, pAN…
61 static void toStringWork (pANTLR3_TREE_NODE_STREAM tns, pANTLR3_BASE_TREE start, pANTLR3_BA…
62 static void replaceChildren (pANTLR3_TREE_NODE_STREAM tns, pANTLR3_BASE_TREE parent, ANTLR3…
84 static void antlr3TreeNodeStreamFree (pANTLR3_TREE_NODE_STREAM tns);
551 LB(pANTLR3_TREE_NODE_STREAM tns, ANTLR3_INT32 k) in LB() argument
555 return &(tns->ctns->INVALID_NODE.baseTree); in LB()
558 if ( (tns->ctns->p - k) < 0) in LB()
560 return &(tns->ctns->INVALID_NODE.baseTree); in LB()
563 return tns->ctns->nodes->get(tns->ctns->nodes, tns->ctns->p - k); in LB()
577 _LT (pANTLR3_TREE_NODE_STREAM tns, ANTLR3_INT32 k) in _LT() argument
579 if (tns->ctns->p == -1) in _LT()
581 fillBufferRoot(tns->ctns); in _LT()
586 return LB(tns, -k); in _LT()
590 return &(tns->ctns->INVALID_NODE.baseTree); in _LT()
595 if (( tns->ctns->p + k - 1) >= (ANTLR3_INT32)(tns->ctns->nodes->count)) in _LT()
597 return &(tns->ctns->EOF_NODE.baseTree); in _LT()
600 return tns->ctns->nodes->get(tns->ctns->nodes, tns->ctns->p + k - 1); in _LT()
607 getTreeSource (pANTLR3_TREE_NODE_STREAM tns) in getTreeSource() argument
609 return tns->ctns->root; in getTreeSource()
617 pANTLR3_TREE_NODE_STREAM tns; in consume() local
620 tns = (pANTLR3_TREE_NODE_STREAM)(is->super); in consume()
621 ctns = tns->ctns; in consume()
633 pANTLR3_TREE_NODE_STREAM tns; in _LA() local
636 tns = (pANTLR3_TREE_NODE_STREAM)(is->super); in _LA()
640 t = tns->_LT(tns, i); in _LA()
658 pANTLR3_TREE_NODE_STREAM tns; in mark() local
661 tns = (pANTLR3_TREE_NODE_STREAM)(is->super); in mark()
662 ctns = tns->ctns; in mark()
664 if (tns->ctns->p == -1) in mark()
666 fillBufferRoot(tns->ctns); in mark()
705 pANTLR3_TREE_NODE_STREAM tns; in seek() local
708 tns = (pANTLR3_TREE_NODE_STREAM)(is->super); in seek()
709 ctns = tns->ctns; in seek()
717 pANTLR3_TREE_NODE_STREAM tns; in tindex() local
720 tns = (pANTLR3_TREE_NODE_STREAM)(is->super); in tindex()
721 ctns = tns->ctns; in tindex()
733 pANTLR3_TREE_NODE_STREAM tns; in size() local
736 tns = (pANTLR3_TREE_NODE_STREAM)(is->super); in size()
737 ctns = tns->ctns; in size()
788 getTreeAdaptor (pANTLR3_TREE_NODE_STREAM tns) in getTreeAdaptor() argument
790 return tns->ctns->adaptor; in getTreeAdaptor()
800 setUniqueNavigationNodes (pANTLR3_TREE_NODE_STREAM tns, ANTLR3_BOOLEAN uniqueNavigationNodes) in setUniqueNavigationNodes() argument
802 tns->ctns->uniqueNavigationNodes = uniqueNavigationNodes; in setUniqueNavigationNodes()
811 toString (pANTLR3_TREE_NODE_STREAM tns) in toString() argument
814 return tns->toStringSS(tns, tns->ctns->root, NULL); in toString()
818 toStringSS (pANTLR3_TREE_NODE_STREAM tns, pANTLR3_BASE_TREE start, pANTLR3_BASE_TREE stop) in toStringSS() argument
822 buf = tns->ctns->stringFactory->newRaw(tns->ctns->stringFactory); in toStringSS()
824 tns->toStringWork(tns, start, stop, buf); in toStringSS()
830 toStringWork (pANTLR3_TREE_NODE_STREAM tns, pANTLR3_BASE_TREE p, pANTLR3_BASE_TREE stop, pANTLR3_ST… in toStringWork() argument
844 text = tns->ctns->stringFactory->newRaw(tns->ctns->stringFactory); in toStringWork()
871 tns->toStringWork(tns, child, stop, buf); in toStringWork()
928 replaceChildren (pANTLR3_TREE_NODE_STREAM tns, pANTLR3_BASE_TREE parent, ANTLR3_INT32 startChild… in replaceChildren() argument
935 adaptor = tns->getTreeAdaptor(tns); in replaceChildren()
943 get (pANTLR3_TREE_NODE_STREAM tns, ANTLR3_INT32 k) in get() argument
945 if (tns->ctns->p == -1) in get()
947 fillBufferRoot(tns->ctns); in get()
950 return tns->ctns->nodes->get(tns->ctns->nodes, k); in get()