From 96fb14f8e38a3b4f30adfe32aca49b5d28c21c58 Mon Sep 17 00:00:00 2001 From: Reyad Attiyat Date: Thu, 12 Jan 2017 23:16:03 -0600 Subject: [PATCH] Fix: Create body for abstract methods (fixes #80) --- lib/ast-converter.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ast-converter.js b/lib/ast-converter.js index 7064f26..e90ee7e 100644 --- a/lib/ast-converter.js +++ b/lib/ast-converter.js @@ -1134,6 +1134,9 @@ module.exports = function(ast, extra) { }); if (isAbstractMethod) { methodDefinitionType = "TSAbstractMethodDefinition"; + method.body = { + type: "AbstractStatement" + }; } }