File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -95,9 +95,16 @@ namespace ts {
95
95
function tryConsumeImport ( ) : boolean {
96
96
let token = scanner . getToken ( ) ;
97
97
if ( token === SyntaxKind . ImportKeyword ) {
98
-
99
98
token = nextToken ( ) ;
100
- if ( token === SyntaxKind . StringLiteral ) {
99
+ if ( token === SyntaxKind . OpenParenToken ) {
100
+ token = nextToken ( ) ;
101
+ if ( token === SyntaxKind . StringLiteral ) {
102
+ // import("mod");
103
+ recordModuleName ( ) ;
104
+ return true ;
105
+ }
106
+ }
107
+ else if ( token === SyntaxKind . StringLiteral ) {
101
108
// import "mod";
102
109
recordModuleName ( ) ;
103
110
return true ;
@@ -297,7 +304,8 @@ namespace ts {
297
304
// import * as NS from "mod"
298
305
// import d, {a, b as B} from "mod"
299
306
// import i = require("mod");
300
- //
307
+ // import("mod");
308
+
301
309
// export * from "mod"
302
310
// export {a as b} from "mod"
303
311
// export import i = require("mod")
You can’t perform that action at this time.
0 commit comments