(&mut self, node: Node<'t>)
| 1244 | // --- function-as-value refs (PHP_SPEC, function-ref.ts:360) -------------------- |
| 1245 | |
| 1246 | fn maybe_capture_fn_refs(&mut self, node: Node<'t>) { |
| 1247 | if node.kind() != "arguments" { |
| 1248 | return; |
| 1249 | } |
| 1250 | if self.stack.is_empty() { |
| 1251 | return; |
| 1252 | } |
| 1253 | let from = self.top_row(); |
| 1254 | for i in 0..node.named_child_count() { |
| 1255 | if let Some(c) = node.named_child(i) { |
| 1256 | self.normalize_fn_ref_value(c, from, 0); |
| 1257 | } |
| 1258 | } |
| 1259 | } |
| 1260 | |
| 1261 | fn normalize_fn_ref_value(&mut self, v: Node<'t>, from: u32, depth: u32) { |
| 1262 | stack_guard!(); |
no test coverage detected