Module source_analyzer

Module source_analyzer 

Source
Expand description

Lookup hir elements using positions in the source code. This is a lossy transformation: in general, a single source might correspond to several modules, functions, etc, due to macros, cfgs and #[path=] attributes on modules.

So, this modules should not be used during hir construction, it exists purely for β€œIDE needs”.

StructsΒ§

SourceAnalyzer πŸ”’
SourceAnalyzer is a convenience wrapper which exposes HIR API in terms of original source files. It should not be used inside the HIR itself.

EnumsΒ§

BodyOrSig πŸ”’

FunctionsΒ§

adjust πŸ”’
name_hygiene πŸ”’
record_literal_matched_fields πŸ”’
record_pattern_matched_fields πŸ”’
resolve_hir_path πŸ”’
resolve_hir_path_ πŸ”’
resolve_hir_path_as_attr_macro πŸ”’
resolve_hir_path_qualifier πŸ”’
Resolves a path where we know it is a qualifier of another path.
resolve_hir_value_path πŸ”’
scope_for πŸ”’
scope_for_offset πŸ”’