Skip to main content

semantic_index

Function semantic_index 

Source
pub fn semantic_index<'db>(
    db: &'db dyn Db,
    file: ProgramFile<'db>,
) -> &'db SemanticIndex<'db>
Expand description

Returns the semantic index for file.

Prefer using [symbol_table] when working with symbols from a single scope.