This repository was archived by the owner on Jan 14, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2405,7 +2405,7 @@ export default function convert(config: ConvertConfig): ESTreeNode | null {
2405
2405
) ;
2406
2406
}
2407
2407
2408
- // accessibility and export is not allowed in MethodSignature
2408
+ // accessibility, export and static is not allowed in MethodSignature TS1070
2409
2409
const accessibility = nodeUtils . getTSNodeAccessibility ( node ) ;
2410
2410
if ( accessibility ) {
2411
2411
result . accessibility = accessibility ;
@@ -2414,6 +2414,10 @@ export default function convert(config: ConvertConfig): ESTreeNode | null {
2414
2414
if ( nodeUtils . hasModifier ( SyntaxKind . ExportKeyword , node ) ) {
2415
2415
result . export = true ;
2416
2416
}
2417
+
2418
+ if ( nodeUtils . hasModifier ( SyntaxKind . StaticKeyword , node ) ) {
2419
+ result . static = true ;
2420
+ }
2417
2421
break ;
2418
2422
}
2419
2423
Original file line number Diff line number Diff line change @@ -76419,6 +76419,7 @@ Object {
76419
76419
"type": "TSVoidKeyword",
76420
76420
},
76421
76421
},
76422
+ "static": true,
76422
76423
"type": "TSMethodSignature",
76423
76424
},
76424
76425
Object {
You can’t perform that action at this time.
0 commit comments