MCPcopy Create free account
hub / github.com/CodeSentryAI/lockbud / AllLocalUsesVisitor

Class AllLocalUsesVisitor

src/analysis/defuse/mod.rs:101–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99struct AllLocalUsesVisitor {
100 for_local: Local,
101 uses: BTreeSet<Location>,
102}
103
104impl Visitor<'_> for AllLocalUsesVisitor {
105 fn visit_local(&mut self, local: Local, context: PlaceContext, location: Location) {
106 if local == self.for_local {
107 if let Some(DefUse::Use) = categorize(context) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected