Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Commit 7b69bc9

Browse files
soda0289JamesHenry
authored andcommitted
Fix: Label abstract class properties (fixes #234) (#238)
1 parent a330ec6 commit 7b69bc9

File tree

3 files changed

+420
-1
lines changed

3 files changed

+420
-1
lines changed

lib/ast-converter.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1094,8 +1094,10 @@ module.exports = function(ast, extra) {
10941094
break;
10951095

10961096
case SyntaxKind.PropertyDeclaration:
1097+
var isAbstract = hasModifier(SyntaxKind.AbstractKeyword, node);
1098+
10971099
assign(result, {
1098-
type: "ClassProperty",
1100+
type: (isAbstract) ? "TSAbstractClassProperty" : "ClassProperty",
10991101
key: convertChild(node.name),
11001102
value: convertChild(node.initializer),
11011103
computed: (node.name.kind === SyntaxKind.ComputedPropertyName),

0 commit comments

Comments
 (0)