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

isClassScopeConstantAssignment (tree-sitter.ts:1508).

(&self, node: Node)

Source from the content-addressed store, hash-verified

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

Callers 1

visit_nodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected