(&self, node: Node)
| 461 | } |
| 462 | |
| 463 | fn is_async(&self, node: Node) -> bool { |
| 464 | (0..node.child_count()) |
| 465 | .filter_map(|i| node.child(i)) |
| 466 | .any(|c| c.kind() == "modifier" && self.text(c) == "async") |
| 467 | } |
| 468 | |
| 469 | /// isConst: `const` → true; else `static` AND `readonly` both present. |
| 470 | fn is_const(&self, node: Node) -> bool { |
no test coverage detected