FIR: Make LHS of FirVariableAssignment a FirExpression

This way references can even be resolved for erroneous assignments
(e.g. function call, if expression, ... on LHS)

^KT-54648 Fixed
This commit is contained in:
Kirill Rakhman
2023-01-16 09:54:31 +01:00
committed by Space Team
parent e9b8d6db80
commit ace47c06a5
128 changed files with 950 additions and 935 deletions
@@ -240,6 +240,9 @@ sealed class KtFakeSourceElementKind : KtSourceElementKind() {
// for all implicit receivers (now used for qualifiers only)
object ImplicitReceiver : KtFakeSourceElementKind()
// for when on the LHS of an assignment an error expression appears
object AssignmentLValueError : KtFakeSourceElementKind()
}
sealed class AbstractKtSourceElement {