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

Method inside_class_like

codegraph-kernel/src/scala.rs:266–271  ·  view source on GitHub ↗

isInsideClassLikeNode (:1486) — stack-top kind only.

(&self)

Source from the content-addressed store, hash-verified

264 }
265 /// isInsideClassLikeNode (:1486) — stack-top kind only.
266 fn inside_class_like(&self) -> bool {
267 self.stack
268 .last()
269 .map(|s| matches!(s.kind, "class" | "struct" | "interface" | "trait" | "enum" | "module"))
270 .unwrap_or(false)
271 }
272
273 fn push_ref_at(&mut self, from_row: u32, name: &str, kind: &str, node: Node) {
274 let name_ref = self.arena.put(name);

Callers 1

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected