File tree Expand file tree Collapse file tree 4 files changed +203
-190
lines changed Expand file tree Collapse file tree 4 files changed +203
-190
lines changed Original file line number Diff line number Diff line change @@ -544,7 +544,6 @@ export class RemoteNode extends RemoteNodeBase implements Node {
544
544
get isTypeOnly ( ) : boolean | undefined {
545
545
switch ( this . kind ) {
546
546
case SyntaxKind . ImportSpecifier :
547
- case SyntaxKind . ImportClause :
548
547
case SyntaxKind . ExportSpecifier :
549
548
case SyntaxKind . ImportEqualsDeclaration :
550
549
case SyntaxKind . ExportDeclaration :
@@ -921,6 +920,18 @@ export class RemoteNode extends RemoteNodeBase implements Node {
921
920
}
922
921
}
923
922
923
+ get phaseModifier ( ) : SyntaxKind {
924
+ switch ( this . kind ) {
925
+ case SyntaxKind . ImportClause :
926
+ const flags = ( this . data & ( 1 << 24 | 1 << 25 ) ) >> 24 ;
927
+ if ( flags & 1 ) return SyntaxKind . TypeKeyword ;
928
+ if ( flags & 2 ) return SyntaxKind . DeferKeyword ;
929
+ // fallthrough
930
+ default :
931
+ return SyntaxKind . Unknown ;
932
+ }
933
+ }
934
+
924
935
get token ( ) : SyntaxKind | undefined {
925
936
switch ( this . kind ) {
926
937
case SyntaxKind . ImportAttributes :
Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ export enum SyntaxKind {
165
165
BigIntKeyword ,
166
166
OverrideKeyword ,
167
167
OfKeyword ,
168
+ DeferKeyword ,
168
169
QualifiedName ,
169
170
ComputedPropertyName ,
170
171
TypeParameter ,
You can’t perform that action at this time.
0 commit comments