Represents a change to a node in the code.

interface NodeChange {
    node: SyntaxNode;
    replaceOptions?: ReplaceNodeOptions;
    replaceWith: string;
}

Properties

node: SyntaxNode

The node to replace.

replaceOptions?: ReplaceNodeOptions

Options for the replacement.

replaceWith: string

The text to replace the node with.