Add information about declaration

This commit is contained in:
Nikolay Krasko
2014-10-06 20:48:05 +04:00
parent 50265c311e
commit ad6a0c4b72
@@ -154,6 +154,7 @@ public class ScopeProvider {
return classObjectDescriptor.getScopeForMemberDeclarationResolution();
}
throw new IllegalStateException("Don't call this method for local declarations: " + jetDeclaration + " " + jetDeclaration.getText());
throw new IllegalStateException("Don't call this method for local declarations: " + jetDeclaration + "\n" +
JetPsiUtil.getElementTextWithContext(jetDeclaration));
}
}