[FE 1.0] Take into account import aliases during hidden member resolution

This commit is contained in:
Victor Petukhov
2021-11-17 13:11:43 +03:00
parent c2de8712f2
commit 42805db989
13 changed files with 57 additions and 2 deletions
@@ -370,6 +370,9 @@ class NewResolutionOldInference(
cache.getOrPut(it) { resolutionContext.transformToReceiverWithSmartCastInfo(it) }
}
override fun getNameForGivenImportAlias(name: Name): Name? =
resolutionContext.call.callElement.containingKtFile.getNameForGivenImportAlias(name)
override val lexicalScope: LexicalScope get() = resolutionContext.scope
override val isDebuggerContext: Boolean get() = resolutionContext.isDebuggerContext
@@ -408,6 +408,9 @@ class PSICallResolver(
}
}
override fun getNameForGivenImportAlias(name: Name): Name? =
context.call.callElement.containingKtFile.getNameForGivenImportAlias(name)
override fun interceptFunctionCandidates(
resolutionScope: ResolutionScope,
name: Name,