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

@@ -200,8 +200,8 @@ case @stmt.kind of
isInstantiated(unique int decl: @namespacedeclaration ref);
@declarablestmt = @declstmt | @namespacedeclaration | @classdeclstmt | @functiondeclstmt | @enumdeclaration | @externalmoduledeclaration | @globalaugmentationdeclaration;
hasDeclareKeyword(unique int stmt: @declarablestmt ref);
@declarablenode = @declstmt | @namespacedeclaration | @classdeclstmt | @functiondeclstmt | @enumdeclaration | @externalmoduledeclaration | @globalaugmentationdeclaration | @field;
hasDeclareKeyword(unique int stmt: @declarablenode ref);
isForAwaitOf(unique int forof: @forofstmt ref);