openrewrite / rewrite-kotlin

Work-in-progress implementation of Kotlin language support for OpenRewrite.
Apache License 2.0
38 stars 11 forks source link

Fix issue of whitespace lost on empty while-loop body before trailing semi-colon #583

Closed kunli2 closed 5 months ago

kunli2 commented 5 months ago

fixes https://github.com/openrewrite/rewrite-kotlin/issues/574

This happens with an empty while-loop body only, the missing whitespace should be the prefix of the empty body which is a J.Empty.