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ยง
- AstItem
Collector - The types and use statements items collected from the rust files.
- Types
AndScoped Paths
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.