Class KotlinRewriter

java.lang.Object
com.vaadin.copilot.kotlinrewriter.KotlinRewriter
All Implemented Interfaces:
CopilotRewriter<KotlinComponentInfo>

public class KotlinRewriter extends Object implements CopilotRewriter<KotlinComponentInfo>
Rewrites Kotlin view source in response to visual editing.

Only the property operations are implemented: set-component-property and the read that can-be-edited needs. Every other operation throws, and SourceLanguageCapabilities says so, so the frontend disables those actions rather than offering something that fails. Operations move in here and into that capability set together.

Edits are spliced at character offsets rather than printed from a mutated tree: the tree is read-only by design (see KotlinSource), and the practical consequence is the one that matters to a developer — a file Copilot edits comes back byte-identical except on the lines the edit needed.