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

Method is_class_scope_constant_assignment

codegraph-kernel/src/ruby.rs:517–520  ·  view source on GitHub ↗

isClassScopeConstantAssignment (tree-sitter.ts:1508).

(&self, node: Node)

Source from the content-addressed store, hash-verified

515
516 /// isClassScopeConstantAssignment (tree-sitter.ts:1508).
517 fn is_class_scope_constant_assignment(&self, node: Node) -> bool {
518 let left = node.child_by_field_name("left").or_else(|| node.named_child(0));
519 left.map(|l| l.kind() == "constant").unwrap_or(false)
520 }
521
522 // --- visitFunctionBody ------------------------------------------------------
523

Callers 1

visit_nodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected