public class LookAheadPreservingNodeModelBuilder extends NodeModelBuilder
TokenSequencePreservingPartialParsingHelper
.
During partial parsing, the resulting token sequence is equal to the old sequence
thus the lookahead can be losslessly transfered from the old node to the new node.Constructor and Description |
---|
LookAheadPreservingNodeModelBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
replaceAndTransferLookAhead(INode oldNode,
INode newRootNode) |
addChild, associateWithSemanticElement, checkValidNewChild, compressAndReturnParent, initializeFirstChildInvariant, newCompositeNode, newCompositeNodeAsParentOf, newLeafNode, newRootNode, replace, replaceByRootNode, replaceChildren, replaceWithoutChildren, setCompleteContent, setForcedFirstGrammarElement, setLookAhead, setSyntaxError
public void replaceAndTransferLookAhead(INode oldNode, INode newRootNode)
replaceAndTransferLookAhead
in class NodeModelBuilder