use of com.intellij.lang.java.lexer.JavaLexer in project intellij-community by JetBrains.
the class PsiLiteralStub method getLiteralType.
@NotNull
public IElementType getLiteralType() {
IElementType type = myLiteralType;
if (type == null) {
JavaLexer lexer = new JavaLexer(LanguageLevel.HIGHEST);
lexer.start(myLiteralText);
myLiteralType = type = lexer.getTokenType();
assert type != null : myLiteralText;
}
return type;
}
Aggregations