diff --git a/src/testRunner/tsconfig.json b/src/testRunner/tsconfig.json index ee87ee3433e..39d57804d39 100644 --- a/src/testRunner/tsconfig.json +++ b/src/testRunner/tsconfig.json @@ -89,6 +89,7 @@ "unittests/services/preProcessFile.ts", "unittests/services/textChanges.ts", "unittests/services/transpile.ts", + "unittests/tsbuild/amdModulesWithOut.ts", "unittests/tsbuild/emptyFiles.ts", "unittests/tsbuild/graphOrdering.ts", "unittests/tsbuild/missingExtendedFile.ts", diff --git a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts new file mode 100644 index 00000000000..786483fa7c7 --- /dev/null +++ b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts @@ -0,0 +1,202 @@ +namespace ts { + describe("unittests:: tsbuild:: outFile:: on amd modules with --out", () => { + let outFileFs: vfs.FileSystem; + const { time, tick } = getTime(); + const enum ext { js, jsmap, dts, dtsmap, buildinfo } + const enum project { lib, app } + type OutputFile = [string, string, string, string, string]; + function relName(path: string) { return path.slice(1); } + const outputFiles: [OutputFile, OutputFile] = [ + [ + "/src/lib/module.js", + "/src/lib/module.js.map", + "/src/lib/module.d.ts", + "/src/lib/module.d.ts.map", + "/src/lib/module.tsbuildinfo" + ], + [ + "/src/app/module.js", + "/src/app/module.js.map", + "/src/app/module.d.ts", + "/src/app/module.d.ts.map", + "/src/app/module.tsbuildinfo" + ] + ]; + type Sources = [string, ReadonlyArray]; + const enum source { config, ts } + const sources: [Sources, Sources] = [ + [ + "/src/lib/tsconfig.json", + [ + "/src/lib/file0.ts", + "/src/lib/file1.ts", + "/src/lib/file2.ts", + "/src/lib/global.ts", + ] + ], + [ + "/src/app/tsconfig.json", + [ + "/src/app/file3.ts", + "/src/app/file4.ts" + ] + ] + ]; + before(() => { + outFileFs = loadProjectFromDisk("tests/projects/amdModulesWithOut", time); + }); + after(() => { + outFileFs = undefined!; + }); + + interface VerifyOutFileScenarioInput { + scenario: string; + modifyFs: (fs: vfs.FileSystem) => void; + modifyAgainFs?: (fs: vfs.FileSystem) => void; + } + + function verifyOutFileScenario({ + scenario, + modifyFs, + modifyAgainFs + }: VerifyOutFileScenarioInput) { + verifyTsbuildOutput({ + scenario, + projFs: () => outFileFs, + time, + tick, + proj: "amdModulesWithOut", + rootNames: ["/src/app"], + expectedMapFileNames: [ + outputFiles[project.lib][ext.jsmap], + outputFiles[project.lib][ext.dtsmap], + outputFiles[project.app][ext.jsmap], + outputFiles[project.app][ext.dtsmap], + ], + expectedBuildInfoFilesForSectionBaselines: [ + [outputFiles[project.lib][ext.buildinfo], outputFiles[project.lib][ext.js], outputFiles[project.lib][ext.dts]], + [outputFiles[project.app][ext.buildinfo], outputFiles[project.app][ext.js], outputFiles[project.app][ext.dts]] + ], + lastProjectOutputJs: outputFiles[project.app][ext.js], + initialBuild: { + modifyFs + }, + incrementalDtsUnchangedBuild: { + modifyFs: fs => appendText(fs, relName(sources[project.lib][source.ts][1]), "console.log(x);") + }, + incrementalHeaderChangedBuild: modifyAgainFs ? { + modifyFs: modifyAgainFs + } : undefined, + outputFiles: [ + ...outputFiles[project.lib], + ...outputFiles[project.app] + ], + baselineOnly: true + }); + } + + describe("Prepend output with .tsbuildinfo", () => { + verifyOutFileScenario({ + scenario: "modules and globals mixed in amd", + modifyFs: noop + }); + + // Prologues + describe("Prologues", () => { + verifyOutFileScenario({ + scenario: "multiple prologues in all projects", + modifyFs: fs => { + enableStrict(fs, sources[project.lib][source.config]); + addTestPrologue(fs, sources[project.lib][source.ts][0], `"myPrologue"`); + addTestPrologue(fs, sources[project.lib][source.ts][2], `"myPrologueFile"`); + enableStrict(fs, sources[project.app][source.config]); + addTestPrologue(fs, sources[project.app][source.ts][0], `"myPrologue"`); + addTestPrologue(fs, sources[project.app][source.ts][1], `"myPrologue2";`); + }, + modifyAgainFs: fs => addTestPrologue(fs, relName(sources[project.lib][source.ts][1]), `"myPrologue5"`) + }); + }); + + // Shebang + describe("Shebang", () => { + // changes declaration because its emitted in .d.ts file + verifyOutFileScenario({ + scenario: "shebang in all projects", + modifyFs: fs => { + addShebang(fs, "lib", "file0"); + addShebang(fs, "lib", "file1"); + addShebang(fs, "app", "file3"); + }, + }); + }); + + // emitHelpers + describe("emitHelpers", () => { + verifyOutFileScenario({ + scenario: "multiple emitHelpers in all projects", + modifyFs: fs => { + addSpread(fs, "lib", "file0"); + addRest(fs, "lib", "file1"); + addRest(fs, "app", "file3"); + addSpread(fs, "app", "file4"); + }, + modifyAgainFs: fs => removeRest(fs, "lib", "file1") + }); + }); + + // triple slash refs + describe("triple slash refs", () => { + // changes declaration because its emitted in .d.ts file + verifyOutFileScenario({ + scenario: "triple slash refs in all projects", + modifyFs: fs => { + addTripleSlashRef(fs, "lib", "file0"); + addTripleSlashRef(fs, "app", "file4"); + } + }); + }); + + describe("stripInternal", () => { + function stripInternalScenario(fs: vfs.FileSystem) { + const internal = "/*@internal*/"; + replaceText(fs, sources[project.app][source.config], `"composite": true,`, `"composite": true, +"stripInternal": true,`);; + replaceText(fs, sources[project.lib][source.ts][0], "const", `${internal} const`); + appendText(fs, sources[project.lib][source.ts][1], ` +export class normalC { + ${internal} constructor() { } + ${internal} prop: string; + ${internal} method() { } + ${internal} get c() { return 10; } + ${internal} set c(val: number) { } +} +export namespace normalN { + ${internal} export class C { } + ${internal} export function foo() {} + ${internal} export namespace someNamespace { export class C {} } + ${internal} export namespace someOther.something { export class someClass {} } + ${internal} export import someImport = someNamespace.C; + ${internal} export type internalType = internalC; + ${internal} export const internalConst = 10; + ${internal} export enum internalEnum { a, b, c } +} +${internal} export class internalC {} +${internal} export function internalfoo() {} +${internal} export namespace internalNamespace { export class someClass {} } +${internal} export namespace internalOther.something { export class someClass {} } +${internal} export import internalImport = internalNamespace.someClass; +${internal} export type internalType = internalC; +${internal} export const internalConst = 10; +${internal} export enum internalEnum { a, b, c }`); + } + + // Verify initial + incremental edits + verifyOutFileScenario({ + scenario: "stripInternal", + modifyFs: stripInternalScenario, + modifyAgainFs: fs => replaceText(fs, sources[project.lib][source.ts][1], `export const`, `/*@internal*/ export const`), + }); + }); + }); + }); +} diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index 1be0126a52f..0c74492db4a 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -359,4 +359,66 @@ Mismatch Actual(path, actual, expected): ${JSON.stringify(arrayFrom(mapDefinedIt } }); } + + export function enableStrict(fs: vfs.FileSystem, path: string) { + replaceText(fs, path, `"strict": false`, `"strict": true`); + } + + export function addTestPrologue(fs: vfs.FileSystem, path: string, prologue: string) { + prependText(fs, path, `${prologue} +`); + } + + export function addShebang(fs: vfs.FileSystem, project: string, file: string) { + prependText(fs, `src/${project}/${file}.ts`, `#!someshebang ${project} ${file} +`); + } + + export function restContent(project: string, file: string) { + return `function for${project}${file}Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +}`; + } + + function nonrestContent(project: string, file: string) { + return `function for${project}${file}Rest() { }`; + } + + export function addRest(fs: vfs.FileSystem, project: string, file: string) { + appendText(fs, `src/${project}/${file}.ts`, restContent(project, file)); + } + + export function removeRest(fs: vfs.FileSystem, project: string, file: string) { + replaceText(fs, `src/${project}/${file}.ts`, restContent(project, file), nonrestContent(project, file)); + } + + export function addStubFoo(fs: vfs.FileSystem, project: string, file: string) { + appendText(fs, `src/${project}/${file}.ts`, nonrestContent(project, file)); + } + + export function changeStubToRest(fs: vfs.FileSystem, project: string, file: string) { + replaceText(fs, `src/${project}/${file}.ts`, nonrestContent(project, file), restContent(project, file)); + } + + export function addSpread(fs: vfs.FileSystem, project: string, file: string) { + const path = `src/${project}/${file}.ts`; + const content = fs.readFileSync(path, "utf8"); + fs.writeFileSync(path, `${content} +function ${project}${file}Spread(...b: number[]) { } +${project}${file}Spread(...[10, 20, 30]);`); + + replaceText(fs, `src/${project}/tsconfig.json`, `"strict": false,`, `"strict": false, + "downlevelIteration": true,`); + } + + export function getTripleSlashRef(project: string) { + return `/src/${project}/tripleRef.d.ts`; + } + + export function addTripleSlashRef(fs: vfs.FileSystem, project: string, file: string) { + fs.writeFileSync(getTripleSlashRef(project), `declare class ${project}${file} { }`); + prependText(fs, `src/${project}/${file}.ts`, `/// +const ${file}Const = new ${project}${file}(); +`); + } } diff --git a/src/testRunner/unittests/tsbuild/outFile.ts b/src/testRunner/unittests/tsbuild/outFile.ts index e4c4e0cc639..ac043460283 100644 --- a/src/testRunner/unittests/tsbuild/outFile.ts +++ b/src/testRunner/unittests/tsbuild/outFile.ts @@ -1,4 +1,3 @@ - namespace ts { describe("unittests:: tsbuild:: outFile::", () => { let outFileFs: vfs.FileSystem; @@ -174,7 +173,6 @@ namespace ts { ...outputFiles[project.first], ...outputFiles[project.second], ...outputFiles[project.third], - outputFiles[project.third][ext.buildinfo], ], outputFiles[project.first][ext.buildinfo], // since first build info changes ); @@ -443,10 +441,6 @@ namespace ts { describe("Prepend output with .tsbuildinfo", () => { // Prologues describe("Prologues", () => { - function enableStrict(fs: vfs.FileSystem, path: string) { - replaceText(fs, path, `"strict": false`, `"strict": true`); - } - // Verify initial + incremental edits verifyOutFileScenario({ scenario: "strict in all projects", @@ -455,37 +449,32 @@ namespace ts { enableStrict(fs, sources[project.second][source.config]); enableStrict(fs, sources[project.third][source.config]); }, - modifyAgainFs: fs => addPrologue(fs, relSources[project.first][source.ts][part.one], `"myPrologue"`) + modifyAgainFs: fs => addTestPrologue(fs, relSources[project.first][source.ts][part.one], `"myPrologue"`) }); // Verify ignore dtsChanged verifyOutFileScenario({ scenario: "strict in one dependency", modifyFs: fs => enableStrict(fs, sources[project.second][source.config]), - modifyAgainFs: fs => addPrologue(fs, "src/first/first_PART1.ts", `"myPrologue"`), + modifyAgainFs: fs => addTestPrologue(fs, "src/first/first_PART1.ts", `"myPrologue"`), ignoreDtsChanged: true, baselineOnly: true }); - function addPrologue(fs: vfs.FileSystem, path: string, prologue: string) { - prependText(fs, path, `${prologue} -`); - } - // Verify initial + incremental edits - sourcemap verification verifyOutFileScenario({ scenario: "multiple prologues in all projects", modifyFs: fs => { enableStrict(fs, sources[project.first][source.config]); - addPrologue(fs, sources[project.first][source.ts][part.one], `"myPrologue"`); + addTestPrologue(fs, sources[project.first][source.ts][part.one], `"myPrologue"`); enableStrict(fs, sources[project.second][source.config]); - addPrologue(fs, sources[project.second][source.ts][part.one], `"myPrologue"`); - addPrologue(fs, sources[project.second][source.ts][part.two], `"myPrologue2";`); + addTestPrologue(fs, sources[project.second][source.ts][part.one], `"myPrologue"`); + addTestPrologue(fs, sources[project.second][source.ts][part.two], `"myPrologue2";`); enableStrict(fs, sources[project.third][source.config]); - addPrologue(fs, sources[project.third][source.ts][part.one], `"myPrologue";`); - addPrologue(fs, sources[project.third][source.ts][part.one], `"myPrologue3";`); + addTestPrologue(fs, sources[project.third][source.ts][part.one], `"myPrologue";`); + addTestPrologue(fs, sources[project.third][source.ts][part.one], `"myPrologue3";`); }, - modifyAgainFs: fs => addPrologue(fs, relSources[project.first][source.ts][part.one], `"myPrologue5"`) + modifyAgainFs: fs => addTestPrologue(fs, relSources[project.first][source.ts][part.one], `"myPrologue5"`) }); // Verify ignore dtsChanged @@ -493,11 +482,11 @@ namespace ts { scenario: "multiple prologues in different projects", modifyFs: fs => { enableStrict(fs, sources[project.first][source.config]); - addPrologue(fs, sources[project.second][source.ts][part.one], `"myPrologue"`); - addPrologue(fs, sources[project.second][source.ts][part.two], `"myPrologue2";`); + addTestPrologue(fs, sources[project.second][source.ts][part.one], `"myPrologue"`); + addTestPrologue(fs, sources[project.second][source.ts][part.two], `"myPrologue2";`); enableStrict(fs, sources[project.third][source.config]); }, - modifyAgainFs: fs => addPrologue(fs, sources[project.first][source.ts][part.one], `"myPrologue5"`), + modifyAgainFs: fs => addTestPrologue(fs, sources[project.first][source.ts][part.one], `"myPrologue5"`), ignoreDtsChanged: true, baselineOnly: true }); @@ -505,11 +494,6 @@ namespace ts { // Shebang describe("Shebang", () => { - function addShebang(fs: vfs.FileSystem, project: string, file: string) { - prependText(fs, `src/${project}/${file}.ts`, `#!someshebang ${project} ${file} -`); - } - // changes declaration because its emitted in .d.ts file // Verify initial + incremental edits verifyOutFileScenario({ @@ -533,32 +517,6 @@ namespace ts { // emitHelpers describe("emitHelpers", () => { - function restContent(project: string, file: string) { - return `function for${project}${file}Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -}`; - } - - function nonrestContent(project: string, file: string) { - return `function for${project}${file}Rest() { }`; - } - - function addRest(fs: vfs.FileSystem, project: string, file: string) { - appendText(fs, `src/${project}/${file}.ts`, restContent(project, file)); - } - - function removeRest(fs: vfs.FileSystem, project: string, file: string) { - replaceText(fs, `src/${project}/${file}.ts`, restContent(project, file), nonrestContent(project, file)); - } - - function addStubFoo(fs: vfs.FileSystem, project: string, file: string) { - appendText(fs, `src/${project}/${file}.ts`, nonrestContent(project, file)); - } - - function changeStubToRest(fs: vfs.FileSystem, project: string, file: string) { - replaceText(fs, `src/${project}/${file}.ts`, nonrestContent(project, file), restContent(project, file)); - } - // Verify initial + incremental edits verifyOutFileScenario({ scenario: "emitHelpers in all projects", @@ -582,17 +540,6 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; baselineOnly: true }); - function addSpread(fs: vfs.FileSystem, project: string, file: string) { - const path = `src/${project}/${file}.ts`; - const content = fs.readFileSync(path, "utf8"); - fs.writeFileSync(path, `${content} -function ${project}${file}Spread(...b: number[]) { } -${project}${file}Spread(...[10, 20, 30]);`); - - replaceText(fs, `src/${project}/tsconfig.json`, `"strict": false,`, `"strict": false, - "downlevelIteration": true,`); - } - // Verify ignore dtsChanged verifyOutFileScenario({ scenario: "multiple emitHelpers in all projects", @@ -626,17 +573,6 @@ ${project}${file}Spread(...[10, 20, 30]);`); // triple slash refs describe("triple slash refs", () => { // changes declaration because its emitted in .d.ts file - function getTripleSlashRef(project: string) { - return `/src/${project}/tripleRef.d.ts`; - } - - function addTripleSlashRef(fs: vfs.FileSystem, project: string, file: string) { - fs.writeFileSync(getTripleSlashRef(project), `declare class ${project}${file} { }`); - prependText(fs, `src/${project}/${file}.ts`, `/// -const ${file}Const = new ${project}${file}(); -`); - } - // Verify initial + incremental edits verifyOutFileScenario({ scenario: "triple slash refs in all projects", diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js new file mode 100644 index 00000000000..2ea261212d6 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js @@ -0,0 +1,589 @@ +//// [/src/app/module.js] + "use strict"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>> "use strict"; +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(2, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(2, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(2, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(2, 17) Source(1, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(6, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(6, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(6, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(6, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(6, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(6, 20) Source(1, 21) + SourceIndex(1) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(7, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(7, 12) Source(1, 28) + SourceIndex(1) +3 >Emitted(7, 13) Source(1, 29) + SourceIndex(1) +4 >Emitted(7, 16) Source(1, 32) + SourceIndex(1) +5 >Emitted(7, 17) Source(1, 33) + SourceIndex(1) +6 >Emitted(7, 26) Source(1, 34) + SourceIndex(1) +7 >Emitted(7, 27) Source(1, 35) + SourceIndex(1) +8 >Emitted(7, 28) Source(1, 36) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(12, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(12, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(12, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(12, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(12, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(12, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(14, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(14, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(14, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(18, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(18, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(18, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(18, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(18, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(18, 20) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(20, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(20, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(20, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(20, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(20, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(20, 16) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/app/", + "sourceFiles": [ + "/src/app/file3.ts", + "/src/app/file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 17, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 19, + "end": 457, + "kind": "prepend", + "data": "/src/lib/module.js", + "texts": [ + { + "pos": 19, + "end": 457, + "kind": "text" + } + ] + }, + { + "pos": 457, + "end": 658, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "prepend", + "data": "/src/lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + }, + { + "pos": 171, + "end": 253, + "kind": "text" + } + ] + } + } +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prologue: (0-17):: use strict + "use strict"; +---------------------------------------------------------------------- +prepend: (19-457):: /src/lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (19-457) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (457-658) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-171):: /src/lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (171-253) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/lib/file1.ts] +export const x = 10;console.log(x); + +//// [/src/lib/module.js] +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(1, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 17) Source(1, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(6, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(6, 12) Source(1, 28) + SourceIndex(1) +3 >Emitted(6, 13) Source(1, 29) + SourceIndex(1) +4 >Emitted(6, 16) Source(1, 32) + SourceIndex(1) +5 >Emitted(6, 17) Source(1, 33) + SourceIndex(1) +6 >Emitted(6, 26) Source(1, 34) + SourceIndex(1) +7 >Emitted(6, 27) Source(1, 35) + SourceIndex(1) +8 >Emitted(6, 28) Source(1, 36) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(11, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(11, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(11, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(11, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(11, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(11, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(13, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(13, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(13, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/lib/", + "sourceFiles": [ + "/src/lib/file0.ts", + "/src/lib/file1.ts", + "/src/lib/file2.ts", + "/src/lib/global.ts" + ], + "js": { + "sections": [ + { + "pos": 89, + "end": 106, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 302, + "end": 319, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 0, + "end": 438, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + } + } +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +prologue: (89-106):: use strict + "use strict"; +---------------------------------------------------------------------- +prologue: (302-319):: use strict + "use strict"; +---------------------------------------------------------------------- +text: (0-438) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js new file mode 100644 index 00000000000..91a02df3b09 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js @@ -0,0 +1,1325 @@ +//// [/src/app/module.js] + "use strict"; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) + t[p[i]] = s[p[i]]; + return t; +}; +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; + function forappfile3Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +var myVar = 30; +function appfile4Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +appfile4Spread.apply(void 0, __spread([10, 20, 30])); +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>> "use strict"; +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) +>>> t[p[i]] = s[p[i]]; +>>> return t; +>>>}; +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(31, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(31, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(31, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(31, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(31, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(31, 17) Source(1, 19) + SourceIndex(0) +--- +>>>function libfile0Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +1->Emitted(32, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(32, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(32, 24) Source(2, 24) + SourceIndex(0) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(33, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(33, 16) Source(2, 39) + SourceIndex(0) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(34, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(34, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(34, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(34, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(34, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(34, 49) Source(2, 39) + SourceIndex(0) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(35, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(35, 31) Source(2, 39) + SourceIndex(0) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(37, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(37, 2) Source(2, 44) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^^^^^^^^^^^^^^^^^-> +1-> + > +2 >libfile0Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(38, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(38, 15) Source(3, 15) + SourceIndex(0) +3 >Emitted(38, 39) Source(3, 19) + SourceIndex(0) +4 >Emitted(38, 40) Source(3, 20) + SourceIndex(0) +5 >Emitted(38, 42) Source(3, 22) + SourceIndex(0) +6 >Emitted(38, 44) Source(3, 24) + SourceIndex(0) +7 >Emitted(38, 46) Source(3, 26) + SourceIndex(0) +8 >Emitted(38, 48) Source(3, 28) + SourceIndex(0) +9 >Emitted(38, 50) Source(3, 30) + SourceIndex(0) +10>Emitted(38, 51) Source(3, 31) + SourceIndex(0) +11>Emitted(38, 54) Source(3, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(42, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(42, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(42, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(42, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(42, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(42, 20) Source(1, 21) + SourceIndex(1) +--- +>>> function forlibfile1Rest() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > function +3 > forlibfile1Rest +1->Emitted(43, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(43, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(43, 29) Source(1, 45) + SourceIndex(1) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(44, 9) Source(2, 1) + SourceIndex(1) +2 >Emitted(44, 13) Source(2, 7) + SourceIndex(1) +3 >Emitted(44, 42) Source(2, 48) + SourceIndex(1) +4 >Emitted(44, 44) Source(2, 9) + SourceIndex(1) +5 >Emitted(44, 52) Source(2, 10) + SourceIndex(1) +6 >Emitted(44, 54) Source(2, 12) + SourceIndex(1) +7 >Emitted(44, 78) Source(2, 48) + SourceIndex(1) +8 >Emitted(44, 79) Source(2, 49) + SourceIndex(1) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(45, 5) Source(3, 1) + SourceIndex(1) +2 >Emitted(45, 6) Source(3, 2) + SourceIndex(1) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(46, 5) Source(3, 2) + SourceIndex(1) +2 >Emitted(46, 12) Source(3, 9) + SourceIndex(1) +3 >Emitted(46, 13) Source(3, 10) + SourceIndex(1) +4 >Emitted(46, 16) Source(3, 13) + SourceIndex(1) +5 >Emitted(46, 17) Source(3, 14) + SourceIndex(1) +6 >Emitted(46, 26) Source(3, 15) + SourceIndex(1) +7 >Emitted(46, 27) Source(3, 16) + SourceIndex(1) +8 >Emitted(46, 28) Source(3, 17) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(51, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(51, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(51, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(51, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(51, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(51, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(53, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(53, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(53, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(53, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(53, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(53, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^-> +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(57, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(57, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(57, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(57, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(57, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(57, 20) Source(1, 21) + SourceIndex(4) +--- +>>> function forappfile3Rest() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >import { x } from "file1"; +2 > function +3 > forappfile3Rest +1->Emitted(58, 5) Source(2, 27) + SourceIndex(4) +2 >Emitted(58, 14) Source(2, 36) + SourceIndex(4) +3 >Emitted(58, 29) Source(2, 51) + SourceIndex(4) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(59, 9) Source(3, 1) + SourceIndex(4) +2 >Emitted(59, 13) Source(3, 7) + SourceIndex(4) +3 >Emitted(59, 42) Source(3, 48) + SourceIndex(4) +4 >Emitted(59, 44) Source(3, 9) + SourceIndex(4) +5 >Emitted(59, 52) Source(3, 10) + SourceIndex(4) +6 >Emitted(59, 54) Source(3, 12) + SourceIndex(4) +7 >Emitted(59, 78) Source(3, 48) + SourceIndex(4) +8 >Emitted(59, 79) Source(3, 49) + SourceIndex(4) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(60, 5) Source(4, 1) + SourceIndex(4) +2 >Emitted(60, 6) Source(4, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(62, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(62, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(62, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(62, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(62, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(62, 16) Source(1, 18) + SourceIndex(5) +--- +>>>function appfile4Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > appfile4Spread +1->Emitted(63, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(63, 10) Source(2, 10) + SourceIndex(5) +3 >Emitted(63, 24) Source(2, 24) + SourceIndex(5) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(64, 5) Source(2, 25) + SourceIndex(5) +2 >Emitted(64, 16) Source(2, 39) + SourceIndex(5) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(65, 10) Source(2, 25) + SourceIndex(5) +2 >Emitted(65, 20) Source(2, 39) + SourceIndex(5) +3 >Emitted(65, 22) Source(2, 25) + SourceIndex(5) +4 >Emitted(65, 43) Source(2, 39) + SourceIndex(5) +5 >Emitted(65, 45) Source(2, 25) + SourceIndex(5) +6 >Emitted(65, 49) Source(2, 39) + SourceIndex(5) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(66, 9) Source(2, 25) + SourceIndex(5) +2 >Emitted(66, 31) Source(2, 39) + SourceIndex(5) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(68, 1) Source(2, 43) + SourceIndex(5) +2 >Emitted(68, 2) Source(2, 44) + SourceIndex(5) +--- +>>>appfile4Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >appfile4Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(69, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(69, 15) Source(3, 15) + SourceIndex(5) +3 >Emitted(69, 39) Source(3, 19) + SourceIndex(5) +4 >Emitted(69, 40) Source(3, 20) + SourceIndex(5) +5 >Emitted(69, 42) Source(3, 22) + SourceIndex(5) +6 >Emitted(69, 44) Source(3, 24) + SourceIndex(5) +7 >Emitted(69, 46) Source(3, 26) + SourceIndex(5) +8 >Emitted(69, 48) Source(3, 28) + SourceIndex(5) +9 >Emitted(69, 50) Source(3, 30) + SourceIndex(5) +10>Emitted(69, 51) Source(3, 31) + SourceIndex(5) +11>Emitted(69, 54) Source(3, 33) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/app/", + "sourceFiles": [ + "/src/app/file3.ts", + "/src/app/file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 17, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 19, + "end": 523, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 525, + "end": 695, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 697, + "end": 1112, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 1114, + "end": 1869, + "kind": "prepend", + "data": "/src/lib/module.js", + "texts": [ + { + "pos": 1114, + "end": 1869, + "kind": "text" + } + ] + }, + { + "pos": 1869, + "end": 2387, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest", + "typescript:read", + "typescript:spread" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 227, + "kind": "prepend", + "data": "/src/lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 227, + "kind": "text" + } + ] + }, + { + "pos": 227, + "end": 365, + "kind": "text" + } + ] + } + } +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prologue: (0-17):: use strict + "use strict"; +---------------------------------------------------------------------- +emitHelpers: (19-523):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (525-695):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (697-1112):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) + t[p[i]] = s[p[i]]; + return t; +}; +---------------------------------------------------------------------- +prepend: (1114-1869):: /src/lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1114-1869) +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (1869-2387) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; + function forappfile3Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +var myVar = 30; +function appfile4Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +appfile4Spread.apply(void 0, __spread([10, 20, 30])); + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-227):: /src/lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-227) +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (227-365) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +declare function appfile4Spread(...b: number[]): void; + +====================================================================== + +//// [/src/lib/file1.ts] +export const x = 10;function forlibfile1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +}console.log(x); + +//// [/src/lib/module.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) + t[p[i]] = s[p[i]]; + return t; +}; +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) +>>> t[p[i]] = s[p[i]]; +>>> return t; +>>>}; +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(30, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(30, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(30, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(30, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(30, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(30, 17) Source(1, 19) + SourceIndex(0) +--- +>>>function libfile0Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +1->Emitted(31, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(31, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(31, 24) Source(2, 24) + SourceIndex(0) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(32, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(32, 16) Source(2, 39) + SourceIndex(0) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(33, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(33, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(33, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(33, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(33, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(33, 49) Source(2, 39) + SourceIndex(0) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(34, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(34, 31) Source(2, 39) + SourceIndex(0) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(36, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(36, 2) Source(2, 44) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^^^^^^^^^^^^^^^^^-> +1-> + > +2 >libfile0Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(37, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(37, 15) Source(3, 15) + SourceIndex(0) +3 >Emitted(37, 39) Source(3, 19) + SourceIndex(0) +4 >Emitted(37, 40) Source(3, 20) + SourceIndex(0) +5 >Emitted(37, 42) Source(3, 22) + SourceIndex(0) +6 >Emitted(37, 44) Source(3, 24) + SourceIndex(0) +7 >Emitted(37, 46) Source(3, 26) + SourceIndex(0) +8 >Emitted(37, 48) Source(3, 28) + SourceIndex(0) +9 >Emitted(37, 50) Source(3, 30) + SourceIndex(0) +10>Emitted(37, 51) Source(3, 31) + SourceIndex(0) +11>Emitted(37, 54) Source(3, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(41, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(41, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(41, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(41, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(41, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(41, 20) Source(1, 21) + SourceIndex(1) +--- +>>> function forlibfile1Rest() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > function +3 > forlibfile1Rest +1->Emitted(42, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(42, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(42, 29) Source(1, 45) + SourceIndex(1) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(43, 9) Source(2, 1) + SourceIndex(1) +2 >Emitted(43, 13) Source(2, 7) + SourceIndex(1) +3 >Emitted(43, 42) Source(2, 48) + SourceIndex(1) +4 >Emitted(43, 44) Source(2, 9) + SourceIndex(1) +5 >Emitted(43, 52) Source(2, 10) + SourceIndex(1) +6 >Emitted(43, 54) Source(2, 12) + SourceIndex(1) +7 >Emitted(43, 78) Source(2, 48) + SourceIndex(1) +8 >Emitted(43, 79) Source(2, 49) + SourceIndex(1) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(44, 5) Source(3, 1) + SourceIndex(1) +2 >Emitted(44, 6) Source(3, 2) + SourceIndex(1) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(45, 5) Source(3, 2) + SourceIndex(1) +2 >Emitted(45, 12) Source(3, 9) + SourceIndex(1) +3 >Emitted(45, 13) Source(3, 10) + SourceIndex(1) +4 >Emitted(45, 16) Source(3, 13) + SourceIndex(1) +5 >Emitted(45, 17) Source(3, 14) + SourceIndex(1) +6 >Emitted(45, 26) Source(3, 15) + SourceIndex(1) +7 >Emitted(45, 27) Source(3, 16) + SourceIndex(1) +8 >Emitted(45, 28) Source(3, 17) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(50, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(50, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(50, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(50, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(50, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(50, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(52, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(52, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(52, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(52, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(52, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(52, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/lib/", + "sourceFiles": [ + "/src/lib/file0.ts", + "/src/lib/file1.ts", + "/src/lib/file2.ts", + "/src/lib/global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 676, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 678, + "end": 1093, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 1380, + "end": 1397, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 1714, + "end": 1731, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 1095, + "end": 1850, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:read", + "typescript:spread", + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 227, + "kind": "text" + } + ] + } + } +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-676):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (678-1093):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) + t[p[i]] = s[p[i]]; + return t; +}; +---------------------------------------------------------------------- +prologue: (1380-1397):: use strict + "use strict"; +---------------------------------------------------------------------- +prologue: (1714-1731):: use strict + "use strict"; +---------------------------------------------------------------------- +text: (1095-1850) +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (0-227) +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js new file mode 100644 index 00000000000..7af8d27d841 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js @@ -0,0 +1,812 @@ +//// [/src/app/module.js] +"use strict"; +"myPrologue"; + "myPrologueFile"; +"myPrologue2"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file2.ts","file4.ts","../lib/file1.ts","../lib/global.ts","file3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ICAZ,gBAAgB,CAAA;ACAhB,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;IFAnC,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AGDpB,IAAM,WAAW,GAAG,EAAE,CAAC;;;ICAvB,YAAY,CAAA;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file2.ts,file4.ts,../lib/file1.ts,../lib/global.ts,file3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>> "myPrologueFile"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^ +1-> +2 > "myPrologueFile" +3 > +1->Emitted(3, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 21) Source(1, 17) + SourceIndex(1) +3 >Emitted(3, 22) Source(1, 17) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>"myPrologue2"; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^-> +1 > +2 >"myPrologue2" +3 > ; +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 14) Source(1, 14) + SourceIndex(2) +3 >Emitted(4, 15) Source(1, 15) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1-> +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue" + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1->Emitted(5, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(5, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(5, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(5, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(5, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(5, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(9, 5) Source(1, 14) + SourceIndex(3) +2 >Emitted(9, 13) Source(1, 14) + SourceIndex(3) +3 >Emitted(9, 14) Source(1, 15) + SourceIndex(3) +4 >Emitted(9, 17) Source(1, 18) + SourceIndex(3) +5 >Emitted(9, 19) Source(1, 20) + SourceIndex(3) +6 >Emitted(9, 20) Source(1, 21) + SourceIndex(3) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(10, 5) Source(1, 21) + SourceIndex(3) +2 >Emitted(10, 12) Source(1, 28) + SourceIndex(3) +3 >Emitted(10, 13) Source(1, 29) + SourceIndex(3) +4 >Emitted(10, 16) Source(1, 32) + SourceIndex(3) +5 >Emitted(10, 17) Source(1, 33) + SourceIndex(3) +6 >Emitted(10, 26) Source(1, 34) + SourceIndex(3) +7 >Emitted(10, 27) Source(1, 35) + SourceIndex(3) +8 >Emitted(10, 28) Source(1, 36) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologueFile"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > "myPrologueFile" +3 > +1 >Emitted(14, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(14, 21) Source(1, 17) + SourceIndex(1) +3 >Emitted(14, 22) Source(1, 17) + SourceIndex(1) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1->Emitted(16, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(16, 13) Source(2, 14) + SourceIndex(1) +3 >Emitted(16, 14) Source(2, 15) + SourceIndex(1) +4 >Emitted(16, 17) Source(2, 18) + SourceIndex(1) +5 >Emitted(16, 19) Source(2, 20) + SourceIndex(1) +6 >Emitted(16, 20) Source(2, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 5) Source(1, 7) + SourceIndex(4) +3 >Emitted(18, 16) Source(1, 18) + SourceIndex(4) +4 >Emitted(18, 19) Source(1, 21) + SourceIndex(4) +5 >Emitted(18, 21) Source(1, 23) + SourceIndex(4) +6 >Emitted(18, 22) Source(1, 24) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologue"; +1->^^^^ +2 > ^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > "myPrologue" +3 > +1->Emitted(21, 5) Source(1, 1) + SourceIndex(5) +2 >Emitted(21, 17) Source(1, 13) + SourceIndex(5) +3 >Emitted(21, 18) Source(1, 13) + SourceIndex(5) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(23, 5) Source(2, 14) + SourceIndex(5) +2 >Emitted(23, 13) Source(2, 14) + SourceIndex(5) +3 >Emitted(23, 14) Source(2, 15) + SourceIndex(5) +4 >Emitted(23, 17) Source(2, 18) + SourceIndex(5) +5 >Emitted(23, 19) Source(2, 20) + SourceIndex(5) +6 >Emitted(23, 20) Source(2, 21) + SourceIndex(5) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 >"myPrologue2"; + > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(25, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(25, 5) Source(2, 7) + SourceIndex(2) +3 >Emitted(25, 10) Source(2, 12) + SourceIndex(2) +4 >Emitted(25, 13) Source(2, 15) + SourceIndex(2) +5 >Emitted(25, 15) Source(2, 17) + SourceIndex(2) +6 >Emitted(25, 16) Source(2, 18) + SourceIndex(2) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/app/", + "sourceFiles": [ + "/src/app/file3.ts", + "/src/app/file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 51, + "kind": "prologue", + "data": "myPrologueFile" + }, + { + "pos": 53, + "end": 67, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 69, + "end": 530, + "kind": "prepend", + "data": "/src/lib/module.js", + "texts": [ + { + "pos": 69, + "end": 530, + "kind": "text" + } + ] + }, + { + "pos": 530, + "end": 750, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 1, + "text": "\"myPrologue2\";", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 14, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue2" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "prepend", + "data": "/src/lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + }, + { + "pos": 171, + "end": 253, + "kind": "text" + } + ] + } + } +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-51):: myPrologueFile + "myPrologueFile"; +---------------------------------------------------------------------- +prologue: (53-67):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prepend: (69-530):: /src/lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (69-530) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (530-750) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-171):: /src/lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (171-253) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/lib/file1.ts] +export const x = 10;console.log(x); + +//// [/src/lib/module.js] +"use strict"; +"myPrologue"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AACZ,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +>>>var myGlob = 20; +1-> +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1->Emitted(3, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(3, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(3, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(3, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(3, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(7, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(7, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(7, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(7, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(7, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(7, 20) Source(1, 21) + SourceIndex(1) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(8, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(8, 12) Source(1, 28) + SourceIndex(1) +3 >Emitted(8, 13) Source(1, 29) + SourceIndex(1) +4 >Emitted(8, 16) Source(1, 32) + SourceIndex(1) +5 >Emitted(8, 17) Source(1, 33) + SourceIndex(1) +6 >Emitted(8, 26) Source(1, 34) + SourceIndex(1) +7 >Emitted(8, 27) Source(1, 35) + SourceIndex(1) +8 >Emitted(8, 28) Source(1, 36) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologueFile"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > "myPrologueFile" +3 > +1 >Emitted(12, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(12, 21) Source(1, 17) + SourceIndex(2) +3 >Emitted(12, 22) Source(1, 17) + SourceIndex(2) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1->Emitted(14, 5) Source(2, 14) + SourceIndex(2) +2 >Emitted(14, 13) Source(2, 14) + SourceIndex(2) +3 >Emitted(14, 14) Source(2, 15) + SourceIndex(2) +4 >Emitted(14, 17) Source(2, 18) + SourceIndex(2) +5 >Emitted(14, 19) Source(2, 20) + SourceIndex(2) +6 >Emitted(14, 20) Source(2, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(16, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(16, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(16, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(16, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(16, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(16, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/lib/", + "sourceFiles": [ + "/src/lib/file0.ts", + "/src/lib/file1.ts", + "/src/lib/file2.ts", + "/src/lib/global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 119, + "end": 136, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 332, + "end": 349, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 351, + "end": 372, + "kind": "prologue", + "data": "myPrologueFile" + }, + { + "pos": 30, + "end": 491, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue\"", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 12, + "expression": { + "pos": 0, + "end": 12, + "text": "myPrologue" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + } + } +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (119-136):: use strict + "use strict"; +---------------------------------------------------------------------- +prologue: (332-349):: use strict + "use strict"; +---------------------------------------------------------------------- +prologue: (351-372):: myPrologueFile + "myPrologueFile"; +---------------------------------------------------------------------- +text: (30-491) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js new file mode 100644 index 00000000000..50b5a222906 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js @@ -0,0 +1,599 @@ +//// [/src/app/module.js] +#!someshebang lib file0 + "use strict"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICDtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>#!someshebang lib file0 +>>> "use strict"; +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >#!someshebang lib file0 + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(3, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(3, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(3, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(3, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(3, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^-> +1->#!someshebang lib file1 + >export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(7, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(7, 13) Source(2, 14) + SourceIndex(1) +3 >Emitted(7, 14) Source(2, 15) + SourceIndex(1) +4 >Emitted(7, 17) Source(2, 18) + SourceIndex(1) +5 >Emitted(7, 19) Source(2, 20) + SourceIndex(1) +6 >Emitted(7, 20) Source(2, 21) + SourceIndex(1) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(8, 5) Source(2, 21) + SourceIndex(1) +2 >Emitted(8, 12) Source(2, 28) + SourceIndex(1) +3 >Emitted(8, 13) Source(2, 29) + SourceIndex(1) +4 >Emitted(8, 16) Source(2, 32) + SourceIndex(1) +5 >Emitted(8, 17) Source(2, 33) + SourceIndex(1) +6 >Emitted(8, 26) Source(2, 34) + SourceIndex(1) +7 >Emitted(8, 27) Source(2, 35) + SourceIndex(1) +8 >Emitted(8, 28) Source(2, 36) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(13, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(13, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(13, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(13, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(13, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(13, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(15, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(15, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(15, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(15, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(15, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->#!someshebang app file3 + >export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(19, 5) Source(2, 14) + SourceIndex(4) +2 >Emitted(19, 13) Source(2, 14) + SourceIndex(4) +3 >Emitted(19, 14) Source(2, 15) + SourceIndex(4) +4 >Emitted(19, 17) Source(2, 18) + SourceIndex(4) +5 >Emitted(19, 19) Source(2, 20) + SourceIndex(4) +6 >Emitted(19, 20) Source(2, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(21, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(21, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(21, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(21, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(21, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(21, 16) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/app/", + "sourceFiles": [ + "/src/app/file3.ts", + "/src/app/file4.ts" + ], + "js": { + "sections": [ + { + "pos": 25, + "end": 42, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 44, + "end": 482, + "kind": "prepend", + "data": "/src/lib/module.js", + "texts": [ + { + "pos": 44, + "end": 482, + "kind": "text" + } + ] + }, + { + "pos": 482, + "end": 683, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 25, + "end": 196, + "kind": "prepend", + "data": "/src/lib/module.d.ts", + "texts": [ + { + "pos": 25, + "end": 196, + "kind": "text" + } + ] + }, + { + "pos": 196, + "end": 278, + "kind": "text" + } + ] + } + } +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prologue: (25-42):: use strict + "use strict"; +---------------------------------------------------------------------- +prepend: (44-482):: /src/lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (44-482) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (482-683) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (25-196):: /src/lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (25-196) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (196-278) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/lib/file1.ts] +#!someshebang lib file1 +export const x = 10;console.log(x); + +//// [/src/lib/module.js] +#!someshebang lib file0 +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICDtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>#!someshebang lib file0 +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >#!someshebang lib file0 + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(2, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(2, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^-> +1->#!someshebang lib file1 + >export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(6, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(6, 13) Source(2, 14) + SourceIndex(1) +3 >Emitted(6, 14) Source(2, 15) + SourceIndex(1) +4 >Emitted(6, 17) Source(2, 18) + SourceIndex(1) +5 >Emitted(6, 19) Source(2, 20) + SourceIndex(1) +6 >Emitted(6, 20) Source(2, 21) + SourceIndex(1) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(7, 5) Source(2, 21) + SourceIndex(1) +2 >Emitted(7, 12) Source(2, 28) + SourceIndex(1) +3 >Emitted(7, 13) Source(2, 29) + SourceIndex(1) +4 >Emitted(7, 16) Source(2, 32) + SourceIndex(1) +5 >Emitted(7, 17) Source(2, 33) + SourceIndex(1) +6 >Emitted(7, 26) Source(2, 34) + SourceIndex(1) +7 >Emitted(7, 27) Source(2, 35) + SourceIndex(1) +8 >Emitted(7, 28) Source(2, 36) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(12, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(12, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(12, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(12, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(12, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(12, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(14, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(14, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(14, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/lib/", + "sourceFiles": [ + "/src/lib/file0.ts", + "/src/lib/file1.ts", + "/src/lib/file2.ts", + "/src/lib/global.ts" + ], + "js": { + "sections": [ + { + "pos": 114, + "end": 131, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 327, + "end": 344, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 25, + "end": 463, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 25, + "end": 196, + "kind": "text" + } + ] + } + } +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +prologue: (114-131):: use strict + "use strict"; +---------------------------------------------------------------------- +prologue: (327-344):: use strict + "use strict"; +---------------------------------------------------------------------- +text: (25-463) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (25-196) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js new file mode 100644 index 00000000000..decb5290854 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js @@ -0,0 +1,3781 @@ +//// [/src/app/module.js] + "use strict"; +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>> "use strict"; +>>>/*@internal*/ var myGlob = 20; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >/*@internal*/ +3 > +4 > const +5 > myGlob +6 > = +7 > 20 +8 > ; +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(2, 15) Source(1, 15) + SourceIndex(0) +4 >Emitted(2, 19) Source(1, 21) + SourceIndex(0) +5 >Emitted(2, 25) Source(1, 27) + SourceIndex(0) +6 >Emitted(2, 28) Source(1, 30) + SourceIndex(0) +7 >Emitted(2, 30) Source(1, 32) + SourceIndex(0) +8 >Emitted(2, 31) Source(1, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(6, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(6, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(6, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(6, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(6, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(6, 20) Source(1, 21) + SourceIndex(1) +--- +>>> var normalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +1->Emitted(7, 5) Source(2, 1) + SourceIndex(1) +--- +>>> /*@internal*/ function normalC() { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->export class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(8, 9) Source(3, 5) + SourceIndex(1) +2 >Emitted(8, 22) Source(3, 18) + SourceIndex(1) +3 >Emitted(8, 23) Source(3, 19) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(9, 9) Source(3, 35) + SourceIndex(1) +2 >Emitted(9, 10) Source(3, 36) + SourceIndex(1) +--- +>>> /*@internal*/ normalC.prototype.method = function () { }; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /*@internal*/ prop: string; + > +2 > /*@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(10, 9) Source(5, 5) + SourceIndex(1) +2 >Emitted(10, 22) Source(5, 18) + SourceIndex(1) +3 >Emitted(10, 23) Source(5, 19) + SourceIndex(1) +4 >Emitted(10, 47) Source(5, 25) + SourceIndex(1) +5 >Emitted(10, 50) Source(5, 19) + SourceIndex(1) +6 >Emitted(10, 64) Source(5, 30) + SourceIndex(1) +7 >Emitted(10, 65) Source(5, 31) + SourceIndex(1) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(11, 9) Source(6, 19) + SourceIndex(1) +2 >Emitted(11, 31) Source(6, 23) + SourceIndex(1) +3 >Emitted(11, 53) Source(6, 24) + SourceIndex(1) +--- +>>> /*@internal*/ get: function () { return 10; }, +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /*@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(12, 13) Source(6, 5) + SourceIndex(1) +2 >Emitted(12, 26) Source(6, 18) + SourceIndex(1) +3 >Emitted(12, 32) Source(6, 19) + SourceIndex(1) +4 >Emitted(12, 46) Source(6, 29) + SourceIndex(1) +5 >Emitted(12, 53) Source(6, 36) + SourceIndex(1) +6 >Emitted(12, 55) Source(6, 38) + SourceIndex(1) +7 >Emitted(12, 56) Source(6, 39) + SourceIndex(1) +8 >Emitted(12, 57) Source(6, 40) + SourceIndex(1) +9 >Emitted(12, 58) Source(6, 41) + SourceIndex(1) +--- +>>> /*@internal*/ set: function (val) { }, +1 >^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(13, 13) Source(7, 5) + SourceIndex(1) +2 >Emitted(13, 26) Source(7, 18) + SourceIndex(1) +3 >Emitted(13, 32) Source(7, 19) + SourceIndex(1) +4 >Emitted(13, 42) Source(7, 25) + SourceIndex(1) +5 >Emitted(13, 45) Source(7, 36) + SourceIndex(1) +6 >Emitted(13, 49) Source(7, 40) + SourceIndex(1) +7 >Emitted(13, 50) Source(7, 41) + SourceIndex(1) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(16, 12) Source(6, 41) + SourceIndex(1) +--- +>>> return normalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(17, 9) Source(8, 1) + SourceIndex(1) +2 >Emitted(17, 23) Source(8, 2) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(18, 5) Source(8, 1) + SourceIndex(1) +2 >Emitted(18, 6) Source(8, 2) + SourceIndex(1) +3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) +4 >Emitted(18, 10) Source(8, 2) + SourceIndex(1) +--- +>>> exports.normalC = normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > normalC +1->Emitted(19, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(19, 31) Source(2, 21) + SourceIndex(1) +--- +>>> var normalN; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} + > +2 > export namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(20, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 9) Source(9, 18) + SourceIndex(1) +3 >Emitted(20, 16) Source(9, 25) + SourceIndex(1) +4 >Emitted(20, 17) Source(18, 2) + SourceIndex(1) +--- +>>> (function (normalN) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export namespace +3 > normalN +1->Emitted(21, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(21, 16) Source(9, 18) + SourceIndex(1) +3 >Emitted(21, 23) Source(9, 25) + SourceIndex(1) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(22, 9) Source(10, 5) + SourceIndex(1) +2 >Emitted(22, 22) Source(10, 18) + SourceIndex(1) +3 >Emitted(22, 23) Source(10, 19) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(23, 13) Source(10, 19) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(24, 14) Source(10, 37) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(25, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(25, 21) Source(10, 37) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(26, 9) Source(10, 36) + SourceIndex(1) +2 >Emitted(26, 10) Source(10, 37) + SourceIndex(1) +3 >Emitted(26, 10) Source(10, 19) + SourceIndex(1) +4 >Emitted(26, 14) Source(10, 37) + SourceIndex(1) +--- +>>> normalN.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(27, 9) Source(10, 32) + SourceIndex(1) +2 >Emitted(27, 18) Source(10, 33) + SourceIndex(1) +3 >Emitted(27, 22) Source(10, 37) + SourceIndex(1) +4 >Emitted(27, 23) Source(10, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function foo() { } +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(28, 9) Source(11, 5) + SourceIndex(1) +2 >Emitted(28, 22) Source(11, 18) + SourceIndex(1) +3 >Emitted(28, 23) Source(11, 19) + SourceIndex(1) +4 >Emitted(28, 32) Source(11, 35) + SourceIndex(1) +5 >Emitted(28, 35) Source(11, 38) + SourceIndex(1) +6 >Emitted(28, 40) Source(11, 42) + SourceIndex(1) +7 >Emitted(28, 41) Source(11, 43) + SourceIndex(1) +--- +>>> normalN.foo = foo; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(29, 9) Source(11, 35) + SourceIndex(1) +2 >Emitted(29, 20) Source(11, 38) + SourceIndex(1) +3 >Emitted(29, 26) Source(11, 43) + SourceIndex(1) +4 >Emitted(29, 27) Source(11, 43) + SourceIndex(1) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(30, 9) Source(12, 5) + SourceIndex(1) +2 >Emitted(30, 22) Source(12, 18) + SourceIndex(1) +3 >Emitted(30, 23) Source(12, 19) + SourceIndex(1) +4 >Emitted(30, 27) Source(12, 36) + SourceIndex(1) +5 >Emitted(30, 40) Source(12, 49) + SourceIndex(1) +6 >Emitted(30, 41) Source(12, 71) + SourceIndex(1) +--- +>>> (function (someNamespace) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(31, 9) Source(12, 19) + SourceIndex(1) +2 >Emitted(31, 20) Source(12, 36) + SourceIndex(1) +3 >Emitted(31, 33) Source(12, 49) + SourceIndex(1) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(32, 13) Source(12, 52) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(33, 17) Source(12, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(34, 18) Source(12, 69) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(35, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(35, 25) Source(12, 69) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(36, 13) Source(12, 68) + SourceIndex(1) +2 >Emitted(36, 14) Source(12, 69) + SourceIndex(1) +3 >Emitted(36, 14) Source(12, 52) + SourceIndex(1) +4 >Emitted(36, 18) Source(12, 69) + SourceIndex(1) +--- +>>> someNamespace.C = C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(37, 13) Source(12, 65) + SourceIndex(1) +2 >Emitted(37, 28) Source(12, 66) + SourceIndex(1) +3 >Emitted(37, 32) Source(12, 69) + SourceIndex(1) +4 >Emitted(37, 33) Source(12, 69) + SourceIndex(1) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(38, 9) Source(12, 70) + SourceIndex(1) +2 >Emitted(38, 10) Source(12, 71) + SourceIndex(1) +3 >Emitted(38, 12) Source(12, 36) + SourceIndex(1) +4 >Emitted(38, 25) Source(12, 49) + SourceIndex(1) +5 >Emitted(38, 28) Source(12, 36) + SourceIndex(1) +6 >Emitted(38, 49) Source(12, 49) + SourceIndex(1) +7 >Emitted(38, 54) Source(12, 36) + SourceIndex(1) +8 >Emitted(38, 75) Source(12, 49) + SourceIndex(1) +9 >Emitted(38, 83) Source(12, 71) + SourceIndex(1) +--- +>>> /*@internal*/ var someOther; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(39, 9) Source(13, 5) + SourceIndex(1) +2 >Emitted(39, 22) Source(13, 18) + SourceIndex(1) +3 >Emitted(39, 23) Source(13, 19) + SourceIndex(1) +4 >Emitted(39, 27) Source(13, 36) + SourceIndex(1) +5 >Emitted(39, 36) Source(13, 45) + SourceIndex(1) +6 >Emitted(39, 37) Source(13, 85) + SourceIndex(1) +--- +>>> (function (someOther) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(40, 9) Source(13, 19) + SourceIndex(1) +2 >Emitted(40, 20) Source(13, 36) + SourceIndex(1) +3 >Emitted(40, 29) Source(13, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(41, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(41, 17) Source(13, 46) + SourceIndex(1) +3 >Emitted(41, 26) Source(13, 55) + SourceIndex(1) +4 >Emitted(41, 27) Source(13, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(42, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(42, 24) Source(13, 46) + SourceIndex(1) +3 >Emitted(42, 33) Source(13, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(43, 17) Source(13, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(44, 21) Source(13, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(45, 22) Source(13, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(46, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(46, 37) Source(13, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(47, 17) Source(13, 82) + SourceIndex(1) +2 >Emitted(47, 18) Source(13, 83) + SourceIndex(1) +3 >Emitted(47, 18) Source(13, 58) + SourceIndex(1) +4 >Emitted(47, 22) Source(13, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(48, 17) Source(13, 71) + SourceIndex(1) +2 >Emitted(48, 36) Source(13, 80) + SourceIndex(1) +3 >Emitted(48, 48) Source(13, 83) + SourceIndex(1) +4 >Emitted(48, 49) Source(13, 83) + SourceIndex(1) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(49, 13) Source(13, 84) + SourceIndex(1) +2 >Emitted(49, 14) Source(13, 85) + SourceIndex(1) +3 >Emitted(49, 16) Source(13, 46) + SourceIndex(1) +4 >Emitted(49, 25) Source(13, 55) + SourceIndex(1) +5 >Emitted(49, 28) Source(13, 46) + SourceIndex(1) +6 >Emitted(49, 47) Source(13, 55) + SourceIndex(1) +7 >Emitted(49, 52) Source(13, 46) + SourceIndex(1) +8 >Emitted(49, 71) Source(13, 55) + SourceIndex(1) +9 >Emitted(49, 79) Source(13, 85) + SourceIndex(1) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(50, 9) Source(13, 84) + SourceIndex(1) +2 >Emitted(50, 10) Source(13, 85) + SourceIndex(1) +3 >Emitted(50, 12) Source(13, 36) + SourceIndex(1) +4 >Emitted(50, 21) Source(13, 45) + SourceIndex(1) +5 >Emitted(50, 24) Source(13, 36) + SourceIndex(1) +6 >Emitted(50, 41) Source(13, 45) + SourceIndex(1) +7 >Emitted(50, 46) Source(13, 36) + SourceIndex(1) +8 >Emitted(50, 63) Source(13, 45) + SourceIndex(1) +9 >Emitted(50, 71) Source(13, 85) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(51, 9) Source(14, 5) + SourceIndex(1) +2 >Emitted(51, 22) Source(14, 18) + SourceIndex(1) +3 >Emitted(51, 23) Source(14, 33) + SourceIndex(1) +4 >Emitted(51, 41) Source(14, 43) + SourceIndex(1) +5 >Emitted(51, 44) Source(14, 46) + SourceIndex(1) +6 >Emitted(51, 57) Source(14, 59) + SourceIndex(1) +7 >Emitted(51, 58) Source(14, 60) + SourceIndex(1) +8 >Emitted(51, 59) Source(14, 61) + SourceIndex(1) +9 >Emitted(51, 60) Source(14, 62) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.internalConst = 10; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(52, 9) Source(16, 5) + SourceIndex(1) +2 >Emitted(52, 22) Source(16, 18) + SourceIndex(1) +3 >Emitted(52, 23) Source(16, 32) + SourceIndex(1) +4 >Emitted(52, 44) Source(16, 45) + SourceIndex(1) +5 >Emitted(52, 47) Source(16, 48) + SourceIndex(1) +6 >Emitted(52, 49) Source(16, 50) + SourceIndex(1) +7 >Emitted(52, 50) Source(16, 51) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(53, 9) Source(17, 5) + SourceIndex(1) +2 >Emitted(53, 22) Source(17, 18) + SourceIndex(1) +3 >Emitted(53, 23) Source(17, 19) + SourceIndex(1) +4 >Emitted(53, 27) Source(17, 31) + SourceIndex(1) +5 >Emitted(53, 39) Source(17, 55) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(54, 9) Source(17, 19) + SourceIndex(1) +2 >Emitted(54, 20) Source(17, 31) + SourceIndex(1) +3 >Emitted(54, 32) Source(17, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(55, 13) Source(17, 46) + SourceIndex(1) +2 >Emitted(55, 54) Source(17, 47) + SourceIndex(1) +3 >Emitted(55, 55) Source(17, 47) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(56, 13) Source(17, 49) + SourceIndex(1) +2 >Emitted(56, 54) Source(17, 50) + SourceIndex(1) +3 >Emitted(56, 55) Source(17, 50) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(57, 13) Source(17, 52) + SourceIndex(1) +2 >Emitted(57, 54) Source(17, 53) + SourceIndex(1) +3 >Emitted(57, 55) Source(17, 53) + SourceIndex(1) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(58, 9) Source(17, 54) + SourceIndex(1) +2 >Emitted(58, 10) Source(17, 55) + SourceIndex(1) +3 >Emitted(58, 12) Source(17, 31) + SourceIndex(1) +4 >Emitted(58, 24) Source(17, 43) + SourceIndex(1) +5 >Emitted(58, 27) Source(17, 31) + SourceIndex(1) +6 >Emitted(58, 47) Source(17, 43) + SourceIndex(1) +7 >Emitted(58, 52) Source(17, 31) + SourceIndex(1) +8 >Emitted(58, 72) Source(17, 43) + SourceIndex(1) +9 >Emitted(58, 80) Source(17, 55) + SourceIndex(1) +--- +>>> })(normalN = exports.normalN || (exports.normalN = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +10> ^^^-> +1 > + > +2 > } +3 > +4 > normalN +5 > +6 > normalN +7 > +8 > normalN +9 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(59, 5) Source(18, 1) + SourceIndex(1) +2 >Emitted(59, 6) Source(18, 2) + SourceIndex(1) +3 >Emitted(59, 8) Source(9, 18) + SourceIndex(1) +4 >Emitted(59, 15) Source(9, 25) + SourceIndex(1) +5 >Emitted(59, 18) Source(9, 18) + SourceIndex(1) +6 >Emitted(59, 33) Source(9, 25) + SourceIndex(1) +7 >Emitted(59, 38) Source(9, 18) + SourceIndex(1) +8 >Emitted(59, 53) Source(9, 25) + SourceIndex(1) +9 >Emitted(59, 61) Source(18, 2) + SourceIndex(1) +--- +>>> /*@internal*/ var internalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 > /*@internal*/ +3 > +1->Emitted(60, 5) Source(19, 1) + SourceIndex(1) +2 >Emitted(60, 18) Source(19, 14) + SourceIndex(1) +3 >Emitted(60, 19) Source(19, 15) + SourceIndex(1) +--- +>>> function internalC() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(61, 9) Source(19, 15) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class internalC { +2 > } +1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(62, 10) Source(19, 40) + SourceIndex(1) +--- +>>> return internalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(63, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(63, 25) Source(19, 40) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class internalC {} +1 >Emitted(64, 5) Source(19, 39) + SourceIndex(1) +2 >Emitted(64, 6) Source(19, 40) + SourceIndex(1) +3 >Emitted(64, 6) Source(19, 15) + SourceIndex(1) +4 >Emitted(64, 10) Source(19, 40) + SourceIndex(1) +--- +>>> exports.internalC = internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^-> +1-> +2 > internalC +1->Emitted(65, 5) Source(19, 28) + SourceIndex(1) +2 >Emitted(65, 35) Source(19, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function internalfoo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> {} + > +2 > /*@internal*/ +3 > +4 > export function +5 > internalfoo +6 > () { +7 > } +1->Emitted(66, 5) Source(20, 1) + SourceIndex(1) +2 >Emitted(66, 18) Source(20, 14) + SourceIndex(1) +3 >Emitted(66, 19) Source(20, 15) + SourceIndex(1) +4 >Emitted(66, 28) Source(20, 31) + SourceIndex(1) +5 >Emitted(66, 39) Source(20, 42) + SourceIndex(1) +6 >Emitted(66, 44) Source(20, 46) + SourceIndex(1) +7 >Emitted(66, 45) Source(20, 47) + SourceIndex(1) +--- +>>> exports.internalfoo = internalfoo; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^-> +1 > +2 > export function internalfoo() {} +1 >Emitted(67, 5) Source(20, 15) + SourceIndex(1) +2 >Emitted(67, 39) Source(20, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalNamespace +6 > { export class someClass {} } +1->Emitted(68, 5) Source(21, 1) + SourceIndex(1) +2 >Emitted(68, 18) Source(21, 14) + SourceIndex(1) +3 >Emitted(68, 19) Source(21, 15) + SourceIndex(1) +4 >Emitted(68, 23) Source(21, 32) + SourceIndex(1) +5 >Emitted(68, 40) Source(21, 49) + SourceIndex(1) +6 >Emitted(68, 41) Source(21, 79) + SourceIndex(1) +--- +>>> (function (internalNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > internalNamespace +1 >Emitted(69, 5) Source(21, 15) + SourceIndex(1) +2 >Emitted(69, 16) Source(21, 32) + SourceIndex(1) +3 >Emitted(69, 33) Source(21, 49) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(70, 9) Source(21, 52) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(71, 13) Source(21, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(72, 14) Source(21, 77) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(73, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(73, 29) Source(21, 77) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(74, 9) Source(21, 76) + SourceIndex(1) +2 >Emitted(74, 10) Source(21, 77) + SourceIndex(1) +3 >Emitted(74, 10) Source(21, 52) + SourceIndex(1) +4 >Emitted(74, 14) Source(21, 77) + SourceIndex(1) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(75, 9) Source(21, 65) + SourceIndex(1) +2 >Emitted(75, 36) Source(21, 74) + SourceIndex(1) +3 >Emitted(75, 48) Source(21, 77) + SourceIndex(1) +4 >Emitted(75, 49) Source(21, 77) + SourceIndex(1) +--- +>>> })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > +8 > internalNamespace +9 > { export class someClass {} } +1->Emitted(76, 5) Source(21, 78) + SourceIndex(1) +2 >Emitted(76, 6) Source(21, 79) + SourceIndex(1) +3 >Emitted(76, 8) Source(21, 32) + SourceIndex(1) +4 >Emitted(76, 25) Source(21, 49) + SourceIndex(1) +5 >Emitted(76, 28) Source(21, 32) + SourceIndex(1) +6 >Emitted(76, 53) Source(21, 49) + SourceIndex(1) +7 >Emitted(76, 58) Source(21, 32) + SourceIndex(1) +8 >Emitted(76, 83) Source(21, 49) + SourceIndex(1) +9 >Emitted(76, 91) Source(21, 79) + SourceIndex(1) +--- +>>> /*@internal*/ var internalOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(77, 5) Source(22, 1) + SourceIndex(1) +2 >Emitted(77, 18) Source(22, 14) + SourceIndex(1) +3 >Emitted(77, 19) Source(22, 15) + SourceIndex(1) +4 >Emitted(77, 23) Source(22, 32) + SourceIndex(1) +5 >Emitted(77, 36) Source(22, 45) + SourceIndex(1) +6 >Emitted(77, 37) Source(22, 85) + SourceIndex(1) +--- +>>> (function (internalOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 > export namespace +3 > internalOther +1 >Emitted(78, 5) Source(22, 15) + SourceIndex(1) +2 >Emitted(78, 16) Source(22, 32) + SourceIndex(1) +3 >Emitted(78, 29) Source(22, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(79, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(79, 13) Source(22, 46) + SourceIndex(1) +3 >Emitted(79, 22) Source(22, 55) + SourceIndex(1) +4 >Emitted(79, 23) Source(22, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(80, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(80, 20) Source(22, 46) + SourceIndex(1) +3 >Emitted(80, 29) Source(22, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(81, 13) Source(22, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(82, 17) Source(22, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(83, 18) Source(22, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(84, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(84, 33) Source(22, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(85, 13) Source(22, 82) + SourceIndex(1) +2 >Emitted(85, 14) Source(22, 83) + SourceIndex(1) +3 >Emitted(85, 14) Source(22, 58) + SourceIndex(1) +4 >Emitted(85, 18) Source(22, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(86, 13) Source(22, 71) + SourceIndex(1) +2 >Emitted(86, 32) Source(22, 80) + SourceIndex(1) +3 >Emitted(86, 44) Source(22, 83) + SourceIndex(1) +4 >Emitted(86, 45) Source(22, 83) + SourceIndex(1) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(87, 9) Source(22, 84) + SourceIndex(1) +2 >Emitted(87, 10) Source(22, 85) + SourceIndex(1) +3 >Emitted(87, 12) Source(22, 46) + SourceIndex(1) +4 >Emitted(87, 21) Source(22, 55) + SourceIndex(1) +5 >Emitted(87, 24) Source(22, 46) + SourceIndex(1) +6 >Emitted(87, 47) Source(22, 55) + SourceIndex(1) +7 >Emitted(87, 52) Source(22, 46) + SourceIndex(1) +8 >Emitted(87, 75) Source(22, 55) + SourceIndex(1) +9 >Emitted(87, 83) Source(22, 85) + SourceIndex(1) +--- +>>> })(internalOther = exports.internalOther || (exports.internalOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > internalOther +5 > +6 > internalOther +7 > +8 > internalOther +9 > .something { export class someClass {} } +1 >Emitted(88, 5) Source(22, 84) + SourceIndex(1) +2 >Emitted(88, 6) Source(22, 85) + SourceIndex(1) +3 >Emitted(88, 8) Source(22, 32) + SourceIndex(1) +4 >Emitted(88, 21) Source(22, 45) + SourceIndex(1) +5 >Emitted(88, 24) Source(22, 32) + SourceIndex(1) +6 >Emitted(88, 45) Source(22, 45) + SourceIndex(1) +7 >Emitted(88, 50) Source(22, 32) + SourceIndex(1) +8 >Emitted(88, 71) Source(22, 45) + SourceIndex(1) +9 >Emitted(88, 79) Source(22, 85) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalImport = internalNamespace.someClass; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1 >Emitted(89, 5) Source(23, 1) + SourceIndex(1) +2 >Emitted(89, 18) Source(23, 14) + SourceIndex(1) +3 >Emitted(89, 19) Source(23, 29) + SourceIndex(1) +4 >Emitted(89, 27) Source(23, 29) + SourceIndex(1) +5 >Emitted(89, 41) Source(23, 43) + SourceIndex(1) +6 >Emitted(89, 44) Source(23, 46) + SourceIndex(1) +7 >Emitted(89, 61) Source(23, 63) + SourceIndex(1) +8 >Emitted(89, 62) Source(23, 64) + SourceIndex(1) +9 >Emitted(89, 71) Source(23, 73) + SourceIndex(1) +10>Emitted(89, 72) Source(23, 74) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(90, 5) Source(25, 1) + SourceIndex(1) +2 >Emitted(90, 18) Source(25, 14) + SourceIndex(1) +3 >Emitted(90, 19) Source(25, 28) + SourceIndex(1) +4 >Emitted(90, 27) Source(25, 28) + SourceIndex(1) +5 >Emitted(90, 40) Source(25, 41) + SourceIndex(1) +6 >Emitted(90, 43) Source(25, 44) + SourceIndex(1) +7 >Emitted(90, 45) Source(25, 46) + SourceIndex(1) +8 >Emitted(90, 46) Source(25, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(91, 5) Source(26, 1) + SourceIndex(1) +2 >Emitted(91, 18) Source(26, 14) + SourceIndex(1) +3 >Emitted(91, 19) Source(26, 15) + SourceIndex(1) +4 >Emitted(91, 23) Source(26, 27) + SourceIndex(1) +5 >Emitted(91, 35) Source(26, 51) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(92, 5) Source(26, 15) + SourceIndex(1) +2 >Emitted(92, 16) Source(26, 27) + SourceIndex(1) +3 >Emitted(92, 28) Source(26, 39) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(93, 9) Source(26, 42) + SourceIndex(1) +2 >Emitted(93, 50) Source(26, 43) + SourceIndex(1) +3 >Emitted(93, 51) Source(26, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(94, 9) Source(26, 45) + SourceIndex(1) +2 >Emitted(94, 50) Source(26, 46) + SourceIndex(1) +3 >Emitted(94, 51) Source(26, 46) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(95, 9) Source(26, 48) + SourceIndex(1) +2 >Emitted(95, 50) Source(26, 49) + SourceIndex(1) +3 >Emitted(95, 51) Source(26, 49) + SourceIndex(1) +--- +>>> })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(96, 5) Source(26, 50) + SourceIndex(1) +2 >Emitted(96, 6) Source(26, 51) + SourceIndex(1) +3 >Emitted(96, 8) Source(26, 27) + SourceIndex(1) +4 >Emitted(96, 20) Source(26, 39) + SourceIndex(1) +5 >Emitted(96, 23) Source(26, 27) + SourceIndex(1) +6 >Emitted(96, 43) Source(26, 39) + SourceIndex(1) +7 >Emitted(96, 48) Source(26, 27) + SourceIndex(1) +8 >Emitted(96, 68) Source(26, 39) + SourceIndex(1) +9 >Emitted(96, 76) Source(26, 51) + SourceIndex(1) +--- +>>> console.log(exports.x); +1 >^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1 > +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1 >Emitted(97, 5) Source(26, 51) + SourceIndex(1) +2 >Emitted(97, 12) Source(26, 58) + SourceIndex(1) +3 >Emitted(97, 13) Source(26, 59) + SourceIndex(1) +4 >Emitted(97, 16) Source(26, 62) + SourceIndex(1) +5 >Emitted(97, 17) Source(26, 63) + SourceIndex(1) +6 >Emitted(97, 26) Source(26, 64) + SourceIndex(1) +7 >Emitted(97, 27) Source(26, 65) + SourceIndex(1) +8 >Emitted(97, 28) Source(26, 66) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(102, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(102, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(102, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(102, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(102, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(102, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(104, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(104, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(104, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(104, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(104, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(104, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(108, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(108, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(108, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(108, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(108, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(108, 20) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(110, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(110, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(110, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(110, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(110, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(110, 16) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/app/", + "sourceFiles": [ + "/src/app/file3.ts", + "/src/app/file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 17, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 19, + "end": 4177, + "kind": "prepend", + "data": "/src/lib/module.js", + "texts": [ + { + "pos": 19, + "end": 4177, + "kind": "text" + } + ] + }, + { + "pos": 4177, + "end": 4378, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 217, + "kind": "prepend", + "data": "/src/lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 217, + "kind": "text" + } + ] + }, + { + "pos": 217, + "end": 299, + "kind": "text" + } + ] + } + } +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prologue: (0-17):: use strict + "use strict"; +---------------------------------------------------------------------- +prepend: (19-4177):: /src/lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (19-4177) +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (4177-4378) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-217):: /src/lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-217) +declare module "file1" { + export const x = 10; + export class normalC { + } + export namespace normalN { + } +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (217-299) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/lib/file1.ts] +export const x = 10; +export class normalC { + /*@internal*/ constructor() { } + /*@internal*/ prop: string; + /*@internal*/ method() { } + /*@internal*/ get c() { return 10; } + /*@internal*/ set c(val: number) { } +} +export namespace normalN { + /*@internal*/ export class C { } + /*@internal*/ export function foo() {} + /*@internal*/ export namespace someNamespace { export class C {} } + /*@internal*/ export namespace someOther.something { export class someClass {} } + /*@internal*/ export import someImport = someNamespace.C; + /*@internal*/ export type internalType = internalC; + /*@internal*/ export const internalConst = 10; + /*@internal*/ export enum internalEnum { a, b, c } +} +/*@internal*/ export class internalC {} +/*@internal*/ export function internalfoo() {} +/*@internal*/ export namespace internalNamespace { export class someClass {} } +/*@internal*/ export namespace internalOther.something { export class someClass {} } +/*@internal*/ export import internalImport = internalNamespace.someClass; +/*@internal*/ export type internalType = internalC; +/*@internal*/ export const internalConst = 10; +/*@internal*/ export enum internalEnum { a, b, c }console.log(x); + +//// [/src/lib/module.js] +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICzBpD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>/*@internal*/ var myGlob = 20; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >/*@internal*/ +3 > +4 > const +5 > myGlob +6 > = +7 > 20 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) +4 >Emitted(1, 19) Source(1, 21) + SourceIndex(0) +5 >Emitted(1, 25) Source(1, 27) + SourceIndex(0) +6 >Emitted(1, 28) Source(1, 30) + SourceIndex(0) +7 >Emitted(1, 30) Source(1, 32) + SourceIndex(0) +8 >Emitted(1, 31) Source(1, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) +--- +>>> var normalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +1->Emitted(6, 5) Source(2, 1) + SourceIndex(1) +--- +>>> /*@internal*/ function normalC() { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->export class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(7, 9) Source(3, 5) + SourceIndex(1) +2 >Emitted(7, 22) Source(3, 18) + SourceIndex(1) +3 >Emitted(7, 23) Source(3, 19) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(8, 9) Source(3, 35) + SourceIndex(1) +2 >Emitted(8, 10) Source(3, 36) + SourceIndex(1) +--- +>>> /*@internal*/ normalC.prototype.method = function () { }; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /*@internal*/ prop: string; + > +2 > /*@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(9, 9) Source(5, 5) + SourceIndex(1) +2 >Emitted(9, 22) Source(5, 18) + SourceIndex(1) +3 >Emitted(9, 23) Source(5, 19) + SourceIndex(1) +4 >Emitted(9, 47) Source(5, 25) + SourceIndex(1) +5 >Emitted(9, 50) Source(5, 19) + SourceIndex(1) +6 >Emitted(9, 64) Source(5, 30) + SourceIndex(1) +7 >Emitted(9, 65) Source(5, 31) + SourceIndex(1) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(10, 9) Source(6, 19) + SourceIndex(1) +2 >Emitted(10, 31) Source(6, 23) + SourceIndex(1) +3 >Emitted(10, 53) Source(6, 24) + SourceIndex(1) +--- +>>> /*@internal*/ get: function () { return 10; }, +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /*@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(11, 13) Source(6, 5) + SourceIndex(1) +2 >Emitted(11, 26) Source(6, 18) + SourceIndex(1) +3 >Emitted(11, 32) Source(6, 19) + SourceIndex(1) +4 >Emitted(11, 46) Source(6, 29) + SourceIndex(1) +5 >Emitted(11, 53) Source(6, 36) + SourceIndex(1) +6 >Emitted(11, 55) Source(6, 38) + SourceIndex(1) +7 >Emitted(11, 56) Source(6, 39) + SourceIndex(1) +8 >Emitted(11, 57) Source(6, 40) + SourceIndex(1) +9 >Emitted(11, 58) Source(6, 41) + SourceIndex(1) +--- +>>> /*@internal*/ set: function (val) { }, +1 >^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(12, 13) Source(7, 5) + SourceIndex(1) +2 >Emitted(12, 26) Source(7, 18) + SourceIndex(1) +3 >Emitted(12, 32) Source(7, 19) + SourceIndex(1) +4 >Emitted(12, 42) Source(7, 25) + SourceIndex(1) +5 >Emitted(12, 45) Source(7, 36) + SourceIndex(1) +6 >Emitted(12, 49) Source(7, 40) + SourceIndex(1) +7 >Emitted(12, 50) Source(7, 41) + SourceIndex(1) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(15, 12) Source(6, 41) + SourceIndex(1) +--- +>>> return normalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(16, 9) Source(8, 1) + SourceIndex(1) +2 >Emitted(16, 23) Source(8, 2) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(17, 5) Source(8, 1) + SourceIndex(1) +2 >Emitted(17, 6) Source(8, 2) + SourceIndex(1) +3 >Emitted(17, 6) Source(2, 1) + SourceIndex(1) +4 >Emitted(17, 10) Source(8, 2) + SourceIndex(1) +--- +>>> exports.normalC = normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > normalC +1->Emitted(18, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(18, 31) Source(2, 21) + SourceIndex(1) +--- +>>> var normalN; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} + > +2 > export namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(19, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(19, 9) Source(9, 18) + SourceIndex(1) +3 >Emitted(19, 16) Source(9, 25) + SourceIndex(1) +4 >Emitted(19, 17) Source(18, 2) + SourceIndex(1) +--- +>>> (function (normalN) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export namespace +3 > normalN +1->Emitted(20, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 16) Source(9, 18) + SourceIndex(1) +3 >Emitted(20, 23) Source(9, 25) + SourceIndex(1) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(21, 9) Source(10, 5) + SourceIndex(1) +2 >Emitted(21, 22) Source(10, 18) + SourceIndex(1) +3 >Emitted(21, 23) Source(10, 19) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(22, 13) Source(10, 19) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(23, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(23, 14) Source(10, 37) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(24, 21) Source(10, 37) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(25, 9) Source(10, 36) + SourceIndex(1) +2 >Emitted(25, 10) Source(10, 37) + SourceIndex(1) +3 >Emitted(25, 10) Source(10, 19) + SourceIndex(1) +4 >Emitted(25, 14) Source(10, 37) + SourceIndex(1) +--- +>>> normalN.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(26, 9) Source(10, 32) + SourceIndex(1) +2 >Emitted(26, 18) Source(10, 33) + SourceIndex(1) +3 >Emitted(26, 22) Source(10, 37) + SourceIndex(1) +4 >Emitted(26, 23) Source(10, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function foo() { } +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(27, 9) Source(11, 5) + SourceIndex(1) +2 >Emitted(27, 22) Source(11, 18) + SourceIndex(1) +3 >Emitted(27, 23) Source(11, 19) + SourceIndex(1) +4 >Emitted(27, 32) Source(11, 35) + SourceIndex(1) +5 >Emitted(27, 35) Source(11, 38) + SourceIndex(1) +6 >Emitted(27, 40) Source(11, 42) + SourceIndex(1) +7 >Emitted(27, 41) Source(11, 43) + SourceIndex(1) +--- +>>> normalN.foo = foo; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(28, 9) Source(11, 35) + SourceIndex(1) +2 >Emitted(28, 20) Source(11, 38) + SourceIndex(1) +3 >Emitted(28, 26) Source(11, 43) + SourceIndex(1) +4 >Emitted(28, 27) Source(11, 43) + SourceIndex(1) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(29, 9) Source(12, 5) + SourceIndex(1) +2 >Emitted(29, 22) Source(12, 18) + SourceIndex(1) +3 >Emitted(29, 23) Source(12, 19) + SourceIndex(1) +4 >Emitted(29, 27) Source(12, 36) + SourceIndex(1) +5 >Emitted(29, 40) Source(12, 49) + SourceIndex(1) +6 >Emitted(29, 41) Source(12, 71) + SourceIndex(1) +--- +>>> (function (someNamespace) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(30, 9) Source(12, 19) + SourceIndex(1) +2 >Emitted(30, 20) Source(12, 36) + SourceIndex(1) +3 >Emitted(30, 33) Source(12, 49) + SourceIndex(1) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(31, 13) Source(12, 52) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(32, 17) Source(12, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(33, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(33, 18) Source(12, 69) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(34, 25) Source(12, 69) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(35, 13) Source(12, 68) + SourceIndex(1) +2 >Emitted(35, 14) Source(12, 69) + SourceIndex(1) +3 >Emitted(35, 14) Source(12, 52) + SourceIndex(1) +4 >Emitted(35, 18) Source(12, 69) + SourceIndex(1) +--- +>>> someNamespace.C = C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(36, 13) Source(12, 65) + SourceIndex(1) +2 >Emitted(36, 28) Source(12, 66) + SourceIndex(1) +3 >Emitted(36, 32) Source(12, 69) + SourceIndex(1) +4 >Emitted(36, 33) Source(12, 69) + SourceIndex(1) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(37, 9) Source(12, 70) + SourceIndex(1) +2 >Emitted(37, 10) Source(12, 71) + SourceIndex(1) +3 >Emitted(37, 12) Source(12, 36) + SourceIndex(1) +4 >Emitted(37, 25) Source(12, 49) + SourceIndex(1) +5 >Emitted(37, 28) Source(12, 36) + SourceIndex(1) +6 >Emitted(37, 49) Source(12, 49) + SourceIndex(1) +7 >Emitted(37, 54) Source(12, 36) + SourceIndex(1) +8 >Emitted(37, 75) Source(12, 49) + SourceIndex(1) +9 >Emitted(37, 83) Source(12, 71) + SourceIndex(1) +--- +>>> /*@internal*/ var someOther; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(38, 9) Source(13, 5) + SourceIndex(1) +2 >Emitted(38, 22) Source(13, 18) + SourceIndex(1) +3 >Emitted(38, 23) Source(13, 19) + SourceIndex(1) +4 >Emitted(38, 27) Source(13, 36) + SourceIndex(1) +5 >Emitted(38, 36) Source(13, 45) + SourceIndex(1) +6 >Emitted(38, 37) Source(13, 85) + SourceIndex(1) +--- +>>> (function (someOther) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(39, 9) Source(13, 19) + SourceIndex(1) +2 >Emitted(39, 20) Source(13, 36) + SourceIndex(1) +3 >Emitted(39, 29) Source(13, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(40, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(40, 17) Source(13, 46) + SourceIndex(1) +3 >Emitted(40, 26) Source(13, 55) + SourceIndex(1) +4 >Emitted(40, 27) Source(13, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(41, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(41, 24) Source(13, 46) + SourceIndex(1) +3 >Emitted(41, 33) Source(13, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(42, 17) Source(13, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(43, 21) Source(13, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(44, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(44, 22) Source(13, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(45, 37) Source(13, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(46, 17) Source(13, 82) + SourceIndex(1) +2 >Emitted(46, 18) Source(13, 83) + SourceIndex(1) +3 >Emitted(46, 18) Source(13, 58) + SourceIndex(1) +4 >Emitted(46, 22) Source(13, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(47, 17) Source(13, 71) + SourceIndex(1) +2 >Emitted(47, 36) Source(13, 80) + SourceIndex(1) +3 >Emitted(47, 48) Source(13, 83) + SourceIndex(1) +4 >Emitted(47, 49) Source(13, 83) + SourceIndex(1) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(48, 13) Source(13, 84) + SourceIndex(1) +2 >Emitted(48, 14) Source(13, 85) + SourceIndex(1) +3 >Emitted(48, 16) Source(13, 46) + SourceIndex(1) +4 >Emitted(48, 25) Source(13, 55) + SourceIndex(1) +5 >Emitted(48, 28) Source(13, 46) + SourceIndex(1) +6 >Emitted(48, 47) Source(13, 55) + SourceIndex(1) +7 >Emitted(48, 52) Source(13, 46) + SourceIndex(1) +8 >Emitted(48, 71) Source(13, 55) + SourceIndex(1) +9 >Emitted(48, 79) Source(13, 85) + SourceIndex(1) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(49, 9) Source(13, 84) + SourceIndex(1) +2 >Emitted(49, 10) Source(13, 85) + SourceIndex(1) +3 >Emitted(49, 12) Source(13, 36) + SourceIndex(1) +4 >Emitted(49, 21) Source(13, 45) + SourceIndex(1) +5 >Emitted(49, 24) Source(13, 36) + SourceIndex(1) +6 >Emitted(49, 41) Source(13, 45) + SourceIndex(1) +7 >Emitted(49, 46) Source(13, 36) + SourceIndex(1) +8 >Emitted(49, 63) Source(13, 45) + SourceIndex(1) +9 >Emitted(49, 71) Source(13, 85) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(50, 9) Source(14, 5) + SourceIndex(1) +2 >Emitted(50, 22) Source(14, 18) + SourceIndex(1) +3 >Emitted(50, 23) Source(14, 33) + SourceIndex(1) +4 >Emitted(50, 41) Source(14, 43) + SourceIndex(1) +5 >Emitted(50, 44) Source(14, 46) + SourceIndex(1) +6 >Emitted(50, 57) Source(14, 59) + SourceIndex(1) +7 >Emitted(50, 58) Source(14, 60) + SourceIndex(1) +8 >Emitted(50, 59) Source(14, 61) + SourceIndex(1) +9 >Emitted(50, 60) Source(14, 62) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.internalConst = 10; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(51, 9) Source(16, 5) + SourceIndex(1) +2 >Emitted(51, 22) Source(16, 18) + SourceIndex(1) +3 >Emitted(51, 23) Source(16, 32) + SourceIndex(1) +4 >Emitted(51, 44) Source(16, 45) + SourceIndex(1) +5 >Emitted(51, 47) Source(16, 48) + SourceIndex(1) +6 >Emitted(51, 49) Source(16, 50) + SourceIndex(1) +7 >Emitted(51, 50) Source(16, 51) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(52, 9) Source(17, 5) + SourceIndex(1) +2 >Emitted(52, 22) Source(17, 18) + SourceIndex(1) +3 >Emitted(52, 23) Source(17, 19) + SourceIndex(1) +4 >Emitted(52, 27) Source(17, 31) + SourceIndex(1) +5 >Emitted(52, 39) Source(17, 55) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(53, 9) Source(17, 19) + SourceIndex(1) +2 >Emitted(53, 20) Source(17, 31) + SourceIndex(1) +3 >Emitted(53, 32) Source(17, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(54, 13) Source(17, 46) + SourceIndex(1) +2 >Emitted(54, 54) Source(17, 47) + SourceIndex(1) +3 >Emitted(54, 55) Source(17, 47) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(55, 13) Source(17, 49) + SourceIndex(1) +2 >Emitted(55, 54) Source(17, 50) + SourceIndex(1) +3 >Emitted(55, 55) Source(17, 50) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(56, 13) Source(17, 52) + SourceIndex(1) +2 >Emitted(56, 54) Source(17, 53) + SourceIndex(1) +3 >Emitted(56, 55) Source(17, 53) + SourceIndex(1) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(57, 9) Source(17, 54) + SourceIndex(1) +2 >Emitted(57, 10) Source(17, 55) + SourceIndex(1) +3 >Emitted(57, 12) Source(17, 31) + SourceIndex(1) +4 >Emitted(57, 24) Source(17, 43) + SourceIndex(1) +5 >Emitted(57, 27) Source(17, 31) + SourceIndex(1) +6 >Emitted(57, 47) Source(17, 43) + SourceIndex(1) +7 >Emitted(57, 52) Source(17, 31) + SourceIndex(1) +8 >Emitted(57, 72) Source(17, 43) + SourceIndex(1) +9 >Emitted(57, 80) Source(17, 55) + SourceIndex(1) +--- +>>> })(normalN = exports.normalN || (exports.normalN = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +10> ^^^-> +1 > + > +2 > } +3 > +4 > normalN +5 > +6 > normalN +7 > +8 > normalN +9 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(58, 5) Source(18, 1) + SourceIndex(1) +2 >Emitted(58, 6) Source(18, 2) + SourceIndex(1) +3 >Emitted(58, 8) Source(9, 18) + SourceIndex(1) +4 >Emitted(58, 15) Source(9, 25) + SourceIndex(1) +5 >Emitted(58, 18) Source(9, 18) + SourceIndex(1) +6 >Emitted(58, 33) Source(9, 25) + SourceIndex(1) +7 >Emitted(58, 38) Source(9, 18) + SourceIndex(1) +8 >Emitted(58, 53) Source(9, 25) + SourceIndex(1) +9 >Emitted(58, 61) Source(18, 2) + SourceIndex(1) +--- +>>> /*@internal*/ var internalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 > /*@internal*/ +3 > +1->Emitted(59, 5) Source(19, 1) + SourceIndex(1) +2 >Emitted(59, 18) Source(19, 14) + SourceIndex(1) +3 >Emitted(59, 19) Source(19, 15) + SourceIndex(1) +--- +>>> function internalC() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(60, 9) Source(19, 15) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class internalC { +2 > } +1->Emitted(61, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(61, 10) Source(19, 40) + SourceIndex(1) +--- +>>> return internalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(62, 25) Source(19, 40) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class internalC {} +1 >Emitted(63, 5) Source(19, 39) + SourceIndex(1) +2 >Emitted(63, 6) Source(19, 40) + SourceIndex(1) +3 >Emitted(63, 6) Source(19, 15) + SourceIndex(1) +4 >Emitted(63, 10) Source(19, 40) + SourceIndex(1) +--- +>>> exports.internalC = internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^-> +1-> +2 > internalC +1->Emitted(64, 5) Source(19, 28) + SourceIndex(1) +2 >Emitted(64, 35) Source(19, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function internalfoo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> {} + > +2 > /*@internal*/ +3 > +4 > export function +5 > internalfoo +6 > () { +7 > } +1->Emitted(65, 5) Source(20, 1) + SourceIndex(1) +2 >Emitted(65, 18) Source(20, 14) + SourceIndex(1) +3 >Emitted(65, 19) Source(20, 15) + SourceIndex(1) +4 >Emitted(65, 28) Source(20, 31) + SourceIndex(1) +5 >Emitted(65, 39) Source(20, 42) + SourceIndex(1) +6 >Emitted(65, 44) Source(20, 46) + SourceIndex(1) +7 >Emitted(65, 45) Source(20, 47) + SourceIndex(1) +--- +>>> exports.internalfoo = internalfoo; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^-> +1 > +2 > export function internalfoo() {} +1 >Emitted(66, 5) Source(20, 15) + SourceIndex(1) +2 >Emitted(66, 39) Source(20, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalNamespace +6 > { export class someClass {} } +1->Emitted(67, 5) Source(21, 1) + SourceIndex(1) +2 >Emitted(67, 18) Source(21, 14) + SourceIndex(1) +3 >Emitted(67, 19) Source(21, 15) + SourceIndex(1) +4 >Emitted(67, 23) Source(21, 32) + SourceIndex(1) +5 >Emitted(67, 40) Source(21, 49) + SourceIndex(1) +6 >Emitted(67, 41) Source(21, 79) + SourceIndex(1) +--- +>>> (function (internalNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > internalNamespace +1 >Emitted(68, 5) Source(21, 15) + SourceIndex(1) +2 >Emitted(68, 16) Source(21, 32) + SourceIndex(1) +3 >Emitted(68, 33) Source(21, 49) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(69, 9) Source(21, 52) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(70, 13) Source(21, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(71, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(71, 14) Source(21, 77) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(72, 29) Source(21, 77) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(73, 9) Source(21, 76) + SourceIndex(1) +2 >Emitted(73, 10) Source(21, 77) + SourceIndex(1) +3 >Emitted(73, 10) Source(21, 52) + SourceIndex(1) +4 >Emitted(73, 14) Source(21, 77) + SourceIndex(1) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(74, 9) Source(21, 65) + SourceIndex(1) +2 >Emitted(74, 36) Source(21, 74) + SourceIndex(1) +3 >Emitted(74, 48) Source(21, 77) + SourceIndex(1) +4 >Emitted(74, 49) Source(21, 77) + SourceIndex(1) +--- +>>> })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > +8 > internalNamespace +9 > { export class someClass {} } +1->Emitted(75, 5) Source(21, 78) + SourceIndex(1) +2 >Emitted(75, 6) Source(21, 79) + SourceIndex(1) +3 >Emitted(75, 8) Source(21, 32) + SourceIndex(1) +4 >Emitted(75, 25) Source(21, 49) + SourceIndex(1) +5 >Emitted(75, 28) Source(21, 32) + SourceIndex(1) +6 >Emitted(75, 53) Source(21, 49) + SourceIndex(1) +7 >Emitted(75, 58) Source(21, 32) + SourceIndex(1) +8 >Emitted(75, 83) Source(21, 49) + SourceIndex(1) +9 >Emitted(75, 91) Source(21, 79) + SourceIndex(1) +--- +>>> /*@internal*/ var internalOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(76, 5) Source(22, 1) + SourceIndex(1) +2 >Emitted(76, 18) Source(22, 14) + SourceIndex(1) +3 >Emitted(76, 19) Source(22, 15) + SourceIndex(1) +4 >Emitted(76, 23) Source(22, 32) + SourceIndex(1) +5 >Emitted(76, 36) Source(22, 45) + SourceIndex(1) +6 >Emitted(76, 37) Source(22, 85) + SourceIndex(1) +--- +>>> (function (internalOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 > export namespace +3 > internalOther +1 >Emitted(77, 5) Source(22, 15) + SourceIndex(1) +2 >Emitted(77, 16) Source(22, 32) + SourceIndex(1) +3 >Emitted(77, 29) Source(22, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(78, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(78, 13) Source(22, 46) + SourceIndex(1) +3 >Emitted(78, 22) Source(22, 55) + SourceIndex(1) +4 >Emitted(78, 23) Source(22, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(79, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(79, 20) Source(22, 46) + SourceIndex(1) +3 >Emitted(79, 29) Source(22, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(80, 13) Source(22, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(81, 17) Source(22, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(82, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(82, 18) Source(22, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(83, 33) Source(22, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(84, 13) Source(22, 82) + SourceIndex(1) +2 >Emitted(84, 14) Source(22, 83) + SourceIndex(1) +3 >Emitted(84, 14) Source(22, 58) + SourceIndex(1) +4 >Emitted(84, 18) Source(22, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(85, 13) Source(22, 71) + SourceIndex(1) +2 >Emitted(85, 32) Source(22, 80) + SourceIndex(1) +3 >Emitted(85, 44) Source(22, 83) + SourceIndex(1) +4 >Emitted(85, 45) Source(22, 83) + SourceIndex(1) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(86, 9) Source(22, 84) + SourceIndex(1) +2 >Emitted(86, 10) Source(22, 85) + SourceIndex(1) +3 >Emitted(86, 12) Source(22, 46) + SourceIndex(1) +4 >Emitted(86, 21) Source(22, 55) + SourceIndex(1) +5 >Emitted(86, 24) Source(22, 46) + SourceIndex(1) +6 >Emitted(86, 47) Source(22, 55) + SourceIndex(1) +7 >Emitted(86, 52) Source(22, 46) + SourceIndex(1) +8 >Emitted(86, 75) Source(22, 55) + SourceIndex(1) +9 >Emitted(86, 83) Source(22, 85) + SourceIndex(1) +--- +>>> })(internalOther = exports.internalOther || (exports.internalOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > internalOther +5 > +6 > internalOther +7 > +8 > internalOther +9 > .something { export class someClass {} } +1 >Emitted(87, 5) Source(22, 84) + SourceIndex(1) +2 >Emitted(87, 6) Source(22, 85) + SourceIndex(1) +3 >Emitted(87, 8) Source(22, 32) + SourceIndex(1) +4 >Emitted(87, 21) Source(22, 45) + SourceIndex(1) +5 >Emitted(87, 24) Source(22, 32) + SourceIndex(1) +6 >Emitted(87, 45) Source(22, 45) + SourceIndex(1) +7 >Emitted(87, 50) Source(22, 32) + SourceIndex(1) +8 >Emitted(87, 71) Source(22, 45) + SourceIndex(1) +9 >Emitted(87, 79) Source(22, 85) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalImport = internalNamespace.someClass; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1 >Emitted(88, 5) Source(23, 1) + SourceIndex(1) +2 >Emitted(88, 18) Source(23, 14) + SourceIndex(1) +3 >Emitted(88, 19) Source(23, 29) + SourceIndex(1) +4 >Emitted(88, 27) Source(23, 29) + SourceIndex(1) +5 >Emitted(88, 41) Source(23, 43) + SourceIndex(1) +6 >Emitted(88, 44) Source(23, 46) + SourceIndex(1) +7 >Emitted(88, 61) Source(23, 63) + SourceIndex(1) +8 >Emitted(88, 62) Source(23, 64) + SourceIndex(1) +9 >Emitted(88, 71) Source(23, 73) + SourceIndex(1) +10>Emitted(88, 72) Source(23, 74) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(89, 5) Source(25, 1) + SourceIndex(1) +2 >Emitted(89, 18) Source(25, 14) + SourceIndex(1) +3 >Emitted(89, 19) Source(25, 28) + SourceIndex(1) +4 >Emitted(89, 27) Source(25, 28) + SourceIndex(1) +5 >Emitted(89, 40) Source(25, 41) + SourceIndex(1) +6 >Emitted(89, 43) Source(25, 44) + SourceIndex(1) +7 >Emitted(89, 45) Source(25, 46) + SourceIndex(1) +8 >Emitted(89, 46) Source(25, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(90, 5) Source(26, 1) + SourceIndex(1) +2 >Emitted(90, 18) Source(26, 14) + SourceIndex(1) +3 >Emitted(90, 19) Source(26, 15) + SourceIndex(1) +4 >Emitted(90, 23) Source(26, 27) + SourceIndex(1) +5 >Emitted(90, 35) Source(26, 51) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(91, 5) Source(26, 15) + SourceIndex(1) +2 >Emitted(91, 16) Source(26, 27) + SourceIndex(1) +3 >Emitted(91, 28) Source(26, 39) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(92, 9) Source(26, 42) + SourceIndex(1) +2 >Emitted(92, 50) Source(26, 43) + SourceIndex(1) +3 >Emitted(92, 51) Source(26, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(93, 9) Source(26, 45) + SourceIndex(1) +2 >Emitted(93, 50) Source(26, 46) + SourceIndex(1) +3 >Emitted(93, 51) Source(26, 46) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(94, 9) Source(26, 48) + SourceIndex(1) +2 >Emitted(94, 50) Source(26, 49) + SourceIndex(1) +3 >Emitted(94, 51) Source(26, 49) + SourceIndex(1) +--- +>>> })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(95, 5) Source(26, 50) + SourceIndex(1) +2 >Emitted(95, 6) Source(26, 51) + SourceIndex(1) +3 >Emitted(95, 8) Source(26, 27) + SourceIndex(1) +4 >Emitted(95, 20) Source(26, 39) + SourceIndex(1) +5 >Emitted(95, 23) Source(26, 27) + SourceIndex(1) +6 >Emitted(95, 43) Source(26, 39) + SourceIndex(1) +7 >Emitted(95, 48) Source(26, 27) + SourceIndex(1) +8 >Emitted(95, 68) Source(26, 39) + SourceIndex(1) +9 >Emitted(95, 76) Source(26, 51) + SourceIndex(1) +--- +>>> console.log(exports.x); +1 >^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1 > +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1 >Emitted(96, 5) Source(26, 51) + SourceIndex(1) +2 >Emitted(96, 12) Source(26, 58) + SourceIndex(1) +3 >Emitted(96, 13) Source(26, 59) + SourceIndex(1) +4 >Emitted(96, 16) Source(26, 62) + SourceIndex(1) +5 >Emitted(96, 17) Source(26, 63) + SourceIndex(1) +6 >Emitted(96, 26) Source(26, 64) + SourceIndex(1) +7 >Emitted(96, 27) Source(26, 65) + SourceIndex(1) +8 >Emitted(96, 28) Source(26, 66) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(101, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(101, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(101, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(101, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(101, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(101, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(103, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(103, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(103, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(103, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(103, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(103, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/lib/", + "sourceFiles": [ + "/src/lib/file0.ts", + "/src/lib/file1.ts", + "/src/lib/file2.ts", + "/src/lib/global.ts" + ], + "js": { + "sections": [ + { + "pos": 103, + "end": 120, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 4022, + "end": 4039, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 0, + "end": 4158, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 26, + "kind": "internal" + }, + { + "pos": 28, + "end": 108, + "kind": "text" + }, + { + "pos": 108, + "end": 212, + "kind": "internal" + }, + { + "pos": 214, + "end": 253, + "kind": "text" + }, + { + "pos": 253, + "end": 721, + "kind": "internal" + }, + { + "pos": 723, + "end": 730, + "kind": "text" + }, + { + "pos": 730, + "end": 1219, + "kind": "internal" + }, + { + "pos": 1221, + "end": 1312, + "kind": "text" + } + ] + } + } +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +prologue: (103-120):: use strict + "use strict"; +---------------------------------------------------------------------- +prologue: (4022-4039):: use strict + "use strict"; +---------------------------------------------------------------------- +text: (0-4158) +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +internal: (0-26) +declare const myGlob = 20; +---------------------------------------------------------------------- +text: (28-108) +declare module "file1" { + export const x = 10; + export class normalC { + +---------------------------------------------------------------------- +internal: (108-212) + constructor(); + prop: string; + method(): void; + /*@internal*/ c: number; +---------------------------------------------------------------------- +text: (214-253) + } + export namespace normalN { + +---------------------------------------------------------------------- +internal: (253-721) + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (723-730) + } + +---------------------------------------------------------------------- +internal: (730-1219) + export class internalC { + } + export function internalfoo(): void; + export namespace internalNamespace { + class someClass { + } + } + export namespace internalOther.something { + class someClass { + } + } + export import internalImport = internalNamespace.someClass; + export type internalType = internalC; + export const internalConst = 10; + export enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (1221-1312) +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js new file mode 100644 index 00000000000..17dca8b12b4 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js @@ -0,0 +1,739 @@ +//// [/src/app/module.js] + "use strict"; +/// +var file0Const = new libfile0(); +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +/// +var file4Const = new appfile4(); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>> "use strict"; +>>>/// +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >/// +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 40) Source(1, 40) + SourceIndex(0) +--- +>>>var file0Const = new libfile0(); +1 > +2 >^^^^ +3 > ^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^ +7 > ^^ +8 > ^ +1 > + > +2 >const +3 > file0Const +4 > = +5 > new +6 > libfile0 +7 > () +8 > ; +1 >Emitted(3, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(3, 15) Source(2, 17) + SourceIndex(0) +4 >Emitted(3, 18) Source(2, 20) + SourceIndex(0) +5 >Emitted(3, 22) Source(2, 24) + SourceIndex(0) +6 >Emitted(3, 30) Source(2, 32) + SourceIndex(0) +7 >Emitted(3, 32) Source(2, 34) + SourceIndex(0) +8 >Emitted(3, 33) Source(2, 35) + SourceIndex(0) +--- +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(4, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(4, 11) Source(3, 13) + SourceIndex(0) +4 >Emitted(4, 14) Source(3, 16) + SourceIndex(0) +5 >Emitted(4, 16) Source(3, 18) + SourceIndex(0) +6 >Emitted(4, 17) Source(3, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(8, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(8, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(8, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(8, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(8, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(8, 20) Source(1, 21) + SourceIndex(1) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(9, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(9, 12) Source(1, 28) + SourceIndex(1) +3 >Emitted(9, 13) Source(1, 29) + SourceIndex(1) +4 >Emitted(9, 16) Source(1, 32) + SourceIndex(1) +5 >Emitted(9, 17) Source(1, 33) + SourceIndex(1) +6 >Emitted(9, 26) Source(1, 34) + SourceIndex(1) +7 >Emitted(9, 27) Source(1, 35) + SourceIndex(1) +8 >Emitted(9, 28) Source(1, 36) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(14, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(14, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(14, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(14, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(14, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(14, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(16, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(16, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(16, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(16, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(16, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(16, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(20, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(20, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(20, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(20, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(20, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(20, 20) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>/// +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >/// +1 >Emitted(22, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(22, 40) Source(1, 40) + SourceIndex(5) +--- +>>>var file4Const = new appfile4(); +1 > +2 >^^^^ +3 > ^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^ +7 > ^^ +8 > ^ +1 > + > +2 >const +3 > file4Const +4 > = +5 > new +6 > appfile4 +7 > () +8 > ; +1 >Emitted(23, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(23, 5) Source(2, 7) + SourceIndex(5) +3 >Emitted(23, 15) Source(2, 17) + SourceIndex(5) +4 >Emitted(23, 18) Source(2, 20) + SourceIndex(5) +5 >Emitted(23, 22) Source(2, 24) + SourceIndex(5) +6 >Emitted(23, 30) Source(2, 32) + SourceIndex(5) +7 >Emitted(23, 32) Source(2, 34) + SourceIndex(5) +8 >Emitted(23, 33) Source(2, 35) + SourceIndex(5) +--- +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(24, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(24, 5) Source(3, 7) + SourceIndex(5) +3 >Emitted(24, 10) Source(3, 12) + SourceIndex(5) +4 >Emitted(24, 13) Source(3, 15) + SourceIndex(5) +5 >Emitted(24, 15) Source(3, 17) + SourceIndex(5) +6 >Emitted(24, 16) Source(3, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/app/", + "sourceFiles": [ + "/src/app/file3.ts", + "/src/app/file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 17, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 19, + "end": 532, + "kind": "prepend", + "data": "/src/lib/module.js", + "texts": [ + { + "pos": 19, + "end": 532, + "kind": "text" + } + ] + }, + { + "pos": 532, + "end": 808, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "reference", + "data": "tripleRef.d.ts" + }, + { + "pos": 41, + "end": 87, + "kind": "reference", + "data": "../lib/tripleRef.d.ts" + }, + { + "pos": 89, + "end": 297, + "kind": "prepend", + "data": "/src/lib/module.d.ts", + "texts": [ + { + "pos": 89, + "end": 297, + "kind": "text" + } + ] + }, + { + "pos": 297, + "end": 416, + "kind": "text" + } + ] + } + } +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prologue: (0-17):: use strict + "use strict"; +---------------------------------------------------------------------- +prepend: (19-532):: /src/lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (19-532) +/// +var file0Const = new libfile0(); +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (532-808) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +/// +var file4Const = new appfile4(); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +reference: (0-39):: tripleRef.d.ts +/// +---------------------------------------------------------------------- +reference: (41-87):: ../lib/tripleRef.d.ts +/// +---------------------------------------------------------------------- +prepend: (89-297):: /src/lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (89-297) +declare const file0Const: libfile0; +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (297-416) +declare module "file3" { + export const z = 30; +} +declare const file4Const: appfile4; +declare const myVar = 30; + +====================================================================== + +//// [/src/lib/file1.ts] +export const x = 10;console.log(x); + +//// [/src/lib/module.js] +/// +var file0Const = new libfile0(); +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICAtB,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>/// +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >/// +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 40) Source(1, 40) + SourceIndex(0) +--- +>>>var file0Const = new libfile0(); +1 > +2 >^^^^ +3 > ^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^ +7 > ^^ +8 > ^ +1 > + > +2 >const +3 > file0Const +4 > = +5 > new +6 > libfile0 +7 > () +8 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 15) Source(2, 17) + SourceIndex(0) +4 >Emitted(2, 18) Source(2, 20) + SourceIndex(0) +5 >Emitted(2, 22) Source(2, 24) + SourceIndex(0) +6 >Emitted(2, 30) Source(2, 32) + SourceIndex(0) +7 >Emitted(2, 32) Source(2, 34) + SourceIndex(0) +8 >Emitted(2, 33) Source(2, 35) + SourceIndex(0) +--- +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 11) Source(3, 13) + SourceIndex(0) +4 >Emitted(3, 14) Source(3, 16) + SourceIndex(0) +5 >Emitted(3, 16) Source(3, 18) + SourceIndex(0) +6 >Emitted(3, 17) Source(3, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(7, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(7, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(7, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(7, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(7, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(7, 20) Source(1, 21) + SourceIndex(1) +--- +>>> console.log(exports.x); +1->^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1-> +2 > console +3 > . +4 > log +5 > ( +6 > x +7 > ) +8 > ; +1->Emitted(8, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(8, 12) Source(1, 28) + SourceIndex(1) +3 >Emitted(8, 13) Source(1, 29) + SourceIndex(1) +4 >Emitted(8, 16) Source(1, 32) + SourceIndex(1) +5 >Emitted(8, 17) Source(1, 33) + SourceIndex(1) +6 >Emitted(8, 26) Source(1, 34) + SourceIndex(1) +7 >Emitted(8, 27) Source(1, 35) + SourceIndex(1) +8 >Emitted(8, 28) Source(1, 36) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(13, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(13, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(13, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(13, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(13, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(13, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(15, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(15, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(15, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(15, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(15, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/lib/", + "sourceFiles": [ + "/src/lib/file0.ts", + "/src/lib/file1.ts", + "/src/lib/file2.ts", + "/src/lib/global.ts" + ], + "js": { + "sections": [ + { + "pos": 164, + "end": 181, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 377, + "end": 394, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 0, + "end": 513, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "reference", + "data": "tripleRef.d.ts" + }, + { + "pos": 41, + "end": 249, + "kind": "text" + } + ] + } + } +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +prologue: (164-181):: use strict + "use strict"; +---------------------------------------------------------------------- +prologue: (377-394):: use strict + "use strict"; +---------------------------------------------------------------------- +text: (0-513) +/// +var file0Const = new libfile0(); +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +reference: (0-39):: tripleRef.d.ts +/// +---------------------------------------------------------------------- +text: (41-249) +declare const file0Const: libfile0; +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js new file mode 100644 index 00000000000..03d4ce30630 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js @@ -0,0 +1,1159 @@ +//// [/src/app/module.js] + "use strict"; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) + t[p[i]] = s[p[i]]; + return t; +}; +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { } +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; + function forappfile3Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +var myVar = 30; +function appfile4Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +appfile4Spread.apply(void 0, __spread([10, 20, 30])); +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;;;;;ICArC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>> "use strict"; +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) +>>> t[p[i]] = s[p[i]]; +>>> return t; +>>>}; +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(31, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(31, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(31, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(31, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(31, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(31, 17) Source(1, 19) + SourceIndex(0) +--- +>>>function libfile0Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +1->Emitted(32, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(32, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(32, 24) Source(2, 24) + SourceIndex(0) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(33, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(33, 16) Source(2, 39) + SourceIndex(0) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(34, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(34, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(34, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(34, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(34, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(34, 49) Source(2, 39) + SourceIndex(0) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(35, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(35, 31) Source(2, 39) + SourceIndex(0) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(37, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(37, 2) Source(2, 44) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^^^^^^^^^^^^^^^^^-> +1-> + > +2 >libfile0Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(38, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(38, 15) Source(3, 15) + SourceIndex(0) +3 >Emitted(38, 39) Source(3, 19) + SourceIndex(0) +4 >Emitted(38, 40) Source(3, 20) + SourceIndex(0) +5 >Emitted(38, 42) Source(3, 22) + SourceIndex(0) +6 >Emitted(38, 44) Source(3, 24) + SourceIndex(0) +7 >Emitted(38, 46) Source(3, 26) + SourceIndex(0) +8 >Emitted(38, 48) Source(3, 28) + SourceIndex(0) +9 >Emitted(38, 50) Source(3, 30) + SourceIndex(0) +10>Emitted(38, 51) Source(3, 31) + SourceIndex(0) +11>Emitted(38, 54) Source(3, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(42, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(42, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(42, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(42, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(42, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(42, 20) Source(1, 21) + SourceIndex(1) +--- +>>> function forlibfile1Rest() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> +2 > function +3 > forlibfile1Rest +4 > () { +5 > } +1->Emitted(43, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(43, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(43, 29) Source(1, 45) + SourceIndex(1) +4 >Emitted(43, 34) Source(1, 50) + SourceIndex(1) +5 >Emitted(43, 35) Source(1, 51) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(48, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(48, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(48, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(48, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(48, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(48, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(50, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(50, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(50, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(50, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(50, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(50, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^-> +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(54, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(54, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(54, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(54, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(54, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(54, 20) Source(1, 21) + SourceIndex(4) +--- +>>> function forappfile3Rest() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >import { x } from "file1"; +2 > function +3 > forappfile3Rest +1->Emitted(55, 5) Source(2, 27) + SourceIndex(4) +2 >Emitted(55, 14) Source(2, 36) + SourceIndex(4) +3 >Emitted(55, 29) Source(2, 51) + SourceIndex(4) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(56, 9) Source(3, 1) + SourceIndex(4) +2 >Emitted(56, 13) Source(3, 7) + SourceIndex(4) +3 >Emitted(56, 42) Source(3, 48) + SourceIndex(4) +4 >Emitted(56, 44) Source(3, 9) + SourceIndex(4) +5 >Emitted(56, 52) Source(3, 10) + SourceIndex(4) +6 >Emitted(56, 54) Source(3, 12) + SourceIndex(4) +7 >Emitted(56, 78) Source(3, 48) + SourceIndex(4) +8 >Emitted(56, 79) Source(3, 49) + SourceIndex(4) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(57, 5) Source(4, 1) + SourceIndex(4) +2 >Emitted(57, 6) Source(4, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(59, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(59, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(59, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(59, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(59, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(59, 16) Source(1, 18) + SourceIndex(5) +--- +>>>function appfile4Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > appfile4Spread +1->Emitted(60, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(60, 10) Source(2, 10) + SourceIndex(5) +3 >Emitted(60, 24) Source(2, 24) + SourceIndex(5) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(61, 5) Source(2, 25) + SourceIndex(5) +2 >Emitted(61, 16) Source(2, 39) + SourceIndex(5) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(62, 10) Source(2, 25) + SourceIndex(5) +2 >Emitted(62, 20) Source(2, 39) + SourceIndex(5) +3 >Emitted(62, 22) Source(2, 25) + SourceIndex(5) +4 >Emitted(62, 43) Source(2, 39) + SourceIndex(5) +5 >Emitted(62, 45) Source(2, 25) + SourceIndex(5) +6 >Emitted(62, 49) Source(2, 39) + SourceIndex(5) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(63, 9) Source(2, 25) + SourceIndex(5) +2 >Emitted(63, 31) Source(2, 39) + SourceIndex(5) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(65, 1) Source(2, 43) + SourceIndex(5) +2 >Emitted(65, 2) Source(2, 44) + SourceIndex(5) +--- +>>>appfile4Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >appfile4Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(66, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(66, 15) Source(3, 15) + SourceIndex(5) +3 >Emitted(66, 39) Source(3, 19) + SourceIndex(5) +4 >Emitted(66, 40) Source(3, 20) + SourceIndex(5) +5 >Emitted(66, 42) Source(3, 22) + SourceIndex(5) +6 >Emitted(66, 44) Source(3, 24) + SourceIndex(5) +7 >Emitted(66, 46) Source(3, 26) + SourceIndex(5) +8 >Emitted(66, 48) Source(3, 28) + SourceIndex(5) +9 >Emitted(66, 50) Source(3, 30) + SourceIndex(5) +10>Emitted(66, 51) Source(3, 31) + SourceIndex(5) +11>Emitted(66, 54) Source(3, 33) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/app/", + "sourceFiles": [ + "/src/app/file3.ts", + "/src/app/file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 17, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 19, + "end": 523, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 525, + "end": 695, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 697, + "end": 1112, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 1114, + "end": 1755, + "kind": "prepend", + "data": "/src/lib/module.js", + "texts": [ + { + "pos": 1114, + "end": 1755, + "kind": "text" + } + ] + }, + { + "pos": 1755, + "end": 2273, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest", + "typescript:read", + "typescript:spread" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 227, + "kind": "prepend", + "data": "/src/lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 227, + "kind": "text" + } + ] + }, + { + "pos": 227, + "end": 365, + "kind": "text" + } + ] + } + } +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prologue: (0-17):: use strict + "use strict"; +---------------------------------------------------------------------- +emitHelpers: (19-523):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (525-695):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (697-1112):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) + t[p[i]] = s[p[i]]; + return t; +}; +---------------------------------------------------------------------- +prepend: (1114-1755):: /src/lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1114-1755) +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { } +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (1755-2273) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; + function forappfile3Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +var myVar = 30; +function appfile4Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +appfile4Spread.apply(void 0, __spread([10, 20, 30])); + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-227):: /src/lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-227) +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (227-365) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +declare function appfile4Spread(...b: number[]): void; + +====================================================================== + +//// [/src/lib/file1.ts] +export const x = 10;function forlibfile1Rest() { } + +//// [/src/lib/module.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { } +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;;;;;ICArC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(21, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(21, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(21, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(21, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(21, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(21, 17) Source(1, 19) + SourceIndex(0) +--- +>>>function libfile0Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +1->Emitted(22, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(22, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(22, 24) Source(2, 24) + SourceIndex(0) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(23, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(23, 16) Source(2, 39) + SourceIndex(0) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(24, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(24, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(24, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(24, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(24, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(24, 49) Source(2, 39) + SourceIndex(0) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(25, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(25, 31) Source(2, 39) + SourceIndex(0) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(27, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(27, 2) Source(2, 44) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^^^^^^^^^^^^^^^^^-> +1-> + > +2 >libfile0Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(28, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(28, 15) Source(3, 15) + SourceIndex(0) +3 >Emitted(28, 39) Source(3, 19) + SourceIndex(0) +4 >Emitted(28, 40) Source(3, 20) + SourceIndex(0) +5 >Emitted(28, 42) Source(3, 22) + SourceIndex(0) +6 >Emitted(28, 44) Source(3, 24) + SourceIndex(0) +7 >Emitted(28, 46) Source(3, 26) + SourceIndex(0) +8 >Emitted(28, 48) Source(3, 28) + SourceIndex(0) +9 >Emitted(28, 50) Source(3, 30) + SourceIndex(0) +10>Emitted(28, 51) Source(3, 31) + SourceIndex(0) +11>Emitted(28, 54) Source(3, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(32, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(32, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(32, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(32, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(32, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(32, 20) Source(1, 21) + SourceIndex(1) +--- +>>> function forlibfile1Rest() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> +2 > function +3 > forlibfile1Rest +4 > () { +5 > } +1->Emitted(33, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(33, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(33, 29) Source(1, 45) + SourceIndex(1) +4 >Emitted(33, 34) Source(1, 50) + SourceIndex(1) +5 >Emitted(33, 35) Source(1, 51) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(38, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(38, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(38, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(38, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(38, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(38, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(40, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(40, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(40, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(40, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(40, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(40, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/lib/", + "sourceFiles": [ + "/src/lib/file0.ts", + "/src/lib/file1.ts", + "/src/lib/file2.ts", + "/src/lib/global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 676, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 963, + "end": 980, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 1183, + "end": 1200, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 678, + "end": 1319, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:read", + "typescript:spread" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 227, + "kind": "text" + } + ] + } + } +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-676):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +prologue: (963-980):: use strict + "use strict"; +---------------------------------------------------------------------- +prologue: (1183-1200):: use strict + "use strict"; +---------------------------------------------------------------------- +text: (678-1319) +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { } +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (0-227) +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js new file mode 100644 index 00000000000..4034b4d7b9d --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js @@ -0,0 +1,1120 @@ +//// [/src/app/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICCvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} + +//// [/src/app/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 >"myPrologue" + > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(2, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(2, 7) + SourceIndex(0) +4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) +5 >Emitted(1, 26) Source(2, 18) + SourceIndex(0) +6 >Emitted(1, 27) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >"myPrologue5" + > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(3, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(3, 11) Source(2, 7) + SourceIndex(1) +3 >Emitted(3, 12) Source(2, 8) + SourceIndex(1) +4 >Emitted(3, 18) Source(2, 14) + SourceIndex(1) +5 >Emitted(3, 19) Source(2, 15) + SourceIndex(1) +6 >Emitted(3, 24) Source(2, 20) + SourceIndex(1) +7 >Emitted(3, 25) Source(2, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >"myPrologueFile" + > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(6, 5) Source(2, 1) + SourceIndex(2) +2 >Emitted(6, 11) Source(2, 7) + SourceIndex(2) +3 >Emitted(6, 12) Source(2, 8) + SourceIndex(2) +4 >Emitted(6, 18) Source(2, 14) + SourceIndex(2) +5 >Emitted(6, 19) Source(2, 15) + SourceIndex(2) +6 >Emitted(6, 24) Source(2, 20) + SourceIndex(2) +7 >Emitted(6, 25) Source(2, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(8, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(8, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(8, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(8, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(8, 32) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file3.ts +------------------------------------------------------------------- +>>>declare module "file3" { +>>> export const z = 30; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >"myPrologue" + > +2 > export +3 > +4 > const +5 > z +6 > = 30 +7 > ; +1 >Emitted(10, 5) Source(2, 1) + SourceIndex(4) +2 >Emitted(10, 11) Source(2, 7) + SourceIndex(4) +3 >Emitted(10, 12) Source(2, 8) + SourceIndex(4) +4 >Emitted(10, 18) Source(2, 14) + SourceIndex(4) +5 >Emitted(10, 19) Source(2, 15) + SourceIndex(4) +6 >Emitted(10, 24) Source(2, 20) + SourceIndex(4) +7 >Emitted(10, 25) Source(2, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file4.ts +------------------------------------------------------------------- +>>>} +>>>declare const myVar = 30; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^-> +1 >"myPrologue2"; + > +2 > +3 > const +4 > myVar +5 > = 30 +6 > ; +1 >Emitted(12, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(12, 9) Source(2, 1) + SourceIndex(5) +3 >Emitted(12, 15) Source(2, 7) + SourceIndex(5) +4 >Emitted(12, 20) Source(2, 12) + SourceIndex(5) +5 >Emitted(12, 25) Source(2, 17) + SourceIndex(5) +6 >Emitted(12, 26) Source(2, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.js] +"use strict"; +"myPrologue"; + "myPrologue5"; + "myPrologueFile"; +"myPrologue2"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue5"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","file4.ts","../lib/global.ts","file3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ICAZ,aAAa,CAAA;ICAb,gBAAgB,CAAA;ACAhB,aAAa,CAAC;AHCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;ICDlB,aAAa,CAAA;;IACA,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICDpB,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AEDpB,IAAM,WAAW,GAAG,EAAE,CAAC;;;ICAvB,YAAY,CAAA;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,file4.ts,../lib/global.ts,file3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>> "myPrologue5"; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^-> +1-> +2 > "myPrologue5" +3 > +1->Emitted(3, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 19) Source(1, 14) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>> "myPrologueFile"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^ +1-> +2 > "myPrologueFile" +3 > +1->Emitted(4, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 21) Source(1, 17) + SourceIndex(2) +3 >Emitted(4, 22) Source(1, 17) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js (5, 1) +sourceFile:file4.ts +------------------------------------------------------------------- +>>> "myPrologueFile"; +>>>"myPrologue2"; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^-> +1 > +2 >"myPrologue2" +3 > ; +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(5, 14) Source(1, 14) + SourceIndex(3) +3 >Emitted(5, 15) Source(1, 15) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1-> +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue" + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1->Emitted(6, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(6, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(6, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(6, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(6, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(6, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologue5"; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > "myPrologue5" +3 > +1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 14) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 14) + SourceIndex(1) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(11, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(11, 13) Source(2, 14) + SourceIndex(1) +3 >Emitted(11, 14) Source(2, 15) + SourceIndex(1) +4 >Emitted(11, 17) Source(2, 18) + SourceIndex(1) +5 >Emitted(11, 19) Source(2, 20) + SourceIndex(1) +6 >Emitted(11, 20) Source(2, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologueFile"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > "myPrologueFile" +3 > +1 >Emitted(15, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(15, 21) Source(1, 17) + SourceIndex(2) +3 >Emitted(15, 22) Source(1, 17) + SourceIndex(2) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1->Emitted(17, 5) Source(2, 14) + SourceIndex(2) +2 >Emitted(17, 13) Source(2, 14) + SourceIndex(2) +3 >Emitted(17, 14) Source(2, 15) + SourceIndex(2) +4 >Emitted(17, 17) Source(2, 18) + SourceIndex(2) +5 >Emitted(17, 19) Source(2, 20) + SourceIndex(2) +6 >Emitted(17, 20) Source(2, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(19, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(19, 5) Source(1, 7) + SourceIndex(4) +3 >Emitted(19, 16) Source(1, 18) + SourceIndex(4) +4 >Emitted(19, 19) Source(1, 21) + SourceIndex(4) +5 >Emitted(19, 21) Source(1, 23) + SourceIndex(4) +6 >Emitted(19, 22) Source(1, 24) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologue"; +1->^^^^ +2 > ^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > "myPrologue" +3 > +1->Emitted(22, 5) Source(1, 1) + SourceIndex(5) +2 >Emitted(22, 17) Source(1, 13) + SourceIndex(5) +3 >Emitted(22, 18) Source(1, 13) + SourceIndex(5) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(24, 5) Source(2, 14) + SourceIndex(5) +2 >Emitted(24, 13) Source(2, 14) + SourceIndex(5) +3 >Emitted(24, 14) Source(2, 15) + SourceIndex(5) +4 >Emitted(24, 17) Source(2, 18) + SourceIndex(5) +5 >Emitted(24, 19) Source(2, 20) + SourceIndex(5) +6 >Emitted(24, 20) Source(2, 21) + SourceIndex(5) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 >"myPrologue2"; + > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(26, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(26, 5) Source(2, 7) + SourceIndex(3) +3 >Emitted(26, 10) Source(2, 12) + SourceIndex(3) +4 >Emitted(26, 13) Source(2, 15) + SourceIndex(3) +5 >Emitted(26, 15) Source(2, 17) + SourceIndex(3) +6 >Emitted(26, 16) Source(2, 18) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/app/", + "sourceFiles": [ + "/src/app/file3.ts", + "/src/app/file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 48, + "kind": "prologue", + "data": "myPrologue5" + }, + { + "pos": 50, + "end": 71, + "kind": "prologue", + "data": "myPrologueFile" + }, + { + "pos": 73, + "end": 87, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 89, + "end": 541, + "kind": "prepend", + "data": "/src/lib/module.js", + "texts": [ + { + "pos": 89, + "end": 541, + "kind": "text" + } + ] + }, + { + "pos": 541, + "end": 761, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 1, + "text": "\"myPrologue2\";", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 14, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue2" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "prepend", + "data": "/src/lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + }, + { + "pos": 171, + "end": 253, + "kind": "text" + } + ] + } + } +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-48):: myPrologue5 + "myPrologue5"; +---------------------------------------------------------------------- +prologue: (50-71):: myPrologueFile + "myPrologueFile"; +---------------------------------------------------------------------- +prologue: (73-87):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prepend: (89-541):: /src/lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (89-541) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue5"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (541-761) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-171):: /src/lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (171-253) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/lib/file1.ts] +"myPrologue5" +export const x = 10; + +//// [/src/lib/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,WAAW,KAAK,CAAC"} + +//// [/src/lib/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 >"myPrologue" + > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(2, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(2, 7) + SourceIndex(0) +4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) +5 >Emitted(1, 26) Source(2, 18) + SourceIndex(0) +6 >Emitted(1, 27) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >"myPrologue5" + > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(3, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(3, 11) Source(2, 7) + SourceIndex(1) +3 >Emitted(3, 12) Source(2, 8) + SourceIndex(1) +4 >Emitted(3, 18) Source(2, 14) + SourceIndex(1) +5 >Emitted(3, 19) Source(2, 15) + SourceIndex(1) +6 >Emitted(3, 24) Source(2, 20) + SourceIndex(1) +7 >Emitted(3, 25) Source(2, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >"myPrologueFile" + > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(6, 5) Source(2, 1) + SourceIndex(2) +2 >Emitted(6, 11) Source(2, 7) + SourceIndex(2) +3 >Emitted(6, 12) Source(2, 8) + SourceIndex(2) +4 >Emitted(6, 18) Source(2, 14) + SourceIndex(2) +5 >Emitted(6, 19) Source(2, 15) + SourceIndex(2) +6 >Emitted(6, 24) Source(2, 20) + SourceIndex(2) +7 >Emitted(6, 25) Source(2, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^-> +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(8, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(8, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(8, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(8, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(8, 32) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.js] +"use strict"; +"myPrologue"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue5"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AACZ,IAAM,MAAM,GAAG,EAAE,CAAC;;;ICDlB,aAAa,CAAA;;IACA,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICDpB,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +>>>var myGlob = 20; +1-> +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1->Emitted(3, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(3, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(3, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(3, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(3, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologue5"; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > "myPrologue5" +3 > +1->Emitted(6, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(6, 18) Source(1, 14) + SourceIndex(1) +3 >Emitted(6, 19) Source(1, 14) + SourceIndex(1) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(8, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(8, 13) Source(2, 14) + SourceIndex(1) +3 >Emitted(8, 14) Source(2, 15) + SourceIndex(1) +4 >Emitted(8, 17) Source(2, 18) + SourceIndex(1) +5 >Emitted(8, 19) Source(2, 20) + SourceIndex(1) +6 >Emitted(8, 20) Source(2, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologueFile"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > "myPrologueFile" +3 > +1 >Emitted(12, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(12, 21) Source(1, 17) + SourceIndex(2) +3 >Emitted(12, 22) Source(1, 17) + SourceIndex(2) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1->Emitted(14, 5) Source(2, 14) + SourceIndex(2) +2 >Emitted(14, 13) Source(2, 14) + SourceIndex(2) +3 >Emitted(14, 14) Source(2, 15) + SourceIndex(2) +4 >Emitted(14, 17) Source(2, 18) + SourceIndex(2) +5 >Emitted(14, 19) Source(2, 20) + SourceIndex(2) +6 >Emitted(14, 20) Source(2, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(16, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(16, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(16, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(16, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(16, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(16, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/lib/", + "sourceFiles": [ + "/src/lib/file0.ts", + "/src/lib/file1.ts", + "/src/lib/file2.ts", + "/src/lib/global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 119, + "end": 136, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 138, + "end": 156, + "kind": "prologue", + "data": "myPrologue5" + }, + { + "pos": 323, + "end": 340, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 342, + "end": 363, + "kind": "prologue", + "data": "myPrologueFile" + }, + { + "pos": 30, + "end": 482, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue\"", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 12, + "expression": { + "pos": 0, + "end": 12, + "text": "myPrologue" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + } + } +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (119-136):: use strict + "use strict"; +---------------------------------------------------------------------- +prologue: (138-156):: myPrologue5 + "myPrologue5"; +---------------------------------------------------------------------- +prologue: (323-340):: use strict + "use strict"; +---------------------------------------------------------------------- +prologue: (342-363):: myPrologueFile + "myPrologueFile"; +---------------------------------------------------------------------- +text: (30-482) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue5"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js new file mode 100644 index 00000000000..9f36812cb4e --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js @@ -0,0 +1,4660 @@ +//// [/src/app/module.d.ts] +declare module "file1" { + export class normalC { + } + export namespace normalN { + } +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";IACA,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} + +//// [/src/app/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: ../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export class normalC { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^ +1 >/*@internal*/ export const x = 10; + > +2 > export +3 > class +4 > normalC +1 >Emitted(2, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 18) Source(2, 14) + SourceIndex(0) +4 >Emitted(2, 25) Source(2, 21) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(3, 6) Source(8, 2) + SourceIndex(0) +--- +>>> export namespace normalN { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^ +5 > ^ +1-> + > +2 > export +3 > namespace +4 > normalN +5 > +1->Emitted(4, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(4, 11) Source(9, 7) + SourceIndex(0) +3 >Emitted(4, 22) Source(9, 18) + SourceIndex(0) +4 >Emitted(4, 29) Source(9, 25) + SourceIndex(0) +5 >Emitted(4, 30) Source(9, 26) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 >{ + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(5, 6) Source(18, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(8, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(8, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(8, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(8, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(8, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(8, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(10, 9) Source(1, 1) + SourceIndex(2) +3 >Emitted(10, 15) Source(1, 7) + SourceIndex(2) +4 >Emitted(10, 26) Source(1, 18) + SourceIndex(2) +5 >Emitted(10, 31) Source(1, 23) + SourceIndex(2) +6 >Emitted(10, 32) Source(1, 24) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file3.ts +------------------------------------------------------------------- +>>>declare module "file3" { +>>> export const z = 30; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > z +6 > = 30 +7 > ; +1 >Emitted(12, 5) Source(1, 1) + SourceIndex(3) +2 >Emitted(12, 11) Source(1, 7) + SourceIndex(3) +3 >Emitted(12, 12) Source(1, 8) + SourceIndex(3) +4 >Emitted(12, 18) Source(1, 14) + SourceIndex(3) +5 >Emitted(12, 19) Source(1, 15) + SourceIndex(3) +6 >Emitted(12, 24) Source(1, 20) + SourceIndex(3) +7 >Emitted(12, 25) Source(1, 21) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file4.ts +------------------------------------------------------------------- +>>>} +>>>declare const myVar = 30; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^-> +1 > +2 > +3 > const +4 > myVar +5 > = 30 +6 > ; +1 >Emitted(14, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(14, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(14, 15) Source(1, 7) + SourceIndex(4) +4 >Emitted(14, 20) Source(1, 12) + SourceIndex(4) +5 >Emitted(14, 25) Source(1, 17) + SourceIndex(4) +6 >Emitted(14, 26) Source(1, 18) + SourceIndex(4) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.js] + "use strict"; +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + /*@internal*/ exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAhC,aAAa,CAAc,QAAA,CAAC,GAAG,EAAE,CAAC;IAClC;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>> "use strict"; +>>>/*@internal*/ var myGlob = 20; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >/*@internal*/ +3 > +4 > const +5 > myGlob +6 > = +7 > 20 +8 > ; +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(2, 15) Source(1, 15) + SourceIndex(0) +4 >Emitted(2, 19) Source(1, 21) + SourceIndex(0) +5 >Emitted(2, 25) Source(1, 27) + SourceIndex(0) +6 >Emitted(2, 28) Source(1, 30) + SourceIndex(0) +7 >Emitted(2, 30) Source(1, 32) + SourceIndex(0) +8 >Emitted(2, 31) Source(1, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> /*@internal*/ exports.x = 10; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^^^^^^^-> +1-> +2 > /*@internal*/ +3 > export const +4 > +5 > x +6 > = +7 > 10 +8 > ; +1->Emitted(6, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(6, 18) Source(1, 14) + SourceIndex(1) +3 >Emitted(6, 19) Source(1, 28) + SourceIndex(1) +4 >Emitted(6, 27) Source(1, 28) + SourceIndex(1) +5 >Emitted(6, 28) Source(1, 29) + SourceIndex(1) +6 >Emitted(6, 31) Source(1, 32) + SourceIndex(1) +7 >Emitted(6, 33) Source(1, 34) + SourceIndex(1) +8 >Emitted(6, 34) Source(1, 35) + SourceIndex(1) +--- +>>> var normalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +1->Emitted(7, 5) Source(2, 1) + SourceIndex(1) +--- +>>> /*@internal*/ function normalC() { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->export class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(8, 9) Source(3, 5) + SourceIndex(1) +2 >Emitted(8, 22) Source(3, 18) + SourceIndex(1) +3 >Emitted(8, 23) Source(3, 19) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(9, 9) Source(3, 35) + SourceIndex(1) +2 >Emitted(9, 10) Source(3, 36) + SourceIndex(1) +--- +>>> /*@internal*/ normalC.prototype.method = function () { }; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /*@internal*/ prop: string; + > +2 > /*@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(10, 9) Source(5, 5) + SourceIndex(1) +2 >Emitted(10, 22) Source(5, 18) + SourceIndex(1) +3 >Emitted(10, 23) Source(5, 19) + SourceIndex(1) +4 >Emitted(10, 47) Source(5, 25) + SourceIndex(1) +5 >Emitted(10, 50) Source(5, 19) + SourceIndex(1) +6 >Emitted(10, 64) Source(5, 30) + SourceIndex(1) +7 >Emitted(10, 65) Source(5, 31) + SourceIndex(1) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(11, 9) Source(6, 19) + SourceIndex(1) +2 >Emitted(11, 31) Source(6, 23) + SourceIndex(1) +3 >Emitted(11, 53) Source(6, 24) + SourceIndex(1) +--- +>>> /*@internal*/ get: function () { return 10; }, +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /*@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(12, 13) Source(6, 5) + SourceIndex(1) +2 >Emitted(12, 26) Source(6, 18) + SourceIndex(1) +3 >Emitted(12, 32) Source(6, 19) + SourceIndex(1) +4 >Emitted(12, 46) Source(6, 29) + SourceIndex(1) +5 >Emitted(12, 53) Source(6, 36) + SourceIndex(1) +6 >Emitted(12, 55) Source(6, 38) + SourceIndex(1) +7 >Emitted(12, 56) Source(6, 39) + SourceIndex(1) +8 >Emitted(12, 57) Source(6, 40) + SourceIndex(1) +9 >Emitted(12, 58) Source(6, 41) + SourceIndex(1) +--- +>>> /*@internal*/ set: function (val) { }, +1 >^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(13, 13) Source(7, 5) + SourceIndex(1) +2 >Emitted(13, 26) Source(7, 18) + SourceIndex(1) +3 >Emitted(13, 32) Source(7, 19) + SourceIndex(1) +4 >Emitted(13, 42) Source(7, 25) + SourceIndex(1) +5 >Emitted(13, 45) Source(7, 36) + SourceIndex(1) +6 >Emitted(13, 49) Source(7, 40) + SourceIndex(1) +7 >Emitted(13, 50) Source(7, 41) + SourceIndex(1) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(16, 12) Source(6, 41) + SourceIndex(1) +--- +>>> return normalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(17, 9) Source(8, 1) + SourceIndex(1) +2 >Emitted(17, 23) Source(8, 2) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(18, 5) Source(8, 1) + SourceIndex(1) +2 >Emitted(18, 6) Source(8, 2) + SourceIndex(1) +3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) +4 >Emitted(18, 10) Source(8, 2) + SourceIndex(1) +--- +>>> exports.normalC = normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > normalC +1->Emitted(19, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(19, 31) Source(2, 21) + SourceIndex(1) +--- +>>> var normalN; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} + > +2 > export namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(20, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 9) Source(9, 18) + SourceIndex(1) +3 >Emitted(20, 16) Source(9, 25) + SourceIndex(1) +4 >Emitted(20, 17) Source(18, 2) + SourceIndex(1) +--- +>>> (function (normalN) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export namespace +3 > normalN +1->Emitted(21, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(21, 16) Source(9, 18) + SourceIndex(1) +3 >Emitted(21, 23) Source(9, 25) + SourceIndex(1) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(22, 9) Source(10, 5) + SourceIndex(1) +2 >Emitted(22, 22) Source(10, 18) + SourceIndex(1) +3 >Emitted(22, 23) Source(10, 19) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(23, 13) Source(10, 19) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(24, 14) Source(10, 37) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(25, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(25, 21) Source(10, 37) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(26, 9) Source(10, 36) + SourceIndex(1) +2 >Emitted(26, 10) Source(10, 37) + SourceIndex(1) +3 >Emitted(26, 10) Source(10, 19) + SourceIndex(1) +4 >Emitted(26, 14) Source(10, 37) + SourceIndex(1) +--- +>>> normalN.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(27, 9) Source(10, 32) + SourceIndex(1) +2 >Emitted(27, 18) Source(10, 33) + SourceIndex(1) +3 >Emitted(27, 22) Source(10, 37) + SourceIndex(1) +4 >Emitted(27, 23) Source(10, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function foo() { } +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(28, 9) Source(11, 5) + SourceIndex(1) +2 >Emitted(28, 22) Source(11, 18) + SourceIndex(1) +3 >Emitted(28, 23) Source(11, 19) + SourceIndex(1) +4 >Emitted(28, 32) Source(11, 35) + SourceIndex(1) +5 >Emitted(28, 35) Source(11, 38) + SourceIndex(1) +6 >Emitted(28, 40) Source(11, 42) + SourceIndex(1) +7 >Emitted(28, 41) Source(11, 43) + SourceIndex(1) +--- +>>> normalN.foo = foo; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(29, 9) Source(11, 35) + SourceIndex(1) +2 >Emitted(29, 20) Source(11, 38) + SourceIndex(1) +3 >Emitted(29, 26) Source(11, 43) + SourceIndex(1) +4 >Emitted(29, 27) Source(11, 43) + SourceIndex(1) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(30, 9) Source(12, 5) + SourceIndex(1) +2 >Emitted(30, 22) Source(12, 18) + SourceIndex(1) +3 >Emitted(30, 23) Source(12, 19) + SourceIndex(1) +4 >Emitted(30, 27) Source(12, 36) + SourceIndex(1) +5 >Emitted(30, 40) Source(12, 49) + SourceIndex(1) +6 >Emitted(30, 41) Source(12, 71) + SourceIndex(1) +--- +>>> (function (someNamespace) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(31, 9) Source(12, 19) + SourceIndex(1) +2 >Emitted(31, 20) Source(12, 36) + SourceIndex(1) +3 >Emitted(31, 33) Source(12, 49) + SourceIndex(1) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(32, 13) Source(12, 52) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(33, 17) Source(12, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(34, 18) Source(12, 69) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(35, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(35, 25) Source(12, 69) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(36, 13) Source(12, 68) + SourceIndex(1) +2 >Emitted(36, 14) Source(12, 69) + SourceIndex(1) +3 >Emitted(36, 14) Source(12, 52) + SourceIndex(1) +4 >Emitted(36, 18) Source(12, 69) + SourceIndex(1) +--- +>>> someNamespace.C = C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(37, 13) Source(12, 65) + SourceIndex(1) +2 >Emitted(37, 28) Source(12, 66) + SourceIndex(1) +3 >Emitted(37, 32) Source(12, 69) + SourceIndex(1) +4 >Emitted(37, 33) Source(12, 69) + SourceIndex(1) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(38, 9) Source(12, 70) + SourceIndex(1) +2 >Emitted(38, 10) Source(12, 71) + SourceIndex(1) +3 >Emitted(38, 12) Source(12, 36) + SourceIndex(1) +4 >Emitted(38, 25) Source(12, 49) + SourceIndex(1) +5 >Emitted(38, 28) Source(12, 36) + SourceIndex(1) +6 >Emitted(38, 49) Source(12, 49) + SourceIndex(1) +7 >Emitted(38, 54) Source(12, 36) + SourceIndex(1) +8 >Emitted(38, 75) Source(12, 49) + SourceIndex(1) +9 >Emitted(38, 83) Source(12, 71) + SourceIndex(1) +--- +>>> /*@internal*/ var someOther; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(39, 9) Source(13, 5) + SourceIndex(1) +2 >Emitted(39, 22) Source(13, 18) + SourceIndex(1) +3 >Emitted(39, 23) Source(13, 19) + SourceIndex(1) +4 >Emitted(39, 27) Source(13, 36) + SourceIndex(1) +5 >Emitted(39, 36) Source(13, 45) + SourceIndex(1) +6 >Emitted(39, 37) Source(13, 85) + SourceIndex(1) +--- +>>> (function (someOther) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(40, 9) Source(13, 19) + SourceIndex(1) +2 >Emitted(40, 20) Source(13, 36) + SourceIndex(1) +3 >Emitted(40, 29) Source(13, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(41, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(41, 17) Source(13, 46) + SourceIndex(1) +3 >Emitted(41, 26) Source(13, 55) + SourceIndex(1) +4 >Emitted(41, 27) Source(13, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(42, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(42, 24) Source(13, 46) + SourceIndex(1) +3 >Emitted(42, 33) Source(13, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(43, 17) Source(13, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(44, 21) Source(13, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(45, 22) Source(13, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(46, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(46, 37) Source(13, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(47, 17) Source(13, 82) + SourceIndex(1) +2 >Emitted(47, 18) Source(13, 83) + SourceIndex(1) +3 >Emitted(47, 18) Source(13, 58) + SourceIndex(1) +4 >Emitted(47, 22) Source(13, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(48, 17) Source(13, 71) + SourceIndex(1) +2 >Emitted(48, 36) Source(13, 80) + SourceIndex(1) +3 >Emitted(48, 48) Source(13, 83) + SourceIndex(1) +4 >Emitted(48, 49) Source(13, 83) + SourceIndex(1) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(49, 13) Source(13, 84) + SourceIndex(1) +2 >Emitted(49, 14) Source(13, 85) + SourceIndex(1) +3 >Emitted(49, 16) Source(13, 46) + SourceIndex(1) +4 >Emitted(49, 25) Source(13, 55) + SourceIndex(1) +5 >Emitted(49, 28) Source(13, 46) + SourceIndex(1) +6 >Emitted(49, 47) Source(13, 55) + SourceIndex(1) +7 >Emitted(49, 52) Source(13, 46) + SourceIndex(1) +8 >Emitted(49, 71) Source(13, 55) + SourceIndex(1) +9 >Emitted(49, 79) Source(13, 85) + SourceIndex(1) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(50, 9) Source(13, 84) + SourceIndex(1) +2 >Emitted(50, 10) Source(13, 85) + SourceIndex(1) +3 >Emitted(50, 12) Source(13, 36) + SourceIndex(1) +4 >Emitted(50, 21) Source(13, 45) + SourceIndex(1) +5 >Emitted(50, 24) Source(13, 36) + SourceIndex(1) +6 >Emitted(50, 41) Source(13, 45) + SourceIndex(1) +7 >Emitted(50, 46) Source(13, 36) + SourceIndex(1) +8 >Emitted(50, 63) Source(13, 45) + SourceIndex(1) +9 >Emitted(50, 71) Source(13, 85) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(51, 9) Source(14, 5) + SourceIndex(1) +2 >Emitted(51, 22) Source(14, 18) + SourceIndex(1) +3 >Emitted(51, 23) Source(14, 33) + SourceIndex(1) +4 >Emitted(51, 41) Source(14, 43) + SourceIndex(1) +5 >Emitted(51, 44) Source(14, 46) + SourceIndex(1) +6 >Emitted(51, 57) Source(14, 59) + SourceIndex(1) +7 >Emitted(51, 58) Source(14, 60) + SourceIndex(1) +8 >Emitted(51, 59) Source(14, 61) + SourceIndex(1) +9 >Emitted(51, 60) Source(14, 62) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.internalConst = 10; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(52, 9) Source(16, 5) + SourceIndex(1) +2 >Emitted(52, 22) Source(16, 18) + SourceIndex(1) +3 >Emitted(52, 23) Source(16, 32) + SourceIndex(1) +4 >Emitted(52, 44) Source(16, 45) + SourceIndex(1) +5 >Emitted(52, 47) Source(16, 48) + SourceIndex(1) +6 >Emitted(52, 49) Source(16, 50) + SourceIndex(1) +7 >Emitted(52, 50) Source(16, 51) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(53, 9) Source(17, 5) + SourceIndex(1) +2 >Emitted(53, 22) Source(17, 18) + SourceIndex(1) +3 >Emitted(53, 23) Source(17, 19) + SourceIndex(1) +4 >Emitted(53, 27) Source(17, 31) + SourceIndex(1) +5 >Emitted(53, 39) Source(17, 55) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(54, 9) Source(17, 19) + SourceIndex(1) +2 >Emitted(54, 20) Source(17, 31) + SourceIndex(1) +3 >Emitted(54, 32) Source(17, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(55, 13) Source(17, 46) + SourceIndex(1) +2 >Emitted(55, 54) Source(17, 47) + SourceIndex(1) +3 >Emitted(55, 55) Source(17, 47) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(56, 13) Source(17, 49) + SourceIndex(1) +2 >Emitted(56, 54) Source(17, 50) + SourceIndex(1) +3 >Emitted(56, 55) Source(17, 50) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(57, 13) Source(17, 52) + SourceIndex(1) +2 >Emitted(57, 54) Source(17, 53) + SourceIndex(1) +3 >Emitted(57, 55) Source(17, 53) + SourceIndex(1) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(58, 9) Source(17, 54) + SourceIndex(1) +2 >Emitted(58, 10) Source(17, 55) + SourceIndex(1) +3 >Emitted(58, 12) Source(17, 31) + SourceIndex(1) +4 >Emitted(58, 24) Source(17, 43) + SourceIndex(1) +5 >Emitted(58, 27) Source(17, 31) + SourceIndex(1) +6 >Emitted(58, 47) Source(17, 43) + SourceIndex(1) +7 >Emitted(58, 52) Source(17, 31) + SourceIndex(1) +8 >Emitted(58, 72) Source(17, 43) + SourceIndex(1) +9 >Emitted(58, 80) Source(17, 55) + SourceIndex(1) +--- +>>> })(normalN = exports.normalN || (exports.normalN = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +10> ^^^-> +1 > + > +2 > } +3 > +4 > normalN +5 > +6 > normalN +7 > +8 > normalN +9 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(59, 5) Source(18, 1) + SourceIndex(1) +2 >Emitted(59, 6) Source(18, 2) + SourceIndex(1) +3 >Emitted(59, 8) Source(9, 18) + SourceIndex(1) +4 >Emitted(59, 15) Source(9, 25) + SourceIndex(1) +5 >Emitted(59, 18) Source(9, 18) + SourceIndex(1) +6 >Emitted(59, 33) Source(9, 25) + SourceIndex(1) +7 >Emitted(59, 38) Source(9, 18) + SourceIndex(1) +8 >Emitted(59, 53) Source(9, 25) + SourceIndex(1) +9 >Emitted(59, 61) Source(18, 2) + SourceIndex(1) +--- +>>> /*@internal*/ var internalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 > /*@internal*/ +3 > +1->Emitted(60, 5) Source(19, 1) + SourceIndex(1) +2 >Emitted(60, 18) Source(19, 14) + SourceIndex(1) +3 >Emitted(60, 19) Source(19, 15) + SourceIndex(1) +--- +>>> function internalC() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(61, 9) Source(19, 15) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class internalC { +2 > } +1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(62, 10) Source(19, 40) + SourceIndex(1) +--- +>>> return internalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(63, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(63, 25) Source(19, 40) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class internalC {} +1 >Emitted(64, 5) Source(19, 39) + SourceIndex(1) +2 >Emitted(64, 6) Source(19, 40) + SourceIndex(1) +3 >Emitted(64, 6) Source(19, 15) + SourceIndex(1) +4 >Emitted(64, 10) Source(19, 40) + SourceIndex(1) +--- +>>> exports.internalC = internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^-> +1-> +2 > internalC +1->Emitted(65, 5) Source(19, 28) + SourceIndex(1) +2 >Emitted(65, 35) Source(19, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function internalfoo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> {} + > +2 > /*@internal*/ +3 > +4 > export function +5 > internalfoo +6 > () { +7 > } +1->Emitted(66, 5) Source(20, 1) + SourceIndex(1) +2 >Emitted(66, 18) Source(20, 14) + SourceIndex(1) +3 >Emitted(66, 19) Source(20, 15) + SourceIndex(1) +4 >Emitted(66, 28) Source(20, 31) + SourceIndex(1) +5 >Emitted(66, 39) Source(20, 42) + SourceIndex(1) +6 >Emitted(66, 44) Source(20, 46) + SourceIndex(1) +7 >Emitted(66, 45) Source(20, 47) + SourceIndex(1) +--- +>>> exports.internalfoo = internalfoo; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^-> +1 > +2 > export function internalfoo() {} +1 >Emitted(67, 5) Source(20, 15) + SourceIndex(1) +2 >Emitted(67, 39) Source(20, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalNamespace +6 > { export class someClass {} } +1->Emitted(68, 5) Source(21, 1) + SourceIndex(1) +2 >Emitted(68, 18) Source(21, 14) + SourceIndex(1) +3 >Emitted(68, 19) Source(21, 15) + SourceIndex(1) +4 >Emitted(68, 23) Source(21, 32) + SourceIndex(1) +5 >Emitted(68, 40) Source(21, 49) + SourceIndex(1) +6 >Emitted(68, 41) Source(21, 79) + SourceIndex(1) +--- +>>> (function (internalNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > internalNamespace +1 >Emitted(69, 5) Source(21, 15) + SourceIndex(1) +2 >Emitted(69, 16) Source(21, 32) + SourceIndex(1) +3 >Emitted(69, 33) Source(21, 49) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(70, 9) Source(21, 52) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(71, 13) Source(21, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(72, 14) Source(21, 77) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(73, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(73, 29) Source(21, 77) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(74, 9) Source(21, 76) + SourceIndex(1) +2 >Emitted(74, 10) Source(21, 77) + SourceIndex(1) +3 >Emitted(74, 10) Source(21, 52) + SourceIndex(1) +4 >Emitted(74, 14) Source(21, 77) + SourceIndex(1) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(75, 9) Source(21, 65) + SourceIndex(1) +2 >Emitted(75, 36) Source(21, 74) + SourceIndex(1) +3 >Emitted(75, 48) Source(21, 77) + SourceIndex(1) +4 >Emitted(75, 49) Source(21, 77) + SourceIndex(1) +--- +>>> })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > +8 > internalNamespace +9 > { export class someClass {} } +1->Emitted(76, 5) Source(21, 78) + SourceIndex(1) +2 >Emitted(76, 6) Source(21, 79) + SourceIndex(1) +3 >Emitted(76, 8) Source(21, 32) + SourceIndex(1) +4 >Emitted(76, 25) Source(21, 49) + SourceIndex(1) +5 >Emitted(76, 28) Source(21, 32) + SourceIndex(1) +6 >Emitted(76, 53) Source(21, 49) + SourceIndex(1) +7 >Emitted(76, 58) Source(21, 32) + SourceIndex(1) +8 >Emitted(76, 83) Source(21, 49) + SourceIndex(1) +9 >Emitted(76, 91) Source(21, 79) + SourceIndex(1) +--- +>>> /*@internal*/ var internalOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(77, 5) Source(22, 1) + SourceIndex(1) +2 >Emitted(77, 18) Source(22, 14) + SourceIndex(1) +3 >Emitted(77, 19) Source(22, 15) + SourceIndex(1) +4 >Emitted(77, 23) Source(22, 32) + SourceIndex(1) +5 >Emitted(77, 36) Source(22, 45) + SourceIndex(1) +6 >Emitted(77, 37) Source(22, 85) + SourceIndex(1) +--- +>>> (function (internalOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 > export namespace +3 > internalOther +1 >Emitted(78, 5) Source(22, 15) + SourceIndex(1) +2 >Emitted(78, 16) Source(22, 32) + SourceIndex(1) +3 >Emitted(78, 29) Source(22, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(79, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(79, 13) Source(22, 46) + SourceIndex(1) +3 >Emitted(79, 22) Source(22, 55) + SourceIndex(1) +4 >Emitted(79, 23) Source(22, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(80, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(80, 20) Source(22, 46) + SourceIndex(1) +3 >Emitted(80, 29) Source(22, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(81, 13) Source(22, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(82, 17) Source(22, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(83, 18) Source(22, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(84, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(84, 33) Source(22, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(85, 13) Source(22, 82) + SourceIndex(1) +2 >Emitted(85, 14) Source(22, 83) + SourceIndex(1) +3 >Emitted(85, 14) Source(22, 58) + SourceIndex(1) +4 >Emitted(85, 18) Source(22, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(86, 13) Source(22, 71) + SourceIndex(1) +2 >Emitted(86, 32) Source(22, 80) + SourceIndex(1) +3 >Emitted(86, 44) Source(22, 83) + SourceIndex(1) +4 >Emitted(86, 45) Source(22, 83) + SourceIndex(1) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(87, 9) Source(22, 84) + SourceIndex(1) +2 >Emitted(87, 10) Source(22, 85) + SourceIndex(1) +3 >Emitted(87, 12) Source(22, 46) + SourceIndex(1) +4 >Emitted(87, 21) Source(22, 55) + SourceIndex(1) +5 >Emitted(87, 24) Source(22, 46) + SourceIndex(1) +6 >Emitted(87, 47) Source(22, 55) + SourceIndex(1) +7 >Emitted(87, 52) Source(22, 46) + SourceIndex(1) +8 >Emitted(87, 75) Source(22, 55) + SourceIndex(1) +9 >Emitted(87, 83) Source(22, 85) + SourceIndex(1) +--- +>>> })(internalOther = exports.internalOther || (exports.internalOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > internalOther +5 > +6 > internalOther +7 > +8 > internalOther +9 > .something { export class someClass {} } +1 >Emitted(88, 5) Source(22, 84) + SourceIndex(1) +2 >Emitted(88, 6) Source(22, 85) + SourceIndex(1) +3 >Emitted(88, 8) Source(22, 32) + SourceIndex(1) +4 >Emitted(88, 21) Source(22, 45) + SourceIndex(1) +5 >Emitted(88, 24) Source(22, 32) + SourceIndex(1) +6 >Emitted(88, 45) Source(22, 45) + SourceIndex(1) +7 >Emitted(88, 50) Source(22, 32) + SourceIndex(1) +8 >Emitted(88, 71) Source(22, 45) + SourceIndex(1) +9 >Emitted(88, 79) Source(22, 85) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalImport = internalNamespace.someClass; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1 >Emitted(89, 5) Source(23, 1) + SourceIndex(1) +2 >Emitted(89, 18) Source(23, 14) + SourceIndex(1) +3 >Emitted(89, 19) Source(23, 29) + SourceIndex(1) +4 >Emitted(89, 27) Source(23, 29) + SourceIndex(1) +5 >Emitted(89, 41) Source(23, 43) + SourceIndex(1) +6 >Emitted(89, 44) Source(23, 46) + SourceIndex(1) +7 >Emitted(89, 61) Source(23, 63) + SourceIndex(1) +8 >Emitted(89, 62) Source(23, 64) + SourceIndex(1) +9 >Emitted(89, 71) Source(23, 73) + SourceIndex(1) +10>Emitted(89, 72) Source(23, 74) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(90, 5) Source(25, 1) + SourceIndex(1) +2 >Emitted(90, 18) Source(25, 14) + SourceIndex(1) +3 >Emitted(90, 19) Source(25, 28) + SourceIndex(1) +4 >Emitted(90, 27) Source(25, 28) + SourceIndex(1) +5 >Emitted(90, 40) Source(25, 41) + SourceIndex(1) +6 >Emitted(90, 43) Source(25, 44) + SourceIndex(1) +7 >Emitted(90, 45) Source(25, 46) + SourceIndex(1) +8 >Emitted(90, 46) Source(25, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(91, 5) Source(26, 1) + SourceIndex(1) +2 >Emitted(91, 18) Source(26, 14) + SourceIndex(1) +3 >Emitted(91, 19) Source(26, 15) + SourceIndex(1) +4 >Emitted(91, 23) Source(26, 27) + SourceIndex(1) +5 >Emitted(91, 35) Source(26, 51) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(92, 5) Source(26, 15) + SourceIndex(1) +2 >Emitted(92, 16) Source(26, 27) + SourceIndex(1) +3 >Emitted(92, 28) Source(26, 39) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(93, 9) Source(26, 42) + SourceIndex(1) +2 >Emitted(93, 50) Source(26, 43) + SourceIndex(1) +3 >Emitted(93, 51) Source(26, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(94, 9) Source(26, 45) + SourceIndex(1) +2 >Emitted(94, 50) Source(26, 46) + SourceIndex(1) +3 >Emitted(94, 51) Source(26, 46) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(95, 9) Source(26, 48) + SourceIndex(1) +2 >Emitted(95, 50) Source(26, 49) + SourceIndex(1) +3 >Emitted(95, 51) Source(26, 49) + SourceIndex(1) +--- +>>> })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(96, 5) Source(26, 50) + SourceIndex(1) +2 >Emitted(96, 6) Source(26, 51) + SourceIndex(1) +3 >Emitted(96, 8) Source(26, 27) + SourceIndex(1) +4 >Emitted(96, 20) Source(26, 39) + SourceIndex(1) +5 >Emitted(96, 23) Source(26, 27) + SourceIndex(1) +6 >Emitted(96, 43) Source(26, 39) + SourceIndex(1) +7 >Emitted(96, 48) Source(26, 27) + SourceIndex(1) +8 >Emitted(96, 68) Source(26, 39) + SourceIndex(1) +9 >Emitted(96, 76) Source(26, 51) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(101, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(101, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(101, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(101, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(101, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(101, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(103, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(103, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(103, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(103, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(103, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(103, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(107, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(107, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(107, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(107, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(107, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(107, 20) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(109, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(109, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(109, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(109, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(109, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(109, 16) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/app/", + "sourceFiles": [ + "/src/app/file3.ts", + "/src/app/file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 17, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 19, + "end": 4162, + "kind": "prepend", + "data": "/src/lib/module.js", + "texts": [ + { + "pos": 19, + "end": 4162, + "kind": "text" + } + ] + }, + { + "pos": 4162, + "end": 4363, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 191, + "kind": "prepend", + "data": "/src/lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 191, + "kind": "text" + } + ] + }, + { + "pos": 191, + "end": 273, + "kind": "text" + } + ] + } + } +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prologue: (0-17):: use strict + "use strict"; +---------------------------------------------------------------------- +prepend: (19-4162):: /src/lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (19-4162) +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + /*@internal*/ exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (4162-4363) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-191):: /src/lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-191) +declare module "file1" { + export class normalC { + } + export namespace normalN { + } +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (191-273) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/lib/file1.ts] +/*@internal*/ export const x = 10; +export class normalC { + /*@internal*/ constructor() { } + /*@internal*/ prop: string; + /*@internal*/ method() { } + /*@internal*/ get c() { return 10; } + /*@internal*/ set c(val: number) { } +} +export namespace normalN { + /*@internal*/ export class C { } + /*@internal*/ export function foo() {} + /*@internal*/ export namespace someNamespace { export class C {} } + /*@internal*/ export namespace someOther.something { export class someClass {} } + /*@internal*/ export import someImport = someNamespace.C; + /*@internal*/ export type internalType = internalC; + /*@internal*/ export const internalConst = 10; + /*@internal*/ export enum internalEnum { a, b, c } +} +/*@internal*/ export class internalC {} +/*@internal*/ export function internalfoo() {} +/*@internal*/ export namespace internalNamespace { export class someClass {} } +/*@internal*/ export namespace internalOther.something { export class someClass {} } +/*@internal*/ export import internalImport = internalNamespace.someClass; +/*@internal*/ export type internalType = internalC; +/*@internal*/ export const internalConst = 10; +/*@internal*/ export enum internalEnum { a, b, c } + +//// [/src/lib/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IAClC,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;sBACF,CAAC,EACM,MAAM;KAClC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} + +//// [/src/lib/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 >/*@internal*/ +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) +2 >Emitted(1, 9) Source(1, 15) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 21) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 27) + SourceIndex(0) +5 >Emitted(1, 26) Source(1, 32) + SourceIndex(0) +6 >Emitted(1, 27) Source(1, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^^^-> +1 >/*@internal*/ +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(3, 5) Source(1, 15) + SourceIndex(1) +2 >Emitted(3, 11) Source(1, 21) + SourceIndex(1) +3 >Emitted(3, 12) Source(1, 22) + SourceIndex(1) +4 >Emitted(3, 18) Source(1, 28) + SourceIndex(1) +5 >Emitted(3, 19) Source(1, 29) + SourceIndex(1) +6 >Emitted(3, 24) Source(1, 34) + SourceIndex(1) +7 >Emitted(3, 25) Source(1, 35) + SourceIndex(1) +--- +>>> export class normalC { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^ +1-> + > +2 > export +3 > class +4 > normalC +1->Emitted(4, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 11) Source(2, 7) + SourceIndex(1) +3 >Emitted(4, 18) Source(2, 14) + SourceIndex(1) +4 >Emitted(4, 25) Source(2, 21) + SourceIndex(1) +--- +>>> constructor(); +>>> prop: string; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +6 > ^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ +2 > prop +3 > : +4 > string +5 > ; +1 >Emitted(6, 9) Source(4, 19) + SourceIndex(1) +2 >Emitted(6, 13) Source(4, 23) + SourceIndex(1) +3 >Emitted(6, 15) Source(4, 25) + SourceIndex(1) +4 >Emitted(6, 21) Source(4, 31) + SourceIndex(1) +5 >Emitted(6, 22) Source(4, 32) + SourceIndex(1) +--- +>>> method(): void; +1->^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > method +1->Emitted(7, 9) Source(5, 19) + SourceIndex(1) +2 >Emitted(7, 15) Source(5, 25) + SourceIndex(1) +--- +>>> /*@internal*/ c: number; +1->^^^^^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^ +1->() { } + > /*@internal*/ get +2 > c +3 > () { return 10; } + > /*@internal*/ set c(val: +4 > number +1->Emitted(8, 23) Source(6, 23) + SourceIndex(1) +2 >Emitted(8, 24) Source(6, 24) + SourceIndex(1) +3 >Emitted(8, 26) Source(7, 30) + SourceIndex(1) +4 >Emitted(8, 32) Source(7, 36) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { } + >} +1 >Emitted(9, 6) Source(8, 2) + SourceIndex(1) +--- +>>> export namespace normalN { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^ +5 > ^ +1-> + > +2 > export +3 > namespace +4 > normalN +5 > +1->Emitted(10, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(10, 11) Source(9, 7) + SourceIndex(1) +3 >Emitted(10, 22) Source(9, 18) + SourceIndex(1) +4 >Emitted(10, 29) Source(9, 25) + SourceIndex(1) +5 >Emitted(10, 30) Source(9, 26) + SourceIndex(1) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ + > /*@internal*/ +2 > export class +3 > C +1 >Emitted(11, 9) Source(10, 19) + SourceIndex(1) +2 >Emitted(11, 15) Source(10, 32) + SourceIndex(1) +3 >Emitted(11, 16) Source(10, 33) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(12, 10) Source(10, 37) + SourceIndex(1) +--- +>>> function foo(): void; +1->^^^^^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^ +5 > ^^^^^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () {} +1->Emitted(13, 9) Source(11, 19) + SourceIndex(1) +2 >Emitted(13, 18) Source(11, 35) + SourceIndex(1) +3 >Emitted(13, 21) Source(11, 38) + SourceIndex(1) +4 >Emitted(13, 30) Source(11, 43) + SourceIndex(1) +--- +>>> namespace someNamespace { +1->^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > +1->Emitted(14, 9) Source(12, 19) + SourceIndex(1) +2 >Emitted(14, 19) Source(12, 36) + SourceIndex(1) +3 >Emitted(14, 32) Source(12, 49) + SourceIndex(1) +4 >Emitted(14, 33) Source(12, 50) + SourceIndex(1) +--- +>>> class C { +1 >^^^^^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(15, 13) Source(12, 52) + SourceIndex(1) +2 >Emitted(15, 19) Source(12, 65) + SourceIndex(1) +3 >Emitted(15, 20) Source(12, 66) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^^^^^ +1 > {} +1 >Emitted(16, 14) Source(12, 69) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(17, 10) Source(12, 71) + SourceIndex(1) +--- +>>> namespace someOther.something { +1->^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someOther +4 > . +5 > something +6 > +1->Emitted(18, 9) Source(13, 19) + SourceIndex(1) +2 >Emitted(18, 19) Source(13, 36) + SourceIndex(1) +3 >Emitted(18, 28) Source(13, 45) + SourceIndex(1) +4 >Emitted(18, 29) Source(13, 46) + SourceIndex(1) +5 >Emitted(18, 38) Source(13, 55) + SourceIndex(1) +6 >Emitted(18, 39) Source(13, 56) + SourceIndex(1) +--- +>>> class someClass { +1 >^^^^^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(19, 13) Source(13, 58) + SourceIndex(1) +2 >Emitted(19, 19) Source(13, 71) + SourceIndex(1) +3 >Emitted(19, 28) Source(13, 80) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^^^^^ +1 > {} +1 >Emitted(20, 14) Source(13, 83) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(21, 10) Source(13, 85) + SourceIndex(1) +--- +>>> export import someImport = someNamespace.C; +1->^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1-> + > /*@internal*/ +2 > export +3 > import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1->Emitted(22, 9) Source(14, 19) + SourceIndex(1) +2 >Emitted(22, 15) Source(14, 25) + SourceIndex(1) +3 >Emitted(22, 23) Source(14, 33) + SourceIndex(1) +4 >Emitted(22, 33) Source(14, 43) + SourceIndex(1) +5 >Emitted(22, 36) Source(14, 46) + SourceIndex(1) +6 >Emitted(22, 49) Source(14, 59) + SourceIndex(1) +7 >Emitted(22, 50) Source(14, 60) + SourceIndex(1) +8 >Emitted(22, 51) Source(14, 61) + SourceIndex(1) +9 >Emitted(22, 52) Source(14, 62) + SourceIndex(1) +--- +>>> type internalType = internalC; +1 >^^^^^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > /*@internal*/ +2 > export type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(23, 9) Source(15, 19) + SourceIndex(1) +2 >Emitted(23, 14) Source(15, 31) + SourceIndex(1) +3 >Emitted(23, 26) Source(15, 43) + SourceIndex(1) +4 >Emitted(23, 29) Source(15, 46) + SourceIndex(1) +5 >Emitted(23, 38) Source(15, 55) + SourceIndex(1) +6 >Emitted(23, 39) Source(15, 56) + SourceIndex(1) +--- +>>> const internalConst = 10; +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1 > + > /*@internal*/ export +2 > const +3 > internalConst +4 > = 10 +5 > ; +1 >Emitted(24, 9) Source(16, 26) + SourceIndex(1) +2 >Emitted(24, 15) Source(16, 32) + SourceIndex(1) +3 >Emitted(24, 28) Source(16, 45) + SourceIndex(1) +4 >Emitted(24, 33) Source(16, 50) + SourceIndex(1) +5 >Emitted(24, 34) Source(16, 51) + SourceIndex(1) +--- +>>> enum internalEnum { +1 >^^^^^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum +1 >Emitted(25, 9) Source(17, 19) + SourceIndex(1) +2 >Emitted(25, 14) Source(17, 31) + SourceIndex(1) +3 >Emitted(25, 26) Source(17, 43) + SourceIndex(1) +--- +>>> a = 0, +1 >^^^^^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(26, 13) Source(17, 46) + SourceIndex(1) +2 >Emitted(26, 14) Source(17, 47) + SourceIndex(1) +3 >Emitted(26, 18) Source(17, 47) + SourceIndex(1) +--- +>>> b = 1, +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(27, 13) Source(17, 49) + SourceIndex(1) +2 >Emitted(27, 14) Source(17, 50) + SourceIndex(1) +3 >Emitted(27, 18) Source(17, 50) + SourceIndex(1) +--- +>>> c = 2 +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(28, 13) Source(17, 52) + SourceIndex(1) +2 >Emitted(28, 14) Source(17, 53) + SourceIndex(1) +3 >Emitted(28, 18) Source(17, 53) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +1 > } +1 >Emitted(29, 10) Source(17, 55) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(30, 6) Source(18, 2) + SourceIndex(1) +--- +>>> export class internalC { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^ +1-> + >/*@internal*/ +2 > export +3 > class +4 > internalC +1->Emitted(31, 5) Source(19, 15) + SourceIndex(1) +2 >Emitted(31, 11) Source(19, 21) + SourceIndex(1) +3 >Emitted(31, 18) Source(19, 28) + SourceIndex(1) +4 >Emitted(31, 27) Source(19, 37) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(32, 6) Source(19, 40) + SourceIndex(1) +--- +>>> export function internalfoo(): void; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^ +6 > ^-> +1-> + >/*@internal*/ +2 > export +3 > function +4 > internalfoo +5 > () {} +1->Emitted(33, 5) Source(20, 15) + SourceIndex(1) +2 >Emitted(33, 11) Source(20, 21) + SourceIndex(1) +3 >Emitted(33, 21) Source(20, 31) + SourceIndex(1) +4 >Emitted(33, 32) Source(20, 42) + SourceIndex(1) +5 >Emitted(33, 41) Source(20, 47) + SourceIndex(1) +--- +>>> export namespace internalNamespace { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 > export +3 > namespace +4 > internalNamespace +5 > +1->Emitted(34, 5) Source(21, 15) + SourceIndex(1) +2 >Emitted(34, 11) Source(21, 21) + SourceIndex(1) +3 >Emitted(34, 22) Source(21, 32) + SourceIndex(1) +4 >Emitted(34, 39) Source(21, 49) + SourceIndex(1) +5 >Emitted(34, 40) Source(21, 50) + SourceIndex(1) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(35, 9) Source(21, 52) + SourceIndex(1) +2 >Emitted(35, 15) Source(21, 65) + SourceIndex(1) +3 >Emitted(35, 24) Source(21, 74) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(36, 10) Source(21, 77) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(37, 6) Source(21, 79) + SourceIndex(1) +--- +>>> export namespace internalOther.something { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +1-> + >/*@internal*/ +2 > export +3 > namespace +4 > internalOther +5 > . +6 > something +7 > +1->Emitted(38, 5) Source(22, 15) + SourceIndex(1) +2 >Emitted(38, 11) Source(22, 21) + SourceIndex(1) +3 >Emitted(38, 22) Source(22, 32) + SourceIndex(1) +4 >Emitted(38, 35) Source(22, 45) + SourceIndex(1) +5 >Emitted(38, 36) Source(22, 46) + SourceIndex(1) +6 >Emitted(38, 45) Source(22, 55) + SourceIndex(1) +7 >Emitted(38, 46) Source(22, 56) + SourceIndex(1) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(39, 9) Source(22, 58) + SourceIndex(1) +2 >Emitted(39, 15) Source(22, 71) + SourceIndex(1) +3 >Emitted(39, 24) Source(22, 80) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(40, 10) Source(22, 83) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(41, 6) Source(22, 85) + SourceIndex(1) +--- +>>> export import internalImport = internalNamespace.someClass; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^^^^^^^^^ +9 > ^ +1-> + >/*@internal*/ +2 > export +3 > import +4 > internalImport +5 > = +6 > internalNamespace +7 > . +8 > someClass +9 > ; +1->Emitted(42, 5) Source(23, 15) + SourceIndex(1) +2 >Emitted(42, 11) Source(23, 21) + SourceIndex(1) +3 >Emitted(42, 19) Source(23, 29) + SourceIndex(1) +4 >Emitted(42, 33) Source(23, 43) + SourceIndex(1) +5 >Emitted(42, 36) Source(23, 46) + SourceIndex(1) +6 >Emitted(42, 53) Source(23, 63) + SourceIndex(1) +7 >Emitted(42, 54) Source(23, 64) + SourceIndex(1) +8 >Emitted(42, 63) Source(23, 73) + SourceIndex(1) +9 >Emitted(42, 64) Source(23, 74) + SourceIndex(1) +--- +>>> export type internalType = internalC; +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^ +7 > ^ +1 > + >/*@internal*/ +2 > export +3 > type +4 > internalType +5 > = +6 > internalC +7 > ; +1 >Emitted(43, 5) Source(24, 15) + SourceIndex(1) +2 >Emitted(43, 11) Source(24, 21) + SourceIndex(1) +3 >Emitted(43, 17) Source(24, 27) + SourceIndex(1) +4 >Emitted(43, 29) Source(24, 39) + SourceIndex(1) +5 >Emitted(43, 32) Source(24, 42) + SourceIndex(1) +6 >Emitted(43, 41) Source(24, 51) + SourceIndex(1) +7 >Emitted(43, 42) Source(24, 52) + SourceIndex(1) +--- +>>> export const internalConst = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1 > + >/*@internal*/ +2 > export +3 > +4 > const +5 > internalConst +6 > = 10 +7 > ; +1 >Emitted(44, 5) Source(25, 15) + SourceIndex(1) +2 >Emitted(44, 11) Source(25, 21) + SourceIndex(1) +3 >Emitted(44, 12) Source(25, 22) + SourceIndex(1) +4 >Emitted(44, 18) Source(25, 28) + SourceIndex(1) +5 >Emitted(44, 31) Source(25, 41) + SourceIndex(1) +6 >Emitted(44, 36) Source(25, 46) + SourceIndex(1) +7 >Emitted(44, 37) Source(25, 47) + SourceIndex(1) +--- +>>> export enum internalEnum { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^ +1 > + >/*@internal*/ +2 > export +3 > enum +4 > internalEnum +1 >Emitted(45, 5) Source(26, 15) + SourceIndex(1) +2 >Emitted(45, 11) Source(26, 21) + SourceIndex(1) +3 >Emitted(45, 17) Source(26, 27) + SourceIndex(1) +4 >Emitted(45, 29) Source(26, 39) + SourceIndex(1) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(46, 9) Source(26, 42) + SourceIndex(1) +2 >Emitted(46, 10) Source(26, 43) + SourceIndex(1) +3 >Emitted(46, 14) Source(26, 43) + SourceIndex(1) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(47, 9) Source(26, 45) + SourceIndex(1) +2 >Emitted(47, 10) Source(26, 46) + SourceIndex(1) +3 >Emitted(47, 14) Source(26, 46) + SourceIndex(1) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(48, 9) Source(26, 48) + SourceIndex(1) +2 >Emitted(48, 10) Source(26, 49) + SourceIndex(1) +3 >Emitted(48, 14) Source(26, 49) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(49, 6) Source(26, 51) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(52, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(52, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(52, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(52, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(52, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(52, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(52, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^-> +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(54, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(54, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(54, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(54, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(54, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(54, 32) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.js] +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + /*@internal*/ exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAhC,aAAa,CAAc,QAAA,CAAC,GAAG,EAAE,CAAC;IAClC;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>/*@internal*/ var myGlob = 20; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >/*@internal*/ +3 > +4 > const +5 > myGlob +6 > = +7 > 20 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) +4 >Emitted(1, 19) Source(1, 21) + SourceIndex(0) +5 >Emitted(1, 25) Source(1, 27) + SourceIndex(0) +6 >Emitted(1, 28) Source(1, 30) + SourceIndex(0) +7 >Emitted(1, 30) Source(1, 32) + SourceIndex(0) +8 >Emitted(1, 31) Source(1, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> /*@internal*/ exports.x = 10; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^^^^^^^-> +1-> +2 > /*@internal*/ +3 > export const +4 > +5 > x +6 > = +7 > 10 +8 > ; +1->Emitted(5, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 18) Source(1, 14) + SourceIndex(1) +3 >Emitted(5, 19) Source(1, 28) + SourceIndex(1) +4 >Emitted(5, 27) Source(1, 28) + SourceIndex(1) +5 >Emitted(5, 28) Source(1, 29) + SourceIndex(1) +6 >Emitted(5, 31) Source(1, 32) + SourceIndex(1) +7 >Emitted(5, 33) Source(1, 34) + SourceIndex(1) +8 >Emitted(5, 34) Source(1, 35) + SourceIndex(1) +--- +>>> var normalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +1->Emitted(6, 5) Source(2, 1) + SourceIndex(1) +--- +>>> /*@internal*/ function normalC() { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->export class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(7, 9) Source(3, 5) + SourceIndex(1) +2 >Emitted(7, 22) Source(3, 18) + SourceIndex(1) +3 >Emitted(7, 23) Source(3, 19) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(8, 9) Source(3, 35) + SourceIndex(1) +2 >Emitted(8, 10) Source(3, 36) + SourceIndex(1) +--- +>>> /*@internal*/ normalC.prototype.method = function () { }; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /*@internal*/ prop: string; + > +2 > /*@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(9, 9) Source(5, 5) + SourceIndex(1) +2 >Emitted(9, 22) Source(5, 18) + SourceIndex(1) +3 >Emitted(9, 23) Source(5, 19) + SourceIndex(1) +4 >Emitted(9, 47) Source(5, 25) + SourceIndex(1) +5 >Emitted(9, 50) Source(5, 19) + SourceIndex(1) +6 >Emitted(9, 64) Source(5, 30) + SourceIndex(1) +7 >Emitted(9, 65) Source(5, 31) + SourceIndex(1) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(10, 9) Source(6, 19) + SourceIndex(1) +2 >Emitted(10, 31) Source(6, 23) + SourceIndex(1) +3 >Emitted(10, 53) Source(6, 24) + SourceIndex(1) +--- +>>> /*@internal*/ get: function () { return 10; }, +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /*@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(11, 13) Source(6, 5) + SourceIndex(1) +2 >Emitted(11, 26) Source(6, 18) + SourceIndex(1) +3 >Emitted(11, 32) Source(6, 19) + SourceIndex(1) +4 >Emitted(11, 46) Source(6, 29) + SourceIndex(1) +5 >Emitted(11, 53) Source(6, 36) + SourceIndex(1) +6 >Emitted(11, 55) Source(6, 38) + SourceIndex(1) +7 >Emitted(11, 56) Source(6, 39) + SourceIndex(1) +8 >Emitted(11, 57) Source(6, 40) + SourceIndex(1) +9 >Emitted(11, 58) Source(6, 41) + SourceIndex(1) +--- +>>> /*@internal*/ set: function (val) { }, +1 >^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(12, 13) Source(7, 5) + SourceIndex(1) +2 >Emitted(12, 26) Source(7, 18) + SourceIndex(1) +3 >Emitted(12, 32) Source(7, 19) + SourceIndex(1) +4 >Emitted(12, 42) Source(7, 25) + SourceIndex(1) +5 >Emitted(12, 45) Source(7, 36) + SourceIndex(1) +6 >Emitted(12, 49) Source(7, 40) + SourceIndex(1) +7 >Emitted(12, 50) Source(7, 41) + SourceIndex(1) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(15, 12) Source(6, 41) + SourceIndex(1) +--- +>>> return normalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(16, 9) Source(8, 1) + SourceIndex(1) +2 >Emitted(16, 23) Source(8, 2) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(17, 5) Source(8, 1) + SourceIndex(1) +2 >Emitted(17, 6) Source(8, 2) + SourceIndex(1) +3 >Emitted(17, 6) Source(2, 1) + SourceIndex(1) +4 >Emitted(17, 10) Source(8, 2) + SourceIndex(1) +--- +>>> exports.normalC = normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > normalC +1->Emitted(18, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(18, 31) Source(2, 21) + SourceIndex(1) +--- +>>> var normalN; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} + > +2 > export namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(19, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(19, 9) Source(9, 18) + SourceIndex(1) +3 >Emitted(19, 16) Source(9, 25) + SourceIndex(1) +4 >Emitted(19, 17) Source(18, 2) + SourceIndex(1) +--- +>>> (function (normalN) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export namespace +3 > normalN +1->Emitted(20, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 16) Source(9, 18) + SourceIndex(1) +3 >Emitted(20, 23) Source(9, 25) + SourceIndex(1) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(21, 9) Source(10, 5) + SourceIndex(1) +2 >Emitted(21, 22) Source(10, 18) + SourceIndex(1) +3 >Emitted(21, 23) Source(10, 19) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(22, 13) Source(10, 19) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(23, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(23, 14) Source(10, 37) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(24, 21) Source(10, 37) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(25, 9) Source(10, 36) + SourceIndex(1) +2 >Emitted(25, 10) Source(10, 37) + SourceIndex(1) +3 >Emitted(25, 10) Source(10, 19) + SourceIndex(1) +4 >Emitted(25, 14) Source(10, 37) + SourceIndex(1) +--- +>>> normalN.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(26, 9) Source(10, 32) + SourceIndex(1) +2 >Emitted(26, 18) Source(10, 33) + SourceIndex(1) +3 >Emitted(26, 22) Source(10, 37) + SourceIndex(1) +4 >Emitted(26, 23) Source(10, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function foo() { } +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(27, 9) Source(11, 5) + SourceIndex(1) +2 >Emitted(27, 22) Source(11, 18) + SourceIndex(1) +3 >Emitted(27, 23) Source(11, 19) + SourceIndex(1) +4 >Emitted(27, 32) Source(11, 35) + SourceIndex(1) +5 >Emitted(27, 35) Source(11, 38) + SourceIndex(1) +6 >Emitted(27, 40) Source(11, 42) + SourceIndex(1) +7 >Emitted(27, 41) Source(11, 43) + SourceIndex(1) +--- +>>> normalN.foo = foo; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(28, 9) Source(11, 35) + SourceIndex(1) +2 >Emitted(28, 20) Source(11, 38) + SourceIndex(1) +3 >Emitted(28, 26) Source(11, 43) + SourceIndex(1) +4 >Emitted(28, 27) Source(11, 43) + SourceIndex(1) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(29, 9) Source(12, 5) + SourceIndex(1) +2 >Emitted(29, 22) Source(12, 18) + SourceIndex(1) +3 >Emitted(29, 23) Source(12, 19) + SourceIndex(1) +4 >Emitted(29, 27) Source(12, 36) + SourceIndex(1) +5 >Emitted(29, 40) Source(12, 49) + SourceIndex(1) +6 >Emitted(29, 41) Source(12, 71) + SourceIndex(1) +--- +>>> (function (someNamespace) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(30, 9) Source(12, 19) + SourceIndex(1) +2 >Emitted(30, 20) Source(12, 36) + SourceIndex(1) +3 >Emitted(30, 33) Source(12, 49) + SourceIndex(1) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(31, 13) Source(12, 52) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(32, 17) Source(12, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(33, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(33, 18) Source(12, 69) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(34, 25) Source(12, 69) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(35, 13) Source(12, 68) + SourceIndex(1) +2 >Emitted(35, 14) Source(12, 69) + SourceIndex(1) +3 >Emitted(35, 14) Source(12, 52) + SourceIndex(1) +4 >Emitted(35, 18) Source(12, 69) + SourceIndex(1) +--- +>>> someNamespace.C = C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(36, 13) Source(12, 65) + SourceIndex(1) +2 >Emitted(36, 28) Source(12, 66) + SourceIndex(1) +3 >Emitted(36, 32) Source(12, 69) + SourceIndex(1) +4 >Emitted(36, 33) Source(12, 69) + SourceIndex(1) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(37, 9) Source(12, 70) + SourceIndex(1) +2 >Emitted(37, 10) Source(12, 71) + SourceIndex(1) +3 >Emitted(37, 12) Source(12, 36) + SourceIndex(1) +4 >Emitted(37, 25) Source(12, 49) + SourceIndex(1) +5 >Emitted(37, 28) Source(12, 36) + SourceIndex(1) +6 >Emitted(37, 49) Source(12, 49) + SourceIndex(1) +7 >Emitted(37, 54) Source(12, 36) + SourceIndex(1) +8 >Emitted(37, 75) Source(12, 49) + SourceIndex(1) +9 >Emitted(37, 83) Source(12, 71) + SourceIndex(1) +--- +>>> /*@internal*/ var someOther; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(38, 9) Source(13, 5) + SourceIndex(1) +2 >Emitted(38, 22) Source(13, 18) + SourceIndex(1) +3 >Emitted(38, 23) Source(13, 19) + SourceIndex(1) +4 >Emitted(38, 27) Source(13, 36) + SourceIndex(1) +5 >Emitted(38, 36) Source(13, 45) + SourceIndex(1) +6 >Emitted(38, 37) Source(13, 85) + SourceIndex(1) +--- +>>> (function (someOther) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(39, 9) Source(13, 19) + SourceIndex(1) +2 >Emitted(39, 20) Source(13, 36) + SourceIndex(1) +3 >Emitted(39, 29) Source(13, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(40, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(40, 17) Source(13, 46) + SourceIndex(1) +3 >Emitted(40, 26) Source(13, 55) + SourceIndex(1) +4 >Emitted(40, 27) Source(13, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(41, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(41, 24) Source(13, 46) + SourceIndex(1) +3 >Emitted(41, 33) Source(13, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(42, 17) Source(13, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(43, 21) Source(13, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(44, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(44, 22) Source(13, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(45, 37) Source(13, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(46, 17) Source(13, 82) + SourceIndex(1) +2 >Emitted(46, 18) Source(13, 83) + SourceIndex(1) +3 >Emitted(46, 18) Source(13, 58) + SourceIndex(1) +4 >Emitted(46, 22) Source(13, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(47, 17) Source(13, 71) + SourceIndex(1) +2 >Emitted(47, 36) Source(13, 80) + SourceIndex(1) +3 >Emitted(47, 48) Source(13, 83) + SourceIndex(1) +4 >Emitted(47, 49) Source(13, 83) + SourceIndex(1) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(48, 13) Source(13, 84) + SourceIndex(1) +2 >Emitted(48, 14) Source(13, 85) + SourceIndex(1) +3 >Emitted(48, 16) Source(13, 46) + SourceIndex(1) +4 >Emitted(48, 25) Source(13, 55) + SourceIndex(1) +5 >Emitted(48, 28) Source(13, 46) + SourceIndex(1) +6 >Emitted(48, 47) Source(13, 55) + SourceIndex(1) +7 >Emitted(48, 52) Source(13, 46) + SourceIndex(1) +8 >Emitted(48, 71) Source(13, 55) + SourceIndex(1) +9 >Emitted(48, 79) Source(13, 85) + SourceIndex(1) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(49, 9) Source(13, 84) + SourceIndex(1) +2 >Emitted(49, 10) Source(13, 85) + SourceIndex(1) +3 >Emitted(49, 12) Source(13, 36) + SourceIndex(1) +4 >Emitted(49, 21) Source(13, 45) + SourceIndex(1) +5 >Emitted(49, 24) Source(13, 36) + SourceIndex(1) +6 >Emitted(49, 41) Source(13, 45) + SourceIndex(1) +7 >Emitted(49, 46) Source(13, 36) + SourceIndex(1) +8 >Emitted(49, 63) Source(13, 45) + SourceIndex(1) +9 >Emitted(49, 71) Source(13, 85) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(50, 9) Source(14, 5) + SourceIndex(1) +2 >Emitted(50, 22) Source(14, 18) + SourceIndex(1) +3 >Emitted(50, 23) Source(14, 33) + SourceIndex(1) +4 >Emitted(50, 41) Source(14, 43) + SourceIndex(1) +5 >Emitted(50, 44) Source(14, 46) + SourceIndex(1) +6 >Emitted(50, 57) Source(14, 59) + SourceIndex(1) +7 >Emitted(50, 58) Source(14, 60) + SourceIndex(1) +8 >Emitted(50, 59) Source(14, 61) + SourceIndex(1) +9 >Emitted(50, 60) Source(14, 62) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.internalConst = 10; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(51, 9) Source(16, 5) + SourceIndex(1) +2 >Emitted(51, 22) Source(16, 18) + SourceIndex(1) +3 >Emitted(51, 23) Source(16, 32) + SourceIndex(1) +4 >Emitted(51, 44) Source(16, 45) + SourceIndex(1) +5 >Emitted(51, 47) Source(16, 48) + SourceIndex(1) +6 >Emitted(51, 49) Source(16, 50) + SourceIndex(1) +7 >Emitted(51, 50) Source(16, 51) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(52, 9) Source(17, 5) + SourceIndex(1) +2 >Emitted(52, 22) Source(17, 18) + SourceIndex(1) +3 >Emitted(52, 23) Source(17, 19) + SourceIndex(1) +4 >Emitted(52, 27) Source(17, 31) + SourceIndex(1) +5 >Emitted(52, 39) Source(17, 55) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(53, 9) Source(17, 19) + SourceIndex(1) +2 >Emitted(53, 20) Source(17, 31) + SourceIndex(1) +3 >Emitted(53, 32) Source(17, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(54, 13) Source(17, 46) + SourceIndex(1) +2 >Emitted(54, 54) Source(17, 47) + SourceIndex(1) +3 >Emitted(54, 55) Source(17, 47) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(55, 13) Source(17, 49) + SourceIndex(1) +2 >Emitted(55, 54) Source(17, 50) + SourceIndex(1) +3 >Emitted(55, 55) Source(17, 50) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(56, 13) Source(17, 52) + SourceIndex(1) +2 >Emitted(56, 54) Source(17, 53) + SourceIndex(1) +3 >Emitted(56, 55) Source(17, 53) + SourceIndex(1) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(57, 9) Source(17, 54) + SourceIndex(1) +2 >Emitted(57, 10) Source(17, 55) + SourceIndex(1) +3 >Emitted(57, 12) Source(17, 31) + SourceIndex(1) +4 >Emitted(57, 24) Source(17, 43) + SourceIndex(1) +5 >Emitted(57, 27) Source(17, 31) + SourceIndex(1) +6 >Emitted(57, 47) Source(17, 43) + SourceIndex(1) +7 >Emitted(57, 52) Source(17, 31) + SourceIndex(1) +8 >Emitted(57, 72) Source(17, 43) + SourceIndex(1) +9 >Emitted(57, 80) Source(17, 55) + SourceIndex(1) +--- +>>> })(normalN = exports.normalN || (exports.normalN = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +10> ^^^-> +1 > + > +2 > } +3 > +4 > normalN +5 > +6 > normalN +7 > +8 > normalN +9 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(58, 5) Source(18, 1) + SourceIndex(1) +2 >Emitted(58, 6) Source(18, 2) + SourceIndex(1) +3 >Emitted(58, 8) Source(9, 18) + SourceIndex(1) +4 >Emitted(58, 15) Source(9, 25) + SourceIndex(1) +5 >Emitted(58, 18) Source(9, 18) + SourceIndex(1) +6 >Emitted(58, 33) Source(9, 25) + SourceIndex(1) +7 >Emitted(58, 38) Source(9, 18) + SourceIndex(1) +8 >Emitted(58, 53) Source(9, 25) + SourceIndex(1) +9 >Emitted(58, 61) Source(18, 2) + SourceIndex(1) +--- +>>> /*@internal*/ var internalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 > /*@internal*/ +3 > +1->Emitted(59, 5) Source(19, 1) + SourceIndex(1) +2 >Emitted(59, 18) Source(19, 14) + SourceIndex(1) +3 >Emitted(59, 19) Source(19, 15) + SourceIndex(1) +--- +>>> function internalC() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(60, 9) Source(19, 15) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class internalC { +2 > } +1->Emitted(61, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(61, 10) Source(19, 40) + SourceIndex(1) +--- +>>> return internalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(62, 25) Source(19, 40) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class internalC {} +1 >Emitted(63, 5) Source(19, 39) + SourceIndex(1) +2 >Emitted(63, 6) Source(19, 40) + SourceIndex(1) +3 >Emitted(63, 6) Source(19, 15) + SourceIndex(1) +4 >Emitted(63, 10) Source(19, 40) + SourceIndex(1) +--- +>>> exports.internalC = internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^-> +1-> +2 > internalC +1->Emitted(64, 5) Source(19, 28) + SourceIndex(1) +2 >Emitted(64, 35) Source(19, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function internalfoo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> {} + > +2 > /*@internal*/ +3 > +4 > export function +5 > internalfoo +6 > () { +7 > } +1->Emitted(65, 5) Source(20, 1) + SourceIndex(1) +2 >Emitted(65, 18) Source(20, 14) + SourceIndex(1) +3 >Emitted(65, 19) Source(20, 15) + SourceIndex(1) +4 >Emitted(65, 28) Source(20, 31) + SourceIndex(1) +5 >Emitted(65, 39) Source(20, 42) + SourceIndex(1) +6 >Emitted(65, 44) Source(20, 46) + SourceIndex(1) +7 >Emitted(65, 45) Source(20, 47) + SourceIndex(1) +--- +>>> exports.internalfoo = internalfoo; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^-> +1 > +2 > export function internalfoo() {} +1 >Emitted(66, 5) Source(20, 15) + SourceIndex(1) +2 >Emitted(66, 39) Source(20, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalNamespace +6 > { export class someClass {} } +1->Emitted(67, 5) Source(21, 1) + SourceIndex(1) +2 >Emitted(67, 18) Source(21, 14) + SourceIndex(1) +3 >Emitted(67, 19) Source(21, 15) + SourceIndex(1) +4 >Emitted(67, 23) Source(21, 32) + SourceIndex(1) +5 >Emitted(67, 40) Source(21, 49) + SourceIndex(1) +6 >Emitted(67, 41) Source(21, 79) + SourceIndex(1) +--- +>>> (function (internalNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > internalNamespace +1 >Emitted(68, 5) Source(21, 15) + SourceIndex(1) +2 >Emitted(68, 16) Source(21, 32) + SourceIndex(1) +3 >Emitted(68, 33) Source(21, 49) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(69, 9) Source(21, 52) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(70, 13) Source(21, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(71, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(71, 14) Source(21, 77) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(72, 29) Source(21, 77) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(73, 9) Source(21, 76) + SourceIndex(1) +2 >Emitted(73, 10) Source(21, 77) + SourceIndex(1) +3 >Emitted(73, 10) Source(21, 52) + SourceIndex(1) +4 >Emitted(73, 14) Source(21, 77) + SourceIndex(1) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(74, 9) Source(21, 65) + SourceIndex(1) +2 >Emitted(74, 36) Source(21, 74) + SourceIndex(1) +3 >Emitted(74, 48) Source(21, 77) + SourceIndex(1) +4 >Emitted(74, 49) Source(21, 77) + SourceIndex(1) +--- +>>> })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > +8 > internalNamespace +9 > { export class someClass {} } +1->Emitted(75, 5) Source(21, 78) + SourceIndex(1) +2 >Emitted(75, 6) Source(21, 79) + SourceIndex(1) +3 >Emitted(75, 8) Source(21, 32) + SourceIndex(1) +4 >Emitted(75, 25) Source(21, 49) + SourceIndex(1) +5 >Emitted(75, 28) Source(21, 32) + SourceIndex(1) +6 >Emitted(75, 53) Source(21, 49) + SourceIndex(1) +7 >Emitted(75, 58) Source(21, 32) + SourceIndex(1) +8 >Emitted(75, 83) Source(21, 49) + SourceIndex(1) +9 >Emitted(75, 91) Source(21, 79) + SourceIndex(1) +--- +>>> /*@internal*/ var internalOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(76, 5) Source(22, 1) + SourceIndex(1) +2 >Emitted(76, 18) Source(22, 14) + SourceIndex(1) +3 >Emitted(76, 19) Source(22, 15) + SourceIndex(1) +4 >Emitted(76, 23) Source(22, 32) + SourceIndex(1) +5 >Emitted(76, 36) Source(22, 45) + SourceIndex(1) +6 >Emitted(76, 37) Source(22, 85) + SourceIndex(1) +--- +>>> (function (internalOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 > export namespace +3 > internalOther +1 >Emitted(77, 5) Source(22, 15) + SourceIndex(1) +2 >Emitted(77, 16) Source(22, 32) + SourceIndex(1) +3 >Emitted(77, 29) Source(22, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(78, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(78, 13) Source(22, 46) + SourceIndex(1) +3 >Emitted(78, 22) Source(22, 55) + SourceIndex(1) +4 >Emitted(78, 23) Source(22, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(79, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(79, 20) Source(22, 46) + SourceIndex(1) +3 >Emitted(79, 29) Source(22, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(80, 13) Source(22, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(81, 17) Source(22, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(82, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(82, 18) Source(22, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(83, 33) Source(22, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(84, 13) Source(22, 82) + SourceIndex(1) +2 >Emitted(84, 14) Source(22, 83) + SourceIndex(1) +3 >Emitted(84, 14) Source(22, 58) + SourceIndex(1) +4 >Emitted(84, 18) Source(22, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(85, 13) Source(22, 71) + SourceIndex(1) +2 >Emitted(85, 32) Source(22, 80) + SourceIndex(1) +3 >Emitted(85, 44) Source(22, 83) + SourceIndex(1) +4 >Emitted(85, 45) Source(22, 83) + SourceIndex(1) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(86, 9) Source(22, 84) + SourceIndex(1) +2 >Emitted(86, 10) Source(22, 85) + SourceIndex(1) +3 >Emitted(86, 12) Source(22, 46) + SourceIndex(1) +4 >Emitted(86, 21) Source(22, 55) + SourceIndex(1) +5 >Emitted(86, 24) Source(22, 46) + SourceIndex(1) +6 >Emitted(86, 47) Source(22, 55) + SourceIndex(1) +7 >Emitted(86, 52) Source(22, 46) + SourceIndex(1) +8 >Emitted(86, 75) Source(22, 55) + SourceIndex(1) +9 >Emitted(86, 83) Source(22, 85) + SourceIndex(1) +--- +>>> })(internalOther = exports.internalOther || (exports.internalOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > internalOther +5 > +6 > internalOther +7 > +8 > internalOther +9 > .something { export class someClass {} } +1 >Emitted(87, 5) Source(22, 84) + SourceIndex(1) +2 >Emitted(87, 6) Source(22, 85) + SourceIndex(1) +3 >Emitted(87, 8) Source(22, 32) + SourceIndex(1) +4 >Emitted(87, 21) Source(22, 45) + SourceIndex(1) +5 >Emitted(87, 24) Source(22, 32) + SourceIndex(1) +6 >Emitted(87, 45) Source(22, 45) + SourceIndex(1) +7 >Emitted(87, 50) Source(22, 32) + SourceIndex(1) +8 >Emitted(87, 71) Source(22, 45) + SourceIndex(1) +9 >Emitted(87, 79) Source(22, 85) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalImport = internalNamespace.someClass; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1 >Emitted(88, 5) Source(23, 1) + SourceIndex(1) +2 >Emitted(88, 18) Source(23, 14) + SourceIndex(1) +3 >Emitted(88, 19) Source(23, 29) + SourceIndex(1) +4 >Emitted(88, 27) Source(23, 29) + SourceIndex(1) +5 >Emitted(88, 41) Source(23, 43) + SourceIndex(1) +6 >Emitted(88, 44) Source(23, 46) + SourceIndex(1) +7 >Emitted(88, 61) Source(23, 63) + SourceIndex(1) +8 >Emitted(88, 62) Source(23, 64) + SourceIndex(1) +9 >Emitted(88, 71) Source(23, 73) + SourceIndex(1) +10>Emitted(88, 72) Source(23, 74) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(89, 5) Source(25, 1) + SourceIndex(1) +2 >Emitted(89, 18) Source(25, 14) + SourceIndex(1) +3 >Emitted(89, 19) Source(25, 28) + SourceIndex(1) +4 >Emitted(89, 27) Source(25, 28) + SourceIndex(1) +5 >Emitted(89, 40) Source(25, 41) + SourceIndex(1) +6 >Emitted(89, 43) Source(25, 44) + SourceIndex(1) +7 >Emitted(89, 45) Source(25, 46) + SourceIndex(1) +8 >Emitted(89, 46) Source(25, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(90, 5) Source(26, 1) + SourceIndex(1) +2 >Emitted(90, 18) Source(26, 14) + SourceIndex(1) +3 >Emitted(90, 19) Source(26, 15) + SourceIndex(1) +4 >Emitted(90, 23) Source(26, 27) + SourceIndex(1) +5 >Emitted(90, 35) Source(26, 51) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(91, 5) Source(26, 15) + SourceIndex(1) +2 >Emitted(91, 16) Source(26, 27) + SourceIndex(1) +3 >Emitted(91, 28) Source(26, 39) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(92, 9) Source(26, 42) + SourceIndex(1) +2 >Emitted(92, 50) Source(26, 43) + SourceIndex(1) +3 >Emitted(92, 51) Source(26, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(93, 9) Source(26, 45) + SourceIndex(1) +2 >Emitted(93, 50) Source(26, 46) + SourceIndex(1) +3 >Emitted(93, 51) Source(26, 46) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(94, 9) Source(26, 48) + SourceIndex(1) +2 >Emitted(94, 50) Source(26, 49) + SourceIndex(1) +3 >Emitted(94, 51) Source(26, 49) + SourceIndex(1) +--- +>>> })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(95, 5) Source(26, 50) + SourceIndex(1) +2 >Emitted(95, 6) Source(26, 51) + SourceIndex(1) +3 >Emitted(95, 8) Source(26, 27) + SourceIndex(1) +4 >Emitted(95, 20) Source(26, 39) + SourceIndex(1) +5 >Emitted(95, 23) Source(26, 27) + SourceIndex(1) +6 >Emitted(95, 43) Source(26, 39) + SourceIndex(1) +7 >Emitted(95, 48) Source(26, 27) + SourceIndex(1) +8 >Emitted(95, 68) Source(26, 39) + SourceIndex(1) +9 >Emitted(95, 76) Source(26, 51) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(100, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(100, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(100, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(100, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(100, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(100, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(102, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(102, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(102, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(102, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(102, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/lib/", + "sourceFiles": [ + "/src/lib/file0.ts", + "/src/lib/file1.ts", + "/src/lib/file2.ts", + "/src/lib/global.ts" + ], + "js": { + "sections": [ + { + "pos": 103, + "end": 120, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 4007, + "end": 4024, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 0, + "end": 4143, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 26, + "kind": "internal" + }, + { + "pos": 28, + "end": 54, + "kind": "text" + }, + { + "pos": 54, + "end": 78, + "kind": "internal" + }, + { + "pos": 80, + "end": 108, + "kind": "text" + }, + { + "pos": 108, + "end": 212, + "kind": "internal" + }, + { + "pos": 214, + "end": 253, + "kind": "text" + }, + { + "pos": 253, + "end": 721, + "kind": "internal" + }, + { + "pos": 723, + "end": 730, + "kind": "text" + }, + { + "pos": 730, + "end": 1219, + "kind": "internal" + }, + { + "pos": 1221, + "end": 1312, + "kind": "text" + } + ] + } + } +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +prologue: (103-120):: use strict + "use strict"; +---------------------------------------------------------------------- +prologue: (4007-4024):: use strict + "use strict"; +---------------------------------------------------------------------- +text: (0-4143) +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + /*@internal*/ exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +internal: (0-26) +declare const myGlob = 20; +---------------------------------------------------------------------- +text: (28-54) +declare module "file1" { + +---------------------------------------------------------------------- +internal: (54-78) + export const x = 10; +---------------------------------------------------------------------- +text: (80-108) + export class normalC { + +---------------------------------------------------------------------- +internal: (108-212) + constructor(); + prop: string; + method(): void; + /*@internal*/ c: number; +---------------------------------------------------------------------- +text: (214-253) + } + export namespace normalN { + +---------------------------------------------------------------------- +internal: (253-721) + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (723-730) + } + +---------------------------------------------------------------------- +internal: (730-1219) + export class internalC { + } + export function internalfoo(): void; + export namespace internalNamespace { + class someClass { + } + } + export namespace internalOther.something { + class someClass { + } + } + export import internalImport = internalNamespace.someClass; + export type internalType = internalC; + export const internalConst = 10; + export enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (1221-1312) +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/modules-and-globals-mixed-in-amd.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/modules-and-globals-mixed-in-amd.js new file mode 100644 index 00000000000..1ac58e299c2 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/modules-and-globals-mixed-in-amd.js @@ -0,0 +1,854 @@ +//// [/src/app/module.d.ts] +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} + +//// [/src/app/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(3, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(6, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(6, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(6, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(6, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(6, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(6, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(8, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(8, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(8, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(8, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(8, 32) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file3.ts +------------------------------------------------------------------- +>>>declare module "file3" { +>>> export const z = 30; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > z +6 > = 30 +7 > ; +1 >Emitted(10, 5) Source(1, 1) + SourceIndex(4) +2 >Emitted(10, 11) Source(1, 7) + SourceIndex(4) +3 >Emitted(10, 12) Source(1, 8) + SourceIndex(4) +4 >Emitted(10, 18) Source(1, 14) + SourceIndex(4) +5 >Emitted(10, 19) Source(1, 15) + SourceIndex(4) +6 >Emitted(10, 24) Source(1, 20) + SourceIndex(4) +7 >Emitted(10, 25) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file4.ts +------------------------------------------------------------------- +>>>} +>>>declare const myVar = 30; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^-> +1 > +2 > +3 > const +4 > myVar +5 > = 30 +6 > ; +1 >Emitted(12, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(12, 9) Source(1, 1) + SourceIndex(5) +3 >Emitted(12, 15) Source(1, 7) + SourceIndex(5) +4 >Emitted(12, 20) Source(1, 12) + SourceIndex(5) +5 >Emitted(12, 25) Source(1, 17) + SourceIndex(5) +6 >Emitted(12, 26) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.js] + "use strict"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>> "use strict"; +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(2, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(2, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(2, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(2, 17) Source(1, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(6, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(6, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(6, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(6, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(6, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(6, 20) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(11, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(11, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(11, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(11, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(11, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(11, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(13, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(13, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(13, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(17, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(17, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(17, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(17, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(17, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(17, 20) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(19, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(19, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(19, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(19, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(19, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(19, 16) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/app/", + "sourceFiles": [ + "/src/app/file3.ts", + "/src/app/file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 17, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 19, + "end": 428, + "kind": "prepend", + "data": "/src/lib/module.js", + "texts": [ + { + "pos": 19, + "end": 428, + "kind": "text" + } + ] + }, + { + "pos": 499, + "end": 516, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 428, + "end": 629, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "prepend", + "data": "/src/lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + }, + { + "pos": 171, + "end": 253, + "kind": "text" + } + ] + } + } +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prologue: (0-17):: use strict + "use strict"; +---------------------------------------------------------------------- +prepend: (19-428):: /src/lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (19-428) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +prologue: (499-516):: use strict + "use strict"; +---------------------------------------------------------------------- +text: (428-629) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-171):: /src/lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (171-253) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/lib/module.d.ts] +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} + +//// [/src/lib/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(3, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(6, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(6, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(6, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(6, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(6, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(6, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^-> +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(8, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(8, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(8, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(8, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(8, 32) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.js] +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(1, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 17) Source(1, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(10, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(10, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(10, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(10, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(10, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(10, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(12, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(12, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(12, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(12, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(12, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(12, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/lib/", + "sourceFiles": [ + "/src/lib/file0.ts", + "/src/lib/file1.ts", + "/src/lib/file2.ts", + "/src/lib/global.ts" + ], + "js": { + "sections": [ + { + "pos": 89, + "end": 106, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 273, + "end": 290, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 0, + "end": 409, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + } + } +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +prologue: (89-106):: use strict + "use strict"; +---------------------------------------------------------------------- +prologue: (273-290):: use strict + "use strict"; +---------------------------------------------------------------------- +text: (0-409) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-emitHelpers-in-all-projects.js new file mode 100644 index 00000000000..69d7116fa45 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-emitHelpers-in-all-projects.js @@ -0,0 +1,1738 @@ +//// [/src/app/file3.ts] +export const z = 30; +import { x } from "file1";function forappfile3Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +} + +//// [/src/app/file4.ts] +const myVar = 30; +function appfile4Spread(...b: number[]) { } +appfile4Spread(...[10, 20, 30]); + +//// [/src/app/module.d.ts] +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +declare function appfile4Spread(...b: number[]): void; +//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;;ICD3C,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} + +//// [/src/app/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) +--- +>>>declare function libfile0Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 18) Source(2, 10) + SourceIndex(0) +3 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) +4 >Emitted(2, 33) Source(2, 25) + SourceIndex(0) +5 >Emitted(2, 36) Source(2, 28) + SourceIndex(0) +6 >Emitted(2, 39) Source(2, 31) + SourceIndex(0) +7 >Emitted(2, 45) Source(2, 37) + SourceIndex(0) +8 >Emitted(2, 47) Source(2, 39) + SourceIndex(0) +9 >Emitted(2, 55) Source(2, 44) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(4, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(4, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(4, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(4, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(4, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(4, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(7, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(7, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(7, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(7, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(7, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(9, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(9, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(9, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(9, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(9, 32) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file3.ts +------------------------------------------------------------------- +>>>declare module "file3" { +>>> export const z = 30; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > z +6 > = 30 +7 > ; +1 >Emitted(11, 5) Source(1, 1) + SourceIndex(4) +2 >Emitted(11, 11) Source(1, 7) + SourceIndex(4) +3 >Emitted(11, 12) Source(1, 8) + SourceIndex(4) +4 >Emitted(11, 18) Source(1, 14) + SourceIndex(4) +5 >Emitted(11, 19) Source(1, 15) + SourceIndex(4) +6 >Emitted(11, 24) Source(1, 20) + SourceIndex(4) +7 >Emitted(11, 25) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file4.ts +------------------------------------------------------------------- +>>>} +>>>declare const myVar = 30; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > +3 > const +4 > myVar +5 > = 30 +6 > ; +1 >Emitted(13, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(13, 9) Source(1, 1) + SourceIndex(5) +3 >Emitted(13, 15) Source(1, 7) + SourceIndex(5) +4 >Emitted(13, 20) Source(1, 12) + SourceIndex(5) +5 >Emitted(13, 25) Source(1, 17) + SourceIndex(5) +6 >Emitted(13, 26) Source(1, 18) + SourceIndex(5) +--- +>>>declare function appfile4Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > +2 >function +3 > appfile4Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(14, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(14, 18) Source(2, 10) + SourceIndex(5) +3 >Emitted(14, 32) Source(2, 24) + SourceIndex(5) +4 >Emitted(14, 33) Source(2, 25) + SourceIndex(5) +5 >Emitted(14, 36) Source(2, 28) + SourceIndex(5) +6 >Emitted(14, 39) Source(2, 31) + SourceIndex(5) +7 >Emitted(14, 45) Source(2, 37) + SourceIndex(5) +8 >Emitted(14, 47) Source(2, 39) + SourceIndex(5) +9 >Emitted(14, 55) Source(2, 44) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.js] + "use strict"; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) + t[p[i]] = s[p[i]]; + return t; +}; +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; + function forappfile3Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +var myVar = 30; +function appfile4Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +appfile4Spread.apply(void 0, __spread([10, 20, 30])); +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>> "use strict"; +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) +>>> t[p[i]] = s[p[i]]; +>>> return t; +>>>}; +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(31, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(31, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(31, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(31, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(31, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(31, 17) Source(1, 19) + SourceIndex(0) +--- +>>>function libfile0Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +1->Emitted(32, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(32, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(32, 24) Source(2, 24) + SourceIndex(0) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(33, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(33, 16) Source(2, 39) + SourceIndex(0) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(34, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(34, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(34, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(34, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(34, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(34, 49) Source(2, 39) + SourceIndex(0) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(35, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(35, 31) Source(2, 39) + SourceIndex(0) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(37, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(37, 2) Source(2, 44) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^^^^^^^^^^^^^^^^^-> +1-> + > +2 >libfile0Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(38, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(38, 15) Source(3, 15) + SourceIndex(0) +3 >Emitted(38, 39) Source(3, 19) + SourceIndex(0) +4 >Emitted(38, 40) Source(3, 20) + SourceIndex(0) +5 >Emitted(38, 42) Source(3, 22) + SourceIndex(0) +6 >Emitted(38, 44) Source(3, 24) + SourceIndex(0) +7 >Emitted(38, 46) Source(3, 26) + SourceIndex(0) +8 >Emitted(38, 48) Source(3, 28) + SourceIndex(0) +9 >Emitted(38, 50) Source(3, 30) + SourceIndex(0) +10>Emitted(38, 51) Source(3, 31) + SourceIndex(0) +11>Emitted(38, 54) Source(3, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(42, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(42, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(42, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(42, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(42, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(42, 20) Source(1, 21) + SourceIndex(1) +--- +>>> function forlibfile1Rest() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > function +3 > forlibfile1Rest +1->Emitted(43, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(43, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(43, 29) Source(1, 45) + SourceIndex(1) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(44, 9) Source(2, 1) + SourceIndex(1) +2 >Emitted(44, 13) Source(2, 7) + SourceIndex(1) +3 >Emitted(44, 42) Source(2, 48) + SourceIndex(1) +4 >Emitted(44, 44) Source(2, 9) + SourceIndex(1) +5 >Emitted(44, 52) Source(2, 10) + SourceIndex(1) +6 >Emitted(44, 54) Source(2, 12) + SourceIndex(1) +7 >Emitted(44, 78) Source(2, 48) + SourceIndex(1) +8 >Emitted(44, 79) Source(2, 49) + SourceIndex(1) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(45, 5) Source(3, 1) + SourceIndex(1) +2 >Emitted(45, 6) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(50, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(50, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(50, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(50, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(50, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(50, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(52, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(52, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(52, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(52, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(52, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(52, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^-> +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(56, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(56, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(56, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(56, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(56, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(56, 20) Source(1, 21) + SourceIndex(4) +--- +>>> function forappfile3Rest() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >import { x } from "file1"; +2 > function +3 > forappfile3Rest +1->Emitted(57, 5) Source(2, 27) + SourceIndex(4) +2 >Emitted(57, 14) Source(2, 36) + SourceIndex(4) +3 >Emitted(57, 29) Source(2, 51) + SourceIndex(4) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(58, 9) Source(3, 1) + SourceIndex(4) +2 >Emitted(58, 13) Source(3, 7) + SourceIndex(4) +3 >Emitted(58, 42) Source(3, 48) + SourceIndex(4) +4 >Emitted(58, 44) Source(3, 9) + SourceIndex(4) +5 >Emitted(58, 52) Source(3, 10) + SourceIndex(4) +6 >Emitted(58, 54) Source(3, 12) + SourceIndex(4) +7 >Emitted(58, 78) Source(3, 48) + SourceIndex(4) +8 >Emitted(58, 79) Source(3, 49) + SourceIndex(4) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(59, 5) Source(4, 1) + SourceIndex(4) +2 >Emitted(59, 6) Source(4, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(61, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(61, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(61, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(61, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(61, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(61, 16) Source(1, 18) + SourceIndex(5) +--- +>>>function appfile4Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > appfile4Spread +1->Emitted(62, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(62, 10) Source(2, 10) + SourceIndex(5) +3 >Emitted(62, 24) Source(2, 24) + SourceIndex(5) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(63, 5) Source(2, 25) + SourceIndex(5) +2 >Emitted(63, 16) Source(2, 39) + SourceIndex(5) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(64, 10) Source(2, 25) + SourceIndex(5) +2 >Emitted(64, 20) Source(2, 39) + SourceIndex(5) +3 >Emitted(64, 22) Source(2, 25) + SourceIndex(5) +4 >Emitted(64, 43) Source(2, 39) + SourceIndex(5) +5 >Emitted(64, 45) Source(2, 25) + SourceIndex(5) +6 >Emitted(64, 49) Source(2, 39) + SourceIndex(5) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(65, 9) Source(2, 25) + SourceIndex(5) +2 >Emitted(65, 31) Source(2, 39) + SourceIndex(5) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(67, 1) Source(2, 43) + SourceIndex(5) +2 >Emitted(67, 2) Source(2, 44) + SourceIndex(5) +--- +>>>appfile4Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +1-> + > +2 >appfile4Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(68, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(68, 15) Source(3, 15) + SourceIndex(5) +3 >Emitted(68, 39) Source(3, 19) + SourceIndex(5) +4 >Emitted(68, 40) Source(3, 20) + SourceIndex(5) +5 >Emitted(68, 42) Source(3, 22) + SourceIndex(5) +6 >Emitted(68, 44) Source(3, 24) + SourceIndex(5) +7 >Emitted(68, 46) Source(3, 26) + SourceIndex(5) +8 >Emitted(68, 48) Source(3, 28) + SourceIndex(5) +9 >Emitted(68, 50) Source(3, 30) + SourceIndex(5) +10>Emitted(68, 51) Source(3, 31) + SourceIndex(5) +11>Emitted(68, 54) Source(3, 33) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/app/", + "sourceFiles": [ + "/src/app/file3.ts", + "/src/app/file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 17, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 19, + "end": 523, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 525, + "end": 695, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 697, + "end": 1112, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 1114, + "end": 1840, + "kind": "prepend", + "data": "/src/lib/module.js", + "texts": [ + { + "pos": 1114, + "end": 1840, + "kind": "text" + } + ] + }, + { + "pos": 1911, + "end": 1928, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 1840, + "end": 2358, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest", + "typescript:read", + "typescript:spread" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 227, + "kind": "prepend", + "data": "/src/lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 227, + "kind": "text" + } + ] + }, + { + "pos": 227, + "end": 365, + "kind": "text" + } + ] + } + } +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prologue: (0-17):: use strict + "use strict"; +---------------------------------------------------------------------- +emitHelpers: (19-523):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (525-695):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (697-1112):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) + t[p[i]] = s[p[i]]; + return t; +}; +---------------------------------------------------------------------- +prepend: (1114-1840):: /src/lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1114-1840) +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +prologue: (1911-1928):: use strict + "use strict"; +---------------------------------------------------------------------- +text: (1840-2358) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; + function forappfile3Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +var myVar = 30; +function appfile4Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +appfile4Spread.apply(void 0, __spread([10, 20, 30])); + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-227):: /src/lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-227) +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (227-365) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +declare function appfile4Spread(...b: number[]): void; + +====================================================================== + +//// [/src/app/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "strict": false, + "downlevelIteration": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": ["module.d.ts"] + "references": [ + { "path": "../lib", "prepend": true } + ] +} + +//// [/src/lib/file0.ts] +const myGlob = 20; +function libfile0Spread(...b: number[]) { } +libfile0Spread(...[10, 20, 30]); + +//// [/src/lib/file1.ts] +export const x = 10;function forlibfile1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +} + +//// [/src/lib/module.d.ts] +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;;ICD3C,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} + +//// [/src/lib/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(1, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 7) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +5 >Emitted(1, 26) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 27) Source(1, 19) + SourceIndex(0) +--- +>>>declare function libfile0Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 18) Source(2, 10) + SourceIndex(0) +3 >Emitted(2, 32) Source(2, 24) + SourceIndex(0) +4 >Emitted(2, 33) Source(2, 25) + SourceIndex(0) +5 >Emitted(2, 36) Source(2, 28) + SourceIndex(0) +6 >Emitted(2, 39) Source(2, 31) + SourceIndex(0) +7 >Emitted(2, 45) Source(2, 37) + SourceIndex(0) +8 >Emitted(2, 47) Source(2, 39) + SourceIndex(0) +9 >Emitted(2, 55) Source(2, 44) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(4, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(4, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(4, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(4, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(4, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(4, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(7, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(7, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(7, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(7, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(7, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^-> +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(9, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(9, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(9, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(9, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(9, 32) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) + t[p[i]] = s[p[i]]; + return t; +}; +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spread = (this && this.__spread) || function () { +>>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); +>>> return ar; +>>>}; +>>>var __rest = (this && this.__rest) || function (s, e) { +>>> var t = {}; +>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) +>>> t[p] = s[p]; +>>> if (s != null && typeof Object.getOwnPropertySymbols === "function") +>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) +>>> t[p[i]] = s[p[i]]; +>>> return t; +>>>}; +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(30, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(30, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(30, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(30, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(30, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(30, 17) Source(1, 19) + SourceIndex(0) +--- +>>>function libfile0Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +1->Emitted(31, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(31, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(31, 24) Source(2, 24) + SourceIndex(0) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(32, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(32, 16) Source(2, 39) + SourceIndex(0) +--- +>>> for (var _i = 0; _i < arguments.length; _i++) { +1->^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^ +1-> +2 > ...b: number[] +3 > +4 > ...b: number[] +5 > +6 > ...b: number[] +1->Emitted(33, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(33, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(33, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(33, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(33, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(33, 49) Source(2, 39) + SourceIndex(0) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(34, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(34, 31) Source(2, 39) + SourceIndex(0) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(36, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(36, 2) Source(2, 44) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^^ +12> ^^^^^^^^^^^^^^^^^-> +1-> + > +2 >libfile0Spread +3 > (... +4 > [ +5 > 10 +6 > , +7 > 20 +8 > , +9 > 30 +10> ] +11> ); +1->Emitted(37, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(37, 15) Source(3, 15) + SourceIndex(0) +3 >Emitted(37, 39) Source(3, 19) + SourceIndex(0) +4 >Emitted(37, 40) Source(3, 20) + SourceIndex(0) +5 >Emitted(37, 42) Source(3, 22) + SourceIndex(0) +6 >Emitted(37, 44) Source(3, 24) + SourceIndex(0) +7 >Emitted(37, 46) Source(3, 26) + SourceIndex(0) +8 >Emitted(37, 48) Source(3, 28) + SourceIndex(0) +9 >Emitted(37, 50) Source(3, 30) + SourceIndex(0) +10>Emitted(37, 51) Source(3, 31) + SourceIndex(0) +11>Emitted(37, 54) Source(3, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(41, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(41, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(41, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(41, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(41, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(41, 20) Source(1, 21) + SourceIndex(1) +--- +>>> function forlibfile1Rest() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > function +3 > forlibfile1Rest +1->Emitted(42, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(42, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(42, 29) Source(1, 45) + SourceIndex(1) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^ +6 > ^^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^ +8 > ^ +1->() { + > +2 > const +3 > { b, ...rest } = { a: 10, b: 30, yy: 30 } +4 > +5 > b +6 > , +7 > ...rest } = { a: 10, b: 30, yy: 30 } +8 > ; +1->Emitted(43, 9) Source(2, 1) + SourceIndex(1) +2 >Emitted(43, 13) Source(2, 7) + SourceIndex(1) +3 >Emitted(43, 42) Source(2, 48) + SourceIndex(1) +4 >Emitted(43, 44) Source(2, 9) + SourceIndex(1) +5 >Emitted(43, 52) Source(2, 10) + SourceIndex(1) +6 >Emitted(43, 54) Source(2, 12) + SourceIndex(1) +7 >Emitted(43, 78) Source(2, 48) + SourceIndex(1) +8 >Emitted(43, 79) Source(2, 49) + SourceIndex(1) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(44, 5) Source(3, 1) + SourceIndex(1) +2 >Emitted(44, 6) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(49, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(49, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(49, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(49, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(49, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(49, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(51, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(51, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(51, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(51, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(51, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(51, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/lib/", + "sourceFiles": [ + "/src/lib/file0.ts", + "/src/lib/file1.ts", + "/src/lib/file2.ts", + "/src/lib/global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 676, + "kind": "emitHelpers", + "data": "typescript:spread" + }, + { + "pos": 678, + "end": 1093, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 1380, + "end": 1397, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 1685, + "end": 1702, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 1095, + "end": 1821, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:read", + "typescript:spread", + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 227, + "kind": "text" + } + ] + } + } +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-676):: typescript:spread +var __spread = (this && this.__spread) || function () { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (678-1093):: typescript:rest +var __rest = (this && this.__rest) || function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) + t[p[i]] = s[p[i]]; + return t; +}; +---------------------------------------------------------------------- +prologue: (1380-1397):: use strict + "use strict"; +---------------------------------------------------------------------- +prologue: (1685-1702):: use strict + "use strict"; +---------------------------------------------------------------------- +text: (1095-1821) +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +libfile0Spread.apply(void 0, __spread([10, 20, 30])); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + function forlibfile1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); + } +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (0-227) +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + +//// [/src/lib/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": false, + "downlevelIteration": true, + "outFile": "module.js" + }, + "exclude": ["module.d.ts"] + +} + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-prologues-in-all-projects.js new file mode 100644 index 00000000000..8151ef5195e --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-prologues-in-all-projects.js @@ -0,0 +1,1141 @@ +//// [/src/app/file3.ts] +"myPrologue" +export const z = 30; +import { x } from "file1"; + +//// [/src/app/file4.ts] +"myPrologue2"; +const myVar = 30; + +//// [/src/app/module.d.ts] +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICCvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} + +//// [/src/app/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 >"myPrologue" + > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(2, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(2, 7) + SourceIndex(0) +4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) +5 >Emitted(1, 26) Source(2, 18) + SourceIndex(0) +6 >Emitted(1, 27) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(3, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >"myPrologueFile" + > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(6, 5) Source(2, 1) + SourceIndex(2) +2 >Emitted(6, 11) Source(2, 7) + SourceIndex(2) +3 >Emitted(6, 12) Source(2, 8) + SourceIndex(2) +4 >Emitted(6, 18) Source(2, 14) + SourceIndex(2) +5 >Emitted(6, 19) Source(2, 15) + SourceIndex(2) +6 >Emitted(6, 24) Source(2, 20) + SourceIndex(2) +7 >Emitted(6, 25) Source(2, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(8, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(8, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(8, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(8, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(8, 32) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file3.ts +------------------------------------------------------------------- +>>>declare module "file3" { +>>> export const z = 30; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >"myPrologue" + > +2 > export +3 > +4 > const +5 > z +6 > = 30 +7 > ; +1 >Emitted(10, 5) Source(2, 1) + SourceIndex(4) +2 >Emitted(10, 11) Source(2, 7) + SourceIndex(4) +3 >Emitted(10, 12) Source(2, 8) + SourceIndex(4) +4 >Emitted(10, 18) Source(2, 14) + SourceIndex(4) +5 >Emitted(10, 19) Source(2, 15) + SourceIndex(4) +6 >Emitted(10, 24) Source(2, 20) + SourceIndex(4) +7 >Emitted(10, 25) Source(2, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file4.ts +------------------------------------------------------------------- +>>>} +>>>declare const myVar = 30; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^-> +1 >"myPrologue2"; + > +2 > +3 > const +4 > myVar +5 > = 30 +6 > ; +1 >Emitted(12, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(12, 9) Source(2, 1) + SourceIndex(5) +3 >Emitted(12, 15) Source(2, 7) + SourceIndex(5) +4 >Emitted(12, 20) Source(2, 12) + SourceIndex(5) +5 >Emitted(12, 25) Source(2, 17) + SourceIndex(5) +6 >Emitted(12, 26) Source(2, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.js] +"use strict"; +"myPrologue"; + "myPrologueFile"; +"myPrologue2"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file2.ts","file4.ts","../lib/file1.ts","../lib/global.ts","file3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ICAZ,gBAAgB,CAAA;ACAhB,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;IFApB,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AGDpB,IAAM,WAAW,GAAG,EAAE,CAAC;;;ICAvB,YAAY,CAAA;;IACC,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file2.ts,file4.ts,../lib/file1.ts,../lib/global.ts,file3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>> "myPrologueFile"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^ +1-> +2 > "myPrologueFile" +3 > +1->Emitted(3, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 21) Source(1, 17) + SourceIndex(1) +3 >Emitted(3, 22) Source(1, 17) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>"myPrologue2"; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^-> +1 > +2 >"myPrologue2" +3 > ; +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 14) Source(1, 14) + SourceIndex(2) +3 >Emitted(4, 15) Source(1, 15) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1-> +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue" + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1->Emitted(5, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(5, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(5, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(5, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(5, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(5, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(9, 5) Source(1, 14) + SourceIndex(3) +2 >Emitted(9, 13) Source(1, 14) + SourceIndex(3) +3 >Emitted(9, 14) Source(1, 15) + SourceIndex(3) +4 >Emitted(9, 17) Source(1, 18) + SourceIndex(3) +5 >Emitted(9, 19) Source(1, 20) + SourceIndex(3) +6 >Emitted(9, 20) Source(1, 21) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologueFile"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > "myPrologueFile" +3 > +1 >Emitted(13, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(13, 21) Source(1, 17) + SourceIndex(1) +3 >Emitted(13, 22) Source(1, 17) + SourceIndex(1) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1->Emitted(15, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(15, 13) Source(2, 14) + SourceIndex(1) +3 >Emitted(15, 14) Source(2, 15) + SourceIndex(1) +4 >Emitted(15, 17) Source(2, 18) + SourceIndex(1) +5 >Emitted(15, 19) Source(2, 20) + SourceIndex(1) +6 >Emitted(15, 20) Source(2, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(17, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(17, 5) Source(1, 7) + SourceIndex(4) +3 >Emitted(17, 16) Source(1, 18) + SourceIndex(4) +4 >Emitted(17, 19) Source(1, 21) + SourceIndex(4) +5 >Emitted(17, 21) Source(1, 23) + SourceIndex(4) +6 >Emitted(17, 22) Source(1, 24) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologue"; +1->^^^^ +2 > ^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > "myPrologue" +3 > +1->Emitted(20, 5) Source(1, 1) + SourceIndex(5) +2 >Emitted(20, 17) Source(1, 13) + SourceIndex(5) +3 >Emitted(20, 18) Source(1, 13) + SourceIndex(5) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(22, 5) Source(2, 14) + SourceIndex(5) +2 >Emitted(22, 13) Source(2, 14) + SourceIndex(5) +3 >Emitted(22, 14) Source(2, 15) + SourceIndex(5) +4 >Emitted(22, 17) Source(2, 18) + SourceIndex(5) +5 >Emitted(22, 19) Source(2, 20) + SourceIndex(5) +6 >Emitted(22, 20) Source(2, 21) + SourceIndex(5) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 >"myPrologue2"; + > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(24, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(24, 5) Source(2, 7) + SourceIndex(2) +3 >Emitted(24, 10) Source(2, 12) + SourceIndex(2) +4 >Emitted(24, 13) Source(2, 15) + SourceIndex(2) +5 >Emitted(24, 15) Source(2, 17) + SourceIndex(2) +6 >Emitted(24, 16) Source(2, 18) + SourceIndex(2) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/app/", + "sourceFiles": [ + "/src/app/file3.ts", + "/src/app/file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 51, + "kind": "prologue", + "data": "myPrologueFile" + }, + { + "pos": 53, + "end": 67, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 69, + "end": 501, + "kind": "prepend", + "data": "/src/lib/module.js", + "texts": [ + { + "pos": 69, + "end": 501, + "kind": "text" + } + ] + }, + { + "pos": 572, + "end": 589, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 591, + "end": 608, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 501, + "end": 721, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 1, + "text": "\"myPrologue2\";", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 14, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue2" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "prepend", + "data": "/src/lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + }, + { + "pos": 171, + "end": 253, + "kind": "text" + } + ] + } + } +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-51):: myPrologueFile + "myPrologueFile"; +---------------------------------------------------------------------- +prologue: (53-67):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prepend: (69-501):: /src/lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (69-501) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +prologue: (572-589):: use strict + "use strict"; +---------------------------------------------------------------------- +prologue: (591-608):: myPrologue + "myPrologue"; +---------------------------------------------------------------------- +text: (501-721) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-171):: /src/lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (171-253) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/app/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "strict": true, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": ["module.d.ts"] + "references": [ + { "path": "../lib", "prepend": true } + ] +} + +//// [/src/lib/file0.ts] +"myPrologue" +const myGlob = 20; + +//// [/src/lib/file2.ts] +"myPrologueFile" +export const y = 20; + +//// [/src/lib/module.d.ts] +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICDlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICCpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,WAAW,KAAK,CAAC"} + +//// [/src/lib/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 >"myPrologue" + > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(2, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(2, 7) + SourceIndex(0) +4 >Emitted(1, 21) Source(2, 13) + SourceIndex(0) +5 >Emitted(1, 26) Source(2, 18) + SourceIndex(0) +6 >Emitted(1, 27) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(3, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >"myPrologueFile" + > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(6, 5) Source(2, 1) + SourceIndex(2) +2 >Emitted(6, 11) Source(2, 7) + SourceIndex(2) +3 >Emitted(6, 12) Source(2, 8) + SourceIndex(2) +4 >Emitted(6, 18) Source(2, 14) + SourceIndex(2) +5 >Emitted(6, 19) Source(2, 15) + SourceIndex(2) +6 >Emitted(6, 24) Source(2, 20) + SourceIndex(2) +7 >Emitted(6, 25) Source(2, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^-> +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(8, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(8, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(8, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(8, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(8, 32) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.js] +"use strict"; +"myPrologue"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AACZ,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICDL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICApB,gBAAgB,CAAA;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(2, 14) Source(1, 13) + SourceIndex(0) +--- +>>>var myGlob = 20; +1-> +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1->Emitted(3, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(3, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(3, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(3, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(3, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(7, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(7, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(7, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(7, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(7, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(7, 20) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> "myPrologueFile"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > "myPrologueFile" +3 > +1 >Emitted(11, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(11, 21) Source(1, 17) + SourceIndex(2) +3 >Emitted(11, 22) Source(1, 17) + SourceIndex(2) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1->Emitted(13, 5) Source(2, 14) + SourceIndex(2) +2 >Emitted(13, 13) Source(2, 14) + SourceIndex(2) +3 >Emitted(13, 14) Source(2, 15) + SourceIndex(2) +4 >Emitted(13, 17) Source(2, 18) + SourceIndex(2) +5 >Emitted(13, 19) Source(2, 20) + SourceIndex(2) +6 >Emitted(13, 20) Source(2, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(15, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(15, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(15, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(15, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(15, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/lib/", + "sourceFiles": [ + "/src/lib/file0.ts", + "/src/lib/file1.ts", + "/src/lib/file2.ts", + "/src/lib/global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 119, + "end": 136, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 303, + "end": 320, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 322, + "end": 343, + "kind": "prologue", + "data": "myPrologueFile" + }, + { + "pos": 30, + "end": 462, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue\"", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 12, + "expression": { + "pos": 0, + "end": 12, + "text": "myPrologue" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + } + } +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (119-136):: use strict + "use strict"; +---------------------------------------------------------------------- +prologue: (303-320):: use strict + "use strict"; +---------------------------------------------------------------------- +prologue: (322-343):: myPrologueFile + "myPrologueFile"; +---------------------------------------------------------------------- +text: (30-462) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologueFile"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (0-171) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + +//// [/src/lib/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": true, + "outFile": "module.js" + }, + "exclude": ["module.d.ts"] + +} + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/shebang-in-all-projects.js new file mode 100644 index 00000000000..e38c2cb1c4b --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/shebang-in-all-projects.js @@ -0,0 +1,885 @@ +//// [/src/app/file3.ts] +#!someshebang app file3 +export const z = 30; +import { x } from "file1"; + +//// [/src/app/module.d.ts] +#!someshebang lib file0 +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICCvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACDpB,QAAA,MAAM,KAAK,KAAK,CAAC"} + +//// [/src/app/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>#!someshebang lib file0 +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 >#!someshebang lib file0 + > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 1) + SourceIndex(0) +3 >Emitted(2, 15) Source(2, 7) + SourceIndex(0) +4 >Emitted(2, 21) Source(2, 13) + SourceIndex(0) +5 >Emitted(2, 26) Source(2, 18) + SourceIndex(0) +6 >Emitted(2, 27) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >#!someshebang lib file1 + > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(4, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 11) Source(2, 7) + SourceIndex(1) +3 >Emitted(4, 12) Source(2, 8) + SourceIndex(1) +4 >Emitted(4, 18) Source(2, 14) + SourceIndex(1) +5 >Emitted(4, 19) Source(2, 15) + SourceIndex(1) +6 >Emitted(4, 24) Source(2, 20) + SourceIndex(1) +7 >Emitted(4, 25) Source(2, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(7, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(7, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(7, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(7, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(7, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(9, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(9, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(9, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(9, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(9, 32) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file3.ts +------------------------------------------------------------------- +>>>declare module "file3" { +>>> export const z = 30; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >#!someshebang app file3 + > +2 > export +3 > +4 > const +5 > z +6 > = 30 +7 > ; +1 >Emitted(11, 5) Source(2, 1) + SourceIndex(4) +2 >Emitted(11, 11) Source(2, 7) + SourceIndex(4) +3 >Emitted(11, 12) Source(2, 8) + SourceIndex(4) +4 >Emitted(11, 18) Source(2, 14) + SourceIndex(4) +5 >Emitted(11, 19) Source(2, 15) + SourceIndex(4) +6 >Emitted(11, 24) Source(2, 20) + SourceIndex(4) +7 >Emitted(11, 25) Source(2, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file4.ts +------------------------------------------------------------------- +>>>} +>>>declare const myVar = 30; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^-> +1 > +2 > +3 > const +4 > myVar +5 > = 30 +6 > ; +1 >Emitted(13, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(13, 9) Source(1, 1) + SourceIndex(5) +3 >Emitted(13, 15) Source(1, 7) + SourceIndex(5) +4 >Emitted(13, 20) Source(1, 12) + SourceIndex(5) +5 >Emitted(13, 25) Source(1, 17) + SourceIndex(5) +6 >Emitted(13, 26) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.js] +#!someshebang lib file0 + "use strict"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICDP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICCV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACDpB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>#!someshebang lib file0 +>>> "use strict"; +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >#!someshebang lib file0 + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(3, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(3, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(3, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(3, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(3, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->#!someshebang lib file1 + >export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(7, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(7, 13) Source(2, 14) + SourceIndex(1) +3 >Emitted(7, 14) Source(2, 15) + SourceIndex(1) +4 >Emitted(7, 17) Source(2, 18) + SourceIndex(1) +5 >Emitted(7, 19) Source(2, 20) + SourceIndex(1) +6 >Emitted(7, 20) Source(2, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(12, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(12, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(12, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(12, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(12, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(12, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(14, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(14, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(14, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->#!someshebang app file3 + >export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(18, 5) Source(2, 14) + SourceIndex(4) +2 >Emitted(18, 13) Source(2, 14) + SourceIndex(4) +3 >Emitted(18, 14) Source(2, 15) + SourceIndex(4) +4 >Emitted(18, 17) Source(2, 18) + SourceIndex(4) +5 >Emitted(18, 19) Source(2, 20) + SourceIndex(4) +6 >Emitted(18, 20) Source(2, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(20, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(20, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(20, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(20, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(20, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(20, 16) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/app/", + "sourceFiles": [ + "/src/app/file3.ts", + "/src/app/file4.ts" + ], + "js": { + "sections": [ + { + "pos": 25, + "end": 42, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 44, + "end": 453, + "kind": "prepend", + "data": "/src/lib/module.js", + "texts": [ + { + "pos": 44, + "end": 453, + "kind": "text" + } + ] + }, + { + "pos": 524, + "end": 541, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 453, + "end": 654, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 25, + "end": 196, + "kind": "prepend", + "data": "/src/lib/module.d.ts", + "texts": [ + { + "pos": 25, + "end": 196, + "kind": "text" + } + ] + }, + { + "pos": 196, + "end": 278, + "kind": "text" + } + ] + } + } +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prologue: (25-42):: use strict + "use strict"; +---------------------------------------------------------------------- +prepend: (44-453):: /src/lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (44-453) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +prologue: (524-541):: use strict + "use strict"; +---------------------------------------------------------------------- +text: (453-654) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (25-196):: /src/lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (25-196) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (196-278) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/lib/file0.ts] +#!someshebang lib file0 +const myGlob = 20; + +//// [/src/lib/file1.ts] +#!someshebang lib file1 +export const x = 10; + +//// [/src/lib/module.d.ts] +#!someshebang lib file0 +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";AACA,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICDpB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} + +//// [/src/lib/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file0.ts +------------------------------------------------------------------- +>>>#!someshebang lib file0 +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 >#!someshebang lib file0 + > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 1) + SourceIndex(0) +3 >Emitted(2, 15) Source(2, 7) + SourceIndex(0) +4 >Emitted(2, 21) Source(2, 13) + SourceIndex(0) +5 >Emitted(2, 26) Source(2, 18) + SourceIndex(0) +6 >Emitted(2, 27) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 >#!someshebang lib file1 + > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(4, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 11) Source(2, 7) + SourceIndex(1) +3 >Emitted(4, 12) Source(2, 8) + SourceIndex(1) +4 >Emitted(4, 18) Source(2, 14) + SourceIndex(1) +5 >Emitted(4, 19) Source(2, 15) + SourceIndex(1) +6 >Emitted(4, 24) Source(2, 20) + SourceIndex(1) +7 >Emitted(4, 25) Source(2, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(7, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(7, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(7, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(7, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(7, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^-> +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(9, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(9, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(9, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(9, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(9, 32) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.js] +#!someshebang lib file0 +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";AACA,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICDP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>#!someshebang lib file0 +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >#!someshebang lib file0 + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(2, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(2, 17) Source(2, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->#!someshebang lib file1 + >export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(6, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(6, 13) Source(2, 14) + SourceIndex(1) +3 >Emitted(6, 14) Source(2, 15) + SourceIndex(1) +4 >Emitted(6, 17) Source(2, 18) + SourceIndex(1) +5 >Emitted(6, 19) Source(2, 20) + SourceIndex(1) +6 >Emitted(6, 20) Source(2, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(11, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(11, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(11, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(11, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(11, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(11, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(13, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(13, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(13, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/lib/", + "sourceFiles": [ + "/src/lib/file0.ts", + "/src/lib/file1.ts", + "/src/lib/file2.ts", + "/src/lib/global.ts" + ], + "js": { + "sections": [ + { + "pos": 114, + "end": 131, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 298, + "end": 315, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 25, + "end": 434, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 25, + "end": 196, + "kind": "text" + } + ] + } + } +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +prologue: (114-131):: use strict + "use strict"; +---------------------------------------------------------------------- +prologue: (298-315):: use strict + "use strict"; +---------------------------------------------------------------------- +text: (25-434) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (25-196) +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/stripInternal.js new file mode 100644 index 00000000000..0d94ce4b6ef --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/stripInternal.js @@ -0,0 +1,4746 @@ +//// [/src/app/module.d.ts] +declare module "file1" { + export const x = 10; + export class normalC { + } + export namespace normalN { + } +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";IAAA,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;KAMnB;IACD,MAAM,WAAW,OAAO,CAAC;KASxB;;;ICjBD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC"} + +//// [/src/app/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: ../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^^^-> +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(2, 5) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(1, 7) + SourceIndex(0) +3 >Emitted(2, 12) Source(1, 8) + SourceIndex(0) +4 >Emitted(2, 18) Source(1, 14) + SourceIndex(0) +5 >Emitted(2, 19) Source(1, 15) + SourceIndex(0) +6 >Emitted(2, 24) Source(1, 20) + SourceIndex(0) +7 >Emitted(2, 25) Source(1, 21) + SourceIndex(0) +--- +>>> export class normalC { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^ +1-> + > +2 > export +3 > class +4 > normalC +1->Emitted(3, 5) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 11) Source(2, 7) + SourceIndex(0) +3 >Emitted(3, 18) Source(2, 14) + SourceIndex(0) +4 >Emitted(3, 25) Source(2, 21) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(4, 6) Source(8, 2) + SourceIndex(0) +--- +>>> export namespace normalN { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^ +5 > ^ +1-> + > +2 > export +3 > namespace +4 > normalN +5 > +1->Emitted(5, 5) Source(9, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(9, 7) + SourceIndex(0) +3 >Emitted(5, 22) Source(9, 18) + SourceIndex(0) +4 >Emitted(5, 29) Source(9, 25) + SourceIndex(0) +5 >Emitted(5, 30) Source(9, 26) + SourceIndex(0) +--- +>>> } +1 >^^^^^ +1 >{ + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + >} +1 >Emitted(6, 6) Source(18, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(9, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(9, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(9, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(9, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(9, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(9, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(11, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(11, 9) Source(1, 1) + SourceIndex(2) +3 >Emitted(11, 15) Source(1, 7) + SourceIndex(2) +4 >Emitted(11, 26) Source(1, 18) + SourceIndex(2) +5 >Emitted(11, 31) Source(1, 23) + SourceIndex(2) +6 >Emitted(11, 32) Source(1, 24) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file3.ts +------------------------------------------------------------------- +>>>declare module "file3" { +>>> export const z = 30; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > z +6 > = 30 +7 > ; +1 >Emitted(13, 5) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 11) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 12) Source(1, 8) + SourceIndex(3) +4 >Emitted(13, 18) Source(1, 14) + SourceIndex(3) +5 >Emitted(13, 19) Source(1, 15) + SourceIndex(3) +6 >Emitted(13, 24) Source(1, 20) + SourceIndex(3) +7 >Emitted(13, 25) Source(1, 21) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file4.ts +------------------------------------------------------------------- +>>>} +>>>declare const myVar = 30; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^-> +1 > +2 > +3 > const +4 > myVar +5 > = 30 +6 > ; +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(15, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(15, 15) Source(1, 7) + SourceIndex(4) +4 >Emitted(15, 20) Source(1, 12) + SourceIndex(4) +5 >Emitted(15, 25) Source(1, 17) + SourceIndex(4) +6 >Emitted(15, 26) Source(1, 18) + SourceIndex(4) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.js] + "use strict"; +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>> "use strict"; +>>>/*@internal*/ var myGlob = 20; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >/*@internal*/ +3 > +4 > const +5 > myGlob +6 > = +7 > 20 +8 > ; +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(2, 15) Source(1, 15) + SourceIndex(0) +4 >Emitted(2, 19) Source(1, 21) + SourceIndex(0) +5 >Emitted(2, 25) Source(1, 27) + SourceIndex(0) +6 >Emitted(2, 28) Source(1, 30) + SourceIndex(0) +7 >Emitted(2, 30) Source(1, 32) + SourceIndex(0) +8 >Emitted(2, 31) Source(1, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(6, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(6, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(6, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(6, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(6, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(6, 20) Source(1, 21) + SourceIndex(1) +--- +>>> var normalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +1->Emitted(7, 5) Source(2, 1) + SourceIndex(1) +--- +>>> /*@internal*/ function normalC() { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->export class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(8, 9) Source(3, 5) + SourceIndex(1) +2 >Emitted(8, 22) Source(3, 18) + SourceIndex(1) +3 >Emitted(8, 23) Source(3, 19) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(9, 9) Source(3, 35) + SourceIndex(1) +2 >Emitted(9, 10) Source(3, 36) + SourceIndex(1) +--- +>>> /*@internal*/ normalC.prototype.method = function () { }; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /*@internal*/ prop: string; + > +2 > /*@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(10, 9) Source(5, 5) + SourceIndex(1) +2 >Emitted(10, 22) Source(5, 18) + SourceIndex(1) +3 >Emitted(10, 23) Source(5, 19) + SourceIndex(1) +4 >Emitted(10, 47) Source(5, 25) + SourceIndex(1) +5 >Emitted(10, 50) Source(5, 19) + SourceIndex(1) +6 >Emitted(10, 64) Source(5, 30) + SourceIndex(1) +7 >Emitted(10, 65) Source(5, 31) + SourceIndex(1) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(11, 9) Source(6, 19) + SourceIndex(1) +2 >Emitted(11, 31) Source(6, 23) + SourceIndex(1) +3 >Emitted(11, 53) Source(6, 24) + SourceIndex(1) +--- +>>> /*@internal*/ get: function () { return 10; }, +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /*@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(12, 13) Source(6, 5) + SourceIndex(1) +2 >Emitted(12, 26) Source(6, 18) + SourceIndex(1) +3 >Emitted(12, 32) Source(6, 19) + SourceIndex(1) +4 >Emitted(12, 46) Source(6, 29) + SourceIndex(1) +5 >Emitted(12, 53) Source(6, 36) + SourceIndex(1) +6 >Emitted(12, 55) Source(6, 38) + SourceIndex(1) +7 >Emitted(12, 56) Source(6, 39) + SourceIndex(1) +8 >Emitted(12, 57) Source(6, 40) + SourceIndex(1) +9 >Emitted(12, 58) Source(6, 41) + SourceIndex(1) +--- +>>> /*@internal*/ set: function (val) { }, +1 >^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(13, 13) Source(7, 5) + SourceIndex(1) +2 >Emitted(13, 26) Source(7, 18) + SourceIndex(1) +3 >Emitted(13, 32) Source(7, 19) + SourceIndex(1) +4 >Emitted(13, 42) Source(7, 25) + SourceIndex(1) +5 >Emitted(13, 45) Source(7, 36) + SourceIndex(1) +6 >Emitted(13, 49) Source(7, 40) + SourceIndex(1) +7 >Emitted(13, 50) Source(7, 41) + SourceIndex(1) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(16, 12) Source(6, 41) + SourceIndex(1) +--- +>>> return normalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(17, 9) Source(8, 1) + SourceIndex(1) +2 >Emitted(17, 23) Source(8, 2) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(18, 5) Source(8, 1) + SourceIndex(1) +2 >Emitted(18, 6) Source(8, 2) + SourceIndex(1) +3 >Emitted(18, 6) Source(2, 1) + SourceIndex(1) +4 >Emitted(18, 10) Source(8, 2) + SourceIndex(1) +--- +>>> exports.normalC = normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > normalC +1->Emitted(19, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(19, 31) Source(2, 21) + SourceIndex(1) +--- +>>> var normalN; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} + > +2 > export namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(20, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 9) Source(9, 18) + SourceIndex(1) +3 >Emitted(20, 16) Source(9, 25) + SourceIndex(1) +4 >Emitted(20, 17) Source(18, 2) + SourceIndex(1) +--- +>>> (function (normalN) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export namespace +3 > normalN +1->Emitted(21, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(21, 16) Source(9, 18) + SourceIndex(1) +3 >Emitted(21, 23) Source(9, 25) + SourceIndex(1) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(22, 9) Source(10, 5) + SourceIndex(1) +2 >Emitted(22, 22) Source(10, 18) + SourceIndex(1) +3 >Emitted(22, 23) Source(10, 19) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(23, 13) Source(10, 19) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(24, 14) Source(10, 37) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(25, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(25, 21) Source(10, 37) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(26, 9) Source(10, 36) + SourceIndex(1) +2 >Emitted(26, 10) Source(10, 37) + SourceIndex(1) +3 >Emitted(26, 10) Source(10, 19) + SourceIndex(1) +4 >Emitted(26, 14) Source(10, 37) + SourceIndex(1) +--- +>>> normalN.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(27, 9) Source(10, 32) + SourceIndex(1) +2 >Emitted(27, 18) Source(10, 33) + SourceIndex(1) +3 >Emitted(27, 22) Source(10, 37) + SourceIndex(1) +4 >Emitted(27, 23) Source(10, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function foo() { } +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(28, 9) Source(11, 5) + SourceIndex(1) +2 >Emitted(28, 22) Source(11, 18) + SourceIndex(1) +3 >Emitted(28, 23) Source(11, 19) + SourceIndex(1) +4 >Emitted(28, 32) Source(11, 35) + SourceIndex(1) +5 >Emitted(28, 35) Source(11, 38) + SourceIndex(1) +6 >Emitted(28, 40) Source(11, 42) + SourceIndex(1) +7 >Emitted(28, 41) Source(11, 43) + SourceIndex(1) +--- +>>> normalN.foo = foo; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(29, 9) Source(11, 35) + SourceIndex(1) +2 >Emitted(29, 20) Source(11, 38) + SourceIndex(1) +3 >Emitted(29, 26) Source(11, 43) + SourceIndex(1) +4 >Emitted(29, 27) Source(11, 43) + SourceIndex(1) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(30, 9) Source(12, 5) + SourceIndex(1) +2 >Emitted(30, 22) Source(12, 18) + SourceIndex(1) +3 >Emitted(30, 23) Source(12, 19) + SourceIndex(1) +4 >Emitted(30, 27) Source(12, 36) + SourceIndex(1) +5 >Emitted(30, 40) Source(12, 49) + SourceIndex(1) +6 >Emitted(30, 41) Source(12, 71) + SourceIndex(1) +--- +>>> (function (someNamespace) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(31, 9) Source(12, 19) + SourceIndex(1) +2 >Emitted(31, 20) Source(12, 36) + SourceIndex(1) +3 >Emitted(31, 33) Source(12, 49) + SourceIndex(1) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(32, 13) Source(12, 52) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(33, 17) Source(12, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(34, 18) Source(12, 69) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(35, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(35, 25) Source(12, 69) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(36, 13) Source(12, 68) + SourceIndex(1) +2 >Emitted(36, 14) Source(12, 69) + SourceIndex(1) +3 >Emitted(36, 14) Source(12, 52) + SourceIndex(1) +4 >Emitted(36, 18) Source(12, 69) + SourceIndex(1) +--- +>>> someNamespace.C = C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(37, 13) Source(12, 65) + SourceIndex(1) +2 >Emitted(37, 28) Source(12, 66) + SourceIndex(1) +3 >Emitted(37, 32) Source(12, 69) + SourceIndex(1) +4 >Emitted(37, 33) Source(12, 69) + SourceIndex(1) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(38, 9) Source(12, 70) + SourceIndex(1) +2 >Emitted(38, 10) Source(12, 71) + SourceIndex(1) +3 >Emitted(38, 12) Source(12, 36) + SourceIndex(1) +4 >Emitted(38, 25) Source(12, 49) + SourceIndex(1) +5 >Emitted(38, 28) Source(12, 36) + SourceIndex(1) +6 >Emitted(38, 49) Source(12, 49) + SourceIndex(1) +7 >Emitted(38, 54) Source(12, 36) + SourceIndex(1) +8 >Emitted(38, 75) Source(12, 49) + SourceIndex(1) +9 >Emitted(38, 83) Source(12, 71) + SourceIndex(1) +--- +>>> /*@internal*/ var someOther; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(39, 9) Source(13, 5) + SourceIndex(1) +2 >Emitted(39, 22) Source(13, 18) + SourceIndex(1) +3 >Emitted(39, 23) Source(13, 19) + SourceIndex(1) +4 >Emitted(39, 27) Source(13, 36) + SourceIndex(1) +5 >Emitted(39, 36) Source(13, 45) + SourceIndex(1) +6 >Emitted(39, 37) Source(13, 85) + SourceIndex(1) +--- +>>> (function (someOther) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(40, 9) Source(13, 19) + SourceIndex(1) +2 >Emitted(40, 20) Source(13, 36) + SourceIndex(1) +3 >Emitted(40, 29) Source(13, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(41, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(41, 17) Source(13, 46) + SourceIndex(1) +3 >Emitted(41, 26) Source(13, 55) + SourceIndex(1) +4 >Emitted(41, 27) Source(13, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(42, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(42, 24) Source(13, 46) + SourceIndex(1) +3 >Emitted(42, 33) Source(13, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(43, 17) Source(13, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(44, 21) Source(13, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(45, 22) Source(13, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(46, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(46, 37) Source(13, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(47, 17) Source(13, 82) + SourceIndex(1) +2 >Emitted(47, 18) Source(13, 83) + SourceIndex(1) +3 >Emitted(47, 18) Source(13, 58) + SourceIndex(1) +4 >Emitted(47, 22) Source(13, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(48, 17) Source(13, 71) + SourceIndex(1) +2 >Emitted(48, 36) Source(13, 80) + SourceIndex(1) +3 >Emitted(48, 48) Source(13, 83) + SourceIndex(1) +4 >Emitted(48, 49) Source(13, 83) + SourceIndex(1) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(49, 13) Source(13, 84) + SourceIndex(1) +2 >Emitted(49, 14) Source(13, 85) + SourceIndex(1) +3 >Emitted(49, 16) Source(13, 46) + SourceIndex(1) +4 >Emitted(49, 25) Source(13, 55) + SourceIndex(1) +5 >Emitted(49, 28) Source(13, 46) + SourceIndex(1) +6 >Emitted(49, 47) Source(13, 55) + SourceIndex(1) +7 >Emitted(49, 52) Source(13, 46) + SourceIndex(1) +8 >Emitted(49, 71) Source(13, 55) + SourceIndex(1) +9 >Emitted(49, 79) Source(13, 85) + SourceIndex(1) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(50, 9) Source(13, 84) + SourceIndex(1) +2 >Emitted(50, 10) Source(13, 85) + SourceIndex(1) +3 >Emitted(50, 12) Source(13, 36) + SourceIndex(1) +4 >Emitted(50, 21) Source(13, 45) + SourceIndex(1) +5 >Emitted(50, 24) Source(13, 36) + SourceIndex(1) +6 >Emitted(50, 41) Source(13, 45) + SourceIndex(1) +7 >Emitted(50, 46) Source(13, 36) + SourceIndex(1) +8 >Emitted(50, 63) Source(13, 45) + SourceIndex(1) +9 >Emitted(50, 71) Source(13, 85) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(51, 9) Source(14, 5) + SourceIndex(1) +2 >Emitted(51, 22) Source(14, 18) + SourceIndex(1) +3 >Emitted(51, 23) Source(14, 33) + SourceIndex(1) +4 >Emitted(51, 41) Source(14, 43) + SourceIndex(1) +5 >Emitted(51, 44) Source(14, 46) + SourceIndex(1) +6 >Emitted(51, 57) Source(14, 59) + SourceIndex(1) +7 >Emitted(51, 58) Source(14, 60) + SourceIndex(1) +8 >Emitted(51, 59) Source(14, 61) + SourceIndex(1) +9 >Emitted(51, 60) Source(14, 62) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.internalConst = 10; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(52, 9) Source(16, 5) + SourceIndex(1) +2 >Emitted(52, 22) Source(16, 18) + SourceIndex(1) +3 >Emitted(52, 23) Source(16, 32) + SourceIndex(1) +4 >Emitted(52, 44) Source(16, 45) + SourceIndex(1) +5 >Emitted(52, 47) Source(16, 48) + SourceIndex(1) +6 >Emitted(52, 49) Source(16, 50) + SourceIndex(1) +7 >Emitted(52, 50) Source(16, 51) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(53, 9) Source(17, 5) + SourceIndex(1) +2 >Emitted(53, 22) Source(17, 18) + SourceIndex(1) +3 >Emitted(53, 23) Source(17, 19) + SourceIndex(1) +4 >Emitted(53, 27) Source(17, 31) + SourceIndex(1) +5 >Emitted(53, 39) Source(17, 55) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(54, 9) Source(17, 19) + SourceIndex(1) +2 >Emitted(54, 20) Source(17, 31) + SourceIndex(1) +3 >Emitted(54, 32) Source(17, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(55, 13) Source(17, 46) + SourceIndex(1) +2 >Emitted(55, 54) Source(17, 47) + SourceIndex(1) +3 >Emitted(55, 55) Source(17, 47) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(56, 13) Source(17, 49) + SourceIndex(1) +2 >Emitted(56, 54) Source(17, 50) + SourceIndex(1) +3 >Emitted(56, 55) Source(17, 50) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(57, 13) Source(17, 52) + SourceIndex(1) +2 >Emitted(57, 54) Source(17, 53) + SourceIndex(1) +3 >Emitted(57, 55) Source(17, 53) + SourceIndex(1) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(58, 9) Source(17, 54) + SourceIndex(1) +2 >Emitted(58, 10) Source(17, 55) + SourceIndex(1) +3 >Emitted(58, 12) Source(17, 31) + SourceIndex(1) +4 >Emitted(58, 24) Source(17, 43) + SourceIndex(1) +5 >Emitted(58, 27) Source(17, 31) + SourceIndex(1) +6 >Emitted(58, 47) Source(17, 43) + SourceIndex(1) +7 >Emitted(58, 52) Source(17, 31) + SourceIndex(1) +8 >Emitted(58, 72) Source(17, 43) + SourceIndex(1) +9 >Emitted(58, 80) Source(17, 55) + SourceIndex(1) +--- +>>> })(normalN = exports.normalN || (exports.normalN = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +10> ^^^-> +1 > + > +2 > } +3 > +4 > normalN +5 > +6 > normalN +7 > +8 > normalN +9 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(59, 5) Source(18, 1) + SourceIndex(1) +2 >Emitted(59, 6) Source(18, 2) + SourceIndex(1) +3 >Emitted(59, 8) Source(9, 18) + SourceIndex(1) +4 >Emitted(59, 15) Source(9, 25) + SourceIndex(1) +5 >Emitted(59, 18) Source(9, 18) + SourceIndex(1) +6 >Emitted(59, 33) Source(9, 25) + SourceIndex(1) +7 >Emitted(59, 38) Source(9, 18) + SourceIndex(1) +8 >Emitted(59, 53) Source(9, 25) + SourceIndex(1) +9 >Emitted(59, 61) Source(18, 2) + SourceIndex(1) +--- +>>> /*@internal*/ var internalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 > /*@internal*/ +3 > +1->Emitted(60, 5) Source(19, 1) + SourceIndex(1) +2 >Emitted(60, 18) Source(19, 14) + SourceIndex(1) +3 >Emitted(60, 19) Source(19, 15) + SourceIndex(1) +--- +>>> function internalC() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(61, 9) Source(19, 15) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class internalC { +2 > } +1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(62, 10) Source(19, 40) + SourceIndex(1) +--- +>>> return internalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(63, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(63, 25) Source(19, 40) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class internalC {} +1 >Emitted(64, 5) Source(19, 39) + SourceIndex(1) +2 >Emitted(64, 6) Source(19, 40) + SourceIndex(1) +3 >Emitted(64, 6) Source(19, 15) + SourceIndex(1) +4 >Emitted(64, 10) Source(19, 40) + SourceIndex(1) +--- +>>> exports.internalC = internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^-> +1-> +2 > internalC +1->Emitted(65, 5) Source(19, 28) + SourceIndex(1) +2 >Emitted(65, 35) Source(19, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function internalfoo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> {} + > +2 > /*@internal*/ +3 > +4 > export function +5 > internalfoo +6 > () { +7 > } +1->Emitted(66, 5) Source(20, 1) + SourceIndex(1) +2 >Emitted(66, 18) Source(20, 14) + SourceIndex(1) +3 >Emitted(66, 19) Source(20, 15) + SourceIndex(1) +4 >Emitted(66, 28) Source(20, 31) + SourceIndex(1) +5 >Emitted(66, 39) Source(20, 42) + SourceIndex(1) +6 >Emitted(66, 44) Source(20, 46) + SourceIndex(1) +7 >Emitted(66, 45) Source(20, 47) + SourceIndex(1) +--- +>>> exports.internalfoo = internalfoo; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^-> +1 > +2 > export function internalfoo() {} +1 >Emitted(67, 5) Source(20, 15) + SourceIndex(1) +2 >Emitted(67, 39) Source(20, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalNamespace +6 > { export class someClass {} } +1->Emitted(68, 5) Source(21, 1) + SourceIndex(1) +2 >Emitted(68, 18) Source(21, 14) + SourceIndex(1) +3 >Emitted(68, 19) Source(21, 15) + SourceIndex(1) +4 >Emitted(68, 23) Source(21, 32) + SourceIndex(1) +5 >Emitted(68, 40) Source(21, 49) + SourceIndex(1) +6 >Emitted(68, 41) Source(21, 79) + SourceIndex(1) +--- +>>> (function (internalNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > internalNamespace +1 >Emitted(69, 5) Source(21, 15) + SourceIndex(1) +2 >Emitted(69, 16) Source(21, 32) + SourceIndex(1) +3 >Emitted(69, 33) Source(21, 49) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(70, 9) Source(21, 52) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(71, 13) Source(21, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(72, 14) Source(21, 77) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(73, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(73, 29) Source(21, 77) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(74, 9) Source(21, 76) + SourceIndex(1) +2 >Emitted(74, 10) Source(21, 77) + SourceIndex(1) +3 >Emitted(74, 10) Source(21, 52) + SourceIndex(1) +4 >Emitted(74, 14) Source(21, 77) + SourceIndex(1) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(75, 9) Source(21, 65) + SourceIndex(1) +2 >Emitted(75, 36) Source(21, 74) + SourceIndex(1) +3 >Emitted(75, 48) Source(21, 77) + SourceIndex(1) +4 >Emitted(75, 49) Source(21, 77) + SourceIndex(1) +--- +>>> })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > +8 > internalNamespace +9 > { export class someClass {} } +1->Emitted(76, 5) Source(21, 78) + SourceIndex(1) +2 >Emitted(76, 6) Source(21, 79) + SourceIndex(1) +3 >Emitted(76, 8) Source(21, 32) + SourceIndex(1) +4 >Emitted(76, 25) Source(21, 49) + SourceIndex(1) +5 >Emitted(76, 28) Source(21, 32) + SourceIndex(1) +6 >Emitted(76, 53) Source(21, 49) + SourceIndex(1) +7 >Emitted(76, 58) Source(21, 32) + SourceIndex(1) +8 >Emitted(76, 83) Source(21, 49) + SourceIndex(1) +9 >Emitted(76, 91) Source(21, 79) + SourceIndex(1) +--- +>>> /*@internal*/ var internalOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(77, 5) Source(22, 1) + SourceIndex(1) +2 >Emitted(77, 18) Source(22, 14) + SourceIndex(1) +3 >Emitted(77, 19) Source(22, 15) + SourceIndex(1) +4 >Emitted(77, 23) Source(22, 32) + SourceIndex(1) +5 >Emitted(77, 36) Source(22, 45) + SourceIndex(1) +6 >Emitted(77, 37) Source(22, 85) + SourceIndex(1) +--- +>>> (function (internalOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 > export namespace +3 > internalOther +1 >Emitted(78, 5) Source(22, 15) + SourceIndex(1) +2 >Emitted(78, 16) Source(22, 32) + SourceIndex(1) +3 >Emitted(78, 29) Source(22, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(79, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(79, 13) Source(22, 46) + SourceIndex(1) +3 >Emitted(79, 22) Source(22, 55) + SourceIndex(1) +4 >Emitted(79, 23) Source(22, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(80, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(80, 20) Source(22, 46) + SourceIndex(1) +3 >Emitted(80, 29) Source(22, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(81, 13) Source(22, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(82, 17) Source(22, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(83, 18) Source(22, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(84, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(84, 33) Source(22, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(85, 13) Source(22, 82) + SourceIndex(1) +2 >Emitted(85, 14) Source(22, 83) + SourceIndex(1) +3 >Emitted(85, 14) Source(22, 58) + SourceIndex(1) +4 >Emitted(85, 18) Source(22, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(86, 13) Source(22, 71) + SourceIndex(1) +2 >Emitted(86, 32) Source(22, 80) + SourceIndex(1) +3 >Emitted(86, 44) Source(22, 83) + SourceIndex(1) +4 >Emitted(86, 45) Source(22, 83) + SourceIndex(1) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(87, 9) Source(22, 84) + SourceIndex(1) +2 >Emitted(87, 10) Source(22, 85) + SourceIndex(1) +3 >Emitted(87, 12) Source(22, 46) + SourceIndex(1) +4 >Emitted(87, 21) Source(22, 55) + SourceIndex(1) +5 >Emitted(87, 24) Source(22, 46) + SourceIndex(1) +6 >Emitted(87, 47) Source(22, 55) + SourceIndex(1) +7 >Emitted(87, 52) Source(22, 46) + SourceIndex(1) +8 >Emitted(87, 75) Source(22, 55) + SourceIndex(1) +9 >Emitted(87, 83) Source(22, 85) + SourceIndex(1) +--- +>>> })(internalOther = exports.internalOther || (exports.internalOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > internalOther +5 > +6 > internalOther +7 > +8 > internalOther +9 > .something { export class someClass {} } +1 >Emitted(88, 5) Source(22, 84) + SourceIndex(1) +2 >Emitted(88, 6) Source(22, 85) + SourceIndex(1) +3 >Emitted(88, 8) Source(22, 32) + SourceIndex(1) +4 >Emitted(88, 21) Source(22, 45) + SourceIndex(1) +5 >Emitted(88, 24) Source(22, 32) + SourceIndex(1) +6 >Emitted(88, 45) Source(22, 45) + SourceIndex(1) +7 >Emitted(88, 50) Source(22, 32) + SourceIndex(1) +8 >Emitted(88, 71) Source(22, 45) + SourceIndex(1) +9 >Emitted(88, 79) Source(22, 85) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalImport = internalNamespace.someClass; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1 >Emitted(89, 5) Source(23, 1) + SourceIndex(1) +2 >Emitted(89, 18) Source(23, 14) + SourceIndex(1) +3 >Emitted(89, 19) Source(23, 29) + SourceIndex(1) +4 >Emitted(89, 27) Source(23, 29) + SourceIndex(1) +5 >Emitted(89, 41) Source(23, 43) + SourceIndex(1) +6 >Emitted(89, 44) Source(23, 46) + SourceIndex(1) +7 >Emitted(89, 61) Source(23, 63) + SourceIndex(1) +8 >Emitted(89, 62) Source(23, 64) + SourceIndex(1) +9 >Emitted(89, 71) Source(23, 73) + SourceIndex(1) +10>Emitted(89, 72) Source(23, 74) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(90, 5) Source(25, 1) + SourceIndex(1) +2 >Emitted(90, 18) Source(25, 14) + SourceIndex(1) +3 >Emitted(90, 19) Source(25, 28) + SourceIndex(1) +4 >Emitted(90, 27) Source(25, 28) + SourceIndex(1) +5 >Emitted(90, 40) Source(25, 41) + SourceIndex(1) +6 >Emitted(90, 43) Source(25, 44) + SourceIndex(1) +7 >Emitted(90, 45) Source(25, 46) + SourceIndex(1) +8 >Emitted(90, 46) Source(25, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(91, 5) Source(26, 1) + SourceIndex(1) +2 >Emitted(91, 18) Source(26, 14) + SourceIndex(1) +3 >Emitted(91, 19) Source(26, 15) + SourceIndex(1) +4 >Emitted(91, 23) Source(26, 27) + SourceIndex(1) +5 >Emitted(91, 35) Source(26, 51) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(92, 5) Source(26, 15) + SourceIndex(1) +2 >Emitted(92, 16) Source(26, 27) + SourceIndex(1) +3 >Emitted(92, 28) Source(26, 39) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(93, 9) Source(26, 42) + SourceIndex(1) +2 >Emitted(93, 50) Source(26, 43) + SourceIndex(1) +3 >Emitted(93, 51) Source(26, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(94, 9) Source(26, 45) + SourceIndex(1) +2 >Emitted(94, 50) Source(26, 46) + SourceIndex(1) +3 >Emitted(94, 51) Source(26, 46) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(95, 9) Source(26, 48) + SourceIndex(1) +2 >Emitted(95, 50) Source(26, 49) + SourceIndex(1) +3 >Emitted(95, 51) Source(26, 49) + SourceIndex(1) +--- +>>> })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(96, 5) Source(26, 50) + SourceIndex(1) +2 >Emitted(96, 6) Source(26, 51) + SourceIndex(1) +3 >Emitted(96, 8) Source(26, 27) + SourceIndex(1) +4 >Emitted(96, 20) Source(26, 39) + SourceIndex(1) +5 >Emitted(96, 23) Source(26, 27) + SourceIndex(1) +6 >Emitted(96, 43) Source(26, 39) + SourceIndex(1) +7 >Emitted(96, 48) Source(26, 27) + SourceIndex(1) +8 >Emitted(96, 68) Source(26, 39) + SourceIndex(1) +9 >Emitted(96, 76) Source(26, 51) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(101, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(101, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(101, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(101, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(101, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(101, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(103, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(103, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(103, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(103, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(103, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(103, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(107, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(107, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(107, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(107, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(107, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(107, 20) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(109, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(109, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(109, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(109, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(109, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(109, 16) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/app/", + "sourceFiles": [ + "/src/app/file3.ts", + "/src/app/file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 17, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 19, + "end": 4148, + "kind": "prepend", + "data": "/src/lib/module.js", + "texts": [ + { + "pos": 19, + "end": 4148, + "kind": "text" + } + ] + }, + { + "pos": 4219, + "end": 4236, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 4148, + "end": 4349, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 217, + "kind": "prepend", + "data": "/src/lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 217, + "kind": "text" + } + ] + }, + { + "pos": 217, + "end": 299, + "kind": "text" + } + ] + } + } +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prologue: (0-17):: use strict + "use strict"; +---------------------------------------------------------------------- +prepend: (19-4148):: /src/lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (19-4148) +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +prologue: (4219-4236):: use strict + "use strict"; +---------------------------------------------------------------------- +text: (4148-4349) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-217):: /src/lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-217) +declare module "file1" { + export const x = 10; + export class normalC { + } + export namespace normalN { + } +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (217-299) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; + +====================================================================== + +//// [/src/app/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, +"stripInternal": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": ["module.d.ts"] + "references": [ + { "path": "../lib", "prepend": true } + ] +} + +//// [/src/lib/file0.ts] +/*@internal*/ const myGlob = 20; + +//// [/src/lib/file1.ts] +export const x = 10; +export class normalC { + /*@internal*/ constructor() { } + /*@internal*/ prop: string; + /*@internal*/ method() { } + /*@internal*/ get c() { return 10; } + /*@internal*/ set c(val: number) { } +} +export namespace normalN { + /*@internal*/ export class C { } + /*@internal*/ export function foo() {} + /*@internal*/ export namespace someNamespace { export class C {} } + /*@internal*/ export namespace someOther.something { export class someClass {} } + /*@internal*/ export import someImport = someNamespace.C; + /*@internal*/ export type internalType = internalC; + /*@internal*/ export const internalConst = 10; + /*@internal*/ export enum internalEnum { a, b, c } +} +/*@internal*/ export class internalC {} +/*@internal*/ export function internalfoo() {} +/*@internal*/ export namespace internalNamespace { export class someClass {} } +/*@internal*/ export namespace internalOther.something { export class someClass {} } +/*@internal*/ export import internalImport = internalNamespace.someClass; +/*@internal*/ export type internalType = internalC; +/*@internal*/ export const internalConst = 10; +/*@internal*/ export enum internalEnum { a, b, c } + +//// [/src/lib/module.d.ts] +declare const myGlob = 20; +declare module "file1" { + export const x = 10; + export class normalC { + constructor(); + prop: string; + method(): void; + /*@internal*/ c: number; + } + export namespace normalN { + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } + } + export class internalC { + } + export function internalfoo(): void; + export namespace internalNamespace { + class someClass { + } + } + export namespace internalOther.something { + class someClass { + } + } + export import internalImport = internalNamespace.someClass; + export type internalType = internalC; + export const internalConst = 10; + export enum internalEnum { + a = 0, + b = 1, + c = 2 + } +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAc,QAAA,MAAM,MAAM,KAAK,CAAC;;ICAhC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,OAAO;;QAEF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM;sBACF,CAAC,EACM,MAAM;KAClC;IACD,MAAM,WAAW,OAAO,CAAC;QACP,MAAa,CAAC;SAAI;QAClB,SAAgB,GAAG,SAAK;QACxB,UAAiB,aAAa,CAAC;YAAE,MAAa,CAAC;aAAG;SAAE;QACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;YAAE,MAAa,SAAS;aAAG;SAAE;QAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;QAC9B,MAAM,aAAa,KAAK,CAAC;QAChC,KAAY,YAAY;YAAG,CAAC,IAAA;YAAE,CAAC,IAAA;YAAE,CAAC,IAAA;SAAE;KACrD;IACa,MAAM,OAAO,SAAS;KAAG;IACzB,MAAM,UAAU,WAAW,SAAK;IAChC,MAAM,WAAW,iBAAiB,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAChE,MAAM,WAAW,aAAa,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACtE,MAAM,QAAQ,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAC3D,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IACrC,MAAM,CAAC,MAAM,aAAa,KAAK,CAAC;IAChC,MAAM,MAAM,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;;;ICzBlD,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} + +//// [/src/lib/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file0.ts +------------------------------------------------------------------- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 >/*@internal*/ +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) +2 >Emitted(1, 9) Source(1, 15) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 21) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 27) + SourceIndex(0) +5 >Emitted(1, 26) Source(1, 32) + SourceIndex(0) +6 >Emitted(1, 27) Source(1, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +8 > ^^^-> +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(3, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(3, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(3, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(3, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(3, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(3, 25) Source(1, 21) + SourceIndex(1) +--- +>>> export class normalC { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^ +1-> + > +2 > export +3 > class +4 > normalC +1->Emitted(4, 5) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 11) Source(2, 7) + SourceIndex(1) +3 >Emitted(4, 18) Source(2, 14) + SourceIndex(1) +4 >Emitted(4, 25) Source(2, 21) + SourceIndex(1) +--- +>>> constructor(); +>>> prop: string; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +6 > ^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ +2 > prop +3 > : +4 > string +5 > ; +1 >Emitted(6, 9) Source(4, 19) + SourceIndex(1) +2 >Emitted(6, 13) Source(4, 23) + SourceIndex(1) +3 >Emitted(6, 15) Source(4, 25) + SourceIndex(1) +4 >Emitted(6, 21) Source(4, 31) + SourceIndex(1) +5 >Emitted(6, 22) Source(4, 32) + SourceIndex(1) +--- +>>> method(): void; +1->^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > method +1->Emitted(7, 9) Source(5, 19) + SourceIndex(1) +2 >Emitted(7, 15) Source(5, 25) + SourceIndex(1) +--- +>>> /*@internal*/ c: number; +1->^^^^^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^ +1->() { } + > /*@internal*/ get +2 > c +3 > () { return 10; } + > /*@internal*/ set c(val: +4 > number +1->Emitted(8, 23) Source(6, 23) + SourceIndex(1) +2 >Emitted(8, 24) Source(6, 24) + SourceIndex(1) +3 >Emitted(8, 26) Source(7, 30) + SourceIndex(1) +4 >Emitted(8, 32) Source(7, 36) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { } + >} +1 >Emitted(9, 6) Source(8, 2) + SourceIndex(1) +--- +>>> export namespace normalN { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^ +5 > ^ +1-> + > +2 > export +3 > namespace +4 > normalN +5 > +1->Emitted(10, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(10, 11) Source(9, 7) + SourceIndex(1) +3 >Emitted(10, 22) Source(9, 18) + SourceIndex(1) +4 >Emitted(10, 29) Source(9, 25) + SourceIndex(1) +5 >Emitted(10, 30) Source(9, 26) + SourceIndex(1) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ + > /*@internal*/ +2 > export class +3 > C +1 >Emitted(11, 9) Source(10, 19) + SourceIndex(1) +2 >Emitted(11, 15) Source(10, 32) + SourceIndex(1) +3 >Emitted(11, 16) Source(10, 33) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(12, 10) Source(10, 37) + SourceIndex(1) +--- +>>> function foo(): void; +1->^^^^^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^ +5 > ^^^^^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () {} +1->Emitted(13, 9) Source(11, 19) + SourceIndex(1) +2 >Emitted(13, 18) Source(11, 35) + SourceIndex(1) +3 >Emitted(13, 21) Source(11, 38) + SourceIndex(1) +4 >Emitted(13, 30) Source(11, 43) + SourceIndex(1) +--- +>>> namespace someNamespace { +1->^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > +1->Emitted(14, 9) Source(12, 19) + SourceIndex(1) +2 >Emitted(14, 19) Source(12, 36) + SourceIndex(1) +3 >Emitted(14, 32) Source(12, 49) + SourceIndex(1) +4 >Emitted(14, 33) Source(12, 50) + SourceIndex(1) +--- +>>> class C { +1 >^^^^^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(15, 13) Source(12, 52) + SourceIndex(1) +2 >Emitted(15, 19) Source(12, 65) + SourceIndex(1) +3 >Emitted(15, 20) Source(12, 66) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^^^^^ +1 > {} +1 >Emitted(16, 14) Source(12, 69) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(17, 10) Source(12, 71) + SourceIndex(1) +--- +>>> namespace someOther.something { +1->^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someOther +4 > . +5 > something +6 > +1->Emitted(18, 9) Source(13, 19) + SourceIndex(1) +2 >Emitted(18, 19) Source(13, 36) + SourceIndex(1) +3 >Emitted(18, 28) Source(13, 45) + SourceIndex(1) +4 >Emitted(18, 29) Source(13, 46) + SourceIndex(1) +5 >Emitted(18, 38) Source(13, 55) + SourceIndex(1) +6 >Emitted(18, 39) Source(13, 56) + SourceIndex(1) +--- +>>> class someClass { +1 >^^^^^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(19, 13) Source(13, 58) + SourceIndex(1) +2 >Emitted(19, 19) Source(13, 71) + SourceIndex(1) +3 >Emitted(19, 28) Source(13, 80) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^^^^^ +1 > {} +1 >Emitted(20, 14) Source(13, 83) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(21, 10) Source(13, 85) + SourceIndex(1) +--- +>>> export import someImport = someNamespace.C; +1->^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1-> + > /*@internal*/ +2 > export +3 > import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1->Emitted(22, 9) Source(14, 19) + SourceIndex(1) +2 >Emitted(22, 15) Source(14, 25) + SourceIndex(1) +3 >Emitted(22, 23) Source(14, 33) + SourceIndex(1) +4 >Emitted(22, 33) Source(14, 43) + SourceIndex(1) +5 >Emitted(22, 36) Source(14, 46) + SourceIndex(1) +6 >Emitted(22, 49) Source(14, 59) + SourceIndex(1) +7 >Emitted(22, 50) Source(14, 60) + SourceIndex(1) +8 >Emitted(22, 51) Source(14, 61) + SourceIndex(1) +9 >Emitted(22, 52) Source(14, 62) + SourceIndex(1) +--- +>>> type internalType = internalC; +1 >^^^^^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > /*@internal*/ +2 > export type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(23, 9) Source(15, 19) + SourceIndex(1) +2 >Emitted(23, 14) Source(15, 31) + SourceIndex(1) +3 >Emitted(23, 26) Source(15, 43) + SourceIndex(1) +4 >Emitted(23, 29) Source(15, 46) + SourceIndex(1) +5 >Emitted(23, 38) Source(15, 55) + SourceIndex(1) +6 >Emitted(23, 39) Source(15, 56) + SourceIndex(1) +--- +>>> const internalConst = 10; +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1 > + > /*@internal*/ export +2 > const +3 > internalConst +4 > = 10 +5 > ; +1 >Emitted(24, 9) Source(16, 26) + SourceIndex(1) +2 >Emitted(24, 15) Source(16, 32) + SourceIndex(1) +3 >Emitted(24, 28) Source(16, 45) + SourceIndex(1) +4 >Emitted(24, 33) Source(16, 50) + SourceIndex(1) +5 >Emitted(24, 34) Source(16, 51) + SourceIndex(1) +--- +>>> enum internalEnum { +1 >^^^^^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum +1 >Emitted(25, 9) Source(17, 19) + SourceIndex(1) +2 >Emitted(25, 14) Source(17, 31) + SourceIndex(1) +3 >Emitted(25, 26) Source(17, 43) + SourceIndex(1) +--- +>>> a = 0, +1 >^^^^^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(26, 13) Source(17, 46) + SourceIndex(1) +2 >Emitted(26, 14) Source(17, 47) + SourceIndex(1) +3 >Emitted(26, 18) Source(17, 47) + SourceIndex(1) +--- +>>> b = 1, +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(27, 13) Source(17, 49) + SourceIndex(1) +2 >Emitted(27, 14) Source(17, 50) + SourceIndex(1) +3 >Emitted(27, 18) Source(17, 50) + SourceIndex(1) +--- +>>> c = 2 +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(28, 13) Source(17, 52) + SourceIndex(1) +2 >Emitted(28, 14) Source(17, 53) + SourceIndex(1) +3 >Emitted(28, 18) Source(17, 53) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +1 > } +1 >Emitted(29, 10) Source(17, 55) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(30, 6) Source(18, 2) + SourceIndex(1) +--- +>>> export class internalC { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^ +1-> + >/*@internal*/ +2 > export +3 > class +4 > internalC +1->Emitted(31, 5) Source(19, 15) + SourceIndex(1) +2 >Emitted(31, 11) Source(19, 21) + SourceIndex(1) +3 >Emitted(31, 18) Source(19, 28) + SourceIndex(1) +4 >Emitted(31, 27) Source(19, 37) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(32, 6) Source(19, 40) + SourceIndex(1) +--- +>>> export function internalfoo(): void; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^ +6 > ^-> +1-> + >/*@internal*/ +2 > export +3 > function +4 > internalfoo +5 > () {} +1->Emitted(33, 5) Source(20, 15) + SourceIndex(1) +2 >Emitted(33, 11) Source(20, 21) + SourceIndex(1) +3 >Emitted(33, 21) Source(20, 31) + SourceIndex(1) +4 >Emitted(33, 32) Source(20, 42) + SourceIndex(1) +5 >Emitted(33, 41) Source(20, 47) + SourceIndex(1) +--- +>>> export namespace internalNamespace { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 > export +3 > namespace +4 > internalNamespace +5 > +1->Emitted(34, 5) Source(21, 15) + SourceIndex(1) +2 >Emitted(34, 11) Source(21, 21) + SourceIndex(1) +3 >Emitted(34, 22) Source(21, 32) + SourceIndex(1) +4 >Emitted(34, 39) Source(21, 49) + SourceIndex(1) +5 >Emitted(34, 40) Source(21, 50) + SourceIndex(1) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(35, 9) Source(21, 52) + SourceIndex(1) +2 >Emitted(35, 15) Source(21, 65) + SourceIndex(1) +3 >Emitted(35, 24) Source(21, 74) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(36, 10) Source(21, 77) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(37, 6) Source(21, 79) + SourceIndex(1) +--- +>>> export namespace internalOther.something { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +1-> + >/*@internal*/ +2 > export +3 > namespace +4 > internalOther +5 > . +6 > something +7 > +1->Emitted(38, 5) Source(22, 15) + SourceIndex(1) +2 >Emitted(38, 11) Source(22, 21) + SourceIndex(1) +3 >Emitted(38, 22) Source(22, 32) + SourceIndex(1) +4 >Emitted(38, 35) Source(22, 45) + SourceIndex(1) +5 >Emitted(38, 36) Source(22, 46) + SourceIndex(1) +6 >Emitted(38, 45) Source(22, 55) + SourceIndex(1) +7 >Emitted(38, 46) Source(22, 56) + SourceIndex(1) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(39, 9) Source(22, 58) + SourceIndex(1) +2 >Emitted(39, 15) Source(22, 71) + SourceIndex(1) +3 >Emitted(39, 24) Source(22, 80) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(40, 10) Source(22, 83) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(41, 6) Source(22, 85) + SourceIndex(1) +--- +>>> export import internalImport = internalNamespace.someClass; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^^^^^^^^^ +9 > ^ +1-> + >/*@internal*/ +2 > export +3 > import +4 > internalImport +5 > = +6 > internalNamespace +7 > . +8 > someClass +9 > ; +1->Emitted(42, 5) Source(23, 15) + SourceIndex(1) +2 >Emitted(42, 11) Source(23, 21) + SourceIndex(1) +3 >Emitted(42, 19) Source(23, 29) + SourceIndex(1) +4 >Emitted(42, 33) Source(23, 43) + SourceIndex(1) +5 >Emitted(42, 36) Source(23, 46) + SourceIndex(1) +6 >Emitted(42, 53) Source(23, 63) + SourceIndex(1) +7 >Emitted(42, 54) Source(23, 64) + SourceIndex(1) +8 >Emitted(42, 63) Source(23, 73) + SourceIndex(1) +9 >Emitted(42, 64) Source(23, 74) + SourceIndex(1) +--- +>>> export type internalType = internalC; +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^ +7 > ^ +1 > + >/*@internal*/ +2 > export +3 > type +4 > internalType +5 > = +6 > internalC +7 > ; +1 >Emitted(43, 5) Source(24, 15) + SourceIndex(1) +2 >Emitted(43, 11) Source(24, 21) + SourceIndex(1) +3 >Emitted(43, 17) Source(24, 27) + SourceIndex(1) +4 >Emitted(43, 29) Source(24, 39) + SourceIndex(1) +5 >Emitted(43, 32) Source(24, 42) + SourceIndex(1) +6 >Emitted(43, 41) Source(24, 51) + SourceIndex(1) +7 >Emitted(43, 42) Source(24, 52) + SourceIndex(1) +--- +>>> export const internalConst = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1 > + >/*@internal*/ +2 > export +3 > +4 > const +5 > internalConst +6 > = 10 +7 > ; +1 >Emitted(44, 5) Source(25, 15) + SourceIndex(1) +2 >Emitted(44, 11) Source(25, 21) + SourceIndex(1) +3 >Emitted(44, 12) Source(25, 22) + SourceIndex(1) +4 >Emitted(44, 18) Source(25, 28) + SourceIndex(1) +5 >Emitted(44, 31) Source(25, 41) + SourceIndex(1) +6 >Emitted(44, 36) Source(25, 46) + SourceIndex(1) +7 >Emitted(44, 37) Source(25, 47) + SourceIndex(1) +--- +>>> export enum internalEnum { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^ +1 > + >/*@internal*/ +2 > export +3 > enum +4 > internalEnum +1 >Emitted(45, 5) Source(26, 15) + SourceIndex(1) +2 >Emitted(45, 11) Source(26, 21) + SourceIndex(1) +3 >Emitted(45, 17) Source(26, 27) + SourceIndex(1) +4 >Emitted(45, 29) Source(26, 39) + SourceIndex(1) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(46, 9) Source(26, 42) + SourceIndex(1) +2 >Emitted(46, 10) Source(26, 43) + SourceIndex(1) +3 >Emitted(46, 14) Source(26, 43) + SourceIndex(1) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(47, 9) Source(26, 45) + SourceIndex(1) +2 >Emitted(47, 10) Source(26, 46) + SourceIndex(1) +3 >Emitted(47, 14) Source(26, 46) + SourceIndex(1) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(48, 9) Source(26, 48) + SourceIndex(1) +2 >Emitted(48, 10) Source(26, 49) + SourceIndex(1) +3 >Emitted(48, 14) Source(26, 49) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(49, 6) Source(26, 51) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(52, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(52, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(52, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(52, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(52, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(52, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(52, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^-> +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(54, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(54, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(54, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(54, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(54, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(54, 32) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.js] +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,aAAa,CAAC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICAnB,QAAA,CAAC,GAAG,EAAE,CAAC;IACpB;QACI,aAAa,CAAC;QAAgB,CAAC;QAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;QACZ,sBAAI,sBAAC;YAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;YACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;WADA;QAExC,cAAC;IAAD,CAAC,AAND,IAMC;IANY,0BAAO;IAOpB,IAAiB,OAAO,CASvB;IATD,WAAiB,OAAO;QACpB,aAAa,CAAC;YAAA;YAAiB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAlB,IAAkB;QAAL,SAAC,IAAI,CAAA;QAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;QAAR,WAAG,MAAK,CAAA;QACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;QAApD,WAAiB,aAAa;YAAG;gBAAA;gBAAgB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAjB,IAAiB;YAAJ,eAAC,IAAG,CAAA;QAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;QAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;QAAlE,WAAiB,SAAS;YAAC,IAAA,SAAS,CAA8B;YAAvC,WAAA,SAAS;gBAAG;oBAAA;oBAAwB,CAAC;oBAAD,gBAAC;gBAAD,CAAC,AAAzB,IAAyB;gBAAZ,mBAAS,YAAG,CAAA;YAAC,CAAC,EAAvC,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAA8B;QAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;QAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;QAEzD,aAAa,CAAc,qBAAa,GAAG,EAAE,CAAC;QAC9C,aAAa,CAAC,IAAY,YAAwB;QAApC,WAAY,YAAY;YAAG,yCAAC,CAAA;YAAE,yCAAC,CAAA;YAAE,yCAAC,CAAA;QAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;IACtD,CAAC,EATgB,OAAO,GAAP,eAAO,KAAP,eAAO,QASvB;IACD,aAAa,CAAC;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,8BAAS;IACpC,aAAa,CAAC,SAAgB,WAAW,KAAI,CAAC;IAAhC,kCAAgC;IAC9C,aAAa,CAAC,IAAiB,iBAAiB,CAA8B;IAAhE,WAAiB,iBAAiB;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,2BAAS,YAAG,CAAA;IAAC,CAAC,EAA/C,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAA8B;IAC9E,aAAa,CAAC,IAAiB,aAAa,CAAwC;IAAtE,WAAiB,aAAa;QAAC,IAAA,SAAS,CAA8B;QAAvC,WAAA,SAAS;YAAG;gBAAA;gBAAwB,CAAC;gBAAD,gBAAC;YAAD,CAAC,AAAzB,IAAyB;YAAZ,mBAAS,YAAG,CAAA;QAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;IAAD,CAAC,EAArD,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAwC;IACpF,aAAa,CAAe,QAAA,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;IAEzE,aAAa,CAAc,QAAA,aAAa,GAAG,EAAE,CAAC;IAC9C,aAAa,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;;;;;ICzBrC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>/*@internal*/ var myGlob = 20; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >/*@internal*/ +3 > +4 > const +5 > myGlob +6 > = +7 > 20 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) +4 >Emitted(1, 19) Source(1, 21) + SourceIndex(0) +5 >Emitted(1, 25) Source(1, 27) + SourceIndex(0) +6 >Emitted(1, 28) Source(1, 30) + SourceIndex(0) +7 >Emitted(1, 30) Source(1, 32) + SourceIndex(0) +8 >Emitted(1, 31) Source(1, 33) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(5, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(5, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(5, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(5, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(5, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(5, 20) Source(1, 21) + SourceIndex(1) +--- +>>> var normalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +1->Emitted(6, 5) Source(2, 1) + SourceIndex(1) +--- +>>> /*@internal*/ function normalC() { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->export class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(7, 9) Source(3, 5) + SourceIndex(1) +2 >Emitted(7, 22) Source(3, 18) + SourceIndex(1) +3 >Emitted(7, 23) Source(3, 19) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(8, 9) Source(3, 35) + SourceIndex(1) +2 >Emitted(8, 10) Source(3, 36) + SourceIndex(1) +--- +>>> /*@internal*/ normalC.prototype.method = function () { }; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^ +7 > ^ +1-> + > /*@internal*/ prop: string; + > +2 > /*@internal*/ +3 > +4 > method +5 > +6 > method() { +7 > } +1->Emitted(9, 9) Source(5, 5) + SourceIndex(1) +2 >Emitted(9, 22) Source(5, 18) + SourceIndex(1) +3 >Emitted(9, 23) Source(5, 19) + SourceIndex(1) +4 >Emitted(9, 47) Source(5, 25) + SourceIndex(1) +5 >Emitted(9, 50) Source(5, 19) + SourceIndex(1) +6 >Emitted(9, 64) Source(5, 30) + SourceIndex(1) +7 >Emitted(9, 65) Source(5, 31) + SourceIndex(1) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(10, 9) Source(6, 19) + SourceIndex(1) +2 >Emitted(10, 31) Source(6, 23) + SourceIndex(1) +3 >Emitted(10, 53) Source(6, 24) + SourceIndex(1) +--- +>>> /*@internal*/ get: function () { return 10; }, +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^^^^^^^ +6 > ^^ +7 > ^ +8 > ^ +9 > ^ +1-> +2 > /*@internal*/ +3 > +4 > get c() { +5 > return +6 > 10 +7 > ; +8 > +9 > } +1->Emitted(11, 13) Source(6, 5) + SourceIndex(1) +2 >Emitted(11, 26) Source(6, 18) + SourceIndex(1) +3 >Emitted(11, 32) Source(6, 19) + SourceIndex(1) +4 >Emitted(11, 46) Source(6, 29) + SourceIndex(1) +5 >Emitted(11, 53) Source(6, 36) + SourceIndex(1) +6 >Emitted(11, 55) Source(6, 38) + SourceIndex(1) +7 >Emitted(11, 56) Source(6, 39) + SourceIndex(1) +8 >Emitted(11, 57) Source(6, 40) + SourceIndex(1) +9 >Emitted(11, 58) Source(6, 41) + SourceIndex(1) +--- +>>> /*@internal*/ set: function (val) { }, +1 >^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^ +6 > ^^^^ +7 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > set c( +5 > val: number +6 > ) { +7 > } +1 >Emitted(12, 13) Source(7, 5) + SourceIndex(1) +2 >Emitted(12, 26) Source(7, 18) + SourceIndex(1) +3 >Emitted(12, 32) Source(7, 19) + SourceIndex(1) +4 >Emitted(12, 42) Source(7, 25) + SourceIndex(1) +5 >Emitted(12, 45) Source(7, 36) + SourceIndex(1) +6 >Emitted(12, 49) Source(7, 40) + SourceIndex(1) +7 >Emitted(12, 50) Source(7, 41) + SourceIndex(1) +--- +>>> enumerable: true, +>>> configurable: true +>>> }); +1 >^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(15, 12) Source(6, 41) + SourceIndex(1) +--- +>>> return normalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(16, 9) Source(8, 1) + SourceIndex(1) +2 >Emitted(16, 23) Source(8, 2) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(17, 5) Source(8, 1) + SourceIndex(1) +2 >Emitted(17, 6) Source(8, 2) + SourceIndex(1) +3 >Emitted(17, 6) Source(2, 1) + SourceIndex(1) +4 >Emitted(17, 10) Source(8, 2) + SourceIndex(1) +--- +>>> exports.normalC = normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +2 > normalC +1->Emitted(18, 5) Source(2, 14) + SourceIndex(1) +2 >Emitted(18, 31) Source(2, 21) + SourceIndex(1) +--- +>>> var normalN; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} + > +2 > export namespace +3 > normalN +4 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(19, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(19, 9) Source(9, 18) + SourceIndex(1) +3 >Emitted(19, 16) Source(9, 25) + SourceIndex(1) +4 >Emitted(19, 17) Source(18, 2) + SourceIndex(1) +--- +>>> (function (normalN) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export namespace +3 > normalN +1->Emitted(20, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(20, 16) Source(9, 18) + SourceIndex(1) +3 >Emitted(20, 23) Source(9, 25) + SourceIndex(1) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(21, 9) Source(10, 5) + SourceIndex(1) +2 >Emitted(21, 22) Source(10, 18) + SourceIndex(1) +3 >Emitted(21, 23) Source(10, 19) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(22, 13) Source(10, 19) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(23, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(23, 14) Source(10, 37) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(24, 13) Source(10, 36) + SourceIndex(1) +2 >Emitted(24, 21) Source(10, 37) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(25, 9) Source(10, 36) + SourceIndex(1) +2 >Emitted(25, 10) Source(10, 37) + SourceIndex(1) +3 >Emitted(25, 10) Source(10, 19) + SourceIndex(1) +4 >Emitted(25, 14) Source(10, 37) + SourceIndex(1) +--- +>>> normalN.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(26, 9) Source(10, 32) + SourceIndex(1) +2 >Emitted(26, 18) Source(10, 33) + SourceIndex(1) +3 >Emitted(26, 22) Source(10, 37) + SourceIndex(1) +4 >Emitted(26, 23) Source(10, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function foo() { } +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(27, 9) Source(11, 5) + SourceIndex(1) +2 >Emitted(27, 22) Source(11, 18) + SourceIndex(1) +3 >Emitted(27, 23) Source(11, 19) + SourceIndex(1) +4 >Emitted(27, 32) Source(11, 35) + SourceIndex(1) +5 >Emitted(27, 35) Source(11, 38) + SourceIndex(1) +6 >Emitted(27, 40) Source(11, 42) + SourceIndex(1) +7 >Emitted(27, 41) Source(11, 43) + SourceIndex(1) +--- +>>> normalN.foo = foo; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(28, 9) Source(11, 35) + SourceIndex(1) +2 >Emitted(28, 20) Source(11, 38) + SourceIndex(1) +3 >Emitted(28, 26) Source(11, 43) + SourceIndex(1) +4 >Emitted(28, 27) Source(11, 43) + SourceIndex(1) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(29, 9) Source(12, 5) + SourceIndex(1) +2 >Emitted(29, 22) Source(12, 18) + SourceIndex(1) +3 >Emitted(29, 23) Source(12, 19) + SourceIndex(1) +4 >Emitted(29, 27) Source(12, 36) + SourceIndex(1) +5 >Emitted(29, 40) Source(12, 49) + SourceIndex(1) +6 >Emitted(29, 41) Source(12, 71) + SourceIndex(1) +--- +>>> (function (someNamespace) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(30, 9) Source(12, 19) + SourceIndex(1) +2 >Emitted(30, 20) Source(12, 36) + SourceIndex(1) +3 >Emitted(30, 33) Source(12, 49) + SourceIndex(1) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(31, 13) Source(12, 52) + SourceIndex(1) +--- +>>> function C() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(32, 17) Source(12, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(33, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(33, 18) Source(12, 69) + SourceIndex(1) +--- +>>> return C; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(34, 17) Source(12, 68) + SourceIndex(1) +2 >Emitted(34, 25) Source(12, 69) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(35, 13) Source(12, 68) + SourceIndex(1) +2 >Emitted(35, 14) Source(12, 69) + SourceIndex(1) +3 >Emitted(35, 14) Source(12, 52) + SourceIndex(1) +4 >Emitted(35, 18) Source(12, 69) + SourceIndex(1) +--- +>>> someNamespace.C = C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(36, 13) Source(12, 65) + SourceIndex(1) +2 >Emitted(36, 28) Source(12, 66) + SourceIndex(1) +3 >Emitted(36, 32) Source(12, 69) + SourceIndex(1) +4 >Emitted(36, 33) Source(12, 69) + SourceIndex(1) +--- +>>> })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > someNamespace +5 > +6 > someNamespace +7 > +8 > someNamespace +9 > { export class C {} } +1->Emitted(37, 9) Source(12, 70) + SourceIndex(1) +2 >Emitted(37, 10) Source(12, 71) + SourceIndex(1) +3 >Emitted(37, 12) Source(12, 36) + SourceIndex(1) +4 >Emitted(37, 25) Source(12, 49) + SourceIndex(1) +5 >Emitted(37, 28) Source(12, 36) + SourceIndex(1) +6 >Emitted(37, 49) Source(12, 49) + SourceIndex(1) +7 >Emitted(37, 54) Source(12, 36) + SourceIndex(1) +8 >Emitted(37, 75) Source(12, 49) + SourceIndex(1) +9 >Emitted(37, 83) Source(12, 71) + SourceIndex(1) +--- +>>> /*@internal*/ var someOther; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someOther +6 > .something { export class someClass {} } +1 >Emitted(38, 9) Source(13, 5) + SourceIndex(1) +2 >Emitted(38, 22) Source(13, 18) + SourceIndex(1) +3 >Emitted(38, 23) Source(13, 19) + SourceIndex(1) +4 >Emitted(38, 27) Source(13, 36) + SourceIndex(1) +5 >Emitted(38, 36) Source(13, 45) + SourceIndex(1) +6 >Emitted(38, 37) Source(13, 85) + SourceIndex(1) +--- +>>> (function (someOther) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(39, 9) Source(13, 19) + SourceIndex(1) +2 >Emitted(39, 20) Source(13, 36) + SourceIndex(1) +3 >Emitted(39, 29) Source(13, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(40, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(40, 17) Source(13, 46) + SourceIndex(1) +3 >Emitted(40, 26) Source(13, 55) + SourceIndex(1) +4 >Emitted(40, 27) Source(13, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(41, 13) Source(13, 46) + SourceIndex(1) +2 >Emitted(41, 24) Source(13, 46) + SourceIndex(1) +3 >Emitted(41, 33) Source(13, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(42, 17) Source(13, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(43, 21) Source(13, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(44, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(44, 22) Source(13, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(45, 21) Source(13, 82) + SourceIndex(1) +2 >Emitted(45, 37) Source(13, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(46, 17) Source(13, 82) + SourceIndex(1) +2 >Emitted(46, 18) Source(13, 83) + SourceIndex(1) +3 >Emitted(46, 18) Source(13, 58) + SourceIndex(1) +4 >Emitted(46, 22) Source(13, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(47, 17) Source(13, 71) + SourceIndex(1) +2 >Emitted(47, 36) Source(13, 80) + SourceIndex(1) +3 >Emitted(47, 48) Source(13, 83) + SourceIndex(1) +4 >Emitted(47, 49) Source(13, 83) + SourceIndex(1) +--- +>>> })(something = someOther.something || (someOther.something = {})); +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(48, 13) Source(13, 84) + SourceIndex(1) +2 >Emitted(48, 14) Source(13, 85) + SourceIndex(1) +3 >Emitted(48, 16) Source(13, 46) + SourceIndex(1) +4 >Emitted(48, 25) Source(13, 55) + SourceIndex(1) +5 >Emitted(48, 28) Source(13, 46) + SourceIndex(1) +6 >Emitted(48, 47) Source(13, 55) + SourceIndex(1) +7 >Emitted(48, 52) Source(13, 46) + SourceIndex(1) +8 >Emitted(48, 71) Source(13, 55) + SourceIndex(1) +9 >Emitted(48, 79) Source(13, 85) + SourceIndex(1) +--- +>>> })(someOther = normalN.someOther || (normalN.someOther = {})); +1 >^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > someOther +5 > +6 > someOther +7 > +8 > someOther +9 > .something { export class someClass {} } +1 >Emitted(49, 9) Source(13, 84) + SourceIndex(1) +2 >Emitted(49, 10) Source(13, 85) + SourceIndex(1) +3 >Emitted(49, 12) Source(13, 36) + SourceIndex(1) +4 >Emitted(49, 21) Source(13, 45) + SourceIndex(1) +5 >Emitted(49, 24) Source(13, 36) + SourceIndex(1) +6 >Emitted(49, 41) Source(13, 45) + SourceIndex(1) +7 >Emitted(49, 46) Source(13, 36) + SourceIndex(1) +8 >Emitted(49, 63) Source(13, 45) + SourceIndex(1) +9 >Emitted(49, 71) Source(13, 85) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.someImport = someNamespace.C; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^ +7 > ^ +8 > ^ +9 > ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > someImport +5 > = +6 > someNamespace +7 > . +8 > C +9 > ; +1 >Emitted(50, 9) Source(14, 5) + SourceIndex(1) +2 >Emitted(50, 22) Source(14, 18) + SourceIndex(1) +3 >Emitted(50, 23) Source(14, 33) + SourceIndex(1) +4 >Emitted(50, 41) Source(14, 43) + SourceIndex(1) +5 >Emitted(50, 44) Source(14, 46) + SourceIndex(1) +6 >Emitted(50, 57) Source(14, 59) + SourceIndex(1) +7 >Emitted(50, 58) Source(14, 60) + SourceIndex(1) +8 >Emitted(50, 59) Source(14, 61) + SourceIndex(1) +9 >Emitted(50, 60) Source(14, 62) + SourceIndex(1) +--- +>>> /*@internal*/ normalN.internalConst = 10; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > internalConst +5 > = +6 > 10 +7 > ; +1 >Emitted(51, 9) Source(16, 5) + SourceIndex(1) +2 >Emitted(51, 22) Source(16, 18) + SourceIndex(1) +3 >Emitted(51, 23) Source(16, 32) + SourceIndex(1) +4 >Emitted(51, 44) Source(16, 45) + SourceIndex(1) +5 >Emitted(51, 47) Source(16, 48) + SourceIndex(1) +6 >Emitted(51, 49) Source(16, 50) + SourceIndex(1) +7 >Emitted(51, 50) Source(16, 51) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(52, 9) Source(17, 5) + SourceIndex(1) +2 >Emitted(52, 22) Source(17, 18) + SourceIndex(1) +3 >Emitted(52, 23) Source(17, 19) + SourceIndex(1) +4 >Emitted(52, 27) Source(17, 31) + SourceIndex(1) +5 >Emitted(52, 39) Source(17, 55) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(53, 9) Source(17, 19) + SourceIndex(1) +2 >Emitted(53, 20) Source(17, 31) + SourceIndex(1) +3 >Emitted(53, 32) Source(17, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(54, 13) Source(17, 46) + SourceIndex(1) +2 >Emitted(54, 54) Source(17, 47) + SourceIndex(1) +3 >Emitted(54, 55) Source(17, 47) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(55, 13) Source(17, 49) + SourceIndex(1) +2 >Emitted(55, 54) Source(17, 50) + SourceIndex(1) +3 >Emitted(55, 55) Source(17, 50) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(56, 13) Source(17, 52) + SourceIndex(1) +2 >Emitted(56, 54) Source(17, 53) + SourceIndex(1) +3 >Emitted(56, 55) Source(17, 53) + SourceIndex(1) +--- +>>> })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(57, 9) Source(17, 54) + SourceIndex(1) +2 >Emitted(57, 10) Source(17, 55) + SourceIndex(1) +3 >Emitted(57, 12) Source(17, 31) + SourceIndex(1) +4 >Emitted(57, 24) Source(17, 43) + SourceIndex(1) +5 >Emitted(57, 27) Source(17, 31) + SourceIndex(1) +6 >Emitted(57, 47) Source(17, 43) + SourceIndex(1) +7 >Emitted(57, 52) Source(17, 31) + SourceIndex(1) +8 >Emitted(57, 72) Source(17, 43) + SourceIndex(1) +9 >Emitted(57, 80) Source(17, 55) + SourceIndex(1) +--- +>>> })(normalN = exports.normalN || (exports.normalN = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +10> ^^^-> +1 > + > +2 > } +3 > +4 > normalN +5 > +6 > normalN +7 > +8 > normalN +9 > { + > /*@internal*/ export class C { } + > /*@internal*/ export function foo() {} + > /*@internal*/ export namespace someNamespace { export class C {} } + > /*@internal*/ export namespace someOther.something { export class someClass {} } + > /*@internal*/ export import someImport = someNamespace.C; + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const internalConst = 10; + > /*@internal*/ export enum internalEnum { a, b, c } + > } +1 >Emitted(58, 5) Source(18, 1) + SourceIndex(1) +2 >Emitted(58, 6) Source(18, 2) + SourceIndex(1) +3 >Emitted(58, 8) Source(9, 18) + SourceIndex(1) +4 >Emitted(58, 15) Source(9, 25) + SourceIndex(1) +5 >Emitted(58, 18) Source(9, 18) + SourceIndex(1) +6 >Emitted(58, 33) Source(9, 25) + SourceIndex(1) +7 >Emitted(58, 38) Source(9, 18) + SourceIndex(1) +8 >Emitted(58, 53) Source(9, 25) + SourceIndex(1) +9 >Emitted(58, 61) Source(18, 2) + SourceIndex(1) +--- +>>> /*@internal*/ var internalC = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 > /*@internal*/ +3 > +1->Emitted(59, 5) Source(19, 1) + SourceIndex(1) +2 >Emitted(59, 18) Source(19, 14) + SourceIndex(1) +3 >Emitted(59, 19) Source(19, 15) + SourceIndex(1) +--- +>>> function internalC() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(60, 9) Source(19, 15) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class internalC { +2 > } +1->Emitted(61, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(61, 10) Source(19, 40) + SourceIndex(1) +--- +>>> return internalC; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(62, 9) Source(19, 39) + SourceIndex(1) +2 >Emitted(62, 25) Source(19, 40) + SourceIndex(1) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class internalC {} +1 >Emitted(63, 5) Source(19, 39) + SourceIndex(1) +2 >Emitted(63, 6) Source(19, 40) + SourceIndex(1) +3 >Emitted(63, 6) Source(19, 15) + SourceIndex(1) +4 >Emitted(63, 10) Source(19, 40) + SourceIndex(1) +--- +>>> exports.internalC = internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^-> +1-> +2 > internalC +1->Emitted(64, 5) Source(19, 28) + SourceIndex(1) +2 >Emitted(64, 35) Source(19, 37) + SourceIndex(1) +--- +>>> /*@internal*/ function internalfoo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> {} + > +2 > /*@internal*/ +3 > +4 > export function +5 > internalfoo +6 > () { +7 > } +1->Emitted(65, 5) Source(20, 1) + SourceIndex(1) +2 >Emitted(65, 18) Source(20, 14) + SourceIndex(1) +3 >Emitted(65, 19) Source(20, 15) + SourceIndex(1) +4 >Emitted(65, 28) Source(20, 31) + SourceIndex(1) +5 >Emitted(65, 39) Source(20, 42) + SourceIndex(1) +6 >Emitted(65, 44) Source(20, 46) + SourceIndex(1) +7 >Emitted(65, 45) Source(20, 47) + SourceIndex(1) +--- +>>> exports.internalfoo = internalfoo; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^-> +1 > +2 > export function internalfoo() {} +1 >Emitted(66, 5) Source(20, 15) + SourceIndex(1) +2 >Emitted(66, 39) Source(20, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalNamespace +6 > { export class someClass {} } +1->Emitted(67, 5) Source(21, 1) + SourceIndex(1) +2 >Emitted(67, 18) Source(21, 14) + SourceIndex(1) +3 >Emitted(67, 19) Source(21, 15) + SourceIndex(1) +4 >Emitted(67, 23) Source(21, 32) + SourceIndex(1) +5 >Emitted(67, 40) Source(21, 49) + SourceIndex(1) +6 >Emitted(67, 41) Source(21, 79) + SourceIndex(1) +--- +>>> (function (internalNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > internalNamespace +1 >Emitted(68, 5) Source(21, 15) + SourceIndex(1) +2 >Emitted(68, 16) Source(21, 32) + SourceIndex(1) +3 >Emitted(68, 33) Source(21, 49) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(69, 9) Source(21, 52) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(70, 13) Source(21, 52) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(71, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(71, 14) Source(21, 77) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(72, 13) Source(21, 76) + SourceIndex(1) +2 >Emitted(72, 29) Source(21, 77) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(73, 9) Source(21, 76) + SourceIndex(1) +2 >Emitted(73, 10) Source(21, 77) + SourceIndex(1) +3 >Emitted(73, 10) Source(21, 52) + SourceIndex(1) +4 >Emitted(73, 14) Source(21, 77) + SourceIndex(1) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(74, 9) Source(21, 65) + SourceIndex(1) +2 >Emitted(74, 36) Source(21, 74) + SourceIndex(1) +3 >Emitted(74, 48) Source(21, 77) + SourceIndex(1) +4 >Emitted(74, 49) Source(21, 77) + SourceIndex(1) +--- +>>> })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > +8 > internalNamespace +9 > { export class someClass {} } +1->Emitted(75, 5) Source(21, 78) + SourceIndex(1) +2 >Emitted(75, 6) Source(21, 79) + SourceIndex(1) +3 >Emitted(75, 8) Source(21, 32) + SourceIndex(1) +4 >Emitted(75, 25) Source(21, 49) + SourceIndex(1) +5 >Emitted(75, 28) Source(21, 32) + SourceIndex(1) +6 >Emitted(75, 53) Source(21, 49) + SourceIndex(1) +7 >Emitted(75, 58) Source(21, 32) + SourceIndex(1) +8 >Emitted(75, 83) Source(21, 49) + SourceIndex(1) +9 >Emitted(75, 91) Source(21, 79) + SourceIndex(1) +--- +>>> /*@internal*/ var internalOther; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(76, 5) Source(22, 1) + SourceIndex(1) +2 >Emitted(76, 18) Source(22, 14) + SourceIndex(1) +3 >Emitted(76, 19) Source(22, 15) + SourceIndex(1) +4 >Emitted(76, 23) Source(22, 32) + SourceIndex(1) +5 >Emitted(76, 36) Source(22, 45) + SourceIndex(1) +6 >Emitted(76, 37) Source(22, 85) + SourceIndex(1) +--- +>>> (function (internalOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 > export namespace +3 > internalOther +1 >Emitted(77, 5) Source(22, 15) + SourceIndex(1) +2 >Emitted(77, 16) Source(22, 32) + SourceIndex(1) +3 >Emitted(77, 29) Source(22, 45) + SourceIndex(1) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(78, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(78, 13) Source(22, 46) + SourceIndex(1) +3 >Emitted(78, 22) Source(22, 55) + SourceIndex(1) +4 >Emitted(78, 23) Source(22, 85) + SourceIndex(1) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(79, 9) Source(22, 46) + SourceIndex(1) +2 >Emitted(79, 20) Source(22, 46) + SourceIndex(1) +3 >Emitted(79, 29) Source(22, 55) + SourceIndex(1) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(80, 13) Source(22, 58) + SourceIndex(1) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(81, 17) Source(22, 58) + SourceIndex(1) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(82, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(82, 18) Source(22, 83) + SourceIndex(1) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(83, 17) Source(22, 82) + SourceIndex(1) +2 >Emitted(83, 33) Source(22, 83) + SourceIndex(1) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(84, 13) Source(22, 82) + SourceIndex(1) +2 >Emitted(84, 14) Source(22, 83) + SourceIndex(1) +3 >Emitted(84, 14) Source(22, 58) + SourceIndex(1) +4 >Emitted(84, 18) Source(22, 83) + SourceIndex(1) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(85, 13) Source(22, 71) + SourceIndex(1) +2 >Emitted(85, 32) Source(22, 80) + SourceIndex(1) +3 >Emitted(85, 44) Source(22, 83) + SourceIndex(1) +4 >Emitted(85, 45) Source(22, 83) + SourceIndex(1) +--- +>>> })(something = internalOther.something || (internalOther.something = {})); +1->^^^^^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > something +5 > +6 > something +7 > +8 > something +9 > { export class someClass {} } +1->Emitted(86, 9) Source(22, 84) + SourceIndex(1) +2 >Emitted(86, 10) Source(22, 85) + SourceIndex(1) +3 >Emitted(86, 12) Source(22, 46) + SourceIndex(1) +4 >Emitted(86, 21) Source(22, 55) + SourceIndex(1) +5 >Emitted(86, 24) Source(22, 46) + SourceIndex(1) +6 >Emitted(86, 47) Source(22, 55) + SourceIndex(1) +7 >Emitted(86, 52) Source(22, 46) + SourceIndex(1) +8 >Emitted(86, 75) Source(22, 55) + SourceIndex(1) +9 >Emitted(86, 83) Source(22, 85) + SourceIndex(1) +--- +>>> })(internalOther = exports.internalOther || (exports.internalOther = {})); +1 >^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1 > +2 > } +3 > +4 > internalOther +5 > +6 > internalOther +7 > +8 > internalOther +9 > .something { export class someClass {} } +1 >Emitted(87, 5) Source(22, 84) + SourceIndex(1) +2 >Emitted(87, 6) Source(22, 85) + SourceIndex(1) +3 >Emitted(87, 8) Source(22, 32) + SourceIndex(1) +4 >Emitted(87, 21) Source(22, 45) + SourceIndex(1) +5 >Emitted(87, 24) Source(22, 32) + SourceIndex(1) +6 >Emitted(87, 45) Source(22, 45) + SourceIndex(1) +7 >Emitted(87, 50) Source(22, 32) + SourceIndex(1) +8 >Emitted(87, 71) Source(22, 45) + SourceIndex(1) +9 >Emitted(87, 79) Source(22, 85) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalImport = internalNamespace.someClass; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1 > + > +2 > /*@internal*/ +3 > export import +4 > +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1 >Emitted(88, 5) Source(23, 1) + SourceIndex(1) +2 >Emitted(88, 18) Source(23, 14) + SourceIndex(1) +3 >Emitted(88, 19) Source(23, 29) + SourceIndex(1) +4 >Emitted(88, 27) Source(23, 29) + SourceIndex(1) +5 >Emitted(88, 41) Source(23, 43) + SourceIndex(1) +6 >Emitted(88, 44) Source(23, 46) + SourceIndex(1) +7 >Emitted(88, 61) Source(23, 63) + SourceIndex(1) +8 >Emitted(88, 62) Source(23, 64) + SourceIndex(1) +9 >Emitted(88, 71) Source(23, 73) + SourceIndex(1) +10>Emitted(88, 72) Source(23, 74) + SourceIndex(1) +--- +>>> /*@internal*/ exports.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ export type internalType = internalC; + > +2 > /*@internal*/ +3 > export const +4 > +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(89, 5) Source(25, 1) + SourceIndex(1) +2 >Emitted(89, 18) Source(25, 14) + SourceIndex(1) +3 >Emitted(89, 19) Source(25, 28) + SourceIndex(1) +4 >Emitted(89, 27) Source(25, 28) + SourceIndex(1) +5 >Emitted(89, 40) Source(25, 41) + SourceIndex(1) +6 >Emitted(89, 43) Source(25, 44) + SourceIndex(1) +7 >Emitted(89, 45) Source(25, 46) + SourceIndex(1) +8 >Emitted(89, 46) Source(25, 47) + SourceIndex(1) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(90, 5) Source(26, 1) + SourceIndex(1) +2 >Emitted(90, 18) Source(26, 14) + SourceIndex(1) +3 >Emitted(90, 19) Source(26, 15) + SourceIndex(1) +4 >Emitted(90, 23) Source(26, 27) + SourceIndex(1) +5 >Emitted(90, 35) Source(26, 51) + SourceIndex(1) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(91, 5) Source(26, 15) + SourceIndex(1) +2 >Emitted(91, 16) Source(26, 27) + SourceIndex(1) +3 >Emitted(91, 28) Source(26, 39) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(92, 9) Source(26, 42) + SourceIndex(1) +2 >Emitted(92, 50) Source(26, 43) + SourceIndex(1) +3 >Emitted(92, 51) Source(26, 43) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(93, 9) Source(26, 45) + SourceIndex(1) +2 >Emitted(93, 50) Source(26, 46) + SourceIndex(1) +3 >Emitted(93, 51) Source(26, 46) + SourceIndex(1) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(94, 9) Source(26, 48) + SourceIndex(1) +2 >Emitted(94, 50) Source(26, 49) + SourceIndex(1) +3 >Emitted(94, 51) Source(26, 49) + SourceIndex(1) +--- +>>> })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^ +9 > ^^^^^^^^ +1-> +2 > } +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > +8 > internalEnum +9 > { a, b, c } +1->Emitted(95, 5) Source(26, 50) + SourceIndex(1) +2 >Emitted(95, 6) Source(26, 51) + SourceIndex(1) +3 >Emitted(95, 8) Source(26, 27) + SourceIndex(1) +4 >Emitted(95, 20) Source(26, 39) + SourceIndex(1) +5 >Emitted(95, 23) Source(26, 27) + SourceIndex(1) +6 >Emitted(95, 43) Source(26, 39) + SourceIndex(1) +7 >Emitted(95, 48) Source(26, 27) + SourceIndex(1) +8 >Emitted(95, 68) Source(26, 39) + SourceIndex(1) +9 >Emitted(95, 76) Source(26, 51) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(100, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(100, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(100, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(100, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(100, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(100, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(102, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(102, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(102, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(102, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(102, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/lib/", + "sourceFiles": [ + "/src/lib/file0.ts", + "/src/lib/file1.ts", + "/src/lib/file2.ts", + "/src/lib/global.ts" + ], + "js": { + "sections": [ + { + "pos": 103, + "end": 120, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 3993, + "end": 4010, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 0, + "end": 4129, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 26, + "kind": "internal" + }, + { + "pos": 28, + "end": 108, + "kind": "text" + }, + { + "pos": 108, + "end": 212, + "kind": "internal" + }, + { + "pos": 214, + "end": 253, + "kind": "text" + }, + { + "pos": 253, + "end": 721, + "kind": "internal" + }, + { + "pos": 723, + "end": 730, + "kind": "text" + }, + { + "pos": 730, + "end": 1219, + "kind": "internal" + }, + { + "pos": 1221, + "end": 1312, + "kind": "text" + } + ] + } + } +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +prologue: (103-120):: use strict + "use strict"; +---------------------------------------------------------------------- +prologue: (3993-4010):: use strict + "use strict"; +---------------------------------------------------------------------- +text: (0-4129) +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; + var normalC = /** @class */ (function () { + /*@internal*/ function normalC() { + } + /*@internal*/ normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + /*@internal*/ get: function () { return 10; }, + /*@internal*/ set: function (val) { }, + enumerable: true, + configurable: true + }); + return normalC; + }()); + exports.normalC = normalC; + var normalN; + (function (normalN) { + /*@internal*/ var C = /** @class */ (function () { + function C() { + } + return C; + }()); + normalN.C = C; + /*@internal*/ function foo() { } + normalN.foo = foo; + /*@internal*/ var someNamespace; + (function (someNamespace) { + var C = /** @class */ (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + /*@internal*/ var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + /*@internal*/ normalN.someImport = someNamespace.C; + /*@internal*/ normalN.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = normalN.internalEnum || (normalN.internalEnum = {})); + })(normalN = exports.normalN || (exports.normalN = {})); + /*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; + }()); + exports.internalC = internalC; + /*@internal*/ function internalfoo() { } + exports.internalfoo = internalfoo; + /*@internal*/ var internalNamespace; + (function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; + })(internalNamespace = exports.internalNamespace || (exports.internalNamespace = {})); + /*@internal*/ var internalOther; + (function (internalOther) { + var something; + (function (something) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); + })(internalOther = exports.internalOther || (exports.internalOther = {})); + /*@internal*/ exports.internalImport = internalNamespace.someClass; + /*@internal*/ exports.internalConst = 10; + /*@internal*/ var internalEnum; + (function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; + })(internalEnum = exports.internalEnum || (exports.internalEnum = {})); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +internal: (0-26) +declare const myGlob = 20; +---------------------------------------------------------------------- +text: (28-108) +declare module "file1" { + export const x = 10; + export class normalC { + +---------------------------------------------------------------------- +internal: (108-212) + constructor(); + prop: string; + method(): void; + /*@internal*/ c: number; +---------------------------------------------------------------------- +text: (214-253) + } + export namespace normalN { + +---------------------------------------------------------------------- +internal: (253-721) + class C { + } + function foo(): void; + namespace someNamespace { + class C { + } + } + namespace someOther.something { + class someClass { + } + } + export import someImport = someNamespace.C; + type internalType = internalC; + const internalConst = 10; + enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (723-730) + } + +---------------------------------------------------------------------- +internal: (730-1219) + export class internalC { + } + export function internalfoo(): void; + export namespace internalNamespace { + class someClass { + } + } + export namespace internalOther.something { + class someClass { + } + } + export import internalImport = internalNamespace.someClass; + export type internalType = internalC; + export const internalConst = 10; + export enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (1221-1312) +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/triple-slash-refs-in-all-projects.js new file mode 100644 index 00000000000..03a3151fa51 --- /dev/null +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/triple-slash-refs-in-all-projects.js @@ -0,0 +1,1095 @@ +//// [/src/app/file4.ts] +/// +const file4Const = new appfile4(); +const myVar = 30; + +//// [/src/app/module.d.ts] +/// +/// +declare const file0Const: libfile0; +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +declare module "file3" { + export const z = 30; +} +declare const file4Const: appfile4; +declare const myVar = 30; +//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACCpB,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,KAAK,KAAK,CAAC"} + +//// [/src/app/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>>/// +>>>/// +>>>declare const file0Const: libfile0; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 >/// + > +2 > +3 > const +4 > file0Const +5 > = new libfile0() +6 > ; +1 >Emitted(3, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 9) Source(2, 1) + SourceIndex(0) +3 >Emitted(3, 15) Source(2, 7) + SourceIndex(0) +4 >Emitted(3, 25) Source(2, 17) + SourceIndex(0) +5 >Emitted(3, 35) Source(2, 34) + SourceIndex(0) +6 >Emitted(3, 36) Source(2, 35) + SourceIndex(0) +--- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(4, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(3, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(3, 7) + SourceIndex(0) +4 >Emitted(4, 21) Source(3, 13) + SourceIndex(0) +5 >Emitted(4, 26) Source(3, 18) + SourceIndex(0) +6 >Emitted(4, 27) Source(3, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(6, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(6, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(6, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(6, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(6, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(6, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(6, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(9, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(9, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(9, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(9, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(9, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(9, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(11, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(11, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(11, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(11, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(11, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(11, 32) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file3.ts +------------------------------------------------------------------- +>>>declare module "file3" { +>>> export const z = 30; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > z +6 > = 30 +7 > ; +1 >Emitted(13, 5) Source(1, 1) + SourceIndex(4) +2 >Emitted(13, 11) Source(1, 7) + SourceIndex(4) +3 >Emitted(13, 12) Source(1, 8) + SourceIndex(4) +4 >Emitted(13, 18) Source(1, 14) + SourceIndex(4) +5 >Emitted(13, 19) Source(1, 15) + SourceIndex(4) +6 >Emitted(13, 24) Source(1, 20) + SourceIndex(4) +7 >Emitted(13, 25) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.d.ts +sourceFile:file4.ts +------------------------------------------------------------------- +>>>} +>>>declare const file4Const: appfile4; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 >/// + > +2 > +3 > const +4 > file4Const +5 > = new appfile4() +6 > ; +1 >Emitted(15, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(15, 9) Source(2, 1) + SourceIndex(5) +3 >Emitted(15, 15) Source(2, 7) + SourceIndex(5) +4 >Emitted(15, 25) Source(2, 17) + SourceIndex(5) +5 >Emitted(15, 35) Source(2, 34) + SourceIndex(5) +6 >Emitted(15, 36) Source(2, 35) + SourceIndex(5) +--- +>>>declare const myVar = 30; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^^^-> +1 > + > +2 > +3 > const +4 > myVar +5 > = 30 +6 > ; +1 >Emitted(16, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(16, 9) Source(3, 1) + SourceIndex(5) +3 >Emitted(16, 15) Source(3, 7) + SourceIndex(5) +4 >Emitted(16, 20) Source(3, 12) + SourceIndex(5) +5 >Emitted(16, 25) Source(3, 17) + SourceIndex(5) +6 >Emitted(16, 26) Source(3, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/app/module.js] + "use strict"; +/// +var file0Const = new libfile0(); +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +/// +var file4Const = new appfile4(); +var myVar = 30; +//# sourceMappingURL=module.js.map + +//// [/src/app/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,KAAK,GAAG,EAAE,CAAC"} + +//// [/src/app/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3.ts,file4.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file0.ts +------------------------------------------------------------------- +>>> "use strict"; +>>>/// +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >/// +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 40) Source(1, 40) + SourceIndex(0) +--- +>>>var file0Const = new libfile0(); +1 > +2 >^^^^ +3 > ^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^ +7 > ^^ +8 > ^ +1 > + > +2 >const +3 > file0Const +4 > = +5 > new +6 > libfile0 +7 > () +8 > ; +1 >Emitted(3, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(3, 15) Source(2, 17) + SourceIndex(0) +4 >Emitted(3, 18) Source(2, 20) + SourceIndex(0) +5 >Emitted(3, 22) Source(2, 24) + SourceIndex(0) +6 >Emitted(3, 30) Source(2, 32) + SourceIndex(0) +7 >Emitted(3, 32) Source(2, 34) + SourceIndex(0) +8 >Emitted(3, 33) Source(2, 35) + SourceIndex(0) +--- +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(4, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(4, 11) Source(3, 13) + SourceIndex(0) +4 >Emitted(4, 14) Source(3, 16) + SourceIndex(0) +5 >Emitted(4, 16) Source(3, 18) + SourceIndex(0) +6 >Emitted(4, 17) Source(3, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(8, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(8, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(8, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(8, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(8, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(8, 20) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(13, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(13, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(13, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(13, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(13, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(13, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(15, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(15, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(15, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(15, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(15, 22) Source(1, 24) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file3.ts +------------------------------------------------------------------- +>>>define("file3", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(19, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(19, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(19, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(19, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(19, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(19, 20) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>/// +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >/// +1 >Emitted(21, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(21, 40) Source(1, 40) + SourceIndex(5) +--- +>>>var file4Const = new appfile4(); +1 > +2 >^^^^ +3 > ^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^ +7 > ^^ +8 > ^ +1 > + > +2 >const +3 > file4Const +4 > = +5 > new +6 > appfile4 +7 > () +8 > ; +1 >Emitted(22, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(22, 5) Source(2, 7) + SourceIndex(5) +3 >Emitted(22, 15) Source(2, 17) + SourceIndex(5) +4 >Emitted(22, 18) Source(2, 20) + SourceIndex(5) +5 >Emitted(22, 22) Source(2, 24) + SourceIndex(5) +6 >Emitted(22, 30) Source(2, 32) + SourceIndex(5) +7 >Emitted(22, 32) Source(2, 34) + SourceIndex(5) +8 >Emitted(22, 33) Source(2, 35) + SourceIndex(5) +--- +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(23, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(23, 5) Source(3, 7) + SourceIndex(5) +3 >Emitted(23, 10) Source(3, 12) + SourceIndex(5) +4 >Emitted(23, 13) Source(3, 15) + SourceIndex(5) +5 >Emitted(23, 15) Source(3, 17) + SourceIndex(5) +6 >Emitted(23, 16) Source(3, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/app/", + "sourceFiles": [ + "/src/app/file3.ts", + "/src/app/file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 17, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 19, + "end": 503, + "kind": "prepend", + "data": "/src/lib/module.js", + "texts": [ + { + "pos": 19, + "end": 503, + "kind": "text" + } + ] + }, + { + "pos": 574, + "end": 591, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 503, + "end": 779, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "reference", + "data": "tripleRef.d.ts" + }, + { + "pos": 41, + "end": 87, + "kind": "reference", + "data": "../lib/tripleRef.d.ts" + }, + { + "pos": 89, + "end": 297, + "kind": "prepend", + "data": "/src/lib/module.d.ts", + "texts": [ + { + "pos": 89, + "end": 297, + "kind": "text" + } + ] + }, + { + "pos": 297, + "end": 416, + "kind": "text" + } + ] + } + } +} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prologue: (0-17):: use strict + "use strict"; +---------------------------------------------------------------------- +prepend: (19-503):: /src/lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (19-503) +/// +var file0Const = new libfile0(); +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +prologue: (574-591):: use strict + "use strict"; +---------------------------------------------------------------------- +text: (503-779) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = 30; +}); +/// +var file4Const = new appfile4(); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +reference: (0-39):: tripleRef.d.ts +/// +---------------------------------------------------------------------- +reference: (41-87):: ../lib/tripleRef.d.ts +/// +---------------------------------------------------------------------- +prepend: (89-297):: /src/lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (89-297) +declare const file0Const: libfile0; +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (297-416) +declare module "file3" { + export const z = 30; +} +declare const file4Const: appfile4; +declare const myVar = 30; + +====================================================================== + +//// [/src/app/tripleRef.d.ts] +declare class appfile4 { } + +//// [/src/lib/file0.ts] +/// +const file0Const = new libfile0(); +const myGlob = 20; + +//// [/src/lib/module.d.ts] +/// +declare const file0Const: libfile0; +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; +//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.d.ts.map] +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";AACA,QAAA,MAAM,UAAU,UAAiB,CAAC;AAClC,QAAA,MAAM,MAAM,KAAK,CAAC;;ICFlB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} + +//// [/src/lib/module.d.ts.map.baseline.txt] +=================================================================== +JsFile: module.d.ts +mapUrl: module.d.ts.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file0.ts +------------------------------------------------------------------- +>>>/// +>>>declare const file0Const: libfile0; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 >/// + > +2 > +3 > const +4 > file0Const +5 > = new libfile0() +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 1) + SourceIndex(0) +3 >Emitted(2, 15) Source(2, 7) + SourceIndex(0) +4 >Emitted(2, 25) Source(2, 17) + SourceIndex(0) +5 >Emitted(2, 35) Source(2, 34) + SourceIndex(0) +6 >Emitted(2, 36) Source(2, 35) + SourceIndex(0) +--- +>>>declare const myGlob = 20; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^ +5 > ^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > myGlob +5 > = 20 +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 9) Source(3, 1) + SourceIndex(0) +3 >Emitted(3, 15) Source(3, 7) + SourceIndex(0) +4 >Emitted(3, 21) Source(3, 13) + SourceIndex(0) +5 >Emitted(3, 26) Source(3, 18) + SourceIndex(0) +6 >Emitted(3, 27) Source(3, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file1.ts +------------------------------------------------------------------- +>>>declare module "file1" { +>>> export const x = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > x +6 > = 10 +7 > ; +1 >Emitted(5, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(5, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(5, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(5, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(5, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(5, 25) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:file2.ts +------------------------------------------------------------------- +>>>} +>>>declare module "file2" { +>>> export const y = 20; +1 >^^^^ +2 > ^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^ +6 > ^^^^^ +7 > ^ +1 > +2 > export +3 > +4 > const +5 > y +6 > = 20 +7 > ; +1 >Emitted(8, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(8, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(8, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(8, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(8, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(8, 25) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.d.ts +sourceFile:global.ts +------------------------------------------------------------------- +>>>} +>>>declare const globalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +7 > ^^^^-> +1 > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(10, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(10, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(10, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(10, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(10, 32) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.js] +/// +var file0Const = new libfile0(); +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,IAAM,UAAU,GAAG,IAAI,QAAQ,EAAE,CAAC;AAClC,IAAM,MAAM,GAAG,EAAE,CAAC;;;;ICFL,QAAA,CAAC,GAAG,EAAE,CAAC;;;;;ICAP,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,file1.ts,file2.ts,global.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>/// +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >/// +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 40) Source(1, 40) + SourceIndex(0) +--- +>>>var file0Const = new libfile0(); +1 > +2 >^^^^ +3 > ^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^ +7 > ^^ +8 > ^ +1 > + > +2 >const +3 > file0Const +4 > = +5 > new +6 > libfile0 +7 > () +8 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 15) Source(2, 17) + SourceIndex(0) +4 >Emitted(2, 18) Source(2, 20) + SourceIndex(0) +5 >Emitted(2, 22) Source(2, 24) + SourceIndex(0) +6 >Emitted(2, 30) Source(2, 32) + SourceIndex(0) +7 >Emitted(2, 32) Source(2, 34) + SourceIndex(0) +8 >Emitted(2, 33) Source(2, 35) + SourceIndex(0) +--- +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(3, 11) Source(3, 13) + SourceIndex(0) +4 >Emitted(3, 14) Source(3, 16) + SourceIndex(0) +5 >Emitted(3, 16) Source(3, 18) + SourceIndex(0) +6 >Emitted(3, 17) Source(3, 19) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(7, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(7, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(7, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(7, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(7, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(7, 20) Source(1, 21) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(12, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(12, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(12, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(12, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(12, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(12, 20) Source(1, 21) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(14, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(14, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(14, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/lib/", + "sourceFiles": [ + "/src/lib/file0.ts", + "/src/lib/file1.ts", + "/src/lib/file2.ts", + "/src/lib/global.ts" + ], + "js": { + "sections": [ + { + "pos": 164, + "end": 181, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 348, + "end": 365, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 0, + "end": 484, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "reference", + "data": "tripleRef.d.ts" + }, + { + "pos": 41, + "end": 249, + "kind": "text" + } + ] + } + } +} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +prologue: (164-181):: use strict + "use strict"; +---------------------------------------------------------------------- +prologue: (348-365):: use strict + "use strict"; +---------------------------------------------------------------------- +text: (0-484) +/// +var file0Const = new libfile0(); +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = 10; +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +reference: (0-39):: tripleRef.d.ts +/// +---------------------------------------------------------------------- +text: (41-249) +declare const file0Const: libfile0; +declare const myGlob = 20; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + +//// [/src/lib/tripleRef.d.ts] +declare class libfile0 { } + diff --git a/tests/projects/amdModulesWithOut/app/file3.ts b/tests/projects/amdModulesWithOut/app/file3.ts new file mode 100644 index 00000000000..d98a62894c8 --- /dev/null +++ b/tests/projects/amdModulesWithOut/app/file3.ts @@ -0,0 +1,2 @@ +export const z = 30; +import { x } from "file1"; \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/app/file4.ts b/tests/projects/amdModulesWithOut/app/file4.ts new file mode 100644 index 00000000000..3d2e7532a27 --- /dev/null +++ b/tests/projects/amdModulesWithOut/app/file4.ts @@ -0,0 +1 @@ +const myVar = 30; \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/app/tsconfig.json b/tests/projects/amdModulesWithOut/app/tsconfig.json new file mode 100644 index 00000000000..aef2d9fefab --- /dev/null +++ b/tests/projects/amdModulesWithOut/app/tsconfig.json @@ -0,0 +1,15 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "outFile": "module.js" + }, + "exclude": ["module.d.ts"] + "references": [ + { "path": "../lib", "prepend": true } + ] +} \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/lib/file0.ts b/tests/projects/amdModulesWithOut/lib/file0.ts new file mode 100644 index 00000000000..0b36e4bb48b --- /dev/null +++ b/tests/projects/amdModulesWithOut/lib/file0.ts @@ -0,0 +1 @@ +const myGlob = 20; \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/lib/file1.ts b/tests/projects/amdModulesWithOut/lib/file1.ts new file mode 100644 index 00000000000..a65e4235153 --- /dev/null +++ b/tests/projects/amdModulesWithOut/lib/file1.ts @@ -0,0 +1 @@ +export const x = 10; \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/lib/file2.ts b/tests/projects/amdModulesWithOut/lib/file2.ts new file mode 100644 index 00000000000..116e118d1ef --- /dev/null +++ b/tests/projects/amdModulesWithOut/lib/file2.ts @@ -0,0 +1 @@ +export const y = 20; \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/lib/global.ts b/tests/projects/amdModulesWithOut/lib/global.ts new file mode 100644 index 00000000000..8dcb253c94d --- /dev/null +++ b/tests/projects/amdModulesWithOut/lib/global.ts @@ -0,0 +1 @@ +const globalConst = 10; \ No newline at end of file diff --git a/tests/projects/amdModulesWithOut/lib/tsconfig.json b/tests/projects/amdModulesWithOut/lib/tsconfig.json new file mode 100644 index 00000000000..ae3ff0cf3a7 --- /dev/null +++ b/tests/projects/amdModulesWithOut/lib/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "amd", + "composite": true, + "sourceMap": true, + "declarationMap": true, + "strict": false, + "outFile": "module.js" + }, + "exclude": ["module.d.ts"] + +} \ No newline at end of file