Skip to content

Commit 5678034

Browse files
committed
Breaking: Add .body to TSModuleBlock nodes (fixes eslint#217)
1 parent 41ccef5 commit 5678034

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/ast-converter.js

+7
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,13 @@ module.exports = function(ast, extra) {
14911491
break;
14921492

14931493
// Modules
1494+
case SyntaxKind.ModuleBlock:
1495+
assign(result, {
1496+
type: "TSModuleBlock",
1497+
body: node.statements.map(convertChild)
1498+
});
1499+
break;
1500+
14941501
case SyntaxKind.ImportDeclaration:
14951502
assign(result, {
14961503
type: "ImportDeclaration",

0 commit comments

Comments
 (0)