public interface IReparseableLeafElementType<T extends ASTNode>
IElementType
instances for leaf AST nodes, providing a possibility for quick reparse.reparseLeaf(ASTNode, CharSequence)
Modifier and Type | Method and Description |
---|---|
T |
reparseLeaf(T leaf,
java.lang.CharSequence newText)
If the IDE detects that the whole changed range to be reparsed is contained within one leaf that has such element type,
this method is called.
|
T reparseLeaf(T leaf, java.lang.CharSequence newText)
leaf
- the leaf element where the text change has occurrednewText
- the updated text inside the leaf's range