getValVarName (scala.ts:5-11).
(&self, node: Node<'t>)
| 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 { |