NamedImports : { } { ImportsList } { ImportsList , } ImportsList : ImportSpecifier ImportsList , ImportSpecifier ImportSpecifier : ImportedBinding IdentifierName as ImportedBinding Conflicts: src/compiler/parser.ts
21 lines
606 B
JavaScript
21 lines
606 B
JavaScript
//// [tests/cases/compiler/es6ImportNamedImport.ts] ////
|
|
|
|
//// [es6ImportNamedImport_0.ts]
|
|
|
|
export var a = 10;
|
|
export var x = a;
|
|
export var m = a;
|
|
|
|
//// [es6ImportNamedImport_1.ts]
|
|
import { } from "es6ImportNamedImport_0";
|
|
import { a } from "es6ImportNamedImport_0";
|
|
import { a as b } from "es6ImportNamedImport_0";
|
|
import { x, a as y } from "es6ImportNamedImport_0";
|
|
import { x as z, } from "es6ImportNamedImport_0";
|
|
import { m, } from "es6ImportNamedImport_0";
|
|
|
|
//// [es6ImportNamedImport_0.js]
|
|
exports.a = 10;
|
|
exports.x = exports.a;
|
|
exports.m = exports.a;
|
|
//// [es6ImportNamedImport_1.js]
|