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