TS: Support declare modifier for fields

This commit is contained in:
Asger F
2019-11-01 16:44:30 +00:00
parent 9bc45f351c
commit 79dbdac8fa
9 changed files with 44 additions and 5 deletions

View File

@@ -0,0 +1 @@
| tst.ts:2:5:2:22 | declare x: number; | true |

View File

@@ -0,0 +1,5 @@
import javascript
from FieldDeclaration f, boolean ambient
where if f.isAmbient() then ambient = true else ambient = false
select f, ambient

View File

@@ -0,0 +1,3 @@
class C {
declare x: number;
}