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:545–548  ·  view source on GitHub ↗

isClassScopeConstantAssignment (tree-sitter.ts:1508).

(&self, node: Node)

Source from the content-addressed store, hash-verified

543
544 /// isClassScopeConstantAssignment (tree-sitter.ts:1508).
545 fn is_class_scope_constant_assignment(&self, node: Node) -> bool {
546 let left = node.child_by_field_name("left").or_else(|| node.named_child(0));
547 left.map(|l| l.kind() == "constant").unwrap_or(false)
548 }
549
550 // --- visitFunctionBody ------------------------------------------------------
551

Callers 1

visit_nodeMethod · 0.80

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected