[FIR] Preserve information about prefix/postfix-ness

This information is needed for dynamics
This commit is contained in:
Nikolay Lunyak
2022-03-31 17:54:25 +03:00
committed by teamcity
parent 93fa5ee696
commit 858999c1a1
3 changed files with 14 additions and 1 deletions
@@ -113,6 +113,8 @@ internal open class FirElementsRecorder : FirVisitor<Unit, MutableMap<KtElement,
// For secondary constructors without explicit delegated constructor call, the PSI tree always create an empty
// KtConstructorDelegationCall. In this case, the source in FIR has this fake source kind.
it.kind == KtFakeSourceElementKind.ImplicitConstructor ||
it.kind == KtFakeSourceElementKind.DesugaredPrefixNameReference ||
it.kind == KtFakeSourceElementKind.DesugaredPostfixNameReference ||
it.isSourceForCompoundAccess(element)
}.psi as? KtElement
?: return