(mut node: Node<'_>)
| 108 | } |
| 109 | |
| 110 | fn declarator(mut node: Node<'_>) -> Option<Node<'_>> { |
| 111 | for _ in 0..16 { |
| 112 | if matches!( |
| 113 | node.kind(), |
| 114 | "function_declarator" | "abstract_function_declarator" | "lambda_declarator" |
| 115 | ) { |
| 116 | return Some(node); |
| 117 | } |
| 118 | node = node.child_by_field_name("declarator")?; |
| 119 | } |
| 120 | None |
| 121 | } |
| 122 | |
| 123 | pub(crate) fn body(node: Node<'_>, language: Language) -> Option<Node<'_>> { |
| 124 | node.child_by_field_name("body").or_else(|| { |
no outgoing calls
no test coverage detected