[FIR][LightTree] Pass source elements in when conditions
This commit is contained in:
committed by
TeamCityServer
parent
9c8e92f5af
commit
8bbdc20809
+4
@@ -755,6 +755,9 @@ class ExpressionsConverter(
|
|||||||
conditionSource = it.toFirSourceElement()
|
conditionSource = it.toFirSourceElement()
|
||||||
isNegate = true
|
isNegate = true
|
||||||
}
|
}
|
||||||
|
it.tokenType == OPERATION_REFERENCE -> {
|
||||||
|
conditionSource = it.toFirSourceElement()
|
||||||
|
}
|
||||||
else -> if (it.isExpression()) firExpression = getAsFirExpression(it)
|
else -> if (it.isExpression()) firExpression = getAsFirExpression(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -762,6 +765,7 @@ class ExpressionsConverter(
|
|||||||
val subjectExpression = if (whenRefWithSubject != null) {
|
val subjectExpression = if (whenRefWithSubject != null) {
|
||||||
buildWhenSubjectExpression {
|
buildWhenSubjectExpression {
|
||||||
whenRef = whenRefWithSubject
|
whenRef = whenRefWithSubject
|
||||||
|
source = whenCondition.toFirSourceElement()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return buildErrorExpression {
|
return buildErrorExpression {
|
||||||
|
|||||||
Reference in New Issue
Block a user