Expand description
AST operations (Surgeon actions).
This module contains high-level operations for transforming Rust code.
§Query Operations
DefRefs- Find definitions and references of symbols
§Mutation Operations
RemoveUnusedImports- Remove unused import statementsRename- Rename variables, functions, types
Structs§
- DefRefs
- Definition and Reference finder.
- Location
- A location in source code (simplified - just tracks the name).
- Remove
Unused Imports - Operation to detect and remove unused imports.
- Rename
- Rename operation for symbols.
- Rename
Result - Result of a rename operation.
- Symbol
- Information about a symbol (variable, function, type, etc.).
- Symbol
Table - Table of all symbols in a file.
Enums§
- Symbol
Kind - Kind of symbol.