[LL FIR] LLFirCompilerAnnotationsLazyResolver: pass correct ScopeSession
We should use the declaration-site session to have stable resolution order. The same scheme is applicable during regular lazy resolution calls. ^KT-63547 Fixed
This commit is contained in:
committed by
Space Team
parent
d83392a27a
commit
51f6525238
-3
@@ -1,4 +1 @@
|
||||
Diagnostics from elements:
|
||||
for PSI element of type KtAnnotationEntry at (34,1-12)
|
||||
WRONG_ANNOTATION_TARGET text ranges: [(114,125)]
|
||||
PSI: KtAnnotationEntry at (34,1-12)
|
||||
|
||||
+3
-2
@@ -69,11 +69,12 @@ private class LLFirCompilerRequiredAnnotationsTargetResolver(
|
||||
|
||||
symbol.lazyResolveToPhase(resolverPhase.previous)
|
||||
val designation = regularClass.collectDesignationWithFile().asResolveTarget()
|
||||
val targetSession = designation.target.llFirSession
|
||||
val resolver = LLFirCompilerRequiredAnnotationsTargetResolver(
|
||||
designation,
|
||||
lockProvider,
|
||||
designation.target.llFirSession,
|
||||
scopeSession,
|
||||
targetSession,
|
||||
targetSession.getScopeSession(),
|
||||
this,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user