Add additional logging for context and element (EA-64785)

This commit is contained in:
Nikolay Krasko
2015-03-16 16:30:48 +03:00
parent 8c5109d819
commit 48ce8d5270
@@ -184,7 +184,9 @@ public abstract class ElementResolver {
packageRefAdditionalResolve(resolveSession, trace, resolveElement);
}
else {
assert false : "Invalid type of the topmost parent";
assert false : String.format("Invalid type of the topmost parent: %s\n%s",
resolveElement.toString(),
JetPsiUtil.getElementTextWithContext(resolveElement));
}
new JetFlowInformationProvider(resolveElement, trace).checkDeclaration();