From 67e5ed802fd1552c73e9593b11d5bf23012cf2db Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Wed, 19 Oct 2016 22:06:19 +0300 Subject: [PATCH] More correct --- .../ide-common/src/org/jetbrains/kotlin/idea/util/scopeUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/ide-common/src/org/jetbrains/kotlin/idea/util/scopeUtils.kt b/idea/ide-common/src/org/jetbrains/kotlin/idea/util/scopeUtils.kt index 26025368f70..b7045ab49a1 100644 --- a/idea/ide-common/src/org/jetbrains/kotlin/idea/util/scopeUtils.kt +++ b/idea/ide-common/src/org/jetbrains/kotlin/idea/util/scopeUtils.kt @@ -82,7 +82,7 @@ fun PsiElement.getResolutionScope(bindingContext: BindingContext, resolutionFaca fun KtElement.getResolutionScope(): LexicalScope { val resolutionFacade = getResolutionFacade() - val context = resolutionFacade.analyze(this, BodyResolveMode.PARTIAL) + val context = resolutionFacade.analyze(this, BodyResolveMode.FULL) return getResolutionScope(context, resolutionFacade) }