Add isLocal() to JetClassOrObject, use it where appropriate

This commit is contained in:
Pavel V. Talanov
2014-04-02 18:06:52 +04:00
parent 77a6b4444b
commit 7046168868
10 changed files with 21 additions and 10 deletions
@@ -97,7 +97,7 @@ public class IDELightClassGenerationSupport extends LightClassGenerationSupport
public LightClassConstructionContext getContextForClassOrObject(@NotNull JetClassOrObject classOrObject) {
ResolveSessionForBodies session = ResolvePackage.getLazyResolveSession(classOrObject);
if (JetPsiUtil.isLocal(classOrObject)) {
if (classOrObject.isLocal()) {
BindingContext bindingContext = session.resolveToElement(classOrObject);
ClassDescriptor descriptor = bindingContext.get(BindingContext.CLASS, classOrObject);