[FIR JS] Fix DEBUG_INFO_DYNAMIC positioning
Otherwise, it's reported for `d += 1` instead of `+=`, but since we only render `DEBUG_INFO_DYNAMIC` if there's already one at exactly the same location, we effectively just lose some of the existing ones.
This commit is contained in:
committed by
Space Team
parent
8a4212f140
commit
9370f42eda
+1
-2
@@ -413,8 +413,7 @@ private val KtSourceElement.operatorSignIfBinary: KtSourceElement?
|
||||
get() = when (elementType) {
|
||||
KtNodeTypes.BINARY_EXPRESSION -> when (this) {
|
||||
is KtPsiSourceElement -> (psi as? KtBinaryExpression)?.operationReference?.toKtPsiSourceElement(kind)
|
||||
is KtLightSourceElement -> treeStructure.getParent(lighterASTNode)
|
||||
?.let { treeStructure.findChildByType(it, KtNodeTypes.OPERATION_REFERENCE) }
|
||||
is KtLightSourceElement -> treeStructure.findChildByType(lighterASTNode, KtNodeTypes.OPERATION_REFERENCE)
|
||||
?.toKtLightSourceElement(treeStructure, kind)
|
||||
else -> null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user