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

Method inside_class_like

codegraph-kernel/src/python.rs:158–163  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

156 self.stack.last().map(|s| s.row).unwrap_or(0)
157 }
158 fn inside_class_like(&self) -> bool {
159 self.stack
160 .last()
161 .map(|s| matches!(s.kind, "class" | "struct" | "interface" | "trait" | "enum" | "module"))
162 .unwrap_or(false)
163 }
164
165 fn push_ref_at(&mut self, from_row: u32, name: &str, kind_code: u8, node: Node) {
166 let name_ref = self.arena.put(name);

Callers 1

visit_nodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected