Module insert_use

Source
Expand description

Handle syntactic aspects of inserting a new use item.

Structs§

InsertUseConfig

Enums§

ImportGranularity
How imports should be grouped into use statements.
ImportScope
PrefixKind

Functions§

ast_to_remove_for_path_in_use_stmt
insert_use
Insert an import path into the given file/node. A merge value of none indicates that no import merging is allowed to occur.
insert_use_as_alias
remove_path_if_in_use_stmt