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

Method inside_class_like

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

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

(&self)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected