pub(crate) struct ModResolver<'ast, 'sess> {
    parse_sess: &'sess ParseSess,
    directory: Directory,
    file_map: BTreeMap<FileName, Module<'ast>>,
    recursive: bool,
}
Expand description

Maps each module to the corresponding file.

Fields

parse_sess: &'sess ParseSessdirectory: Directoryfile_map: BTreeMap<FileName, Module<'ast>>recursive: bool

Implementations

Creates a new ModResolver.

Creates a map that maps a file name to the module in AST.

Visit cfg_if macro and look for module declarations.

Visit modules defined inside macro calls.

Visit modules from AST.

Inspect the given sub-module which we are about to visit and returns its kind.

Find a file path in the filesystem which corresponds to the given module.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Layout

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 80 bytes