[LL FIR] PersistenceContextCollector: change designation path resolution order
We will process more specific declaration firstly to avoid contention.
As the next step of addbb713a5
^KT-65780
This commit is contained in:
committed by
Space Team
parent
78c394d4de
commit
46d16dfb6c
+3
-3
@@ -84,14 +84,14 @@ internal object PersistenceContextCollector {
|
||||
|
||||
requireWithAttachment(
|
||||
!isLocal,
|
||||
{ "Cannot collect context for local declaration ${declaration::class}" }
|
||||
{ "Cannot collect context for local declaration ${declaration::class.simpleName}" },
|
||||
) {
|
||||
withFirEntry("declaration", declaration)
|
||||
}
|
||||
|
||||
val designation = declaration.collectDesignation(firFile)
|
||||
designation.path.forEach { firClass ->
|
||||
firClass.lazyResolveToPhase(FirResolvePhase.BODY_RESOLVE)
|
||||
designation.path.asReversed().forEach {
|
||||
it.lazyResolveToPhase(FirResolvePhase.BODY_RESOLVE)
|
||||
}
|
||||
|
||||
return ContextCollectingDiagnosticCollectorVisitor.collect(sessionHolder, designation)
|
||||
|
||||
Reference in New Issue
Block a user