Hi, encountering a problem when doing an AST repla...
# kontributors
d
Hi, encountering a problem when doing an AST replacement. See the following video demonstration. When replacing the loop parameter with an identifier that comes from
KtPsiFactory.createIdentifier
, the AST seems to be broken (until it is changed by the user). How can I fix this? Accompanying code: https://github.com/devbridie/kotlin/blob/b0b964aeea0eae3cd1977776f7cf649bc8833ea6/idea/src/org/jetbrains/kotlin/idea/inspections/ReplaceManualRangeWithIndicesCallsInspection.kt#L112 Thanks!