openrewrite / rewrite-kotlin

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

Idempotent print issue: whitespace is lost on trailing semi-colon #574

Closed traceyyoshima closed 5 months ago

traceyyoshima commented 6 months ago

The semi-colon is detected in maybeTrailingSemicolon, but the deepPrefix method fails to detect the whitespace.

              fun test ( ) {
                  while ( true ) ;
              }