Module item_collector

Source
Expand description

Contains the helper types and functions which help to iterate over all the given rust files, collect all of the full path names and the actual AST-node for the types defined in those paths. This is later needed for finding PII fields recursively.

Structsยง

AstItemCollector
The types and use statements items collected from the rust files.
TypesAndScopedPaths

Functionsยง

add_file_stem_to_module_path ๐Ÿ”’
crate_name_from_file ๐Ÿ”’
flatten_use_tree ๐Ÿ”’
Flattens a usetree.
is_file_declared_from_mod_file ๐Ÿ”’
is_file_declared_from_other_file ๐Ÿ”’
is_file_module ๐Ÿ”’
module_name_from_file ๐Ÿ”’
Takes in the path to a Rust file and returns the path as youโ€™d refer to it in a use-statement.
normalize_type_path ๐Ÿ”’
usetree_to_paths ๐Ÿ”’
First flattens the UseTree and then normalizing the paths.