Module resolver

Module resolver 

Source
Expand description

Module path resolution

Functionsยง

find_crate_root
Find the crate root file (lib.rs or main.rs)
is_inline_module
Check if a mod declaration is inline (has body) vs external (just declaration)
is_internal_path
Check if a use path is internal (crate::, self::, super::)
resolve_module_file
Resolve the file path for a module declaration
resolve_use_target
Resolve a use path to its target module path Returns None if the path refers to an external crate or cannot be resolved