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 {
9595 function tryConsumeImport ( ) : boolean {
9696 let token = scanner . getToken ( ) ;
9797 if ( token === SyntaxKind . ImportKeyword ) {
98-
9998 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 ) {
101108 // import "mod";
102109 recordModuleName ( ) ;
103110 return true ;
@@ -297,7 +304,8 @@ namespace ts {
297304 // import * as NS from "mod"
298305 // import d, {a, b as B} from "mod"
299306 // import i = require("mod");
300- //
307+ // import("mod");
308+
301309 // export * from "mod"
302310 // export {a as b} from "mod"
303311 // export import i = require("mod")
You can’t perform that action at this time.
0 commit comments