extractStaticMemberRef — navigation_expression value reads, body walker only (assignment WRITES parse as directly_assignable_expression — not a member-access kind — and emit nothing).
(&mut self, node: Node<'t>)
| 1374 | /// walker only (assignment WRITES parse as directly_assignable_expression |
| 1375 | /// — not a member-access kind — and emit nothing). |
| 1376 | fn extract_static_member_ref(&mut self, node: Node<'t>) { |
| 1377 | if node.kind() != "navigation_expression" { |
| 1378 | return; |
| 1379 | } |
| 1380 | if self.stack.is_empty() { |
| 1381 | return; |
| 1382 | } |
| 1383 | let owner = self.top_row(); |
| 1384 | if let Some(parent) = node.parent() { |
| 1385 | if parent.kind() == "call_expression" { |
| 1386 | let callee = parent |
| 1387 | .child_by_field_name("function") |
| 1388 | .or_else(|| parent.child_by_field_name("method")) |
| 1389 | .or_else(|| parent.named_child(0)); |
| 1390 | if let Some(callee) = callee { |
| 1391 | if callee.start_byte() == node.start_byte() { |
| 1392 | return; |
| 1393 | } |
| 1394 | } |
| 1395 | } |
| 1396 | } |
| 1397 | let recv = node |
| 1398 | .child_by_field_name("object") |
| 1399 | .or_else(|| node.child_by_field_name("expression")) |
| 1400 | .or_else(|| node.child_by_field_name("scope")) |
| 1401 | .or_else(|| node.named_child(0)); |
| 1402 | let Some(recv) = recv else { return }; |
| 1403 | if matches!( |
| 1404 | recv.kind(), |
| 1405 | "identifier" | "type_identifier" | "simple_identifier" | "name" | "scoped_type_identifier" |
| 1406 | ) { |
| 1407 | let text = self.text(recv); |
| 1408 | if capitalized_re().is_match(text) { |
| 1409 | self.push_ref_at(owner, &text.to_string(), edge_kind_index("references").unwrap(), recv); |
| 1410 | } |
| 1411 | } |
| 1412 | } |
| 1413 | |
| 1414 | /// extractInheritance — delegation_specifier: user_type ?? its |
| 1415 | /// constructor_invocation's user_type ?? its explicit_delegation's |
no test coverage detected