Module ide_db::imports::merge_imports
source · Expand description
Handle syntactic aspects of merging UseTrees.
Enums§
- What type of merges are allowed.
- Style to follow when normalizing a use tree.
Functions§
- Traverses both paths until they differ, returning the common prefix of both.
- Merge
rhs
intolhs
keeping both intact. Returned AST is mutable. - Merge
rhs
intolhs
keeping both intact. Returned AST is mutable. - Normalizes a use item by:
- Normalizes a use tree (see
try_normalize_import
doc).