Comparing version 1.4.3 to 1.4.4
{ | ||
"name": "esrap", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "Parse in reverse", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -1509,2 +1509,18 @@ /** @import { TSESTree } from '@typescript-eslint/types' */ | ||
TSModuleBlock(node, state) { | ||
state.commands.push(' {', indent, newline); | ||
sequence(node.body, state, false, handle); | ||
state.commands.push(dedent, newline, '}'); | ||
}, | ||
TSModuleDeclaration(node, state) { | ||
if (node.declare) state.commands.push('declare '); | ||
else state.commands.push('namespace '); | ||
handle(node.id, state); | ||
if (!node.body) return; | ||
handle(node.body, state); | ||
}, | ||
TSNonNullExpression(node, state) { | ||
@@ -1511,0 +1527,0 @@ handle(node.expression, state); |
50771
1582