Expand description
Semantic actions: query and mutation primitives for refactoring recipes.
Query actions return data without side effects.
Mutation actions produce PlannedEdits without touching the filesystem.
Enums§
- Insert
Position - Where to insert code relative to a symbol.
Functions§
- check_
conflicts - Check for naming conflicts that a rename would introduce.
- decoration_
extended_ start - Walk backward from the symbol’s node through preceding named siblings,
collecting decoration nodes (doc comments, attributes, decorators, etc.).
Returns
(byte_offset, warning)where: - find_
references - Find all cross-file references to a symbol (callers + importers).
- locate_
symbol - Find a symbol’s location in a file.
- plan_
delete_ symbol - Plan deletion of a symbol from a file.
- plan_
insert - Plan insertion of code relative to a symbol.
- plan_
rename_ in_ file - Plan renames of an identifier across specific lines in a file.
- plan_
replace_ symbol - Plan replacement of a symbol’s content.