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

Method inside_class_like

codegraph-kernel/src/go.rs:200–205  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

198 self.stack.last().map(|s| s.row).unwrap_or(0)
199 }
200 fn inside_class_like(&self) -> bool {
201 self.stack
202 .last()
203 .map(|s| matches!(s.kind, "class" | "struct" | "interface" | "trait" | "enum" | "module"))
204 .unwrap_or(false)
205 }
206
207 fn push_ref_at(&mut self, from_row: u32, name: &str, kind_code: u8, node: Node) {
208 let name_ref = self.arena.put(name);

Callers 2

visit_nodeMethod · 0.45
extract_methodMethod · 0.45

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected