Lines Matching refs:element
49 static pANTLR3_BASE_TREE toTree (pANTLR3_REWRITE_RULE_ELEMENT_STREAM stream, void * element);
50 static pANTLR3_BASE_TREE toTreeNode (pANTLR3_REWRITE_RULE_ELEMENT_STREAM stream, void * element);
128 tree = (pANTLR3_BASE_TREE)(stream->elements->elements[i-1].element);
270 // Stream seems good so we need to add the supplied element
527 element in the rewrite stream
531 // We already have >1 entries in the stream. So we can just add this new element to the existing
543 // If we got here then we had only the one element so far
562 /// Return the next element in the stream. If out of elements, throw
565 /// size==1. If we've already used the element, dup (dirty bit set).
589 /// Return the next element for a caller that wants just the token
597 /// Return the next element in the stream. If out of elements, throw
618 /// Do the work of getting the next element, making sure that it's
620 /// element list versus list of size > 1. Throw an exception (or something similar)
645 // Special case when size is single element, it will just dup a lot
661 stream->cursor++; // Cursor advances even for single element as this tells us to dup()
665 // More than just a single element so we extract it from the
696 dupTree (pANTLR3_REWRITE_RULE_ELEMENT_STREAM stream, void * element)
698 return stream->adaptor->dupNode(stream->adaptor, (pANTLR3_BASE_TREE)element);
710 dupTreeNode (pANTLR3_REWRITE_RULE_ELEMENT_STREAM stream, void * element)
721 toTree (pANTLR3_REWRITE_RULE_ELEMENT_STREAM stream, void * element)
723 return (pANTLR3_BASE_TREE)element;
738 toTreeNode (pANTLR3_REWRITE_RULE_ELEMENT_STREAM stream, void * element)
740 return (pANTLR3_BASE_TREE)stream->adaptor->dupNode(stream->adaptor, (pANTLR3_BASE_TREE)element);
747 /// Returns ANTLR3_TRUE if there is a next element available
778 /// Treat next element as a single node even if it's a subtree.