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

Method inside_class_like

codegraph-kernel/src/rustlang.rs:220–225  ·  view source on GitHub ↗

isInsideClassLikeNode — stack TOP only, file doesn't count.

(&self)

Source from the content-addressed store, hash-verified

218 }
219 /// isInsideClassLikeNode — stack TOP only, file doesn't count.
220 fn inside_class_like(&self) -> bool {
221 self.stack
222 .last()
223 .map(|s| matches!(s.kind, "class" | "struct" | "union" | "interface" | "trait" | "enum" | "module"))
224 .unwrap_or(false)
225 }
226
227 fn push_ref_at(&mut self, from_row: u32, name: &str, kind_code: u8, node: Node) {
228 let name_ref = self.arena.put(name);

Callers 2

visit_nodeMethod · 0.45
extract_fn_or_methodMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected