MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / inside_class_like

Method inside_class_like

codegraph-kernel/src/swift.rs:368–373  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

366 self.stack.last().map(|s| s.row).unwrap_or(0)
367 }
368 fn inside_class_like(&self) -> bool {
369 self.stack
370 .last()
371 .map(|s| matches!(s.kind, "class" | "struct" | "interface" | "trait" | "enum" | "module"))
372 .unwrap_or(false)
373 }
374
375 fn push_ref(&mut self, from_row: u32, name: &str, kind_code: u8, line: u32, column: u32) {
376 let name_ref = self.arena.put(name);

Callers 1

visit_nodeMethod · 0.45

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected