FIR: do not allow getting PSI text in RawFirBuilder in stub mode

This commit is contained in:
Ilya Kirillov
2020-07-30 17:37:41 +03:00
parent cfc46b0cc8
commit 34aa848b15
@@ -1349,7 +1349,7 @@ class RawFirBuilder(
source = projectionSource
}
}
if (projectionKind == KtProjectionKind.NONE && typeProjection.text == "_") {
if (projectionKind == KtProjectionKind.NONE && !stubMode && typeProjection.text == "_") {
return FirTypePlaceholderProjection
}
val typeReference = typeProjection.typeReference