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

Method inside_class_like

codegraph-kernel/src/java.rs:265–270  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

263 self.stack.last().map(|s| s.row).unwrap_or(0)
264 }
265 fn inside_class_like(&self) -> bool {
266 self.stack
267 .last()
268 .map(|s| matches!(s.kind, "class" | "struct" | "interface" | "trait" | "enum" | "module"))
269 .unwrap_or(false)
270 }
271
272 fn push_ref(&mut self, from_row: u32, name: &str, kind_code: u8, line: u32, column: u32) {
273 let name_ref = self.arena.put(name);

Callers 2

visit_nodeMethod · 0.45
extract_methodMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected