Skip to content

Commit 215a012

Browse files
authored
Fix: Change DoWhileStatement to DoStatement to match TS (fixes eslint#180) (eslint#181)
1 parent 581a7a5 commit 215a012

File tree

3 files changed

+791
-1
lines changed

3 files changed

+791
-1
lines changed

lib/ast-converter.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,11 @@ module.exports = function(ast, extra) {
852852
});
853853
break;
854854

855-
case SyntaxKind.DoWhileStatement:
855+
/**
856+
* Unlike other parsers, TypeScript calls a "DoWhileStatement"
857+
* a "DoStatement"
858+
*/
859+
case SyntaxKind.DoStatement:
856860
assign(result, {
857861
type: "DoWhileStatement",
858862
test: convertChild(node.expression),

0 commit comments

Comments
 (0)