hasExportDeclaration: a statement that exports by name or by assignment (`export {…}`, `export =`, `export default x`), not by declaring.
(block: Node)
| 1345 | /// hasExportDeclaration: a statement that exports by name or by assignment |
| 1346 | /// (`export {…}`, `export =`, `export default x`), not by declaring. |
| 1347 | fn has_export_declaration(block: Node) -> bool { |
| 1348 | for statement in block.named_children(&mut block.walk()) { |
| 1349 | if statement.kind() == "export_statement" && statement.child_by_field_name("declaration").is_none() { |
| 1350 | return true; |
| 1351 | } |
| 1352 | } |
| 1353 | false |
| 1354 | } |
| 1355 | |
| 1356 | fn opt_str(arena: &mut Arena, s: Option<&str>) -> StrRef { |
| 1357 | match s { |
no test coverage detected