protected static class TemplateDataElementType.RangeCollector
extends java.lang.Object
addOuterRange(com.intellij.openapi.util.TextRange)
Sometimes to build a correct tree we need to insert additional symbols into resulting source:
e.g. put an identifier instead of the base language fragment: something={% $var %}
=> something=dummyidentifier
that must be removed after building the tree.
For such additional symbols addRangeToRemove(com.intellij.openapi.util.TextRange)
must be usedModifier | Constructor and Description |
---|---|
protected |
RangeCollector() |
Modifier and Type | Method and Description |
---|---|
void |
addOuterRange(TextRange newRange)
Adds range corresponding to the outer element inside original source code.
|
void |
addRangeToRemove(TextRange rangeToRemove)
Adds the range that must be removed from the tree on the stage inserting outer elements.
|
public void addOuterRange(TextRange newRange)
public void addRangeToRemove(TextRange rangeToRemove)