more comprehensive assertion in PsiLiteralStub.getLiteralType (IDEA-CR-10901)

This commit is contained in:
peter
2016-05-20 08:00:43 +02:00
parent 85745af14d
commit 714ac163e9
@@ -48,7 +48,7 @@ public class PsiLiteralStub extends StubBase<PsiLiteralExpressionImpl> {
JavaLexer lexer = new JavaLexer(LanguageLevel.HIGHEST);
lexer.start(myLiteralText);
myLiteralType = type = lexer.getTokenType();
assert type != null;
assert type != null : myLiteralText;
}
return type;
}