Package org.eclipse.xtend.core.parser
Class XtendPartialParsingHelper
- java.lang.Object
-
- org.eclipse.xtext.xbase.parser.TokenSequencePreservingPartialParsingHelper
-
- org.eclipse.xtend.core.parser.XtendPartialParsingHelper
-
- All Implemented Interfaces:
org.eclipse.xtext.parser.antlr.IPartialParsingHelper
public class XtendPartialParsingHelper extends org.eclipse.xtext.xbase.parser.TokenSequencePreservingPartialParsingHelper
A customized partial parsing helper that falls eagerly back to a full parse as soon as the new token sequence would be different from the old one. This approach allows to benefit from partial parsing whenever a token content is edited (e.g. the content of a comment, identifier or string literal) while not producing bogus lookahead information. Mostly copied and refactored from the default implementation.
-
-
Constructor Summary
Constructors Constructor Description XtendPartialParsingHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isSameTokenSequence(java.lang.String originalText, java.lang.String newText, int expectedLength)
-
Methods inherited from class org.eclipse.xtext.xbase.parser.TokenSequencePreservingPartialParsingHelper
calculatePartialParsingPointers, doParseRegion, filterInvalidRootNodes, fullyReparse, getAllParents, getLeftNode, getOldSemanticElement, getReplacedNode, getRightNode, insertChangeIntoReplaceRegion, internalFindValidReplaceRootNodeForChangeRegion, isActionNode, isBrokenPreviousState, isInvalidRootNode, isSameTokenSequence, reparse, replaceOldSemanticElement, unloadSemanticObject
-
-