K2: use similar sources for if branches (PSI/LT)
Related to KT-59584
This commit is contained in:
committed by
Space Team
parent
21b4ce050c
commit
47fec1a113
+1
-1
@@ -1339,7 +1339,7 @@ class LightTreeRawFirExpressionBuilder(
|
||||
with(components) {
|
||||
val trueBranch = convertLoopBody(thenBlock)
|
||||
branches += buildWhenBranch {
|
||||
source = thenBlock?.toFirSourceElement()
|
||||
source = firCondition?.source
|
||||
condition = firCondition ?: buildErrorExpression(
|
||||
null,
|
||||
ConeSyntaxDiagnostic("If statement should have condition")
|
||||
|
||||
Reference in New Issue
Block a user