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

Method val_var_name

codegraph-kernel/src/scala.rs:393–405  ·  view source on GitHub ↗

getValVarName (scala.ts:5-11).

(&self, node: Node<'t>)

Source from the content-addressed store, hash-verified

391
392 /// getValVarName (scala.ts:5-11).
393 fn val_var_name(&self, node: Node<'t>) -> Option<&'t str> {
394 let pattern = node.child_by_field_name("pattern")?;
395 if pattern.kind() == "identifier" {
396 return Some(self.text(pattern));
397 }
398 let mut cursor = pattern.walk();
399 for c in pattern.named_children(&mut cursor) {
400 if c.kind() == "identifier" {
401 return Some(self.text(c));
402 }
403 }
404 None
405 }
406
407 /// extractVisibility (scala.ts:69-80) → wire byte (1 public default).
408 fn visibility_of(&self, node: Node<'t>) -> u8 {

Callers 1

hookMethod · 0.80

Calls 1

textMethod · 0.45

Tested by

no test coverage detected