[LL] do not build fir in a non-cancelable section
find by classId might require indices which will throw PCE when not up-to-date which is prohibited in non-cancelable section
This commit is contained in:
+1
-3
@@ -117,9 +117,7 @@ var KtFile.originalKtFile by UserDataProperty(ORIGINAL_KT_FILE_KEY)
|
||||
|
||||
private fun KtClassLikeDeclaration.findFir(provider: FirProvider): FirClassLikeDeclaration? {
|
||||
val classId = getClassId() ?: return null
|
||||
return executeWithoutPCE {
|
||||
provider.getFirClassifierByFqName(classId) as? FirRegularClass
|
||||
}
|
||||
return provider.getFirClassifierByFqName(classId) as? FirRegularClass
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user