Package com.vaadin.copilot.kotlinrewriter
package com.vaadin.copilot.kotlinrewriter
Reads and edits Kotlin sources, as
javarewriter does for Java.
Before adding a locator or an edit here, read
docs/kotlin-rewriter.md. It carries the four rules this package
follows — resolve who a name refers to, count only what runs while the
component is built, compute every deletion before writing, and probe the Java
path rather than reading it — along with the receiver shapes a new locator
should be tested against and the known divergences from the Java path.
-
ClassesClassDescriptionA component resolved to its place in a Kotlin source file.Resolves a selected component to its place in a Kotlin source.The rewrite commands, for a component declared in Kotlin.Serves and saves parsed Kotlin sources for one operation.The theme editor's per-component class name, in Kotlin source.Edits the header of a Kotlin class: the annotations above it and the types it implements.Rewrites Kotlin view source in response to visual editing.A Kotlin source file, parsed for reading and edited by splicing text at offsets.