[][src]Module c2rust_refactor::pick_node

Helper functions for picking a node by source location.

This is used in various parts of the frontend to set marks at specific locations.

Structs

NodeInfo

The ID and span of a selected node.

Enums

NodeKind

Enum of node kinds.

Functions

pick_node

Select an AST node by its BytePos in the SourceMap. Only nodes of the specified kind will be selected.

pick_node_at_loc

Select an AST node by its file, line, and column numbers.

pick_node_command

pick_node Command

register_commands