(&mut self, node: Node<'t>)
| 556 | } |
| 557 | |
| 558 | fn visit_for_calls_and_structure(&mut self, node: Node<'t>) { |
| 559 | stack_guard!(); |
| 560 | let kind = node.kind(); |
| 561 | self.maybe_capture_fn_refs(node); |
| 562 | |
| 563 | if kind == "method_invocation" { |
| 564 | self.extract_call(node); |
| 565 | } else if kind == "object_creation_expression" { |
| 566 | self.extract_instantiation(node); |
| 567 | if let Some(anon_body) = find_anonymous_class_body(node) { |
| 568 | self.extract_anonymous_class(node, anon_body); |
| 569 | return; |
| 570 | } |
| 571 | } |
| 572 | |
| 573 | // Static-member / value-read (`Type.CONST`) — self-gates on field_access. |
| 574 | self.extract_static_member_ref(node); |
| 575 | |
| 576 | if is_class_type(kind) { |
| 577 | self.extract_class(node); |
| 578 | return; |
| 579 | } |
| 580 | if kind == "enum_declaration" { |
| 581 | self.extract_enum(node); |
| 582 | return; |
| 583 | } |
| 584 | if is_interface_type(kind) { |
| 585 | self.extract_interface(node); |
| 586 | return; |
| 587 | } |
| 588 | |
| 589 | for i in 0..node.named_child_count() { |
| 590 | if let Some(c) = node.named_child(i) { |
| 591 | self.visit_for_calls_and_structure(c); |
| 592 | } |
| 593 | } |
| 594 | } |
| 595 | |
| 596 | // --- extractors -------------------------------------------------------------- |
| 597 |
no test coverage detected