@FunctionalInterface
public interface ITokenTypeRemapper
| Modifier and Type | Method and Description |
|---|---|
IElementType |
filter(IElementType source,
int start,
int end,
java.lang.CharSequence text)
An external hook to see and alter token types reported by lexer.
|
IElementType filter(IElementType source, int start, int end, java.lang.CharSequence text)
source - type of an element as lexer understood it.start - start index of lexeme in text (as lexer.getTokenStart() would return).end - end index of lexeme in text (as lexer.getTokenEnd() would return).text - text being parsed.