TS: Support type-only import/export

This commit is contained in:
Asger Feldthaus
2020-02-07 16:25:49 +00:00
parent 0351f0b775
commit 8d58aad0f2
11 changed files with 138 additions and 11 deletions

View File

@@ -385,6 +385,8 @@ case @expr.kind of
@exportspecifier = @namedexportspecifier | @exportdefaultspecifier | @exportnamespacespecifier;
@import_or_export_declaration = @importdeclaration | @exportdeclaration;
@typeassertion = @astypeassertion | @prefixtypeassertion;
@classdefinition = @classdeclstmt | @classexpr;
@@ -518,6 +520,7 @@ hasPublicKeyword (int id: @property ref);
hasPrivateKeyword (int id: @property ref);
hasProtectedKeyword (int id: @property ref);
hasReadonlyKeyword (int id: @property ref);
hasTypeKeyword (int id: @import_or_export_declaration ref);
isOptionalMember (int id: @property ref);
hasDefiniteAssignmentAssertion (int id: @field_or_vardeclarator ref);
isOptionalParameterDeclaration (unique int parameter: @pattern ref);