Skip to content

Document KotlinTemplate alongside JavaTemplate#521

Merged
timtebeek merged 2 commits into
masterfrom
tim/document-kotlin-template
Jul 23, 2026
Merged

Document KotlinTemplate alongside JavaTemplate#521
timtebeek merged 2 commits into
masterfrom
tim/document-kotlin-template

Conversation

@timtebeek

Copy link
Copy Markdown
Member

Adds a ## KotlinTemplate section to the JavaTemplate concept page documenting the Kotlin sibling of JavaTemplate. Because KotlinTemplate extends JavaTemplate, the section is a focused "delta": it links back to the shared concepts and only covers what changes — Kotlin snippet syntax, Kotlin-style imports, the static apply/matches shortcuts, and the current lack of a public contextSensitive/custom-parser builder. It also adds guidance for recipes that transform both Java and Kotlin, showing the two real dispatch patterns (branching on K.CompilationUnit in one visitor, and splitting into per-language visitors) grounded in the rewrite-kotlin and rewrite-testing-frameworks recipes.

@timtebeek
timtebeek marked this pull request as ready for review July 23, 2026 16:02
@timtebeek
timtebeek requested a review from mike-solomon July 23, 2026 16:02
@github-project-automation github-project-automation Bot moved this from In Progress to Ready to Review in OpenRewrite Jul 23, 2026
@timtebeek
timtebeek merged commit c7d93ea into master Jul 23, 2026
2 checks passed
@timtebeek
timtebeek deleted the tim/document-kotlin-template branch July 23, 2026 16:38
@github-project-automation github-project-automation Bot moved this from Ready to Review to Done in OpenRewrite Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants