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

Commit a756c19

Browse files
committed
🚧 WIP
1 parent 3f802d5 commit a756c19

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

lib/ast-converter.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,7 @@ module.exports = function(ast, extra) {
966966
key: convertChild(node.name),
967967
value: convertChild(node.initializer),
968968
computed: (node.name.kind === SyntaxKind.ComputedPropertyName),
969+
modifiers: node.modifiers ? node.modifiers.map(convertChild) : [],
969970
static: Boolean(node.flags & ts.NodeFlags.Static),
970971
decorators: (node.decorators) ? node.decorators.map(function(d) {
971972
return convertChild(d.expression);
@@ -986,6 +987,7 @@ module.exports = function(ast, extra) {
986987
generator: false,
987988
expression: false,
988989
body: convertChild(node.body),
990+
modifiers: node.modifiers ? node.modifiers.map(convertChild) : [],
989991
range: [ node.name.end, result.range[1]],
990992
loc: {
991993
start: {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Foo {
2+
private bar : string;
3+
public getBar () {
4+
return this.bar;
5+
}
6+
}

0 commit comments

Comments
 (0)