openrewrite / rewrite-kotlin

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

Support shebang parsing #584

Closed kunli2 closed 5 months ago

kunli2 commented 5 months ago

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

Following the same pattern in groovy, added a nullable string to K.CompilationUnit for shebang.

kunli2 commented 5 months ago

Can we add more tests?

Sure, added more tests, and the scenarios that shebang following with package declaration or imports need to be tackled a bit more, updated.