HL API: fix KtUserType kt -> fir mapping for non-IDEA usages
createType(KtTypeElement) requires some access to IJ services which are unavailable to IJ core
This commit is contained in:
committed by
teamcityserver
parent
970d7b5a78
commit
4fe240d1b4
+1
-1
@@ -53,7 +53,7 @@ internal class KtToFirMapping(firElement: FirElement, recorder: FirElementsRecor
|
|||||||
if (userType.parent is KtTypeReference) return null
|
if (userType.parent is KtTypeReference) return null
|
||||||
|
|
||||||
return userTypeMapping.getOrPut(userType) {
|
return userTypeMapping.getOrPut(userType) {
|
||||||
val typeReference = KtPsiFactory(ktElement.project).createType(userType)
|
val typeReference = KtPsiFactory(ktElement.project).createType(userType.text)
|
||||||
LowLevelFirApiFacadeForResolveOnAir.onAirResolveTypeInPlace(ktElement, typeReference, state)
|
LowLevelFirApiFacadeForResolveOnAir.onAirResolveTypeInPlace(ktElement, typeReference, state)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user