Struct mun_hir::semantics::SemanticsScope
source · pub struct SemanticsScope<'a> {
pub db: &'a dyn HirDatabase,
/* private fields */
}
Expand description
Represents the notion of a scope (set of possible names) at a particular position in source.
Fields§
§db: &'a dyn HirDatabase
Implementations§
source§impl<'a> SemanticsScope<'a>
impl<'a> SemanticsScope<'a>
sourcepub fn visit_all_names(&self, visit: &mut dyn FnMut(Name, ScopeDef))
pub fn visit_all_names(&self, visit: &mut dyn FnMut(Name, ScopeDef))
Call the visit
function for every named item in the scope