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

Method inside_class_like

codegraph-kernel/src/tsjs/mod.rs:287–292  ·  view source on GitHub ↗

isInsideClassLikeNode.

(&self)

Source from the content-addressed store, hash-verified

285
286 /// isInsideClassLikeNode.
287 fn inside_class_like(&self) -> bool {
288 self.stack
289 .last()
290 .map(|s| matches!(s.kind, "class" | "struct" | "interface" | "trait" | "enum" | "module"))
291 .unwrap_or(false)
292 }
293
294 fn push_ref(&mut self, from_row: u32, name: &str, kind_code: u8, node: Node) {
295 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