RewriteRuleSubtreeStreamNextNode Method |
Treat next element as a single node even if it's a subtree.
This is used instead of next() when the result has to be a
tree root node. Also prevents us from duplicating recently-added
children; e.g., ^(type ID)+ adds ID to type and then 2nd iteration
must dup the type node, but ID has been added.
Namespace:
Stimulsoft.Data.Expressions.Antlr.Runtime.Tree
Assembly:
Stimulsoft.Data (in Stimulsoft.Data.dll) Version: 2019.3.1.0
Syntaxpublic virtual Object NextNode()
Public Overridable Function NextNode As Object
Return Value
Type:
Object[Missing <returns> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.Tree.RewriteRuleSubtreeStream.NextNode"]
Remarks
Referencing a rule result twice is ok; dup entire tree as
we can't be adding trees as root; e.g., expr expr.
Hideous code duplication here with super.next(). Can't think of
a proper way to refactor. This needs to always call dup node
and super.next() doesn't know which to call: dup node or dup tree.
See Also