Skip to main content

use_def_map

Function use_def_map 

Source
pub fn use_def_map<'db>(
    db: &'db dyn Db,
    scope: ScopeId<'db>,
) -> &'db <Arc<UseDefMap<'db>> as Deref>::Target 
Expand description

Returns the use-def map for a specific scope.

Using use_def_map over semantic_index has the advantage that Salsa can avoid invalidating dependent queries if this scope’s use-def map is unchanged.