Lines Matching defs: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 uniqueNavigationNodes);
59 static pANTLR3_STRING toString (pANTLR3_TREE_NODE_STREAM tns);
60 static pANTLR3_STRING toStringSS (pANTLR3_TREE_NODE_STREAM tns, pANTLR3_BASE_TREE start, pANTLR3_BASE_TREE stop);
61 static void toStringWork (pANTLR3_TREE_NODE_STREAM tns, pANTLR3_BASE_TREE start, pANTLR3_BASE_TREE stop, pANTLR3_STRING buf);
62 static void replaceChildren (pANTLR3_TREE_NODE_STREAM tns, pANTLR3_BASE_TREE parent, ANTLR3_INT32 startChildIndex, ANTLR3_INT32 stopChildIndex, pANTLR3_BASE_TREE t);
84 static void antlr3TreeNodeStreamFree (pANTLR3_TREE_NODE_STREAM tns);
551 LB(pANTLR3_TREE_NODE_STREAM tns, ANTLR3_INT32 k)
555 return &(tns->ctns->INVALID_NODE.baseTree);
558 if ( (tns->ctns->p - k) < 0)
560 return &(tns->ctns->INVALID_NODE.baseTree);
563 return tns->ctns->nodes->get(tns->ctns->nodes, tns->ctns->p - k);
577 _LT (pANTLR3_TREE_NODE_STREAM tns, ANTLR3_INT32 k)
579 if (tns->ctns->p == -1)
581 fillBufferRoot(tns->ctns);
586 return LB(tns, -k);
590 return &(tns->ctns->INVALID_NODE.baseTree);
595 if (( tns->ctns->p + k - 1) >= (ANTLR3_INT32)(tns->ctns->nodes->count))
597 return &(tns->ctns->EOF_NODE.baseTree);
600 return tns->ctns->nodes->get(tns->ctns->nodes, tns->ctns->p + k - 1);
607 getTreeSource (pANTLR3_TREE_NODE_STREAM tns)
609 return tns->ctns->root;
617 pANTLR3_TREE_NODE_STREAM tns;
620 tns = (pANTLR3_TREE_NODE_STREAM)(is->super);
621 ctns = tns->ctns;
633 pANTLR3_TREE_NODE_STREAM tns;
636 tns = (pANTLR3_TREE_NODE_STREAM)(is->super);
640 t = tns->_LT(tns, i);
658 pANTLR3_TREE_NODE_STREAM tns;
661 tns = (pANTLR3_TREE_NODE_STREAM)(is->super);
662 ctns = tns->ctns;
664 if (tns->ctns->p == -1)
666 fillBufferRoot(tns->ctns);
705 pANTLR3_TREE_NODE_STREAM tns;
708 tns = (pANTLR3_TREE_NODE_STREAM)(is->super);
709 ctns = tns->ctns;
717 pANTLR3_TREE_NODE_STREAM tns;
720 tns = (pANTLR3_TREE_NODE_STREAM)(is->super);
721 ctns = tns->ctns;
733 pANTLR3_TREE_NODE_STREAM tns;
736 tns = (pANTLR3_TREE_NODE_STREAM)(is->super);
737 ctns = tns->ctns;
788 getTreeAdaptor (pANTLR3_TREE_NODE_STREAM tns)
790 return tns->ctns->adaptor;
800 setUniqueNavigationNodes (pANTLR3_TREE_NODE_STREAM tns, ANTLR3_BOOLEAN uniqueNavigationNodes)
802 tns->ctns->uniqueNavigationNodes = uniqueNavigationNodes;
811 toString (pANTLR3_TREE_NODE_STREAM tns)
814 return tns->toStringSS(tns, tns->ctns->root, NULL);
818 toStringSS (pANTLR3_TREE_NODE_STREAM tns, pANTLR3_BASE_TREE start, pANTLR3_BASE_TREE stop)
822 buf = tns->ctns->stringFactory->newRaw(tns->ctns->stringFactory);
824 tns->toStringWork(tns, start, stop, buf);
830 toStringWork (pANTLR3_TREE_NODE_STREAM tns, pANTLR3_BASE_TREE p, pANTLR3_BASE_TREE stop, pANTLR3_STRING buf)
844 text = tns->ctns->stringFactory->newRaw(tns->ctns->stringFactory);
871 tns->toStringWork(tns, child, stop, buf);
928 replaceChildren (pANTLR3_TREE_NODE_STREAM tns, pANTLR3_BASE_TREE parent, ANTLR3_INT32 startChildIndex, ANTLR3_INT32 stopChildIndex, pANTLR3_BASE_TREE t)
935 adaptor = tns->getTreeAdaptor(tns);
943 get (pANTLR3_TREE_NODE_STREAM tns, ANTLR3_INT32 k)
945 if (tns->ctns->p == -1)
947 fillBufferRoot(tns->ctns);
950 return tns->ctns->nodes->get(tns->ctns->nodes, k);