Skip to main content

Module ops

Module ops 

Source
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

Structs§

DefRefs
Definition and Reference finder.
Location
A location in source code (simplified - just tracks the name).
RemoveUnusedImports
Operation to detect and remove unused imports.
Rename
Rename operation for symbols.
RenameResult
Result of a rename operation.
Symbol
Information about a symbol (variable, function, type, etc.).
SymbolTable
Table of all symbols in a file.

Enums§

SymbolKind
Kind of symbol.