Don't call getClassDescriptor for local declarations (KT-15259)
#KT-15259 Open
This commit is contained in:
@@ -747,7 +747,6 @@ public class KtPsiUtil {
|
||||
if (((KtParameter) declaration).hasValOrVar() && parent != null && parent.getParent() instanceof KtPrimaryConstructor) {
|
||||
return getEnclosingElementForLocalDeclaration(((KtPrimaryConstructor) parent.getParent()).getContainingClassOrObject(), skipParameters);
|
||||
}
|
||||
|
||||
else if (skipParameters && parent != null && parent.getParent() instanceof KtNamedFunction) {
|
||||
declaration = (KtNamedFunction) parent.getParent();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user