hasExportDeclaration: a statement that exports by name or by assignment (`export {…}`, `export =`, `export default x`), not by declaring.
(block: Node)
| 1231 | /// hasExportDeclaration: a statement that exports by name or by assignment |
| 1232 | /// (`export {…}`, `export =`, `export default x`), not by declaring. |
| 1233 | fn has_export_declaration(block: Node) -> bool { |
| 1234 | for statement in block.named_children(&mut block.walk()) { |
| 1235 | if statement.kind() == "export_statement" && statement.child_by_field_name("declaration").is_none() { |
| 1236 | return true; |
| 1237 | } |
| 1238 | } |
| 1239 | false |
| 1240 | } |
| 1241 | |
| 1242 | fn opt_str(arena: &mut Arena, s: Option<&str>) -> StrRef { |
| 1243 | match s { |
no test coverage detected