From 531875d6029ba13bde3b846ed6b8d64ac32922f8 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Mon, 4 Apr 2022 15:05:55 -0700 Subject: [PATCH 1/2] Some refactoring of baselines --- .../unittests/tsbuild/amdModulesWithOut.ts | 2 +- .../unittests/tsbuild/configFileErrors.ts | 2 +- src/testRunner/unittests/tsbuild/outFile.ts | 7 +- src/testRunner/unittests/tsbuild/publicApi.ts | 2 +- src/testRunner/unittests/tsbuild/sample.ts | 33 +- .../modules-and-globals-mixed-in-amd.js | 612 - .../multiple-emitHelpers-in-all-projects.js | 1616 --- .../multiple-prologues-in-all-projects.js | 885 -- .../shebang-in-all-projects.js | 622 - .../stripInternal.js | 3805 ----- .../triple-slash-refs-in-all-projects.js | 762 - .../multiple-emitHelpers-in-all-projects.js | 1342 -- .../multiple-prologues-in-all-projects.js | 1156 -- .../stripInternal.js | 4709 ------ .../modules-and-globals-mixed-in-amd.js | 615 + .../multiple-emitHelpers-in-all-projects.js | 3020 ++++ .../multiple-prologues-in-all-projects.js | 2105 +++ .../initial-build/shebang-in-all-projects.js | 625 + .../initial-build/stripInternal.js | 8576 +++++++++++ .../triple-slash-refs-in-all-projects.js | 765 + .../builds-after-fixing-config-file-errors.js | 77 - ...ntax-errors-after-change-to-config-file.js | 28 - ...s-syntax-errors-after-change-to-ts-file.js | 19 - .../reports-syntax-errors-in-config-file.js | 155 + .../reports-syntax-errors-in-config-file.js | 16 - .../baseline-sectioned-sourcemaps.js | 1312 -- .../emitHelpers-in-all-projects.js | 1915 --- .../explainFiles.js | 1309 -- .../multiple-prologues-in-all-projects.js | 1512 -- .../shebang-in-all-projects.js | 1331 -- .../strict-in-all-projects.js | 1372 -- ...en-one-two-three-are-prepended-in-order.js | 5553 ------- .../stripInternal.js | 2708 ---- .../triple-slash-refs-in-all-projects.js | 1582 -- .../baseline-sectioned-sourcemaps.js | 974 -- .../emitHelpers-in-all-projects.js | 1498 -- ...tHelpers-in-only-one-dependency-project.js | 1141 -- .../explainFiles.js | 960 -- .../multiple-emitHelpers-in-all-projects.js | 2203 --- ...tiple-emitHelpers-in-different-projects.js | 1595 -- .../multiple-prologues-in-all-projects.js | 1168 -- ...ultiple-prologues-in-different-projects.js | 1066 -- .../shebang-in-all-projects.js | 985 -- .../shebang-in-only-one-dependency-project.js | 955 -- .../strict-in-all-projects.js | 1034 -- .../strict-in-one-dependency.js | 963 -- ...en-one-two-three-are-prepended-in-order.js | 4327 ------ .../stripInternal-jsdoc-style-comment.js | 2326 --- ...en-one-two-three-are-prepended-in-order.js | 4527 ------ ...-jsdoc-style-with-comments-emit-enabled.js | 2426 ---- ...en-one-two-three-are-prepended-in-order.js | 4349 ------ ...en-one-two-three-are-prepended-in-order.js | 4527 ------ ...tripInternal-with-comments-emit-enabled.js | 2426 ---- .../stripInternal.js | 2348 --- .../triple-slash-refs-in-all-projects.js | 1135 -- .../triple-slash-refs-in-one-project.js | 992 -- ...t-composite-but-uses-project-references.js | 792 - ...-source-files-are-empty-in-the-own-file.js | 878 -- .../emitHelpers-in-all-projects.js | 1662 --- ...tHelpers-in-only-one-dependency-project.js | 1735 --- .../multiple-emitHelpers-in-all-projects.js | 2578 ---- ...tiple-emitHelpers-in-different-projects.js | 1794 --- .../multiple-prologues-in-all-projects.js | 1546 -- ...ultiple-prologues-in-different-projects.js | 1444 -- .../strict-in-all-projects.js | 1407 -- .../strict-in-one-dependency.js | 1346 -- ...en-one-two-three-are-prepended-in-order.js | 2037 --- .../stripInternal-jsdoc-style-comment.js | 956 -- ...en-one-two-three-are-prepended-in-order.js | 2059 --- ...en-one-two-three-are-prepended-in-order.js | 2037 --- ...tripInternal-with-comments-emit-enabled.js | 956 -- .../stripInternal.js | 978 -- .../baseline-sectioned-sourcemaps.js | 2292 +++ .../emitHelpers-in-all-projects.js | 5142 +++++++ ...tHelpers-in-only-one-dependency-project.js | 2940 ++++ .../initial-build/explainFiles.js | 2275 +++ .../multiple-emitHelpers-in-all-projects.js | 4845 +++++++ ...tiple-emitHelpers-in-different-projects.js | 3453 +++++ .../multiple-prologues-in-all-projects.js | 4295 ++++++ ...ultiple-prologues-in-different-projects.js | 2576 ++++ .../initial-build/shebang-in-all-projects.js | 2322 +++ .../shebang-in-only-one-dependency-project.js | 958 ++ .../initial-build/strict-in-all-projects.js | 3882 +++++ .../initial-build/strict-in-one-dependency.js | 2375 +++ ...en-one-two-three-are-prepended-in-order.js | 6401 +++++++++ .../stripInternal-jsdoc-style-comment.js | 3318 +++++ ...en-one-two-three-are-prepended-in-order.js | 4530 ++++++ ...-jsdoc-style-with-comments-emit-enabled.js | 2429 ++++ ...en-one-two-three-are-prepended-in-order.js | 12001 ++++++++++++++++ ...en-one-two-three-are-prepended-in-order.js | 6601 +++++++++ ...tripInternal-with-comments-emit-enabled.js | 3418 +++++ .../initial-build/stripInternal.js | 6073 ++++++++ .../triple-slash-refs-in-all-projects.js | 2723 ++++ .../triple-slash-refs-in-one-project.js | 995 ++ ...t-composite-but-uses-project-references.js | 795 + ...-source-files-are-empty-in-the-own-file.js | 881 ++ .../build-with-custom-transformers.js | 0 ...-type-only-changes-in-upstream-projects.js | 101 - .../rebuilds-when-tsconfig-changes.js | 122 - .../Only-builds-the-leaf-node-project.js | 70 - ...it-would-skip-builds-during-a-dry-build.js | 14 - .../can-detect-when-and-what-to-rebuild.js | 284 +- ...it-would-skip-builds-during-a-dry-build.js | 120 + ...uilds-from-start-if-force-option-is-set.js | 160 +- 104 files changed, 103963 insertions(+), 102708 deletions(-) delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js delete mode 100644 tests/baselines/reference/tsbuild/configFileErrors/incremental-declaration-changes/builds-after-fixing-config-file-errors.js delete mode 100644 tests/baselines/reference/tsbuild/configFileErrors/incremental-declaration-doesnt-change/reports-syntax-errors-after-change-to-config-file.js delete mode 100644 tests/baselines/reference/tsbuild/configFileErrors/incremental-declaration-doesnt-change/reports-syntax-errors-after-change-to-ts-file.js delete mode 100644 tests/baselines/reference/tsbuild/configFileErrors/no-change-run/reports-syntax-errors-in-config-file.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/explainFiles.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/explainFiles.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js delete mode 100644 tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js rename tests/baselines/reference/tsbuild/{$publicAPI/initial-build => publicAPI}/build-with-custom-transformers.js (100%) delete mode 100644 tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/Detects-type-only-changes-in-upstream-projects.js delete mode 100644 tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/rebuilds-when-tsconfig-changes.js delete mode 100644 tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/Only-builds-the-leaf-node-project.js delete mode 100644 tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/indicates-that-it-would-skip-builds-during-a-dry-build.js create mode 100644 tests/baselines/reference/tsbuild/sample1/initial-build/indicates-that-it-would-skip-builds-during-a-dry-build.js rename tests/baselines/reference/tsbuild/sample1/{incremental-declaration-changes => initial-build}/rebuilds-from-start-if-force-option-is-set.js (75%) diff --git a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts index 428a433de44d9..16252917a8b12 100644 --- a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts +++ b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts @@ -19,7 +19,7 @@ namespace ts { modifyFs, modifyAgainFs }: VerifyOutFileScenarioInput) { - verifyTscIncrementalEdits({ + verifyTscSerializedIncrementalEdits({ scenario: "amdModulesWithOut", subScenario, fs: () => outFileFs, diff --git a/src/testRunner/unittests/tsbuild/configFileErrors.ts b/src/testRunner/unittests/tsbuild/configFileErrors.ts index 5d2229588709b..b4defb331be00 100644 --- a/src/testRunner/unittests/tsbuild/configFileErrors.ts +++ b/src/testRunner/unittests/tsbuild/configFileErrors.ts @@ -9,7 +9,7 @@ namespace ts { }); describe("unittests:: tsbuild:: configFileErrors:: reports syntax errors in config file", () => { - verifyTscIncrementalEdits({ + verifyTscSerializedIncrementalEdits({ scenario: "configFileErrors", subScenario: "reports syntax errors in config file", fs: () => loadProjectFromFiles({ diff --git a/src/testRunner/unittests/tsbuild/outFile.ts b/src/testRunner/unittests/tsbuild/outFile.ts index b593f5aa40adb..a8f0f66f12e40 100644 --- a/src/testRunner/unittests/tsbuild/outFile.ts +++ b/src/testRunner/unittests/tsbuild/outFile.ts @@ -1,11 +1,13 @@ namespace ts { describe("unittests:: tsbuild:: outFile::", () => { let outFileFs: vfs.FileSystem; + let outFileWithBuildFs: vfs.FileSystem; before(() => { outFileFs = loadProjectFromDisk("tests/projects/outfile-concat"); }); after(() => { outFileFs = undefined!; + outFileWithBuildFs = undefined!; }); function createSolutionBuilder(host: fakes.SolutionBuilderHost, baseOptions?: BuildOptions) { @@ -61,7 +63,7 @@ namespace ts { incrementalScenarios, }; return incrementalScenarios.length ? - verifyTscIncrementalEdits(input) : + verifyTscSerializedIncrementalEdits(input) : verifyTsc(input); } @@ -104,12 +106,13 @@ namespace ts { }); function getOutFileFsAfterBuild() { + if (outFileWithBuildFs) return outFileWithBuildFs; const fs = outFileFs.shadow(); const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host); builder.build(); fs.makeReadonly(); - return fs; + return outFileWithBuildFs = fs; } verifyTscSerializedIncrementalEdits({ diff --git a/src/testRunner/unittests/tsbuild/publicApi.ts b/src/testRunner/unittests/tsbuild/publicApi.ts index 4b9d5ae5b6060..b929e96022130 100644 --- a/src/testRunner/unittests/tsbuild/publicApi.ts +++ b/src/testRunner/unittests/tsbuild/publicApi.ts @@ -70,7 +70,7 @@ export function f22() { } // trailing`, const baseFsPatch = inputFs.diff(/*base*/ undefined, { baseIsNotShadowRoot: true }); const patch = fs.diff(inputFs, { includeChangedFileWithSameContent: true }); return { - file: `tsbuild/$publicAPI/${BuildKind.Initial}/${"build with custom transformers".split(" ").join("-")}.js`, + file: `tsbuild/publicAPI/build-with-custom-transformers.js`, text: `Input:: ${baseFsPatch ? vfs.formatPatch(baseFsPatch) : ""} diff --git a/src/testRunner/unittests/tsbuild/sample.ts b/src/testRunner/unittests/tsbuild/sample.ts index d53ebd81de4ea..2d379d76633f1 100644 --- a/src/testRunner/unittests/tsbuild/sample.ts +++ b/src/testRunner/unittests/tsbuild/sample.ts @@ -1,12 +1,14 @@ namespace ts { describe("unittests:: tsbuild:: on 'sample1' project", () => { let projFs: vfs.FileSystem; + let projFsWithBuild: vfs.FileSystem; before(() => { projFs = loadProjectFromDisk("tests/projects/sample1"); }); after(() => { projFs = undefined!; // Release the contents + projFsWithBuild = undefined!; }); function getTsBuildProjectFile(project: string, file: string): tscWatch.File { @@ -17,12 +19,13 @@ namespace ts { } function getSampleFsAfterBuild() { + if (projFsWithBuild) return projFsWithBuild; const fs = projFs.shadow(); const host = fakes.SolutionBuilderHost.create(fs); const builder = createSolutionBuilder(host, ["/src/tests"], {}); builder.build(); fs.makeReadonly(); - return fs; + return projFsWithBuild = fs; } describe("sanity check of clean build of 'sample1' project", () => { @@ -111,7 +114,7 @@ namespace ts { }); describe("can detect when and what to rebuild", () => { - verifyTscIncrementalEdits({ + verifyTscSerializedIncrementalEdits({ scenario: "sample1", subScenario: "can detect when and what to rebuild", fs: getSampleFsAfterBuild, @@ -129,18 +132,6 @@ namespace ts { buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => replaceText(fs, "/src/core/index.ts", "HELLO WORLD", "WELCOME PLANET"), }, - { - subScenario: "indicates that it would skip builds during a dry build", - buildKind: BuildKind.IncrementalDtsUnchanged, - modifyFs: noop, - commandLineArgs: ["--b", "/src/tests", "--dry"], - }, - { - subScenario: "rebuilds from start if force option is set", - buildKind: BuildKind.IncrementalDtsChange, - modifyFs: noop, - commandLineArgs: ["--b", "/src/tests", "--verbose", "--force"], - }, { subScenario: "rebuilds when tsconfig changes", buildKind: BuildKind.IncrementalDtsChange, @@ -149,6 +140,20 @@ namespace ts { ] }); + verifyTsc({ + scenario: "sample1", + subScenario: "indicates that it would skip builds during a dry build", + fs: getSampleFsAfterBuild, + commandLineArgs: ["--b", "/src/tests", "--dry"], + }); + + verifyTsc({ + scenario: "sample1", + subScenario: "rebuilds from start if force option is set", + fs: getSampleFsAfterBuild, + commandLineArgs: ["--b", "/src/tests", "--verbose", "--force"], + }); + verifyTscCompileLike(testTscCompileLike, { scenario: "sample1", subScenario: "rebuilds completely when version in tsbuildinfo doesnt match ts version", 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 deleted file mode 100644 index cb0aa4b1d9176..0000000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/modules-and-globals-mixed-in-amd.js +++ /dev/null @@ -1,612 +0,0 @@ -Input:: -//// [/src/lib/file1.ts] -export const x = 10;console.log(x); - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:04:00 AM] Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -[12:04:00 AM] Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' - -[12:04:00 AM] Building project '/src/lib/tsconfig.json'... - -[12:04:00 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed - -[12:04:00 AM] Updating output of project '/src/app/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/app/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/app/module.d.ts] file changed its modified time -//// [/src/app/module.d.ts.map] file changed its modified time -//// [/src/app/module.js] -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = void 0; - 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 -------------------------------------------------------------------- ->>>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/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = void 0; ->>> 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 = void 0; ->>> 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 = void 0; ->>> 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 -------------------------------------------------------------------- ->>>}); ->>>var myVar = 30; -1 > -2 >^^^^ -3 > ^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^-> -1 > -2 >const -3 > myVar -4 > = -5 > 30 -6 > ; -1 >Emitted(22, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(22, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(22, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(22, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(22, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(22, 16) Source(1, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":488,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":488,"kind":"text"}]},{"pos":488,"end":714,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":171,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":253,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -prepend: (0-488):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-488) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (488-714) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = void 0; - exports.z = 30; -}); -var myVar = 30; - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (0-171):: ../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/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 488, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 0, - "end": 488, - "kind": "text" - } - ] - }, - { - "pos": 488, - "end": 714, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 171, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 0, - "end": 171, - "kind": "text" - } - ] - }, - { - "pos": 171, - "end": 253, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 438 -} - -//// [/src/lib/module.d.ts] file written with same contents -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/src/lib/module.js] -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - 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 = void 0; ->>> 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/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> 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":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":488,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":171,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-488) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - 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/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 488, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 171, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 245 -} - 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 deleted file mode 100644 index 9fa2c58aa0da9..0000000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js +++ /dev/null @@ -1,1616 +0,0 @@ -Input:: -//// [/src/lib/file1.ts] -export const x = 10;function forlibfile1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -}console.log(x); - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:04:00 AM] Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -[12:04:00 AM] Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' - -[12:04:00 AM] Building project '/src/lib/tsconfig.json'... - -[12:04:00 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed - -[12:04:00 AM] Updating output of project '/src/app/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/app/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/app/module.d.ts] file changed its modified time -//// [/src/app/module.d.ts.map] file changed its modified time -//// [/src/app/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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - 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]; - } -} -var libfile0_ar = [20, 30]; -libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - 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 = void 0; - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = void 0; - 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]; - } -} -var appfile4_ar = [20, 30]; -appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false)); -//# 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,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,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,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,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,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE"} - -//// [/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 -------------------------------------------------------------------- ->>>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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { ->>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { ->>> if (ar || !(i in from)) { ->>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); ->>> ar[i] = from[i]; ->>> } ->>> } ->>> return to.concat(ar || Array.prototype.slice.call(from)); ->>>}; ->>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> 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(37, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(37, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(37, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(37, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(37, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(37, 17) Source(1, 19) + SourceIndex(0) ---- ->>>function libfile0Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > libfile0Spread -1->Emitted(38, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(38, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(38, 24) Source(2, 24) + SourceIndex(0) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(39, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(39, 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(40, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(40, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(40, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(40, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(40, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(40, 49) Source(2, 39) + SourceIndex(0) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(41, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(41, 31) Source(2, 39) + SourceIndex(0) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(43, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(43, 2) Source(2, 44) + SourceIndex(0) ---- ->>>var libfile0_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > libfile0_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(44, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(44, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(44, 16) Source(3, 18) + SourceIndex(0) -4 >Emitted(44, 19) Source(3, 21) + SourceIndex(0) -5 >Emitted(44, 20) Source(3, 22) + SourceIndex(0) -6 >Emitted(44, 22) Source(3, 24) + SourceIndex(0) -7 >Emitted(44, 24) Source(3, 26) + SourceIndex(0) -8 >Emitted(44, 26) Source(3, 28) + SourceIndex(0) -9 >Emitted(44, 27) Source(3, 29) + SourceIndex(0) -10>Emitted(44, 28) Source(3, 30) + SourceIndex(0) ---- ->>>libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >libfile0Spread -3 > ( -4 > 10 -5 > , ... -6 > libfile0_ar -7 > ); -1->Emitted(45, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(45, 15) Source(4, 15) + SourceIndex(0) -3 >Emitted(45, 45) Source(4, 16) + SourceIndex(0) -4 >Emitted(45, 47) Source(4, 18) + SourceIndex(0) -5 >Emitted(45, 57) Source(4, 23) + SourceIndex(0) -6 >Emitted(45, 68) Source(4, 34) + SourceIndex(0) -7 >Emitted(45, 79) Source(4, 36) + 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 = void 0; ->>> exports.x = 10; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^-> -1 >export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1 >Emitted(50, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(50, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(50, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(50, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(50, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(50, 20) Source(1, 21) + SourceIndex(1) ---- ->>> function forlibfile1Rest() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > function -3 > forlibfile1Rest -1->Emitted(51, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(51, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(51, 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 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(52, 9) Source(2, 1) + SourceIndex(1) -2 >Emitted(52, 13) Source(2, 7) + SourceIndex(1) -3 >Emitted(52, 18) Source(2, 24) + SourceIndex(1) -4 >Emitted(52, 20) Source(2, 26) + SourceIndex(1) -5 >Emitted(52, 21) Source(2, 27) + SourceIndex(1) -6 >Emitted(52, 23) Source(2, 29) + SourceIndex(1) -7 >Emitted(52, 25) Source(2, 31) + SourceIndex(1) -8 >Emitted(52, 27) Source(2, 33) + SourceIndex(1) -9 >Emitted(52, 28) Source(2, 34) + SourceIndex(1) -10>Emitted(52, 30) Source(2, 36) + SourceIndex(1) -11>Emitted(52, 32) Source(2, 38) + SourceIndex(1) -12>Emitted(52, 34) Source(2, 40) + SourceIndex(1) -13>Emitted(52, 36) Source(2, 42) + SourceIndex(1) -14>Emitted(52, 38) Source(2, 44) + SourceIndex(1) -15>Emitted(52, 40) Source(2, 46) + SourceIndex(1) -16>Emitted(52, 42) Source(2, 48) + SourceIndex(1) -17>Emitted(52, 44) Source(2, 9) + SourceIndex(1) -18>Emitted(52, 45) Source(2, 10) + SourceIndex(1) -19>Emitted(52, 52) Source(2, 10) + SourceIndex(1) -20>Emitted(52, 54) Source(2, 15) + SourceIndex(1) -21>Emitted(52, 58) Source(2, 19) + SourceIndex(1) -22>Emitted(52, 72) Source(2, 7) + SourceIndex(1) -23>Emitted(52, 77) Source(2, 21) + SourceIndex(1) -24>Emitted(52, 78) Source(2, 48) + SourceIndex(1) -25>Emitted(52, 79) Source(2, 49) + SourceIndex(1) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(53, 5) Source(3, 1) + SourceIndex(1) -2 >Emitted(53, 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(54, 5) Source(3, 2) + SourceIndex(1) -2 >Emitted(54, 12) Source(3, 9) + SourceIndex(1) -3 >Emitted(54, 13) Source(3, 10) + SourceIndex(1) -4 >Emitted(54, 16) Source(3, 13) + SourceIndex(1) -5 >Emitted(54, 17) Source(3, 14) + SourceIndex(1) -6 >Emitted(54, 26) Source(3, 15) + SourceIndex(1) -7 >Emitted(54, 27) Source(3, 16) + SourceIndex(1) -8 >Emitted(54, 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 = void 0; ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(60, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(60, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(60, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(60, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(60, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(60, 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(62, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(62, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(62, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(62, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(62, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(62, 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 = void 0; ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^-> -1->export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(67, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(67, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(67, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(67, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(67, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(67, 20) Source(1, 21) + SourceIndex(4) ---- ->>> function forappfile3Rest() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >import { x } from "file1"; -2 > function -3 > forappfile3Rest -1->Emitted(68, 5) Source(2, 27) + SourceIndex(4) -2 >Emitted(68, 14) Source(2, 36) + SourceIndex(4) -3 >Emitted(68, 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 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(69, 9) Source(3, 1) + SourceIndex(4) -2 >Emitted(69, 13) Source(3, 7) + SourceIndex(4) -3 >Emitted(69, 18) Source(3, 24) + SourceIndex(4) -4 >Emitted(69, 20) Source(3, 26) + SourceIndex(4) -5 >Emitted(69, 21) Source(3, 27) + SourceIndex(4) -6 >Emitted(69, 23) Source(3, 29) + SourceIndex(4) -7 >Emitted(69, 25) Source(3, 31) + SourceIndex(4) -8 >Emitted(69, 27) Source(3, 33) + SourceIndex(4) -9 >Emitted(69, 28) Source(3, 34) + SourceIndex(4) -10>Emitted(69, 30) Source(3, 36) + SourceIndex(4) -11>Emitted(69, 32) Source(3, 38) + SourceIndex(4) -12>Emitted(69, 34) Source(3, 40) + SourceIndex(4) -13>Emitted(69, 36) Source(3, 42) + SourceIndex(4) -14>Emitted(69, 38) Source(3, 44) + SourceIndex(4) -15>Emitted(69, 40) Source(3, 46) + SourceIndex(4) -16>Emitted(69, 42) Source(3, 48) + SourceIndex(4) -17>Emitted(69, 44) Source(3, 9) + SourceIndex(4) -18>Emitted(69, 45) Source(3, 10) + SourceIndex(4) -19>Emitted(69, 52) Source(3, 10) + SourceIndex(4) -20>Emitted(69, 54) Source(3, 15) + SourceIndex(4) -21>Emitted(69, 58) Source(3, 19) + SourceIndex(4) -22>Emitted(69, 72) Source(3, 7) + SourceIndex(4) -23>Emitted(69, 77) Source(3, 21) + SourceIndex(4) -24>Emitted(69, 78) Source(3, 48) + SourceIndex(4) -25>Emitted(69, 79) Source(3, 49) + SourceIndex(4) ---- ->>> } -1 >^^^^ -2 > ^ -1 > - > -2 > } -1 >Emitted(70, 5) Source(4, 1) + SourceIndex(4) -2 >Emitted(70, 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(72, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(72, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(72, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(72, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(72, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(72, 16) Source(1, 18) + SourceIndex(5) ---- ->>>function appfile4Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > appfile4Spread -1->Emitted(73, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(73, 10) Source(2, 10) + SourceIndex(5) -3 >Emitted(73, 24) Source(2, 24) + SourceIndex(5) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(74, 5) Source(2, 25) + SourceIndex(5) -2 >Emitted(74, 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(75, 10) Source(2, 25) + SourceIndex(5) -2 >Emitted(75, 20) Source(2, 39) + SourceIndex(5) -3 >Emitted(75, 22) Source(2, 25) + SourceIndex(5) -4 >Emitted(75, 43) Source(2, 39) + SourceIndex(5) -5 >Emitted(75, 45) Source(2, 25) + SourceIndex(5) -6 >Emitted(75, 49) Source(2, 39) + SourceIndex(5) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(76, 9) Source(2, 25) + SourceIndex(5) -2 >Emitted(76, 31) Source(2, 39) + SourceIndex(5) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(78, 1) Source(2, 43) + SourceIndex(5) -2 >Emitted(78, 2) Source(2, 44) + SourceIndex(5) ---- ->>>var appfile4_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > appfile4_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(79, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(79, 5) Source(3, 7) + SourceIndex(5) -3 >Emitted(79, 16) Source(3, 18) + SourceIndex(5) -4 >Emitted(79, 19) Source(3, 21) + SourceIndex(5) -5 >Emitted(79, 20) Source(3, 22) + SourceIndex(5) -6 >Emitted(79, 22) Source(3, 24) + SourceIndex(5) -7 >Emitted(79, 24) Source(3, 26) + SourceIndex(5) -8 >Emitted(79, 26) Source(3, 28) + SourceIndex(5) -9 >Emitted(79, 27) Source(3, 29) + SourceIndex(5) -10>Emitted(79, 28) Source(3, 30) + SourceIndex(5) ---- ->>>appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false)); -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >appfile4Spread -3 > ( -4 > 10 -5 > , ... -6 > appfile4_ar -7 > ); -1->Emitted(80, 1) Source(4, 1) + SourceIndex(5) -2 >Emitted(80, 15) Source(4, 15) + SourceIndex(5) -3 >Emitted(80, 45) Source(4, 16) + SourceIndex(5) -4 >Emitted(80, 47) Source(4, 18) + SourceIndex(5) -5 >Emitted(80, 57) Source(4, 23) + SourceIndex(5) -6 >Emitted(80, 68) Source(4, 34) + SourceIndex(5) -7 >Emitted(80, 79) Source(4, 36) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":2257,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1398,"end":2257,"kind":"text"}]},{"pos":2257,"end":2854,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":265,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":265,"kind":"text"}]},{"pos":265,"end":441,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/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-894):: typescript:spreadArray -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; ----------------------------------------------------------------------- -emitHelpers: (896-1396):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (1398-2257):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1398-2257) -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var libfile0_ar = [20, 30]; -libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - 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 = void 0; - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (2257-2854) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = void 0; - 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]; - } -} -var appfile4_ar = [20, 30]; -appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false)); - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (0-265):: ../lib/module.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-265) -declare const myGlob = 20; -declare function libfile0Spread(...b: number[]): void; -declare const libfile0_ar: number[]; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - ----------------------------------------------------------------------- -text: (265-441) -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; -declare function appfile4Spread(...b: number[]): void; -declare const appfile4_ar: number[]; - -====================================================================== - -//// [/src/app/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 894, - "kind": "emitHelpers", - "data": "typescript:spreadArray" - }, - { - "pos": 896, - "end": 1396, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 1398, - "end": 2257, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 1398, - "end": 2257, - "kind": "text" - } - ] - }, - { - "pos": 2257, - "end": 2854, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spreadArray" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 265, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 0, - "end": 265, - "kind": "text" - } - ] - }, - { - "pos": 265, - "end": 441, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 743 -} - -//// [/src/lib/module.d.ts] file written with same contents -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - 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]; - } -} -var libfile0_ar = [20, 30]; -libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - 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 = void 0; - 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,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { ->>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { ->>> if (ar || !(i in from)) { ->>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); ->>> ar[i] = from[i]; ->>> } ->>> } ->>> return to.concat(ar || Array.prototype.slice.call(from)); ->>>}; ->>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> 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(37, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(37, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(37, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(37, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(37, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(37, 17) Source(1, 19) + SourceIndex(0) ---- ->>>function libfile0Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > libfile0Spread -1->Emitted(38, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(38, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(38, 24) Source(2, 24) + SourceIndex(0) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(39, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(39, 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(40, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(40, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(40, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(40, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(40, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(40, 49) Source(2, 39) + SourceIndex(0) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(41, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(41, 31) Source(2, 39) + SourceIndex(0) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(43, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(43, 2) Source(2, 44) + SourceIndex(0) ---- ->>>var libfile0_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > libfile0_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(44, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(44, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(44, 16) Source(3, 18) + SourceIndex(0) -4 >Emitted(44, 19) Source(3, 21) + SourceIndex(0) -5 >Emitted(44, 20) Source(3, 22) + SourceIndex(0) -6 >Emitted(44, 22) Source(3, 24) + SourceIndex(0) -7 >Emitted(44, 24) Source(3, 26) + SourceIndex(0) -8 >Emitted(44, 26) Source(3, 28) + SourceIndex(0) -9 >Emitted(44, 27) Source(3, 29) + SourceIndex(0) -10>Emitted(44, 28) Source(3, 30) + SourceIndex(0) ---- ->>>libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >libfile0Spread -3 > ( -4 > 10 -5 > , ... -6 > libfile0_ar -7 > ); -1->Emitted(45, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(45, 15) Source(4, 15) + SourceIndex(0) -3 >Emitted(45, 45) Source(4, 16) + SourceIndex(0) -4 >Emitted(45, 47) Source(4, 18) + SourceIndex(0) -5 >Emitted(45, 57) Source(4, 23) + SourceIndex(0) -6 >Emitted(45, 68) Source(4, 34) + SourceIndex(0) -7 >Emitted(45, 79) Source(4, 36) + 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 = void 0; ->>> exports.x = 10; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^-> -1 >export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1 >Emitted(50, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(50, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(50, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(50, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(50, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(50, 20) Source(1, 21) + SourceIndex(1) ---- ->>> function forlibfile1Rest() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > function -3 > forlibfile1Rest -1->Emitted(51, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(51, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(51, 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 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(52, 9) Source(2, 1) + SourceIndex(1) -2 >Emitted(52, 13) Source(2, 7) + SourceIndex(1) -3 >Emitted(52, 18) Source(2, 24) + SourceIndex(1) -4 >Emitted(52, 20) Source(2, 26) + SourceIndex(1) -5 >Emitted(52, 21) Source(2, 27) + SourceIndex(1) -6 >Emitted(52, 23) Source(2, 29) + SourceIndex(1) -7 >Emitted(52, 25) Source(2, 31) + SourceIndex(1) -8 >Emitted(52, 27) Source(2, 33) + SourceIndex(1) -9 >Emitted(52, 28) Source(2, 34) + SourceIndex(1) -10>Emitted(52, 30) Source(2, 36) + SourceIndex(1) -11>Emitted(52, 32) Source(2, 38) + SourceIndex(1) -12>Emitted(52, 34) Source(2, 40) + SourceIndex(1) -13>Emitted(52, 36) Source(2, 42) + SourceIndex(1) -14>Emitted(52, 38) Source(2, 44) + SourceIndex(1) -15>Emitted(52, 40) Source(2, 46) + SourceIndex(1) -16>Emitted(52, 42) Source(2, 48) + SourceIndex(1) -17>Emitted(52, 44) Source(2, 9) + SourceIndex(1) -18>Emitted(52, 45) Source(2, 10) + SourceIndex(1) -19>Emitted(52, 52) Source(2, 10) + SourceIndex(1) -20>Emitted(52, 54) Source(2, 15) + SourceIndex(1) -21>Emitted(52, 58) Source(2, 19) + SourceIndex(1) -22>Emitted(52, 72) Source(2, 7) + SourceIndex(1) -23>Emitted(52, 77) Source(2, 21) + SourceIndex(1) -24>Emitted(52, 78) Source(2, 48) + SourceIndex(1) -25>Emitted(52, 79) Source(2, 49) + SourceIndex(1) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(53, 5) Source(3, 1) + SourceIndex(1) -2 >Emitted(53, 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(54, 5) Source(3, 2) + SourceIndex(1) -2 >Emitted(54, 12) Source(3, 9) + SourceIndex(1) -3 >Emitted(54, 13) Source(3, 10) + SourceIndex(1) -4 >Emitted(54, 16) Source(3, 13) + SourceIndex(1) -5 >Emitted(54, 17) Source(3, 14) + SourceIndex(1) -6 >Emitted(54, 26) Source(3, 15) + SourceIndex(1) -7 >Emitted(54, 27) Source(3, 16) + SourceIndex(1) -8 >Emitted(54, 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 = void 0; ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(60, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(60, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(60, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(60, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(60, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(60, 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(62, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(62, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(62, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(62, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(62, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(62, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":2257,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray","typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":265,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/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-894):: typescript:spreadArray -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; ----------------------------------------------------------------------- -emitHelpers: (896-1396):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (1398-2257) -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var libfile0_ar = [20, 30]; -libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - 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 = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-265) -declare const myGlob = 20; -declare function libfile0Spread(...b: number[]): void; -declare const libfile0_ar: number[]; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 894, - "kind": "emitHelpers", - "data": "typescript:spreadArray" - }, - { - "pos": 896, - "end": 1396, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 1398, - "end": 2257, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:read", - "typescript:spreadArray", - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 265, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 544 -} - 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 deleted file mode 100644 index a6e46ad3b26ef..0000000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js +++ /dev/null @@ -1,885 +0,0 @@ -Input:: -//// [/src/lib/file1.ts] -export const x = 10;console.log(x); - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:04:00 AM] Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -[12:04:00 AM] Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' - -[12:04:00 AM] Building project '/src/lib/tsconfig.json'... - -[12:04:00 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed - -[12:04:00 AM] Updating output of project '/src/app/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/app/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/app/module.d.ts] file changed its modified time -//// [/src/app/module.d.ts.map] file changed its modified time -//// [/src/app/module.js] -"use strict"; -"myPrologue"; -"myPrologue3"; -"myPrologue2"; -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - 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 = void 0; - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = void 0; - 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/global.ts","file4.ts","../lib/file1.ts","../lib/file2.ts","file3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,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/global.ts,file4.ts,../lib/file1.ts,../lib/file2.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/global.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> -2 >"myPrologue3" -3 > -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 14) + 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 = void 0; ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^-> -1->export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(10, 5) Source(1, 14) + SourceIndex(3) -2 >Emitted(10, 13) Source(1, 14) + SourceIndex(3) -3 >Emitted(10, 14) Source(1, 15) + SourceIndex(3) -4 >Emitted(10, 17) Source(1, 18) + SourceIndex(3) -5 >Emitted(10, 19) Source(1, 20) + SourceIndex(3) -6 >Emitted(10, 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(11, 5) Source(1, 21) + SourceIndex(3) -2 >Emitted(11, 12) Source(1, 28) + SourceIndex(3) -3 >Emitted(11, 13) Source(1, 29) + SourceIndex(3) -4 >Emitted(11, 16) Source(1, 32) + SourceIndex(3) -5 >Emitted(11, 17) Source(1, 33) + SourceIndex(3) -6 >Emitted(11, 26) Source(1, 34) + SourceIndex(3) -7 >Emitted(11, 27) Source(1, 35) + SourceIndex(3) -8 >Emitted(11, 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(15, 5) Source(1, 1) + SourceIndex(4) -2 >Emitted(15, 21) Source(1, 17) + SourceIndex(4) -3 >Emitted(15, 22) Source(1, 17) + SourceIndex(4) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> exports.y = 20; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1-> - >export const -2 > -3 > y -4 > = -5 > 20 -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:../lib/global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >"myPrologue3" - > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(20, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(20, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(20, 16) Source(2, 18) + SourceIndex(1) -4 >Emitted(20, 19) Source(2, 21) + SourceIndex(1) -5 >Emitted(20, 21) Source(2, 23) + SourceIndex(1) -6 >Emitted(20, 22) Source(2, 24) + SourceIndex(1) ---- -------------------------------------------------------------------- -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(23, 5) Source(1, 1) + SourceIndex(5) -2 >Emitted(23, 17) Source(1, 13) + SourceIndex(5) -3 >Emitted(23, 18) Source(1, 13) + SourceIndex(5) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.z = void 0; ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1-> - >export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(26, 5) Source(2, 14) + SourceIndex(5) -2 >Emitted(26, 13) Source(2, 14) + SourceIndex(5) -3 >Emitted(26, 14) Source(2, 15) + SourceIndex(5) -4 >Emitted(26, 17) Source(2, 18) + SourceIndex(5) -5 >Emitted(26, 19) Source(2, 20) + SourceIndex(5) -6 >Emitted(26, 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(28, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(28, 5) Source(2, 7) + SourceIndex(2) -3 >Emitted(28, 10) Source(2, 12) + SourceIndex(2) -4 >Emitted(28, 13) Source(2, 15) + SourceIndex(2) -5 >Emitted(28, 15) Source(2, 17) + SourceIndex(2) -6 >Emitted(28, 16) Source(2, 18) + SourceIndex(2) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue2"},{"pos":62,"end":573,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":62,"end":573,"kind":"text"}]},{"pos":573,"end":818,"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":"../lib/module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":253,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/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-44):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -prologue: (46-60):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -prepend: (62-573):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (62-573) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - 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 = void 0; - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (573-818) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = void 0; - exports.z = 30; -}); -var myVar = 30; - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (0-171):: ../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/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 44, - "kind": "prologue", - "data": "myPrologue3" - }, - { - "pos": 46, - "end": 60, - "kind": "prologue", - "data": "myPrologue2" - }, - { - "pos": 62, - "end": 573, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 62, - "end": 573, - "kind": "text" - } - ] - }, - { - "pos": 573, - "end": 818, - "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": "../lib/module.d.ts", - "texts": [ - { - "pos": 0, - "end": 171, - "kind": "text" - } - ] - }, - { - "pos": 171, - "end": 253, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 896 -} - -//// [/src/lib/module.d.ts] file written with same contents -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/src/lib/module.js] -"use strict"; -"myPrologue"; -"myPrologue3"; -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - 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 = void 0; - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","global.ts","file1.ts","file2.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IEDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,global.ts,file1.ts,file2.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) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^-> -1-> -2 >"myPrologue3" -3 > -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 14) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>var myGlob = 20; -1-> -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue" - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(4, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(4, 11) Source(2, 13) + SourceIndex(0) -4 >Emitted(4, 14) Source(2, 16) + SourceIndex(0) -5 >Emitted(4, 16) Source(2, 18) + SourceIndex(0) -6 >Emitted(4, 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 = void 0; ->>> 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(2) -2 >Emitted(9, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(9, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(9, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(9, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(9, 20) Source(1, 21) + SourceIndex(2) ---- ->>> 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(2) -2 >Emitted(10, 12) Source(1, 28) + SourceIndex(2) -3 >Emitted(10, 13) Source(1, 29) + SourceIndex(2) -4 >Emitted(10, 16) Source(1, 32) + SourceIndex(2) -5 >Emitted(10, 17) Source(1, 33) + SourceIndex(2) -6 >Emitted(10, 26) Source(1, 34) + SourceIndex(2) -7 >Emitted(10, 27) Source(1, 35) + SourceIndex(2) -8 >Emitted(10, 28) Source(1, 36) + SourceIndex(2) ---- -------------------------------------------------------------------- -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(14, 5) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 21) Source(1, 17) + SourceIndex(3) -3 >Emitted(14, 22) Source(1, 17) + SourceIndex(3) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> 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(3) -2 >Emitted(17, 13) Source(2, 14) + SourceIndex(3) -3 >Emitted(17, 14) Source(2, 15) + SourceIndex(3) -4 >Emitted(17, 17) Source(2, 18) + SourceIndex(3) -5 >Emitted(17, 19) Source(2, 20) + SourceIndex(3) -6 >Emitted(17, 20) Source(2, 21) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 >"myPrologue3" - > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(19, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(19, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(19, 16) Source(2, 18) + SourceIndex(1) -4 >Emitted(19, 19) Source(2, 21) + SourceIndex(1) -5 >Emitted(19, 21) Source(2, 23) + SourceIndex(1) -6 >Emitted(19, 22) Source(2, 24) + SourceIndex(1) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":557,"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"}}]},{"file":3,"text":"\"myPrologue3\"","directives":[{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue3"}}]}]}},"dts":{"sections":[{"pos":0,"end":171,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (30-44):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -text: (46-557) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - 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 = void 0; - 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/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 44, - "kind": "prologue", - "data": "myPrologue3" - }, - { - "pos": 46, - "end": 557, - "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" - } - } - ] - }, - { - "file": 3, - "text": "\"myPrologue3\"", - "directives": [ - { - "pos": 0, - "end": 13, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue3" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 171, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 763 -} - 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 deleted file mode 100644 index 3ee131ba99ba1..0000000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/shebang-in-all-projects.js +++ /dev/null @@ -1,622 +0,0 @@ -Input:: -//// [/src/lib/file1.ts] -#!someshebang lib file1 -export const x = 10;console.log(x); - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:04:00 AM] Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -[12:04:00 AM] Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' - -[12:04:00 AM] Building project '/src/lib/tsconfig.json'... - -[12:04:00 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed - -[12:04:00 AM] Updating output of project '/src/app/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/app/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/app/module.d.ts] file changed its modified time -//// [/src/app/module.d.ts.map] file changed its modified time -//// [/src/app/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 = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = void 0; - 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 ->>>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/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = void 0; ->>> 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 = void 0; ->>> 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 = void 0; ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->#!someshebang app file3 - >export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(21, 5) Source(2, 14) + SourceIndex(4) -2 >Emitted(21, 13) Source(2, 14) + SourceIndex(4) -3 >Emitted(21, 14) Source(2, 15) + SourceIndex(4) -4 >Emitted(21, 17) Source(2, 18) + SourceIndex(4) -5 >Emitted(21, 19) Source(2, 20) + SourceIndex(4) -6 >Emitted(21, 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(23, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(23, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(23, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(23, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(23, 16) Source(1, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":25,"end":513,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":25,"end":513,"kind":"text"}]},{"pos":513,"end":739,"kind":"text"}]},"dts":{"sections":[{"pos":25,"end":196,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":25,"end":196,"kind":"text"}]},{"pos":196,"end":278,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -prepend: (25-513):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (25-513) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (513-739) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = void 0; - exports.z = 30; -}); -var myVar = 30; - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (25-196):: ../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/app/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 25, - "end": 513, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 25, - "end": 513, - "kind": "text" - } - ] - }, - { - "pos": 513, - "end": 739, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 25, - "end": 196, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 25, - "end": 196, - "kind": "text" - } - ] - }, - { - "pos": 196, - "end": 278, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 442 -} - -//// [/src/lib/module.d.ts] file written with same contents -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/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 = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - 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 = void 0; ->>> 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/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> 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/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":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":25,"end":513,"kind":"text"}]},"dts":{"sections":[{"pos":25,"end":196,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (25-513) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - 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; - -====================================================================== - -//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 25, - "end": 513, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 25, - "end": 196, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 247 -} - 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 deleted file mode 100644 index a6ed40e8ad415..0000000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/stripInternal.js +++ /dev/null @@ -1,3805 +0,0 @@ -Input:: -//// [/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); - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:04:00 AM] Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -[12:04:00 AM] Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' - -[12:04:00 AM] Building project '/src/lib/tsconfig.json'... - -[12:04:00 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed - -[12:04:00 AM] Updating output of project '/src/app/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/app/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/app/module.d.ts] file changed its modified time -//// [/src/app/module.d.ts.map] file changed its modified time -//// [/src/app/module.js] -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; - 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: false, - 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 = void 0; - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = void 0; - 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 -------------------------------------------------------------------- ->>>/*@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/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; ->>> 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: false, ->>> 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 = void 0; ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(103, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(103, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(103, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(103, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(103, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(103, 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(105, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(105, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(105, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(105, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(105, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(105, 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 = void 0; ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(110, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(110, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(110, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(110, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(110, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(110, 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(112, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(112, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(112, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(112, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(112, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(112, 16) Source(1, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4411,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4411,"kind":"text"}]},{"pos":4411,"end":4637,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":217,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":217,"kind":"text"}]},{"pos":217,"end":299,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -prepend: (0-4411):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-4411) -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; - 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: false, - 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 = void 0; - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (4411-4637) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = void 0; - exports.z = 30; -}); -var myVar = 30; - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (0-217):: ../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/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 4411, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 0, - "end": 4411, - "kind": "text" - } - ] - }, - { - "pos": 4411, - "end": 4637, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 217, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 0, - "end": 217, - "kind": "text" - } - ] - }, - { - "pos": 217, - "end": 299, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 442 -} - -//// [/src/lib/module.d.ts] file written with same contents -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/src/lib/module.js] -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; - 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: false, - 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 = void 0; - 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.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; ->>> 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: false, ->>> 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/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(103, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(103, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(103, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(103, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(103, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(103, 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(105, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(105, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(105, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(105, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(105, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(105, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":4411,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":26,"kind":"internal"},{"pos":28,"end":108,"kind":"text"},{"pos":108,"end":233,"kind":"internal"},{"pos":235,"end":274,"kind":"text"},{"pos":274,"end":742,"kind":"internal"},{"pos":744,"end":751,"kind":"text"},{"pos":751,"end":1240,"kind":"internal"},{"pos":1242,"end":1333,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-4411) -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; - 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: false, - 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 = void 0; - 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-233) - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); ----------------------------------------------------------------------- -text: (235-274) - } - export namespace normalN { - ----------------------------------------------------------------------- -internal: (274-742) - 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: (744-751) - } - ----------------------------------------------------------------------- -internal: (751-1240) - 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: (1242-1333) -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 4411, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 26, - "kind": "internal" - }, - { - "pos": 28, - "end": 108, - "kind": "text" - }, - { - "pos": 108, - "end": 233, - "kind": "internal" - }, - { - "pos": 235, - "end": 274, - "kind": "text" - }, - { - "pos": 274, - "end": 742, - "kind": "internal" - }, - { - "pos": 744, - "end": 751, - "kind": "text" - }, - { - "pos": 751, - "end": 1240, - "kind": "internal" - }, - { - "pos": 1242, - "end": 1333, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 515 -} - 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 deleted file mode 100644 index ee8e6f2e52975..0000000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js +++ /dev/null @@ -1,762 +0,0 @@ -Input:: -//// [/src/lib/file1.ts] -export const x = 10;console.log(x); - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:04:00 AM] Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -[12:04:00 AM] Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' - -[12:04:00 AM] Building project '/src/lib/tsconfig.json'... - -[12:04:00 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed - -[12:04:00 AM] Updating output of project '/src/app/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/app/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/app/module.d.ts] file changed its modified time -//// [/src/app/module.d.ts.map] file changed its modified time -//// [/src/app/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 = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = void 0; - 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 -------------------------------------------------------------------- ->>>/// -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/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = void 0; ->>> 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 = void 0; ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(15, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(15, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(15, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(15, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(15, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(15, 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(17, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(17, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(17, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(17, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(17, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(17, 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 = void 0; ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(22, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(22, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(22, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(22, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(22, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(22, 20) Source(1, 21) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/app/module.js -sourceFile:file4.ts -------------------------------------------------------------------- ->>>}); ->>>/// -1 > -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 >/// -1 >Emitted(24, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(24, 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(25, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(25, 5) Source(2, 7) + SourceIndex(5) -3 >Emitted(25, 15) Source(2, 17) + SourceIndex(5) -4 >Emitted(25, 18) Source(2, 20) + SourceIndex(5) -5 >Emitted(25, 22) Source(2, 24) + SourceIndex(5) -6 >Emitted(25, 30) Source(2, 32) + SourceIndex(5) -7 >Emitted(25, 32) Source(2, 34) + SourceIndex(5) -8 >Emitted(25, 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(26, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(26, 5) Source(3, 7) + SourceIndex(5) -3 >Emitted(26, 10) Source(3, 12) + SourceIndex(5) -4 >Emitted(26, 13) Source(3, 15) + SourceIndex(5) -5 >Emitted(26, 15) Source(3, 17) + SourceIndex(5) -6 >Emitted(26, 16) Source(3, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":563,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":563,"kind":"text"}]},{"pos":563,"end":864,"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":"../lib/module.d.ts","texts":[{"pos":89,"end":297,"kind":"text"}]},{"pos":297,"end":416,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -prepend: (0-563):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-563) -/// -var file0Const = new libfile0(); -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (563-864) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = void 0; - 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):: ../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/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 563, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 0, - "end": 563, - "kind": "text" - } - ] - }, - { - "pos": 563, - "end": 864, - "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": "../lib/module.d.ts", - "texts": [ - { - "pos": 89, - "end": 297, - "kind": "text" - } - ] - }, - { - "pos": 297, - "end": 416, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 572 -} - -//// [/src/lib/module.d.ts] file written with same contents -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/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 = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - 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 = void 0; ->>> 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/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(15, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(15, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(15, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(15, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(15, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(15, 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(17, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(17, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(17, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(17, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(17, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(17, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":563,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":41,"end":249,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-563) -/// -var file0Const = new libfile0(); -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - console.log(exports.x); -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - 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/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 563, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "reference", - "data": "tripleRef.d.ts" - }, - { - "pos": 41, - "end": 249, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 308 -} - 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 deleted file mode 100644 index 9efcdbfe6a6d4..0000000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js +++ /dev/null @@ -1,1342 +0,0 @@ -Input:: -//// [/src/lib/file1.ts] -export const x = 10;function forlibfile1Rest() { } - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:08:00 AM] Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -[12:08:00 AM] Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' - -[12:08:00 AM] Building project '/src/lib/tsconfig.json'... - -[12:08:00 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed - -[12:08:00 AM] Updating output of project '/src/app/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/app/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/app/module.d.ts] file changed its modified time -//// [/src/app/module.d.ts.map] file changed its modified time -//// [/src/app/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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - 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]; - } -} -var libfile0_ar = [20, 30]; -libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - function forlibfile1Rest() { } -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = void 0; - 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]; - } -} -var appfile4_ar = [20, 30]; -appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false)); -//# 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,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,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,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,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,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE"} - -//// [/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 -------------------------------------------------------------------- ->>>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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { ->>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { ->>> if (ar || !(i in from)) { ->>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); ->>> ar[i] = from[i]; ->>> } ->>> } ->>> return to.concat(ar || Array.prototype.slice.call(from)); ->>>}; ->>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> 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(37, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(37, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(37, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(37, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(37, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(37, 17) Source(1, 19) + SourceIndex(0) ---- ->>>function libfile0Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > libfile0Spread -1->Emitted(38, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(38, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(38, 24) Source(2, 24) + SourceIndex(0) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(39, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(39, 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(40, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(40, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(40, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(40, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(40, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(40, 49) Source(2, 39) + SourceIndex(0) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(41, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(41, 31) Source(2, 39) + SourceIndex(0) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(43, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(43, 2) Source(2, 44) + SourceIndex(0) ---- ->>>var libfile0_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > libfile0_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(44, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(44, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(44, 16) Source(3, 18) + SourceIndex(0) -4 >Emitted(44, 19) Source(3, 21) + SourceIndex(0) -5 >Emitted(44, 20) Source(3, 22) + SourceIndex(0) -6 >Emitted(44, 22) Source(3, 24) + SourceIndex(0) -7 >Emitted(44, 24) Source(3, 26) + SourceIndex(0) -8 >Emitted(44, 26) Source(3, 28) + SourceIndex(0) -9 >Emitted(44, 27) Source(3, 29) + SourceIndex(0) -10>Emitted(44, 28) Source(3, 30) + SourceIndex(0) ---- ->>>libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >libfile0Spread -3 > ( -4 > 10 -5 > , ... -6 > libfile0_ar -7 > ); -1->Emitted(45, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(45, 15) Source(4, 15) + SourceIndex(0) -3 >Emitted(45, 45) Source(4, 16) + SourceIndex(0) -4 >Emitted(45, 47) Source(4, 18) + SourceIndex(0) -5 >Emitted(45, 57) Source(4, 23) + SourceIndex(0) -6 >Emitted(45, 68) Source(4, 34) + SourceIndex(0) -7 >Emitted(45, 79) Source(4, 36) + 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 = void 0; ->>> exports.x = 10; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^-> -1 >export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1 >Emitted(50, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(50, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(50, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(50, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(50, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(50, 20) Source(1, 21) + SourceIndex(1) ---- ->>> function forlibfile1Rest() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> -2 > function -3 > forlibfile1Rest -4 > () { -5 > } -1->Emitted(51, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(51, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(51, 29) Source(1, 45) + SourceIndex(1) -4 >Emitted(51, 34) Source(1, 50) + SourceIndex(1) -5 >Emitted(51, 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 = void 0; ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(57, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(57, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(57, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(57, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(57, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(57, 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(59, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(59, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(59, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(59, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(59, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(59, 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 = void 0; ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^-> -1->export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(64, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(64, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(64, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(64, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(64, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(64, 20) Source(1, 21) + SourceIndex(4) ---- ->>> function forappfile3Rest() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >import { x } from "file1"; -2 > function -3 > forappfile3Rest -1->Emitted(65, 5) Source(2, 27) + SourceIndex(4) -2 >Emitted(65, 14) Source(2, 36) + SourceIndex(4) -3 >Emitted(65, 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 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(66, 9) Source(3, 1) + SourceIndex(4) -2 >Emitted(66, 13) Source(3, 7) + SourceIndex(4) -3 >Emitted(66, 18) Source(3, 24) + SourceIndex(4) -4 >Emitted(66, 20) Source(3, 26) + SourceIndex(4) -5 >Emitted(66, 21) Source(3, 27) + SourceIndex(4) -6 >Emitted(66, 23) Source(3, 29) + SourceIndex(4) -7 >Emitted(66, 25) Source(3, 31) + SourceIndex(4) -8 >Emitted(66, 27) Source(3, 33) + SourceIndex(4) -9 >Emitted(66, 28) Source(3, 34) + SourceIndex(4) -10>Emitted(66, 30) Source(3, 36) + SourceIndex(4) -11>Emitted(66, 32) Source(3, 38) + SourceIndex(4) -12>Emitted(66, 34) Source(3, 40) + SourceIndex(4) -13>Emitted(66, 36) Source(3, 42) + SourceIndex(4) -14>Emitted(66, 38) Source(3, 44) + SourceIndex(4) -15>Emitted(66, 40) Source(3, 46) + SourceIndex(4) -16>Emitted(66, 42) Source(3, 48) + SourceIndex(4) -17>Emitted(66, 44) Source(3, 9) + SourceIndex(4) -18>Emitted(66, 45) Source(3, 10) + SourceIndex(4) -19>Emitted(66, 52) Source(3, 10) + SourceIndex(4) -20>Emitted(66, 54) Source(3, 15) + SourceIndex(4) -21>Emitted(66, 58) Source(3, 19) + SourceIndex(4) -22>Emitted(66, 72) Source(3, 7) + SourceIndex(4) -23>Emitted(66, 77) Source(3, 21) + SourceIndex(4) -24>Emitted(66, 78) Source(3, 48) + SourceIndex(4) -25>Emitted(66, 79) Source(3, 49) + SourceIndex(4) ---- ->>> } -1 >^^^^ -2 > ^ -1 > - > -2 > } -1 >Emitted(67, 5) Source(4, 1) + SourceIndex(4) -2 >Emitted(67, 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(69, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(69, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(69, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(69, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(69, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(69, 16) Source(1, 18) + SourceIndex(5) ---- ->>>function appfile4Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > appfile4Spread -1->Emitted(70, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(70, 10) Source(2, 10) + SourceIndex(5) -3 >Emitted(70, 24) Source(2, 24) + SourceIndex(5) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(71, 5) Source(2, 25) + SourceIndex(5) -2 >Emitted(71, 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(72, 10) Source(2, 25) + SourceIndex(5) -2 >Emitted(72, 20) Source(2, 39) + SourceIndex(5) -3 >Emitted(72, 22) Source(2, 25) + SourceIndex(5) -4 >Emitted(72, 43) Source(2, 39) + SourceIndex(5) -5 >Emitted(72, 45) Source(2, 25) + SourceIndex(5) -6 >Emitted(72, 49) Source(2, 39) + SourceIndex(5) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(73, 9) Source(2, 25) + SourceIndex(5) -2 >Emitted(73, 31) Source(2, 39) + SourceIndex(5) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(75, 1) Source(2, 43) + SourceIndex(5) -2 >Emitted(75, 2) Source(2, 44) + SourceIndex(5) ---- ->>>var appfile4_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > appfile4_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(76, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(76, 5) Source(3, 7) + SourceIndex(5) -3 >Emitted(76, 16) Source(3, 18) + SourceIndex(5) -4 >Emitted(76, 19) Source(3, 21) + SourceIndex(5) -5 >Emitted(76, 20) Source(3, 22) + SourceIndex(5) -6 >Emitted(76, 22) Source(3, 24) + SourceIndex(5) -7 >Emitted(76, 24) Source(3, 26) + SourceIndex(5) -8 >Emitted(76, 26) Source(3, 28) + SourceIndex(5) -9 >Emitted(76, 27) Source(3, 29) + SourceIndex(5) -10>Emitted(76, 28) Source(3, 30) + SourceIndex(5) ---- ->>>appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false)); -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >appfile4Spread -3 > ( -4 > 10 -5 > , ... -6 > appfile4_ar -7 > ); -1->Emitted(77, 1) Source(4, 1) + SourceIndex(5) -2 >Emitted(77, 15) Source(4, 15) + SourceIndex(5) -3 >Emitted(77, 45) Source(4, 16) + SourceIndex(5) -4 >Emitted(77, 47) Source(4, 18) + SourceIndex(5) -5 >Emitted(77, 57) Source(4, 23) + SourceIndex(5) -6 >Emitted(77, 68) Source(4, 34) + SourceIndex(5) -7 >Emitted(77, 79) Source(4, 36) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":2143,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1398,"end":2143,"kind":"text"}]},{"pos":2143,"end":2740,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":265,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":265,"kind":"text"}]},{"pos":265,"end":441,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/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-894):: typescript:spreadArray -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; ----------------------------------------------------------------------- -emitHelpers: (896-1396):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (1398-2143):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1398-2143) -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var libfile0_ar = [20, 30]; -libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - function forlibfile1Rest() { } -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (2143-2740) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = void 0; - 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]; - } -} -var appfile4_ar = [20, 30]; -appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false)); - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (0-265):: ../lib/module.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-265) -declare const myGlob = 20; -declare function libfile0Spread(...b: number[]): void; -declare const libfile0_ar: number[]; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - ----------------------------------------------------------------------- -text: (265-441) -declare module "file3" { - export const z = 30; -} -declare const myVar = 30; -declare function appfile4Spread(...b: number[]): void; -declare const appfile4_ar: number[]; - -====================================================================== - -//// [/src/app/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 894, - "kind": "emitHelpers", - "data": "typescript:spreadArray" - }, - { - "pos": 896, - "end": 1396, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 1398, - "end": 2143, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 1398, - "end": 2143, - "kind": "text" - } - ] - }, - { - "pos": 2143, - "end": 2740, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spreadArray" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 265, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 0, - "end": 265, - "kind": "text" - } - ] - }, - { - "pos": 265, - "end": 441, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 743 -} - -//// [/src/lib/module.d.ts] file written with same contents -//// [/src/lib/module.d.ts.map] file written with same contents -//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents -//// [/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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var libfile0_ar = [20, 30]; -libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - function forlibfile1Rest() { } -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - 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,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { ->>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { ->>> if (ar || !(i in from)) { ->>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); ->>> ar[i] = from[i]; ->>> } ->>> } ->>> return to.concat(ar || Array.prototype.slice.call(from)); ->>>}; ->>>var myGlob = 20; -1 > -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1 >Emitted(26, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(26, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(26, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(26, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(26, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(26, 17) Source(1, 19) + SourceIndex(0) ---- ->>>function libfile0Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > libfile0Spread -1->Emitted(27, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(27, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(27, 24) Source(2, 24) + SourceIndex(0) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(28, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(28, 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(29, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(29, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(29, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(29, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(29, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(29, 49) Source(2, 39) + SourceIndex(0) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(30, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(30, 31) Source(2, 39) + SourceIndex(0) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(32, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(32, 2) Source(2, 44) + SourceIndex(0) ---- ->>>var libfile0_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > libfile0_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(33, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(33, 5) Source(3, 7) + SourceIndex(0) -3 >Emitted(33, 16) Source(3, 18) + SourceIndex(0) -4 >Emitted(33, 19) Source(3, 21) + SourceIndex(0) -5 >Emitted(33, 20) Source(3, 22) + SourceIndex(0) -6 >Emitted(33, 22) Source(3, 24) + SourceIndex(0) -7 >Emitted(33, 24) Source(3, 26) + SourceIndex(0) -8 >Emitted(33, 26) Source(3, 28) + SourceIndex(0) -9 >Emitted(33, 27) Source(3, 29) + SourceIndex(0) -10>Emitted(33, 28) Source(3, 30) + SourceIndex(0) ---- ->>>libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >libfile0Spread -3 > ( -4 > 10 -5 > , ... -6 > libfile0_ar -7 > ); -1->Emitted(34, 1) Source(4, 1) + SourceIndex(0) -2 >Emitted(34, 15) Source(4, 15) + SourceIndex(0) -3 >Emitted(34, 45) Source(4, 16) + SourceIndex(0) -4 >Emitted(34, 47) Source(4, 18) + SourceIndex(0) -5 >Emitted(34, 57) Source(4, 23) + SourceIndex(0) -6 >Emitted(34, 68) Source(4, 34) + SourceIndex(0) -7 >Emitted(34, 79) Source(4, 36) + 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 = void 0; ->>> exports.x = 10; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^-> -1 >export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1 >Emitted(39, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(39, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(39, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(39, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(39, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(39, 20) Source(1, 21) + SourceIndex(1) ---- ->>> function forlibfile1Rest() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> -2 > function -3 > forlibfile1Rest -4 > () { -5 > } -1->Emitted(40, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(40, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(40, 29) Source(1, 45) + SourceIndex(1) -4 >Emitted(40, 34) Source(1, 50) + SourceIndex(1) -5 >Emitted(40, 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 = void 0; ->>> exports.y = 20; -1 >^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1 >export const -2 > -3 > y -4 > = -5 > 20 -6 > ; -1 >Emitted(46, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(46, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(46, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(46, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(46, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(46, 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(48, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(48, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(48, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(48, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(48, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(48, 22) Source(1, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1641,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":265,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/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-894):: typescript:spreadArray -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; ----------------------------------------------------------------------- -text: (896-1641) -var myGlob = 20; -function libfile0Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var libfile0_ar = [20, 30]; -libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; - function forlibfile1Rest() { } -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - -====================================================================== -====================================================================== -File:: /src/lib/module.d.ts ----------------------------------------------------------------------- -text: (0-265) -declare const myGlob = 20; -declare function libfile0Spread(...b: number[]): void; -declare const libfile0_ar: number[]; -declare module "file1" { - export const x = 10; -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 894, - "kind": "emitHelpers", - "data": "typescript:spreadArray" - }, - { - "pos": 896, - "end": 1641, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:read", - "typescript:spreadArray" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 265, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 456 -} - 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 deleted file mode 100644 index bb509d4a8020c..0000000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js +++ /dev/null @@ -1,1156 +0,0 @@ -Input:: -//// [/src/lib/file1.ts] -"myPrologue5" -export const x = 10; - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:08:00 AM] Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -[12:08:00 AM] Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' - -[12:08:00 AM] Building project '/src/lib/tsconfig.json'... - -[12:08:00 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed - -[12:08:00 AM] Updating output of project '/src/app/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/app/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/app/module.d.ts] file changed its modified time -//// [/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;;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 >"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 >"myPrologue3" - > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(8, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(8, 9) Source(2, 1) + SourceIndex(3) -3 >Emitted(8, 15) Source(2, 7) + SourceIndex(3) -4 >Emitted(8, 26) Source(2, 18) + SourceIndex(3) -5 >Emitted(8, 31) Source(2, 23) + SourceIndex(3) -6 >Emitted(8, 32) Source(2, 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"; -"myPrologue3"; -"myPrologue2"; -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue5"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = void 0; - 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/global.ts","file4.ts","../lib/file1.ts","../lib/file2.ts","file3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;IGDlB,aAAa,CAAA;;;IACA,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICDpB,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,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/global.ts,file4.ts,../lib/file1.ts,../lib/file2.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/global.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> -2 >"myPrologue3" -3 > -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 14) + 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"; ->>> "myPrologue5"; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > "myPrologue5" -3 > -1->Emitted(8, 5) Source(1, 1) + SourceIndex(3) -2 >Emitted(8, 18) Source(1, 14) + SourceIndex(3) -3 >Emitted(8, 19) Source(1, 14) + SourceIndex(3) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = void 0; ->>> 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(3) -2 >Emitted(11, 13) Source(2, 14) + SourceIndex(3) -3 >Emitted(11, 14) Source(2, 15) + SourceIndex(3) -4 >Emitted(11, 17) Source(2, 18) + SourceIndex(3) -5 >Emitted(11, 19) Source(2, 20) + SourceIndex(3) -6 >Emitted(11, 20) Source(2, 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(15, 5) Source(1, 1) + SourceIndex(4) -2 >Emitted(15, 21) Source(1, 17) + SourceIndex(4) -3 >Emitted(15, 22) Source(1, 17) + SourceIndex(4) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> exports.y = 20; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1-> - >export const -2 > -3 > y -4 > = -5 > 20 -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:../lib/global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >"myPrologue3" - > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(20, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(20, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(20, 16) Source(2, 18) + SourceIndex(1) -4 >Emitted(20, 19) Source(2, 21) + SourceIndex(1) -5 >Emitted(20, 21) Source(2, 23) + SourceIndex(1) -6 >Emitted(20, 22) Source(2, 24) + SourceIndex(1) ---- -------------------------------------------------------------------- -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(23, 5) Source(1, 1) + SourceIndex(5) -2 >Emitted(23, 17) Source(1, 13) + SourceIndex(5) -3 >Emitted(23, 18) Source(1, 13) + SourceIndex(5) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.z = void 0; ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1-> - >export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(26, 5) Source(2, 14) + SourceIndex(5) -2 >Emitted(26, 13) Source(2, 14) + SourceIndex(5) -3 >Emitted(26, 14) Source(2, 15) + SourceIndex(5) -4 >Emitted(26, 17) Source(2, 18) + SourceIndex(5) -5 >Emitted(26, 19) Source(2, 20) + SourceIndex(5) -6 >Emitted(26, 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(28, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(28, 5) Source(2, 7) + SourceIndex(2) -3 >Emitted(28, 10) Source(2, 12) + SourceIndex(2) -4 >Emitted(28, 13) Source(2, 15) + SourceIndex(2) -5 >Emitted(28, 15) Source(2, 17) + SourceIndex(2) -6 >Emitted(28, 16) Source(2, 18) + SourceIndex(2) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue2"},{"pos":62,"end":564,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":62,"end":564,"kind":"text"}]},{"pos":564,"end":809,"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":"../lib/module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":253,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/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-44):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -prologue: (46-60):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -prepend: (62-564):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (62-564) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue5"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (564-809) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = void 0; - exports.z = 30; -}); -var myVar = 30; - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (0-171):: ../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/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 44, - "kind": "prologue", - "data": "myPrologue3" - }, - { - "pos": 46, - "end": 60, - "kind": "prologue", - "data": "myPrologue2" - }, - { - "pos": 62, - "end": 564, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 62, - "end": 564, - "kind": "text" - } - ] - }, - { - "pos": 564, - "end": 809, - "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": "../lib/module.d.ts", - "texts": [ - { - "pos": 0, - "end": 171, - "kind": "text" - } - ] - }, - { - "pos": 171, - "end": 253, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 896 -} - -//// [/src/lib/module.d.ts] file written with same contents -//// [/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;;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 >"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 >"myPrologue3" - > -2 > -3 > const -4 > globalConst -5 > = 10 -6 > ; -1 >Emitted(8, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(8, 9) Source(2, 1) + SourceIndex(3) -3 >Emitted(8, 15) Source(2, 7) + SourceIndex(3) -4 >Emitted(8, 26) Source(2, 18) + SourceIndex(3) -5 >Emitted(8, 31) Source(2, 23) + SourceIndex(3) -6 >Emitted(8, 32) Source(2, 24) + SourceIndex(3) ---- ->>>//# sourceMappingURL=module.d.ts.map - -//// [/src/lib/module.js] -"use strict"; -"myPrologue"; -"myPrologue3"; -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue5"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - exports.y = 20; -}); -var globalConst = 10; -//# sourceMappingURL=module.js.map - -//// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","global.ts","file1.ts","file2.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;IEDlB,aAAa,CAAA;;;IACA,QAAA,CAAC,GAAG,EAAE,CAAC;;;;ICDpB,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC"} - -//// [/src/lib/module.js.map.baseline.txt] -=================================================================== -JsFile: module.js -mapUrl: module.js.map -sourceRoot: -sources: file0.ts,global.ts,file1.ts,file2.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) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^-> -1-> -2 >"myPrologue3" -3 > -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 14) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:file0.ts -------------------------------------------------------------------- ->>>var myGlob = 20; -1-> -2 >^^^^ -3 > ^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue" - > -2 >const -3 > myGlob -4 > = -5 > 20 -6 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(4, 5) Source(2, 7) + SourceIndex(0) -3 >Emitted(4, 11) Source(2, 13) + SourceIndex(0) -4 >Emitted(4, 14) Source(2, 16) + SourceIndex(0) -5 >Emitted(4, 16) Source(2, 18) + SourceIndex(0) -6 >Emitted(4, 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(7, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) -3 >Emitted(7, 19) Source(1, 14) + SourceIndex(2) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.x = void 0; ->>> exports.x = 10; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1-> - >export const -2 > -3 > x -4 > = -5 > 10 -6 > ; -1->Emitted(10, 5) Source(2, 14) + SourceIndex(2) -2 >Emitted(10, 13) Source(2, 14) + SourceIndex(2) -3 >Emitted(10, 14) Source(2, 15) + SourceIndex(2) -4 >Emitted(10, 17) Source(2, 18) + SourceIndex(2) -5 >Emitted(10, 19) Source(2, 20) + SourceIndex(2) -6 >Emitted(10, 20) Source(2, 21) + SourceIndex(2) ---- -------------------------------------------------------------------- -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(14, 5) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 21) Source(1, 17) + SourceIndex(3) -3 >Emitted(14, 22) Source(1, 17) + SourceIndex(3) ---- ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> 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(3) -2 >Emitted(17, 13) Source(2, 14) + SourceIndex(3) -3 >Emitted(17, 14) Source(2, 15) + SourceIndex(3) -4 >Emitted(17, 17) Source(2, 18) + SourceIndex(3) -5 >Emitted(17, 19) Source(2, 20) + SourceIndex(3) -6 >Emitted(17, 20) Source(2, 21) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/lib/module.js -sourceFile:global.ts -------------------------------------------------------------------- ->>>}); ->>>var globalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^-> -1 >"myPrologue3" - > -2 >const -3 > globalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(19, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(19, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(19, 16) Source(2, 18) + SourceIndex(1) -4 >Emitted(19, 19) Source(2, 21) + SourceIndex(1) -5 >Emitted(19, 21) Source(2, 23) + SourceIndex(1) -6 >Emitted(19, 22) Source(2, 24) + SourceIndex(1) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":548,"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"}}]},{"file":3,"text":"\"myPrologue3\"","directives":[{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue3"}}]}]}},"dts":{"sections":[{"pos":0,"end":171,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (30-44):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -text: (46-548) -var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologue5"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.x = void 0; - exports.x = 10; -}); -define("file2", ["require", "exports"], function (require, exports) { - "use strict"; - "myPrologueFile"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.y = void 0; - 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/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 44, - "kind": "prologue", - "data": "myPrologue3" - }, - { - "pos": 46, - "end": 548, - "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" - } - } - ] - }, - { - "file": 3, - "text": "\"myPrologue3\"", - "directives": [ - { - "pos": 0, - "end": 13, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue3" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 171, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 763 -} - 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 deleted file mode 100644 index be0bdbad44e2f..0000000000000 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/stripInternal.js +++ /dev/null @@ -1,4709 +0,0 @@ -Input:: -//// [/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 } - - - -Output:: -/lib/tsc --b /src/app --verbose -[12:08:00 AM] Projects in this build: - * src/lib/tsconfig.json - * src/app/tsconfig.json - -[12:08:00 AM] Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' - -[12:08:00 AM] Building project '/src/lib/tsconfig.json'... - -[12:08:00 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed - -[12:08:00 AM] Updating output of project '/src/app/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/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] -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; - /*@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: false, - 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 = void 0; - exports.y = 20; -}); -var globalConst = 10; -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = void 0; - 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 -------------------------------------------------------------------- ->>>/*@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/app/module.js -sourceFile:../lib/file1.ts -------------------------------------------------------------------- ->>>define("file1", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; ->>> /*@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: false, ->>> 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 = void 0; ->>> 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 = void 0; ->>> exports.z = 30; -1->^^^^ -2 > ^^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^^ -6 > ^ -1->export const -2 > -3 > z -4 > = -5 > 30 -6 > ; -1->Emitted(109, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(109, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(109, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(109, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(109, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(109, 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(111, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(111, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(111, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(111, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(111, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(111, 16) Source(1, 18) + SourceIndex(5) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/app/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4396,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4396,"kind":"text"}]},{"pos":4396,"end":4622,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":191,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":191,"kind":"text"}]},{"pos":191,"end":273,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/app/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/app/module.js ----------------------------------------------------------------------- -prepend: (0-4396):: ../lib/module.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-4396) -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; - /*@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: false, - 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 = void 0; - exports.y = 20; -}); -var globalConst = 10; - ----------------------------------------------------------------------- -text: (4396-4622) -define("file3", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.z = void 0; - exports.z = 30; -}); -var myVar = 30; - -====================================================================== -====================================================================== -File:: /src/app/module.d.ts ----------------------------------------------------------------------- -prepend: (0-191):: ../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/app/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file3.ts", - "./file4.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 4396, - "kind": "prepend", - "data": "../lib/module.js", - "texts": [ - { - "pos": 0, - "end": 4396, - "kind": "text" - } - ] - }, - { - "pos": 4396, - "end": 4622, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 191, - "kind": "prepend", - "data": "../lib/module.d.ts", - "texts": [ - { - "pos": 0, - "end": 191, - "kind": "text" - } - ] - }, - { - "pos": 191, - "end": 273, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 442 -} - -//// [/src/lib/module.d.ts] file written with same contents -//// [/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;QACN,IAAI,CAAC,IACM,MAAM,CADK;QACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;KACvC;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) ---- ->>> get c(): number; -1->^^^^^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^ -6 > ^ -7 > ^^^^-> -1->() { } - > /*@internal*/ -2 > get -3 > c -4 > () { return 10; } - > /*@internal*/ set c(val: -5 > number -6 > -1->Emitted(8, 9) Source(6, 19) + SourceIndex(1) -2 >Emitted(8, 13) Source(6, 23) + SourceIndex(1) -3 >Emitted(8, 14) Source(6, 24) + SourceIndex(1) -4 >Emitted(8, 18) Source(7, 30) + SourceIndex(1) -5 >Emitted(8, 24) Source(7, 36) + SourceIndex(1) -6 >Emitted(8, 25) Source(6, 41) + SourceIndex(1) ---- ->>> set c(val: number); -1->^^^^^^^^ -2 > ^^^^ -3 > ^ -4 > ^ -5 > ^^^^^ -6 > ^^^^^^ -7 > ^^ -1-> - > /*@internal*/ -2 > set -3 > c -4 > ( -5 > val: -6 > number -7 > ) { } -1->Emitted(9, 9) Source(7, 19) + SourceIndex(1) -2 >Emitted(9, 13) Source(7, 23) + SourceIndex(1) -3 >Emitted(9, 14) Source(7, 24) + SourceIndex(1) -4 >Emitted(9, 15) Source(7, 25) + SourceIndex(1) -5 >Emitted(9, 20) Source(7, 30) + SourceIndex(1) -6 >Emitted(9, 26) Source(7, 36) + SourceIndex(1) -7 >Emitted(9, 28) Source(7, 41) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(10, 6) Source(8, 2) + SourceIndex(1) ---- ->>> export namespace normalN { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^ -5 > ^ -1-> - > -2 > export -3 > namespace -4 > normalN -5 > -1->Emitted(11, 5) Source(9, 1) + SourceIndex(1) -2 >Emitted(11, 11) Source(9, 7) + SourceIndex(1) -3 >Emitted(11, 22) Source(9, 18) + SourceIndex(1) -4 >Emitted(11, 29) Source(9, 25) + SourceIndex(1) -5 >Emitted(11, 30) Source(9, 26) + SourceIndex(1) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /*@internal*/ -2 > export class -3 > C -1 >Emitted(12, 9) Source(10, 19) + SourceIndex(1) -2 >Emitted(12, 15) Source(10, 32) + SourceIndex(1) -3 >Emitted(12, 16) Source(10, 33) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(13, 10) Source(10, 37) + SourceIndex(1) ---- ->>> function foo(): void; -1->^^^^^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(14, 9) Source(11, 19) + SourceIndex(1) -2 >Emitted(14, 18) Source(11, 35) + SourceIndex(1) -3 >Emitted(14, 21) Source(11, 38) + SourceIndex(1) -4 >Emitted(14, 30) Source(11, 43) + SourceIndex(1) ---- ->>> namespace someNamespace { -1->^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(15, 9) Source(12, 19) + SourceIndex(1) -2 >Emitted(15, 19) Source(12, 36) + SourceIndex(1) -3 >Emitted(15, 32) Source(12, 49) + SourceIndex(1) -4 >Emitted(15, 33) Source(12, 50) + SourceIndex(1) ---- ->>> class C { -1 >^^^^^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(16, 13) Source(12, 52) + SourceIndex(1) -2 >Emitted(16, 19) Source(12, 65) + SourceIndex(1) -3 >Emitted(16, 20) Source(12, 66) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^^^^^ -1 > {} -1 >Emitted(17, 14) Source(12, 69) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(18, 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(19, 9) Source(13, 19) + SourceIndex(1) -2 >Emitted(19, 19) Source(13, 36) + SourceIndex(1) -3 >Emitted(19, 28) Source(13, 45) + SourceIndex(1) -4 >Emitted(19, 29) Source(13, 46) + SourceIndex(1) -5 >Emitted(19, 38) Source(13, 55) + SourceIndex(1) -6 >Emitted(19, 39) Source(13, 56) + SourceIndex(1) ---- ->>> class someClass { -1 >^^^^^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(20, 13) Source(13, 58) + SourceIndex(1) -2 >Emitted(20, 19) Source(13, 71) + SourceIndex(1) -3 >Emitted(20, 28) Source(13, 80) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^^^^^ -1 > {} -1 >Emitted(21, 14) Source(13, 83) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(22, 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(23, 9) Source(14, 19) + SourceIndex(1) -2 >Emitted(23, 15) Source(14, 25) + SourceIndex(1) -3 >Emitted(23, 23) Source(14, 33) + SourceIndex(1) -4 >Emitted(23, 33) Source(14, 43) + SourceIndex(1) -5 >Emitted(23, 36) Source(14, 46) + SourceIndex(1) -6 >Emitted(23, 49) Source(14, 59) + SourceIndex(1) -7 >Emitted(23, 50) Source(14, 60) + SourceIndex(1) -8 >Emitted(23, 51) Source(14, 61) + SourceIndex(1) -9 >Emitted(23, 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(24, 9) Source(15, 19) + SourceIndex(1) -2 >Emitted(24, 14) Source(15, 31) + SourceIndex(1) -3 >Emitted(24, 26) Source(15, 43) + SourceIndex(1) -4 >Emitted(24, 29) Source(15, 46) + SourceIndex(1) -5 >Emitted(24, 38) Source(15, 55) + SourceIndex(1) -6 >Emitted(24, 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(25, 9) Source(16, 26) + SourceIndex(1) -2 >Emitted(25, 15) Source(16, 32) + SourceIndex(1) -3 >Emitted(25, 28) Source(16, 45) + SourceIndex(1) -4 >Emitted(25, 33) Source(16, 50) + SourceIndex(1) -5 >Emitted(25, 34) Source(16, 51) + SourceIndex(1) ---- ->>> enum internalEnum { -1 >^^^^^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(26, 9) Source(17, 19) + SourceIndex(1) -2 >Emitted(26, 14) Source(17, 31) + SourceIndex(1) -3 >Emitted(26, 26) Source(17, 43) + SourceIndex(1) ---- ->>> a = 0, -1 >^^^^^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(27, 13) Source(17, 46) + SourceIndex(1) -2 >Emitted(27, 14) Source(17, 47) + SourceIndex(1) -3 >Emitted(27, 18) Source(17, 47) + SourceIndex(1) ---- ->>> b = 1, -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(28, 13) Source(17, 49) + SourceIndex(1) -2 >Emitted(28, 14) Source(17, 50) + SourceIndex(1) -3 >Emitted(28, 18) Source(17, 50) + SourceIndex(1) ---- ->>> c = 2 -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(29, 13) Source(17, 52) + SourceIndex(1) -2 >Emitted(29, 14) Source(17, 53) + SourceIndex(1) -3 >Emitted(29, 18) Source(17, 53) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -1 > } -1 >Emitted(30, 10) Source(17, 55) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(31, 6) Source(18, 2) + SourceIndex(1) ---- ->>> export class internalC { -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 > export -3 > class -4 > internalC -1->Emitted(32, 5) Source(19, 15) + SourceIndex(1) -2 >Emitted(32, 11) Source(19, 21) + SourceIndex(1) -3 >Emitted(32, 18) Source(19, 28) + SourceIndex(1) -4 >Emitted(32, 27) Source(19, 37) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(33, 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(34, 5) Source(20, 15) + SourceIndex(1) -2 >Emitted(34, 11) Source(20, 21) + SourceIndex(1) -3 >Emitted(34, 21) Source(20, 31) + SourceIndex(1) -4 >Emitted(34, 32) Source(20, 42) + SourceIndex(1) -5 >Emitted(34, 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(35, 5) Source(21, 15) + SourceIndex(1) -2 >Emitted(35, 11) Source(21, 21) + SourceIndex(1) -3 >Emitted(35, 22) Source(21, 32) + SourceIndex(1) -4 >Emitted(35, 39) Source(21, 49) + SourceIndex(1) -5 >Emitted(35, 40) Source(21, 50) + SourceIndex(1) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(36, 9) Source(21, 52) + SourceIndex(1) -2 >Emitted(36, 15) Source(21, 65) + SourceIndex(1) -3 >Emitted(36, 24) Source(21, 74) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(37, 10) Source(21, 77) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(38, 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(39, 5) Source(22, 15) + SourceIndex(1) -2 >Emitted(39, 11) Source(22, 21) + SourceIndex(1) -3 >Emitted(39, 22) Source(22, 32) + SourceIndex(1) -4 >Emitted(39, 35) Source(22, 45) + SourceIndex(1) -5 >Emitted(39, 36) Source(22, 46) + SourceIndex(1) -6 >Emitted(39, 45) Source(22, 55) + SourceIndex(1) -7 >Emitted(39, 46) Source(22, 56) + SourceIndex(1) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(40, 9) Source(22, 58) + SourceIndex(1) -2 >Emitted(40, 15) Source(22, 71) + SourceIndex(1) -3 >Emitted(40, 24) Source(22, 80) + SourceIndex(1) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(41, 10) Source(22, 83) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(42, 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(43, 5) Source(23, 15) + SourceIndex(1) -2 >Emitted(43, 11) Source(23, 21) + SourceIndex(1) -3 >Emitted(43, 19) Source(23, 29) + SourceIndex(1) -4 >Emitted(43, 33) Source(23, 43) + SourceIndex(1) -5 >Emitted(43, 36) Source(23, 46) + SourceIndex(1) -6 >Emitted(43, 53) Source(23, 63) + SourceIndex(1) -7 >Emitted(43, 54) Source(23, 64) + SourceIndex(1) -8 >Emitted(43, 63) Source(23, 73) + SourceIndex(1) -9 >Emitted(43, 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(44, 5) Source(24, 15) + SourceIndex(1) -2 >Emitted(44, 11) Source(24, 21) + SourceIndex(1) -3 >Emitted(44, 17) Source(24, 27) + SourceIndex(1) -4 >Emitted(44, 29) Source(24, 39) + SourceIndex(1) -5 >Emitted(44, 32) Source(24, 42) + SourceIndex(1) -6 >Emitted(44, 41) Source(24, 51) + SourceIndex(1) -7 >Emitted(44, 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(45, 5) Source(25, 15) + SourceIndex(1) -2 >Emitted(45, 11) Source(25, 21) + SourceIndex(1) -3 >Emitted(45, 12) Source(25, 22) + SourceIndex(1) -4 >Emitted(45, 18) Source(25, 28) + SourceIndex(1) -5 >Emitted(45, 31) Source(25, 41) + SourceIndex(1) -6 >Emitted(45, 36) Source(25, 46) + SourceIndex(1) -7 >Emitted(45, 37) Source(25, 47) + SourceIndex(1) ---- ->>> export enum internalEnum { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^ -1 > - >/*@internal*/ -2 > export -3 > enum -4 > internalEnum -1 >Emitted(46, 5) Source(26, 15) + SourceIndex(1) -2 >Emitted(46, 11) Source(26, 21) + SourceIndex(1) -3 >Emitted(46, 17) Source(26, 27) + SourceIndex(1) -4 >Emitted(46, 29) Source(26, 39) + SourceIndex(1) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(47, 9) Source(26, 42) + SourceIndex(1) -2 >Emitted(47, 10) Source(26, 43) + SourceIndex(1) -3 >Emitted(47, 14) Source(26, 43) + SourceIndex(1) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(48, 9) Source(26, 45) + SourceIndex(1) -2 >Emitted(48, 10) Source(26, 46) + SourceIndex(1) -3 >Emitted(48, 14) Source(26, 46) + SourceIndex(1) ---- ->>> c = 2 -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(49, 9) Source(26, 48) + SourceIndex(1) -2 >Emitted(49, 10) Source(26, 49) + SourceIndex(1) -3 >Emitted(49, 14) Source(26, 49) + SourceIndex(1) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(50, 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(53, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(53, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(53, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(53, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(53, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(53, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(53, 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(55, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(55, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(55, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(55, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(55, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(55, 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.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; - /*@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: false, - 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 = void 0; - 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 }); ->>> exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; ->>> /*@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: false, ->>> 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/lib/module.js -sourceFile:file2.ts -------------------------------------------------------------------- ->>>}); ->>>define("file2", ["require", "exports"], function (require, exports) { ->>> "use strict"; ->>> Object.defineProperty(exports, "__esModule", { value: true }); ->>> exports.y = void 0; ->>> 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/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(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) ---- ->>>//# sourceMappingURL=module.js.map - -//// [/src/lib/module.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":4396,"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":233,"kind":"internal"},{"pos":235,"end":274,"kind":"text"},{"pos":274,"end":742,"kind":"internal"},{"pos":744,"end":751,"kind":"text"},{"pos":751,"end":1240,"kind":"internal"},{"pos":1242,"end":1333,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/lib/module.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/lib/module.js ----------------------------------------------------------------------- -text: (0-4396) -/*@internal*/ var myGlob = 20; -define("file1", ["require", "exports"], function (require, exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; - /*@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: false, - 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 = void 0; - 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-233) - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); ----------------------------------------------------------------------- -text: (235-274) - } - export namespace normalN { - ----------------------------------------------------------------------- -internal: (274-742) - 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: (744-751) - } - ----------------------------------------------------------------------- -internal: (751-1240) - 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: (1242-1333) -} -declare module "file2" { - export const y = 20; -} -declare const globalConst = 10; - -====================================================================== - -//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "./", - "sourceFiles": [ - "./file0.ts", - "./file1.ts", - "./file2.ts", - "./global.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 4396, - "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": 233, - "kind": "internal" - }, - { - "pos": 235, - "end": 274, - "kind": "text" - }, - { - "pos": 274, - "end": 742, - "kind": "internal" - }, - { - "pos": 744, - "end": 751, - "kind": "text" - }, - { - "pos": 751, - "end": 1240, - "kind": "internal" - }, - { - "pos": 1242, - "end": 1333, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 587 -} - 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 index 4c4de8a279e84..f1975b6c48bd5 100644 --- 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 @@ -925,3 +925,618 @@ declare const globalConst = 10; "size": 245 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/lib/file1.ts] +export const x = 10;console.log(x); + + + +Output:: +/lib/tsc --b /src/app --verbose +[12:04:00 AM] Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +[12:04:00 AM] Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +[12:04:00 AM] Building project '/src/lib/tsconfig.json'... + +[12:04:00 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +[12:04:00 AM] Updating output of project '/src/app/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/app/module.d.ts] file changed its modified time +//// [/src/app/module.d.ts.map] file changed its modified time +//// [/src/app/module.js] +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = void 0; + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + 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 +------------------------------------------------------------------- +>>>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/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = void 0; +>>> 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 = void 0; +>>> 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 = void 0; +>>> 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 +------------------------------------------------------------------- +>>>}); +>>>var myVar = 30; +1 > +2 >^^^^ +3 > ^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^-> +1 > +2 >const +3 > myVar +4 > = +5 > 30 +6 > ; +1 >Emitted(22, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(22, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(22, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(22, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(22, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(22, 16) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":488,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":488,"kind":"text"}]},{"pos":488,"end":714,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":171,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":253,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prepend: (0-488):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-488) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = void 0; + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (488-714) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-171):: ../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/module.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 488, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 0, + "end": 488, + "kind": "text" + } + ] + }, + { + "pos": 488, + "end": 714, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + }, + { + "pos": 171, + "end": 253, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 438 +} + +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents +//// [/src/lib/module.js] +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = void 0; + 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 = void 0; +>>> 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/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = void 0; +>>> 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":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":488,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":171,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +text: (0-488) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = void 0; + 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/module.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 488, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 245 +} + 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 index a936a75a33db4..998937747e5ed 100644 --- 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 @@ -2100,3 +2100,3023 @@ declare const globalConst = 10; "size": 544 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/lib/file1.ts] +export const x = 10;function forlibfile1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +}console.log(x); + + + +Output:: +/lib/tsc --b /src/app --verbose +[12:04:00 AM] Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +[12:04:00 AM] Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +[12:04:00 AM] Building project '/src/lib/tsconfig.json'... + +[12:04:00 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +[12:04:00 AM] Updating output of project '/src/app/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/app/module.d.ts] file changed its modified time +//// [/src/app/module.d.ts.map] file changed its modified time +//// [/src/app/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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + 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]; + } +} +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + 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 = void 0; + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + 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]; + } +} +var appfile4_ar = [20, 30]; +appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false)); +//# 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,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,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,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,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,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE"} + +//// [/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 +------------------------------------------------------------------- +>>>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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { +>>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { +>>> if (ar || !(i in from)) { +>>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); +>>> ar[i] = from[i]; +>>> } +>>> } +>>> return to.concat(ar || Array.prototype.slice.call(from)); +>>>}; +>>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> 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(37, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(37, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(37, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(37, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(37, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(37, 17) Source(1, 19) + SourceIndex(0) +--- +>>>function libfile0Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +1->Emitted(38, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(38, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(38, 24) Source(2, 24) + SourceIndex(0) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(39, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(39, 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(40, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(40, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(40, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(40, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(40, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(40, 49) Source(2, 39) + SourceIndex(0) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(41, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(41, 31) Source(2, 39) + SourceIndex(0) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(43, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(43, 2) Source(2, 44) + SourceIndex(0) +--- +>>>var libfile0_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > libfile0_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(44, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(44, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(44, 16) Source(3, 18) + SourceIndex(0) +4 >Emitted(44, 19) Source(3, 21) + SourceIndex(0) +5 >Emitted(44, 20) Source(3, 22) + SourceIndex(0) +6 >Emitted(44, 22) Source(3, 24) + SourceIndex(0) +7 >Emitted(44, 24) Source(3, 26) + SourceIndex(0) +8 >Emitted(44, 26) Source(3, 28) + SourceIndex(0) +9 >Emitted(44, 27) Source(3, 29) + SourceIndex(0) +10>Emitted(44, 28) Source(3, 30) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^ +7 > ^^^^^^^^^^^ +1-> + > +2 >libfile0Spread +3 > ( +4 > 10 +5 > , ... +6 > libfile0_ar +7 > ); +1->Emitted(45, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(45, 15) Source(4, 15) + SourceIndex(0) +3 >Emitted(45, 45) Source(4, 16) + SourceIndex(0) +4 >Emitted(45, 47) Source(4, 18) + SourceIndex(0) +5 >Emitted(45, 57) Source(4, 23) + SourceIndex(0) +6 >Emitted(45, 68) Source(4, 34) + SourceIndex(0) +7 >Emitted(45, 79) Source(4, 36) + 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 = void 0; +>>> exports.x = 10; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^-> +1 >export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1 >Emitted(50, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(50, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(50, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(50, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(50, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(50, 20) Source(1, 21) + SourceIndex(1) +--- +>>> function forlibfile1Rest() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > function +3 > forlibfile1Rest +1->Emitted(51, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(51, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(51, 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 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(52, 9) Source(2, 1) + SourceIndex(1) +2 >Emitted(52, 13) Source(2, 7) + SourceIndex(1) +3 >Emitted(52, 18) Source(2, 24) + SourceIndex(1) +4 >Emitted(52, 20) Source(2, 26) + SourceIndex(1) +5 >Emitted(52, 21) Source(2, 27) + SourceIndex(1) +6 >Emitted(52, 23) Source(2, 29) + SourceIndex(1) +7 >Emitted(52, 25) Source(2, 31) + SourceIndex(1) +8 >Emitted(52, 27) Source(2, 33) + SourceIndex(1) +9 >Emitted(52, 28) Source(2, 34) + SourceIndex(1) +10>Emitted(52, 30) Source(2, 36) + SourceIndex(1) +11>Emitted(52, 32) Source(2, 38) + SourceIndex(1) +12>Emitted(52, 34) Source(2, 40) + SourceIndex(1) +13>Emitted(52, 36) Source(2, 42) + SourceIndex(1) +14>Emitted(52, 38) Source(2, 44) + SourceIndex(1) +15>Emitted(52, 40) Source(2, 46) + SourceIndex(1) +16>Emitted(52, 42) Source(2, 48) + SourceIndex(1) +17>Emitted(52, 44) Source(2, 9) + SourceIndex(1) +18>Emitted(52, 45) Source(2, 10) + SourceIndex(1) +19>Emitted(52, 52) Source(2, 10) + SourceIndex(1) +20>Emitted(52, 54) Source(2, 15) + SourceIndex(1) +21>Emitted(52, 58) Source(2, 19) + SourceIndex(1) +22>Emitted(52, 72) Source(2, 7) + SourceIndex(1) +23>Emitted(52, 77) Source(2, 21) + SourceIndex(1) +24>Emitted(52, 78) Source(2, 48) + SourceIndex(1) +25>Emitted(52, 79) Source(2, 49) + SourceIndex(1) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(53, 5) Source(3, 1) + SourceIndex(1) +2 >Emitted(53, 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(54, 5) Source(3, 2) + SourceIndex(1) +2 >Emitted(54, 12) Source(3, 9) + SourceIndex(1) +3 >Emitted(54, 13) Source(3, 10) + SourceIndex(1) +4 >Emitted(54, 16) Source(3, 13) + SourceIndex(1) +5 >Emitted(54, 17) Source(3, 14) + SourceIndex(1) +6 >Emitted(54, 26) Source(3, 15) + SourceIndex(1) +7 >Emitted(54, 27) Source(3, 16) + SourceIndex(1) +8 >Emitted(54, 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 = void 0; +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(60, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(60, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(60, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(60, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(60, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(60, 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(62, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(62, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(62, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(62, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(62, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(62, 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 = void 0; +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^-> +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(67, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(67, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(67, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(67, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(67, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(67, 20) Source(1, 21) + SourceIndex(4) +--- +>>> function forappfile3Rest() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >import { x } from "file1"; +2 > function +3 > forappfile3Rest +1->Emitted(68, 5) Source(2, 27) + SourceIndex(4) +2 >Emitted(68, 14) Source(2, 36) + SourceIndex(4) +3 >Emitted(68, 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 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(69, 9) Source(3, 1) + SourceIndex(4) +2 >Emitted(69, 13) Source(3, 7) + SourceIndex(4) +3 >Emitted(69, 18) Source(3, 24) + SourceIndex(4) +4 >Emitted(69, 20) Source(3, 26) + SourceIndex(4) +5 >Emitted(69, 21) Source(3, 27) + SourceIndex(4) +6 >Emitted(69, 23) Source(3, 29) + SourceIndex(4) +7 >Emitted(69, 25) Source(3, 31) + SourceIndex(4) +8 >Emitted(69, 27) Source(3, 33) + SourceIndex(4) +9 >Emitted(69, 28) Source(3, 34) + SourceIndex(4) +10>Emitted(69, 30) Source(3, 36) + SourceIndex(4) +11>Emitted(69, 32) Source(3, 38) + SourceIndex(4) +12>Emitted(69, 34) Source(3, 40) + SourceIndex(4) +13>Emitted(69, 36) Source(3, 42) + SourceIndex(4) +14>Emitted(69, 38) Source(3, 44) + SourceIndex(4) +15>Emitted(69, 40) Source(3, 46) + SourceIndex(4) +16>Emitted(69, 42) Source(3, 48) + SourceIndex(4) +17>Emitted(69, 44) Source(3, 9) + SourceIndex(4) +18>Emitted(69, 45) Source(3, 10) + SourceIndex(4) +19>Emitted(69, 52) Source(3, 10) + SourceIndex(4) +20>Emitted(69, 54) Source(3, 15) + SourceIndex(4) +21>Emitted(69, 58) Source(3, 19) + SourceIndex(4) +22>Emitted(69, 72) Source(3, 7) + SourceIndex(4) +23>Emitted(69, 77) Source(3, 21) + SourceIndex(4) +24>Emitted(69, 78) Source(3, 48) + SourceIndex(4) +25>Emitted(69, 79) Source(3, 49) + SourceIndex(4) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(70, 5) Source(4, 1) + SourceIndex(4) +2 >Emitted(70, 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(72, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(72, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(72, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(72, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(72, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(72, 16) Source(1, 18) + SourceIndex(5) +--- +>>>function appfile4Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > appfile4Spread +1->Emitted(73, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(73, 10) Source(2, 10) + SourceIndex(5) +3 >Emitted(73, 24) Source(2, 24) + SourceIndex(5) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(74, 5) Source(2, 25) + SourceIndex(5) +2 >Emitted(74, 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(75, 10) Source(2, 25) + SourceIndex(5) +2 >Emitted(75, 20) Source(2, 39) + SourceIndex(5) +3 >Emitted(75, 22) Source(2, 25) + SourceIndex(5) +4 >Emitted(75, 43) Source(2, 39) + SourceIndex(5) +5 >Emitted(75, 45) Source(2, 25) + SourceIndex(5) +6 >Emitted(75, 49) Source(2, 39) + SourceIndex(5) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(76, 9) Source(2, 25) + SourceIndex(5) +2 >Emitted(76, 31) Source(2, 39) + SourceIndex(5) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(78, 1) Source(2, 43) + SourceIndex(5) +2 >Emitted(78, 2) Source(2, 44) + SourceIndex(5) +--- +>>>var appfile4_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > appfile4_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(79, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(79, 5) Source(3, 7) + SourceIndex(5) +3 >Emitted(79, 16) Source(3, 18) + SourceIndex(5) +4 >Emitted(79, 19) Source(3, 21) + SourceIndex(5) +5 >Emitted(79, 20) Source(3, 22) + SourceIndex(5) +6 >Emitted(79, 22) Source(3, 24) + SourceIndex(5) +7 >Emitted(79, 24) Source(3, 26) + SourceIndex(5) +8 >Emitted(79, 26) Source(3, 28) + SourceIndex(5) +9 >Emitted(79, 27) Source(3, 29) + SourceIndex(5) +10>Emitted(79, 28) Source(3, 30) + SourceIndex(5) +--- +>>>appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false)); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^ +7 > ^^^^^^^^^^^ +1-> + > +2 >appfile4Spread +3 > ( +4 > 10 +5 > , ... +6 > appfile4_ar +7 > ); +1->Emitted(80, 1) Source(4, 1) + SourceIndex(5) +2 >Emitted(80, 15) Source(4, 15) + SourceIndex(5) +3 >Emitted(80, 45) Source(4, 16) + SourceIndex(5) +4 >Emitted(80, 47) Source(4, 18) + SourceIndex(5) +5 >Emitted(80, 57) Source(4, 23) + SourceIndex(5) +6 >Emitted(80, 68) Source(4, 34) + SourceIndex(5) +7 >Emitted(80, 79) Source(4, 36) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":2257,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1398,"end":2257,"kind":"text"}]},{"pos":2257,"end":2854,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":265,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":265,"kind":"text"}]},{"pos":265,"end":441,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/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-894):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +---------------------------------------------------------------------- +emitHelpers: (896-1396):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (1398-2257):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1398-2257) +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + 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 = void 0; + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (2257-2854) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + 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]; + } +} +var appfile4_ar = [20, 30]; +appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false)); + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-265):: ../lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-265) +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare const libfile0_ar: number[]; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (265-441) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +declare function appfile4Spread(...b: number[]): void; +declare const appfile4_ar: number[]; + +====================================================================== + +//// [/src/app/module.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 894, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 896, + "end": 1396, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 1398, + "end": 2257, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 1398, + "end": 2257, + "kind": "text" + } + ] + }, + { + "pos": 2257, + "end": 2854, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest", + "typescript:read", + "typescript:spreadArray" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 265, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 265, + "kind": "text" + } + ] + }, + { + "pos": 265, + "end": 441, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 743 +} + +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents +//// [/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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + 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]; + } +} +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + 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 = void 0; + 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,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { +>>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { +>>> if (ar || !(i in from)) { +>>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); +>>> ar[i] = from[i]; +>>> } +>>> } +>>> return to.concat(ar || Array.prototype.slice.call(from)); +>>>}; +>>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> 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(37, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(37, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(37, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(37, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(37, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(37, 17) Source(1, 19) + SourceIndex(0) +--- +>>>function libfile0Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +1->Emitted(38, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(38, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(38, 24) Source(2, 24) + SourceIndex(0) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(39, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(39, 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(40, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(40, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(40, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(40, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(40, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(40, 49) Source(2, 39) + SourceIndex(0) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(41, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(41, 31) Source(2, 39) + SourceIndex(0) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(43, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(43, 2) Source(2, 44) + SourceIndex(0) +--- +>>>var libfile0_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > libfile0_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(44, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(44, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(44, 16) Source(3, 18) + SourceIndex(0) +4 >Emitted(44, 19) Source(3, 21) + SourceIndex(0) +5 >Emitted(44, 20) Source(3, 22) + SourceIndex(0) +6 >Emitted(44, 22) Source(3, 24) + SourceIndex(0) +7 >Emitted(44, 24) Source(3, 26) + SourceIndex(0) +8 >Emitted(44, 26) Source(3, 28) + SourceIndex(0) +9 >Emitted(44, 27) Source(3, 29) + SourceIndex(0) +10>Emitted(44, 28) Source(3, 30) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^ +7 > ^^^^^^^^^^^ +1-> + > +2 >libfile0Spread +3 > ( +4 > 10 +5 > , ... +6 > libfile0_ar +7 > ); +1->Emitted(45, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(45, 15) Source(4, 15) + SourceIndex(0) +3 >Emitted(45, 45) Source(4, 16) + SourceIndex(0) +4 >Emitted(45, 47) Source(4, 18) + SourceIndex(0) +5 >Emitted(45, 57) Source(4, 23) + SourceIndex(0) +6 >Emitted(45, 68) Source(4, 34) + SourceIndex(0) +7 >Emitted(45, 79) Source(4, 36) + 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 = void 0; +>>> exports.x = 10; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^-> +1 >export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1 >Emitted(50, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(50, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(50, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(50, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(50, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(50, 20) Source(1, 21) + SourceIndex(1) +--- +>>> function forlibfile1Rest() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > function +3 > forlibfile1Rest +1->Emitted(51, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(51, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(51, 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 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(52, 9) Source(2, 1) + SourceIndex(1) +2 >Emitted(52, 13) Source(2, 7) + SourceIndex(1) +3 >Emitted(52, 18) Source(2, 24) + SourceIndex(1) +4 >Emitted(52, 20) Source(2, 26) + SourceIndex(1) +5 >Emitted(52, 21) Source(2, 27) + SourceIndex(1) +6 >Emitted(52, 23) Source(2, 29) + SourceIndex(1) +7 >Emitted(52, 25) Source(2, 31) + SourceIndex(1) +8 >Emitted(52, 27) Source(2, 33) + SourceIndex(1) +9 >Emitted(52, 28) Source(2, 34) + SourceIndex(1) +10>Emitted(52, 30) Source(2, 36) + SourceIndex(1) +11>Emitted(52, 32) Source(2, 38) + SourceIndex(1) +12>Emitted(52, 34) Source(2, 40) + SourceIndex(1) +13>Emitted(52, 36) Source(2, 42) + SourceIndex(1) +14>Emitted(52, 38) Source(2, 44) + SourceIndex(1) +15>Emitted(52, 40) Source(2, 46) + SourceIndex(1) +16>Emitted(52, 42) Source(2, 48) + SourceIndex(1) +17>Emitted(52, 44) Source(2, 9) + SourceIndex(1) +18>Emitted(52, 45) Source(2, 10) + SourceIndex(1) +19>Emitted(52, 52) Source(2, 10) + SourceIndex(1) +20>Emitted(52, 54) Source(2, 15) + SourceIndex(1) +21>Emitted(52, 58) Source(2, 19) + SourceIndex(1) +22>Emitted(52, 72) Source(2, 7) + SourceIndex(1) +23>Emitted(52, 77) Source(2, 21) + SourceIndex(1) +24>Emitted(52, 78) Source(2, 48) + SourceIndex(1) +25>Emitted(52, 79) Source(2, 49) + SourceIndex(1) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(53, 5) Source(3, 1) + SourceIndex(1) +2 >Emitted(53, 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(54, 5) Source(3, 2) + SourceIndex(1) +2 >Emitted(54, 12) Source(3, 9) + SourceIndex(1) +3 >Emitted(54, 13) Source(3, 10) + SourceIndex(1) +4 >Emitted(54, 16) Source(3, 13) + SourceIndex(1) +5 >Emitted(54, 17) Source(3, 14) + SourceIndex(1) +6 >Emitted(54, 26) Source(3, 15) + SourceIndex(1) +7 >Emitted(54, 27) Source(3, 16) + SourceIndex(1) +8 >Emitted(54, 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 = void 0; +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(60, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(60, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(60, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(60, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(60, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(60, 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(62, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(62, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(62, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(62, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(62, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(62, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":2257,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray","typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":265,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/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-894):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +---------------------------------------------------------------------- +emitHelpers: (896-1396):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +text: (1398-2257) +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + 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 = void 0; + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (0-265) +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare const libfile0_ar: number[]; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + +//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 894, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 896, + "end": 1396, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 1398, + "end": 2257, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:read", + "typescript:spreadArray", + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 265, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 544 +} + + + +Change:: incremental-headers-change-without-dts-changes +Input:: +//// [/src/lib/file1.ts] +export const x = 10;function forlibfile1Rest() { }console.log(x); + + + +Output:: +/lib/tsc --b /src/app --verbose +[12:07:00 AM] Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +[12:07:00 AM] Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +[12:07:00 AM] Building project '/src/lib/tsconfig.json'... + +[12:07:00 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +[12:07:00 AM] Updating output of project '/src/app/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/app/module.d.ts] file changed its modified time +//// [/src/app/module.d.ts.map] file changed its modified time +//// [/src/app/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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + 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]; + } +} +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + exports.x = 10; + function forlibfile1Rest() { } + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = void 0; + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + 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]; + } +} +var appfile4_ar = [20, 30]; +appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false)); +//# 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,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICApD,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,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,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE"} + +//// [/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 +------------------------------------------------------------------- +>>>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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { +>>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { +>>> if (ar || !(i in from)) { +>>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); +>>> ar[i] = from[i]; +>>> } +>>> } +>>> return to.concat(ar || Array.prototype.slice.call(from)); +>>>}; +>>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> 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(37, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(37, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(37, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(37, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(37, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(37, 17) Source(1, 19) + SourceIndex(0) +--- +>>>function libfile0Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +1->Emitted(38, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(38, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(38, 24) Source(2, 24) + SourceIndex(0) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(39, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(39, 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(40, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(40, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(40, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(40, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(40, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(40, 49) Source(2, 39) + SourceIndex(0) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(41, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(41, 31) Source(2, 39) + SourceIndex(0) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(43, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(43, 2) Source(2, 44) + SourceIndex(0) +--- +>>>var libfile0_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > libfile0_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(44, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(44, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(44, 16) Source(3, 18) + SourceIndex(0) +4 >Emitted(44, 19) Source(3, 21) + SourceIndex(0) +5 >Emitted(44, 20) Source(3, 22) + SourceIndex(0) +6 >Emitted(44, 22) Source(3, 24) + SourceIndex(0) +7 >Emitted(44, 24) Source(3, 26) + SourceIndex(0) +8 >Emitted(44, 26) Source(3, 28) + SourceIndex(0) +9 >Emitted(44, 27) Source(3, 29) + SourceIndex(0) +10>Emitted(44, 28) Source(3, 30) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^ +7 > ^^^^^^^^^^^ +1-> + > +2 >libfile0Spread +3 > ( +4 > 10 +5 > , ... +6 > libfile0_ar +7 > ); +1->Emitted(45, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(45, 15) Source(4, 15) + SourceIndex(0) +3 >Emitted(45, 45) Source(4, 16) + SourceIndex(0) +4 >Emitted(45, 47) Source(4, 18) + SourceIndex(0) +5 >Emitted(45, 57) Source(4, 23) + SourceIndex(0) +6 >Emitted(45, 68) Source(4, 34) + SourceIndex(0) +7 >Emitted(45, 79) Source(4, 36) + 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 = void 0; +>>> exports.x = 10; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^-> +1 >export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1 >Emitted(50, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(50, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(50, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(50, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(50, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(50, 20) Source(1, 21) + SourceIndex(1) +--- +>>> function forlibfile1Rest() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> +2 > function +3 > forlibfile1Rest +4 > () { +5 > } +1->Emitted(51, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(51, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(51, 29) Source(1, 45) + SourceIndex(1) +4 >Emitted(51, 34) Source(1, 50) + SourceIndex(1) +5 >Emitted(51, 35) Source(1, 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(52, 5) Source(1, 51) + SourceIndex(1) +2 >Emitted(52, 12) Source(1, 58) + SourceIndex(1) +3 >Emitted(52, 13) Source(1, 59) + SourceIndex(1) +4 >Emitted(52, 16) Source(1, 62) + SourceIndex(1) +5 >Emitted(52, 17) Source(1, 63) + SourceIndex(1) +6 >Emitted(52, 26) Source(1, 64) + SourceIndex(1) +7 >Emitted(52, 27) Source(1, 65) + SourceIndex(1) +8 >Emitted(52, 28) Source(1, 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 = void 0; +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(58, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(58, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(58, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(58, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(58, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(58, 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(60, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(60, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(60, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(60, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(60, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(60, 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 = void 0; +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^-> +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(65, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(65, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(65, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(65, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(65, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(65, 20) Source(1, 21) + SourceIndex(4) +--- +>>> function forappfile3Rest() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >import { x } from "file1"; +2 > function +3 > forappfile3Rest +1->Emitted(66, 5) Source(2, 27) + SourceIndex(4) +2 >Emitted(66, 14) Source(2, 36) + SourceIndex(4) +3 >Emitted(66, 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 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(67, 9) Source(3, 1) + SourceIndex(4) +2 >Emitted(67, 13) Source(3, 7) + SourceIndex(4) +3 >Emitted(67, 18) Source(3, 24) + SourceIndex(4) +4 >Emitted(67, 20) Source(3, 26) + SourceIndex(4) +5 >Emitted(67, 21) Source(3, 27) + SourceIndex(4) +6 >Emitted(67, 23) Source(3, 29) + SourceIndex(4) +7 >Emitted(67, 25) Source(3, 31) + SourceIndex(4) +8 >Emitted(67, 27) Source(3, 33) + SourceIndex(4) +9 >Emitted(67, 28) Source(3, 34) + SourceIndex(4) +10>Emitted(67, 30) Source(3, 36) + SourceIndex(4) +11>Emitted(67, 32) Source(3, 38) + SourceIndex(4) +12>Emitted(67, 34) Source(3, 40) + SourceIndex(4) +13>Emitted(67, 36) Source(3, 42) + SourceIndex(4) +14>Emitted(67, 38) Source(3, 44) + SourceIndex(4) +15>Emitted(67, 40) Source(3, 46) + SourceIndex(4) +16>Emitted(67, 42) Source(3, 48) + SourceIndex(4) +17>Emitted(67, 44) Source(3, 9) + SourceIndex(4) +18>Emitted(67, 45) Source(3, 10) + SourceIndex(4) +19>Emitted(67, 52) Source(3, 10) + SourceIndex(4) +20>Emitted(67, 54) Source(3, 15) + SourceIndex(4) +21>Emitted(67, 58) Source(3, 19) + SourceIndex(4) +22>Emitted(67, 72) Source(3, 7) + SourceIndex(4) +23>Emitted(67, 77) Source(3, 21) + SourceIndex(4) +24>Emitted(67, 78) Source(3, 48) + SourceIndex(4) +25>Emitted(67, 79) Source(3, 49) + SourceIndex(4) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(68, 5) Source(4, 1) + SourceIndex(4) +2 >Emitted(68, 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(70, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(70, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(70, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(70, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(70, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(70, 16) Source(1, 18) + SourceIndex(5) +--- +>>>function appfile4Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > appfile4Spread +1->Emitted(71, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(71, 10) Source(2, 10) + SourceIndex(5) +3 >Emitted(71, 24) Source(2, 24) + SourceIndex(5) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(72, 5) Source(2, 25) + SourceIndex(5) +2 >Emitted(72, 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(73, 10) Source(2, 25) + SourceIndex(5) +2 >Emitted(73, 20) Source(2, 39) + SourceIndex(5) +3 >Emitted(73, 22) Source(2, 25) + SourceIndex(5) +4 >Emitted(73, 43) Source(2, 39) + SourceIndex(5) +5 >Emitted(73, 45) Source(2, 25) + SourceIndex(5) +6 >Emitted(73, 49) Source(2, 39) + SourceIndex(5) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(74, 9) Source(2, 25) + SourceIndex(5) +2 >Emitted(74, 31) Source(2, 39) + SourceIndex(5) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(76, 1) Source(2, 43) + SourceIndex(5) +2 >Emitted(76, 2) Source(2, 44) + SourceIndex(5) +--- +>>>var appfile4_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > appfile4_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(77, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(77, 5) Source(3, 7) + SourceIndex(5) +3 >Emitted(77, 16) Source(3, 18) + SourceIndex(5) +4 >Emitted(77, 19) Source(3, 21) + SourceIndex(5) +5 >Emitted(77, 20) Source(3, 22) + SourceIndex(5) +6 >Emitted(77, 22) Source(3, 24) + SourceIndex(5) +7 >Emitted(77, 24) Source(3, 26) + SourceIndex(5) +8 >Emitted(77, 26) Source(3, 28) + SourceIndex(5) +9 >Emitted(77, 27) Source(3, 29) + SourceIndex(5) +10>Emitted(77, 28) Source(3, 30) + SourceIndex(5) +--- +>>>appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false)); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^ +7 > ^^^^^^^^^^^ +1-> + > +2 >appfile4Spread +3 > ( +4 > 10 +5 > , ... +6 > appfile4_ar +7 > ); +1->Emitted(78, 1) Source(4, 1) + SourceIndex(5) +2 >Emitted(78, 15) Source(4, 15) + SourceIndex(5) +3 >Emitted(78, 45) Source(4, 16) + SourceIndex(5) +4 >Emitted(78, 47) Source(4, 18) + SourceIndex(5) +5 >Emitted(78, 57) Source(4, 23) + SourceIndex(5) +6 >Emitted(78, 68) Source(4, 34) + SourceIndex(5) +7 >Emitted(78, 79) Source(4, 36) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":2172,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":1398,"end":2172,"kind":"text"}]},{"pos":2172,"end":2769,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":265,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":265,"kind":"text"}]},{"pos":265,"end":441,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/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-894):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +---------------------------------------------------------------------- +emitHelpers: (896-1396):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (1398-2172):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1398-2172) +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + exports.x = 10; + function forlibfile1Rest() { } + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = void 0; + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (2172-2769) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + 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]; + } +} +var appfile4_ar = [20, 30]; +appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar), false)); + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-265):: ../lib/module.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-265) +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare const libfile0_ar: number[]; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +---------------------------------------------------------------------- +text: (265-441) +declare module "file3" { + export const z = 30; +} +declare const myVar = 30; +declare function appfile4Spread(...b: number[]): void; +declare const appfile4_ar: number[]; + +====================================================================== + +//// [/src/app/module.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 894, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 896, + "end": 1396, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 1398, + "end": 2172, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 1398, + "end": 2172, + "kind": "text" + } + ] + }, + { + "pos": 2172, + "end": 2769, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest", + "typescript:read", + "typescript:spreadArray" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 265, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 265, + "kind": "text" + } + ] + }, + { + "pos": 265, + "end": 441, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 743 +} + +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents +//// [/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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + exports.x = 10; + function forlibfile1Rest() { } + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = void 0; + 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,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,WAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICApD,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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { +>>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { +>>> if (ar || !(i in from)) { +>>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); +>>> ar[i] = from[i]; +>>> } +>>> } +>>> return to.concat(ar || Array.prototype.slice.call(from)); +>>>}; +>>>var myGlob = 20; +1 > +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1 >Emitted(26, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(26, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(26, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(26, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(26, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(26, 17) Source(1, 19) + SourceIndex(0) +--- +>>>function libfile0Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > libfile0Spread +1->Emitted(27, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(27, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(27, 24) Source(2, 24) + SourceIndex(0) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(28, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(28, 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(29, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(29, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(29, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(29, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(29, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(29, 49) Source(2, 39) + SourceIndex(0) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(30, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(30, 31) Source(2, 39) + SourceIndex(0) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(32, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(32, 2) Source(2, 44) + SourceIndex(0) +--- +>>>var libfile0_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > libfile0_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(33, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(33, 16) Source(3, 18) + SourceIndex(0) +4 >Emitted(33, 19) Source(3, 21) + SourceIndex(0) +5 >Emitted(33, 20) Source(3, 22) + SourceIndex(0) +6 >Emitted(33, 22) Source(3, 24) + SourceIndex(0) +7 >Emitted(33, 24) Source(3, 26) + SourceIndex(0) +8 >Emitted(33, 26) Source(3, 28) + SourceIndex(0) +9 >Emitted(33, 27) Source(3, 29) + SourceIndex(0) +10>Emitted(33, 28) Source(3, 30) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^ +7 > ^^^^^^^^^^^ +1-> + > +2 >libfile0Spread +3 > ( +4 > 10 +5 > , ... +6 > libfile0_ar +7 > ); +1->Emitted(34, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(34, 15) Source(4, 15) + SourceIndex(0) +3 >Emitted(34, 45) Source(4, 16) + SourceIndex(0) +4 >Emitted(34, 47) Source(4, 18) + SourceIndex(0) +5 >Emitted(34, 57) Source(4, 23) + SourceIndex(0) +6 >Emitted(34, 68) Source(4, 34) + SourceIndex(0) +7 >Emitted(34, 79) Source(4, 36) + 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 = void 0; +>>> exports.x = 10; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^-> +1 >export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1 >Emitted(39, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(39, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(39, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(39, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(39, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(39, 20) Source(1, 21) + SourceIndex(1) +--- +>>> function forlibfile1Rest() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> +2 > function +3 > forlibfile1Rest +4 > () { +5 > } +1->Emitted(40, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(40, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(40, 29) Source(1, 45) + SourceIndex(1) +4 >Emitted(40, 34) Source(1, 50) + SourceIndex(1) +5 >Emitted(40, 35) Source(1, 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(41, 5) Source(1, 51) + SourceIndex(1) +2 >Emitted(41, 12) Source(1, 58) + SourceIndex(1) +3 >Emitted(41, 13) Source(1, 59) + SourceIndex(1) +4 >Emitted(41, 16) Source(1, 62) + SourceIndex(1) +5 >Emitted(41, 17) Source(1, 63) + SourceIndex(1) +6 >Emitted(41, 26) Source(1, 64) + SourceIndex(1) +7 >Emitted(41, 27) Source(1, 65) + SourceIndex(1) +8 >Emitted(41, 28) Source(1, 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 = void 0; +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(47, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(47, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(47, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(47, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(47, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(47, 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(49, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(49, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(49, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(49, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(49, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(49, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1670,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":265,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/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-894):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +---------------------------------------------------------------------- +text: (896-1670) +var myGlob = 20; +function libfile0Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar), false)); +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + exports.x = 10; + function forlibfile1Rest() { } + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = void 0; + exports.y = 20; +}); +var globalConst = 10; + +====================================================================== +====================================================================== +File:: /src/lib/module.d.ts +---------------------------------------------------------------------- +text: (0-265) +declare const myGlob = 20; +declare function libfile0Spread(...b: number[]): void; +declare const libfile0_ar: number[]; +declare module "file1" { + export const x = 10; +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + +//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 894, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 896, + "end": 1670, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:read", + "typescript:spreadArray" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 265, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 456 +} + 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 index b466088d5d4ba..bd0d249a912af 100644 --- 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 @@ -1211,3 +1211,2108 @@ declare const globalConst = 10; "size": 763 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/lib/file1.ts] +export const x = 10;console.log(x); + + + +Output:: +/lib/tsc --b /src/app --verbose +[12:04:00 AM] Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +[12:04:00 AM] Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +[12:04:00 AM] Building project '/src/lib/tsconfig.json'... + +[12:04:00 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +[12:04:00 AM] Updating output of project '/src/app/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/app/module.d.ts] file changed its modified time +//// [/src/app/module.d.ts.map] file changed its modified time +//// [/src/app/module.js] +"use strict"; +"myPrologue"; +"myPrologue3"; +"myPrologue2"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + 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 = void 0; + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + 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/global.ts","file4.ts","../lib/file1.ts","../lib/file2.ts","file3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IGDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,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/global.ts,file4.ts,../lib/file1.ts,../lib/file2.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/global.ts +------------------------------------------------------------------- +>>>"myPrologue3"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> +2 >"myPrologue3" +3 > +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 15) Source(1, 14) + 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 = void 0; +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^-> +1->export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(10, 5) Source(1, 14) + SourceIndex(3) +2 >Emitted(10, 13) Source(1, 14) + SourceIndex(3) +3 >Emitted(10, 14) Source(1, 15) + SourceIndex(3) +4 >Emitted(10, 17) Source(1, 18) + SourceIndex(3) +5 >Emitted(10, 19) Source(1, 20) + SourceIndex(3) +6 >Emitted(10, 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(11, 5) Source(1, 21) + SourceIndex(3) +2 >Emitted(11, 12) Source(1, 28) + SourceIndex(3) +3 >Emitted(11, 13) Source(1, 29) + SourceIndex(3) +4 >Emitted(11, 16) Source(1, 32) + SourceIndex(3) +5 >Emitted(11, 17) Source(1, 33) + SourceIndex(3) +6 >Emitted(11, 26) Source(1, 34) + SourceIndex(3) +7 >Emitted(11, 27) Source(1, 35) + SourceIndex(3) +8 >Emitted(11, 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(15, 5) Source(1, 1) + SourceIndex(4) +2 >Emitted(15, 21) Source(1, 17) + SourceIndex(4) +3 >Emitted(15, 22) Source(1, 17) + SourceIndex(4) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = void 0; +>>> exports.y = 20; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > y +4 > = +5 > 20 +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:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >"myPrologue3" + > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(20, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(20, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(20, 16) Source(2, 18) + SourceIndex(1) +4 >Emitted(20, 19) Source(2, 21) + SourceIndex(1) +5 >Emitted(20, 21) Source(2, 23) + SourceIndex(1) +6 >Emitted(20, 22) Source(2, 24) + SourceIndex(1) +--- +------------------------------------------------------------------- +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(23, 5) Source(1, 1) + SourceIndex(5) +2 >Emitted(23, 17) Source(1, 13) + SourceIndex(5) +3 >Emitted(23, 18) Source(1, 13) + SourceIndex(5) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = void 0; +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(26, 5) Source(2, 14) + SourceIndex(5) +2 >Emitted(26, 13) Source(2, 14) + SourceIndex(5) +3 >Emitted(26, 14) Source(2, 15) + SourceIndex(5) +4 >Emitted(26, 17) Source(2, 18) + SourceIndex(5) +5 >Emitted(26, 19) Source(2, 20) + SourceIndex(5) +6 >Emitted(26, 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(28, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(28, 5) Source(2, 7) + SourceIndex(2) +3 >Emitted(28, 10) Source(2, 12) + SourceIndex(2) +4 >Emitted(28, 13) Source(2, 15) + SourceIndex(2) +5 >Emitted(28, 15) Source(2, 17) + SourceIndex(2) +6 >Emitted(28, 16) Source(2, 18) + SourceIndex(2) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue2"},{"pos":62,"end":573,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":62,"end":573,"kind":"text"}]},{"pos":573,"end":818,"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":"../lib/module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":253,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/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-44):: myPrologue3 +"myPrologue3"; +---------------------------------------------------------------------- +prologue: (46-60):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prepend: (62-573):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (62-573) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + 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 = void 0; + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (573-818) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-171):: ../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/module.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 44, + "kind": "prologue", + "data": "myPrologue3" + }, + { + "pos": 46, + "end": 60, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 62, + "end": 573, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 62, + "end": 573, + "kind": "text" + } + ] + }, + { + "pos": 573, + "end": 818, + "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": "../lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + }, + { + "pos": 171, + "end": 253, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 896 +} + +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents +//// [/src/lib/module.js] +"use strict"; +"myPrologue"; +"myPrologue3"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + 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 = void 0; + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","global.ts","file1.ts","file2.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;;;IEDL,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICAnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,global.ts,file1.ts,file2.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) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>"myPrologue3"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^-> +1-> +2 >"myPrologue3" +3 > +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 15) Source(1, 14) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1-> +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue" + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1->Emitted(4, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(4, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(4, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(4, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(4, 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 = void 0; +>>> 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(2) +2 >Emitted(9, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(9, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(9, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(9, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(9, 20) Source(1, 21) + SourceIndex(2) +--- +>>> 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(2) +2 >Emitted(10, 12) Source(1, 28) + SourceIndex(2) +3 >Emitted(10, 13) Source(1, 29) + SourceIndex(2) +4 >Emitted(10, 16) Source(1, 32) + SourceIndex(2) +5 >Emitted(10, 17) Source(1, 33) + SourceIndex(2) +6 >Emitted(10, 26) Source(1, 34) + SourceIndex(2) +7 >Emitted(10, 27) Source(1, 35) + SourceIndex(2) +8 >Emitted(10, 28) Source(1, 36) + SourceIndex(2) +--- +------------------------------------------------------------------- +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(14, 5) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 21) Source(1, 17) + SourceIndex(3) +3 >Emitted(14, 22) Source(1, 17) + SourceIndex(3) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = void 0; +>>> 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(3) +2 >Emitted(17, 13) Source(2, 14) + SourceIndex(3) +3 >Emitted(17, 14) Source(2, 15) + SourceIndex(3) +4 >Emitted(17, 17) Source(2, 18) + SourceIndex(3) +5 >Emitted(17, 19) Source(2, 20) + SourceIndex(3) +6 >Emitted(17, 20) Source(2, 21) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 >"myPrologue3" + > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(19, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(19, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(19, 16) Source(2, 18) + SourceIndex(1) +4 >Emitted(19, 19) Source(2, 21) + SourceIndex(1) +5 >Emitted(19, 21) Source(2, 23) + SourceIndex(1) +6 >Emitted(19, 22) Source(2, 24) + SourceIndex(1) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":557,"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"}}]},{"file":3,"text":"\"myPrologue3\"","directives":[{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue3"}}]}]}},"dts":{"sections":[{"pos":0,"end":171,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-44):: myPrologue3 +"myPrologue3"; +---------------------------------------------------------------------- +text: (46-557) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + 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 = void 0; + 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/module.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 44, + "kind": "prologue", + "data": "myPrologue3" + }, + { + "pos": 46, + "end": 557, + "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" + } + } + ] + }, + { + "file": 3, + "text": "\"myPrologue3\"", + "directives": [ + { + "pos": 0, + "end": 13, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue3" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 763 +} + + + +Change:: incremental-headers-change-without-dts-changes +Input:: +//// [/src/lib/file1.ts] +"myPrologue5" +export const x = 10;console.log(x); + + + +Output:: +/lib/tsc --b /src/app --verbose +[12:07:00 AM] Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +[12:07:00 AM] Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +[12:07:00 AM] Building project '/src/lib/tsconfig.json'... + +[12:07:00 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +[12:07:00 AM] Updating output of project '/src/app/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/app/module.d.ts] file changed its modified time +//// [/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;;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 >"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 >"myPrologue3" + > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(8, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(8, 9) Source(2, 1) + SourceIndex(3) +3 >Emitted(8, 15) Source(2, 7) + SourceIndex(3) +4 >Emitted(8, 26) Source(2, 18) + SourceIndex(3) +5 >Emitted(8, 31) Source(2, 23) + SourceIndex(3) +6 >Emitted(8, 32) Source(2, 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"; +"myPrologue3"; +"myPrologue2"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue5"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + 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 = void 0; + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + 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/global.ts","file4.ts","../lib/file1.ts","../lib/file2.ts","file3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ACAb,aAAa,CAAC;AFCd,IAAM,MAAM,GAAG,EAAE,CAAC;;;IGDlB,aAAa,CAAA;;;IACA,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICDnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AHApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;IIDvB,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/global.ts,file4.ts,../lib/file1.ts,../lib/file2.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/global.ts +------------------------------------------------------------------- +>>>"myPrologue3"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> +2 >"myPrologue3" +3 > +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 15) Source(1, 14) + 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"; +>>> "myPrologue5"; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > "myPrologue5" +3 > +1->Emitted(8, 5) Source(1, 1) + SourceIndex(3) +2 >Emitted(8, 18) Source(1, 14) + SourceIndex(3) +3 >Emitted(8, 19) Source(1, 14) + SourceIndex(3) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = void 0; +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^-> +1-> + >export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(11, 5) Source(2, 14) + SourceIndex(3) +2 >Emitted(11, 13) Source(2, 14) + SourceIndex(3) +3 >Emitted(11, 14) Source(2, 15) + SourceIndex(3) +4 >Emitted(11, 17) Source(2, 18) + SourceIndex(3) +5 >Emitted(11, 19) Source(2, 20) + SourceIndex(3) +6 >Emitted(11, 20) Source(2, 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(12, 5) Source(2, 21) + SourceIndex(3) +2 >Emitted(12, 12) Source(2, 28) + SourceIndex(3) +3 >Emitted(12, 13) Source(2, 29) + SourceIndex(3) +4 >Emitted(12, 16) Source(2, 32) + SourceIndex(3) +5 >Emitted(12, 17) Source(2, 33) + SourceIndex(3) +6 >Emitted(12, 26) Source(2, 34) + SourceIndex(3) +7 >Emitted(12, 27) Source(2, 35) + SourceIndex(3) +8 >Emitted(12, 28) Source(2, 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(16, 5) Source(1, 1) + SourceIndex(4) +2 >Emitted(16, 21) Source(1, 17) + SourceIndex(4) +3 >Emitted(16, 22) Source(1, 17) + SourceIndex(4) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = void 0; +>>> exports.y = 20; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > y +4 > = +5 > 20 +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:../lib/global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >"myPrologue3" + > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(21, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(21, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(21, 16) Source(2, 18) + SourceIndex(1) +4 >Emitted(21, 19) Source(2, 21) + SourceIndex(1) +5 >Emitted(21, 21) Source(2, 23) + SourceIndex(1) +6 >Emitted(21, 22) Source(2, 24) + SourceIndex(1) +--- +------------------------------------------------------------------- +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(24, 5) Source(1, 1) + SourceIndex(5) +2 >Emitted(24, 17) Source(1, 13) + SourceIndex(5) +3 >Emitted(24, 18) Source(1, 13) + SourceIndex(5) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.z = void 0; +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(27, 5) Source(2, 14) + SourceIndex(5) +2 >Emitted(27, 13) Source(2, 14) + SourceIndex(5) +3 >Emitted(27, 14) Source(2, 15) + SourceIndex(5) +4 >Emitted(27, 17) Source(2, 18) + SourceIndex(5) +5 >Emitted(27, 19) Source(2, 20) + SourceIndex(5) +6 >Emitted(27, 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(29, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(29, 5) Source(2, 7) + SourceIndex(2) +3 >Emitted(29, 10) Source(2, 12) + SourceIndex(2) +4 >Emitted(29, 13) Source(2, 15) + SourceIndex(2) +5 >Emitted(29, 15) Source(2, 17) + SourceIndex(2) +6 >Emitted(29, 16) Source(2, 18) + SourceIndex(2) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue2"},{"pos":62,"end":593,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":62,"end":593,"kind":"text"}]},{"pos":593,"end":838,"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":"../lib/module.d.ts","texts":[{"pos":0,"end":171,"kind":"text"}]},{"pos":171,"end":253,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/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-44):: myPrologue3 +"myPrologue3"; +---------------------------------------------------------------------- +prologue: (46-60):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prepend: (62-593):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (62-593) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue5"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + 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 = void 0; + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (593-838) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-171):: ../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/module.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 44, + "kind": "prologue", + "data": "myPrologue3" + }, + { + "pos": 46, + "end": 60, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 62, + "end": 593, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 62, + "end": 593, + "kind": "text" + } + ] + }, + { + "pos": 593, + "end": 838, + "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": "../lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + }, + { + "pos": 171, + "end": 253, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 896 +} + +//// [/src/lib/module.d.ts] file written with same contents +//// [/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;;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 >"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 >"myPrologue3" + > +2 > +3 > const +4 > globalConst +5 > = 10 +6 > ; +1 >Emitted(8, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(8, 9) Source(2, 1) + SourceIndex(3) +3 >Emitted(8, 15) Source(2, 7) + SourceIndex(3) +4 >Emitted(8, 26) Source(2, 18) + SourceIndex(3) +5 >Emitted(8, 31) Source(2, 23) + SourceIndex(3) +6 >Emitted(8, 32) Source(2, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.d.ts.map + +//// [/src/lib/module.js] +"use strict"; +"myPrologue"; +"myPrologue3"; +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue5"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + 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 = void 0; + exports.y = 20; +}); +var globalConst = 10; +//# sourceMappingURL=module.js.map + +//// [/src/lib/module.js.map] +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","global.ts","file1.ts","file2.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAA;ADCb,IAAM,MAAM,GAAG,EAAE,CAAC;;;IEDlB,aAAa,CAAA;;;IACA,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;ICDnC,gBAAgB,CAAA;;;IACH,QAAA,CAAC,GAAG,EAAE,CAAC;;AFApB,IAAM,WAAW,GAAG,EAAE,CAAC"} + +//// [/src/lib/module.js.map.baseline.txt] +=================================================================== +JsFile: module.js +mapUrl: module.js.map +sourceRoot: +sources: file0.ts,global.ts,file1.ts,file2.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) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>"myPrologue3"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^-> +1-> +2 >"myPrologue3" +3 > +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 15) Source(1, 14) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:file0.ts +------------------------------------------------------------------- +>>>var myGlob = 20; +1-> +2 >^^^^ +3 > ^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue" + > +2 >const +3 > myGlob +4 > = +5 > 20 +6 > ; +1->Emitted(4, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(2, 7) + SourceIndex(0) +3 >Emitted(4, 11) Source(2, 13) + SourceIndex(0) +4 >Emitted(4, 14) Source(2, 16) + SourceIndex(0) +5 >Emitted(4, 16) Source(2, 18) + SourceIndex(0) +6 >Emitted(4, 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(7, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) +3 >Emitted(7, 19) Source(1, 14) + SourceIndex(2) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = void 0; +>>> exports.x = 10; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^-> +1-> + >export const +2 > +3 > x +4 > = +5 > 10 +6 > ; +1->Emitted(10, 5) Source(2, 14) + SourceIndex(2) +2 >Emitted(10, 13) Source(2, 14) + SourceIndex(2) +3 >Emitted(10, 14) Source(2, 15) + SourceIndex(2) +4 >Emitted(10, 17) Source(2, 18) + SourceIndex(2) +5 >Emitted(10, 19) Source(2, 20) + SourceIndex(2) +6 >Emitted(10, 20) Source(2, 21) + SourceIndex(2) +--- +>>> 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(11, 5) Source(2, 21) + SourceIndex(2) +2 >Emitted(11, 12) Source(2, 28) + SourceIndex(2) +3 >Emitted(11, 13) Source(2, 29) + SourceIndex(2) +4 >Emitted(11, 16) Source(2, 32) + SourceIndex(2) +5 >Emitted(11, 17) Source(2, 33) + SourceIndex(2) +6 >Emitted(11, 26) Source(2, 34) + SourceIndex(2) +7 >Emitted(11, 27) Source(2, 35) + SourceIndex(2) +8 >Emitted(11, 28) Source(2, 36) + SourceIndex(2) +--- +------------------------------------------------------------------- +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(15, 5) Source(1, 1) + SourceIndex(3) +2 >Emitted(15, 21) Source(1, 17) + SourceIndex(3) +3 >Emitted(15, 22) Source(1, 17) + SourceIndex(3) +--- +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = void 0; +>>> exports.y = 20; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1-> + >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1->Emitted(18, 5) Source(2, 14) + SourceIndex(3) +2 >Emitted(18, 13) Source(2, 14) + SourceIndex(3) +3 >Emitted(18, 14) Source(2, 15) + SourceIndex(3) +4 >Emitted(18, 17) Source(2, 18) + SourceIndex(3) +5 >Emitted(18, 19) Source(2, 20) + SourceIndex(3) +6 >Emitted(18, 20) Source(2, 21) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/lib/module.js +sourceFile:global.ts +------------------------------------------------------------------- +>>>}); +>>>var globalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^-> +1 >"myPrologue3" + > +2 >const +3 > globalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(20, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(20, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(20, 16) Source(2, 18) + SourceIndex(1) +4 >Emitted(20, 19) Source(2, 21) + SourceIndex(1) +5 >Emitted(20, 21) Source(2, 23) + SourceIndex(1) +6 >Emitted(20, 22) Source(2, 24) + SourceIndex(1) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue3"},{"pos":46,"end":577,"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"}}]},{"file":3,"text":"\"myPrologue3\"","directives":[{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue3"}}]}]}},"dts":{"sections":[{"pos":0,"end":171,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-44):: myPrologue3 +"myPrologue3"; +---------------------------------------------------------------------- +text: (46-577) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + "myPrologue5"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + 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 = void 0; + 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/module.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 44, + "kind": "prologue", + "data": "myPrologue3" + }, + { + "pos": 46, + "end": 577, + "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" + } + } + ] + }, + { + "file": 3, + "text": "\"myPrologue3\"", + "directives": [ + { + "pos": 0, + "end": 13, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue3" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 171, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 763 +} + 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 index b553d5d43a0c1..db0ff719b6617 100644 --- 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 @@ -946,3 +946,628 @@ declare const globalConst = 10; "size": 247 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/lib/file1.ts] +#!someshebang lib file1 +export const x = 10;console.log(x); + + + +Output:: +/lib/tsc --b /src/app --verbose +[12:04:00 AM] Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +[12:04:00 AM] Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +[12:04:00 AM] Building project '/src/lib/tsconfig.json'... + +[12:04:00 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +[12:04:00 AM] Updating output of project '/src/app/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/app/module.d.ts] file changed its modified time +//// [/src/app/module.d.ts.map] file changed its modified time +//// [/src/app/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 = void 0; + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = void 0; + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + 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 +>>>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/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = void 0; +>>> 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 = void 0; +>>> 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 = void 0; +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->#!someshebang app file3 + >export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(21, 5) Source(2, 14) + SourceIndex(4) +2 >Emitted(21, 13) Source(2, 14) + SourceIndex(4) +3 >Emitted(21, 14) Source(2, 15) + SourceIndex(4) +4 >Emitted(21, 17) Source(2, 18) + SourceIndex(4) +5 >Emitted(21, 19) Source(2, 20) + SourceIndex(4) +6 >Emitted(21, 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(23, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(23, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(23, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(23, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(23, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(23, 16) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":25,"end":513,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":25,"end":513,"kind":"text"}]},{"pos":513,"end":739,"kind":"text"}]},"dts":{"sections":[{"pos":25,"end":196,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":25,"end":196,"kind":"text"}]},{"pos":196,"end":278,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prepend: (25-513):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (25-513) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = void 0; + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (513-739) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (25-196):: ../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/app/module.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 25, + "end": 513, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 25, + "end": 513, + "kind": "text" + } + ] + }, + { + "pos": 513, + "end": 739, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 25, + "end": 196, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 25, + "end": 196, + "kind": "text" + } + ] + }, + { + "pos": 196, + "end": 278, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 442 +} + +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents +//// [/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 = void 0; + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = void 0; + 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 = void 0; +>>> 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/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = void 0; +>>> 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/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":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":25,"end":513,"kind":"text"}]},"dts":{"sections":[{"pos":25,"end":196,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +text: (25-513) +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = void 0; + 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; + +====================================================================== + +//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 25, + "end": 513, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 25, + "end": 196, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 247 +} + diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/stripInternal.js index 1f7600f97e897..9497ab0218c22 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/stripInternal.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/stripInternal.js @@ -4827,3 +4827,8579 @@ declare const globalConst = 10; "size": 515 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/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); + + + +Output:: +/lib/tsc --b /src/app --verbose +[12:04:00 AM] Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +[12:04:00 AM] Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +[12:04:00 AM] Building project '/src/lib/tsconfig.json'... + +[12:04:00 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +[12:04:00 AM] Updating output of project '/src/app/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/app/module.d.ts] file changed its modified time +//// [/src/app/module.d.ts.map] file changed its modified time +//// [/src/app/module.js] +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; + 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: false, + 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 = void 0; + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + 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 +------------------------------------------------------------------- +>>>/*@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/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; +>>> 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: false, +>>> 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 = void 0; +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(103, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(103, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(103, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(103, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(103, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(103, 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(105, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(105, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(105, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(105, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(105, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(105, 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 = void 0; +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(110, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(110, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(110, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(110, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(110, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(110, 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(112, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(112, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(112, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(112, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(112, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(112, 16) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4411,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4411,"kind":"text"}]},{"pos":4411,"end":4637,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":217,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":217,"kind":"text"}]},{"pos":217,"end":299,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prepend: (0-4411):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-4411) +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; + 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: false, + 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 = void 0; + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (4411-4637) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-217):: ../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/module.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 4411, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 0, + "end": 4411, + "kind": "text" + } + ] + }, + { + "pos": 4411, + "end": 4637, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 217, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 217, + "kind": "text" + } + ] + }, + { + "pos": 217, + "end": 299, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 442 +} + +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents +//// [/src/lib/module.js] +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; + 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: false, + 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 = void 0; + 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.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; +>>> 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: false, +>>> 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/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = void 0; +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(103, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(103, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(103, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(103, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(103, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(103, 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(105, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(105, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(105, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(105, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(105, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(105, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":4411,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":26,"kind":"internal"},{"pos":28,"end":108,"kind":"text"},{"pos":108,"end":233,"kind":"internal"},{"pos":235,"end":274,"kind":"text"},{"pos":274,"end":742,"kind":"internal"},{"pos":744,"end":751,"kind":"text"},{"pos":751,"end":1240,"kind":"internal"},{"pos":1242,"end":1333,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +text: (0-4411) +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; + 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: false, + 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 = void 0; + 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-233) + constructor(); + prop: string; + method(): void; + get c(): number; + set c(val: number); +---------------------------------------------------------------------- +text: (235-274) + } + export namespace normalN { + +---------------------------------------------------------------------- +internal: (274-742) + 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: (744-751) + } + +---------------------------------------------------------------------- +internal: (751-1240) + 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: (1242-1333) +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + +//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 4411, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 26, + "kind": "internal" + }, + { + "pos": 28, + "end": 108, + "kind": "text" + }, + { + "pos": 108, + "end": 233, + "kind": "internal" + }, + { + "pos": 235, + "end": 274, + "kind": "text" + }, + { + "pos": 274, + "end": 742, + "kind": "internal" + }, + { + "pos": 744, + "end": 751, + "kind": "text" + }, + { + "pos": 751, + "end": 1240, + "kind": "internal" + }, + { + "pos": 1242, + "end": 1333, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 515 +} + + + +Change:: incremental-headers-change-without-dts-changes +Input:: +//// [/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 }console.log(x); + + + +Output:: +/lib/tsc --b /src/app --verbose +[12:07:00 AM] Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +[12:07:00 AM] Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +[12:07:00 AM] Building project '/src/lib/tsconfig.json'... + +[12:07:00 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +[12:07:00 AM] Updating output of project '/src/app/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/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] +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; + /*@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: false, + 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 = void 0; + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + 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;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 +------------------------------------------------------------------- +>>>/*@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/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; +>>> /*@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: false, +>>> 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 = void 0; +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(103, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(103, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(103, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(103, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(103, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(103, 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(105, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(105, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(105, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(105, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(105, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(105, 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 = void 0; +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(110, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(110, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(110, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(110, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(110, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(110, 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(112, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(112, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(112, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(112, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(112, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(112, 16) Source(1, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":4425,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":4425,"kind":"text"}]},{"pos":4425,"end":4651,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":191,"kind":"prepend","data":"../lib/module.d.ts","texts":[{"pos":0,"end":191,"kind":"text"}]},{"pos":191,"end":273,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prepend: (0-4425):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-4425) +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; + /*@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: false, + 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 = void 0; + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (4425-4651) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + exports.z = 30; +}); +var myVar = 30; + +====================================================================== +====================================================================== +File:: /src/app/module.d.ts +---------------------------------------------------------------------- +prepend: (0-191):: ../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/app/module.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 4425, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 0, + "end": 4425, + "kind": "text" + } + ] + }, + { + "pos": 4425, + "end": 4651, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 191, + "kind": "prepend", + "data": "../lib/module.d.ts", + "texts": [ + { + "pos": 0, + "end": 191, + "kind": "text" + } + ] + }, + { + "pos": 191, + "end": 273, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 442 +} + +//// [/src/lib/module.d.ts] file written with same contents +//// [/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;QACN,IAAI,CAAC,IACM,MAAM,CADK;QACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;KACvC;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) +--- +>>> get c(): number; +1->^^^^^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^ +7 > ^^^^-> +1->() { } + > /*@internal*/ +2 > get +3 > c +4 > () { return 10; } + > /*@internal*/ set c(val: +5 > number +6 > +1->Emitted(8, 9) Source(6, 19) + SourceIndex(1) +2 >Emitted(8, 13) Source(6, 23) + SourceIndex(1) +3 >Emitted(8, 14) Source(6, 24) + SourceIndex(1) +4 >Emitted(8, 18) Source(7, 30) + SourceIndex(1) +5 >Emitted(8, 24) Source(7, 36) + SourceIndex(1) +6 >Emitted(8, 25) Source(6, 41) + SourceIndex(1) +--- +>>> set c(val: number); +1->^^^^^^^^ +2 > ^^^^ +3 > ^ +4 > ^ +5 > ^^^^^ +6 > ^^^^^^ +7 > ^^ +1-> + > /*@internal*/ +2 > set +3 > c +4 > ( +5 > val: +6 > number +7 > ) { } +1->Emitted(9, 9) Source(7, 19) + SourceIndex(1) +2 >Emitted(9, 13) Source(7, 23) + SourceIndex(1) +3 >Emitted(9, 14) Source(7, 24) + SourceIndex(1) +4 >Emitted(9, 15) Source(7, 25) + SourceIndex(1) +5 >Emitted(9, 20) Source(7, 30) + SourceIndex(1) +6 >Emitted(9, 26) Source(7, 36) + SourceIndex(1) +7 >Emitted(9, 28) Source(7, 41) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(10, 6) Source(8, 2) + SourceIndex(1) +--- +>>> export namespace normalN { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^ +5 > ^ +1-> + > +2 > export +3 > namespace +4 > normalN +5 > +1->Emitted(11, 5) Source(9, 1) + SourceIndex(1) +2 >Emitted(11, 11) Source(9, 7) + SourceIndex(1) +3 >Emitted(11, 22) Source(9, 18) + SourceIndex(1) +4 >Emitted(11, 29) Source(9, 25) + SourceIndex(1) +5 >Emitted(11, 30) Source(9, 26) + SourceIndex(1) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ + > /*@internal*/ +2 > export class +3 > C +1 >Emitted(12, 9) Source(10, 19) + SourceIndex(1) +2 >Emitted(12, 15) Source(10, 32) + SourceIndex(1) +3 >Emitted(12, 16) Source(10, 33) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(13, 10) Source(10, 37) + SourceIndex(1) +--- +>>> function foo(): void; +1->^^^^^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^ +5 > ^^^^^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () {} +1->Emitted(14, 9) Source(11, 19) + SourceIndex(1) +2 >Emitted(14, 18) Source(11, 35) + SourceIndex(1) +3 >Emitted(14, 21) Source(11, 38) + SourceIndex(1) +4 >Emitted(14, 30) Source(11, 43) + SourceIndex(1) +--- +>>> namespace someNamespace { +1->^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > +1->Emitted(15, 9) Source(12, 19) + SourceIndex(1) +2 >Emitted(15, 19) Source(12, 36) + SourceIndex(1) +3 >Emitted(15, 32) Source(12, 49) + SourceIndex(1) +4 >Emitted(15, 33) Source(12, 50) + SourceIndex(1) +--- +>>> class C { +1 >^^^^^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(16, 13) Source(12, 52) + SourceIndex(1) +2 >Emitted(16, 19) Source(12, 65) + SourceIndex(1) +3 >Emitted(16, 20) Source(12, 66) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^^^^^ +1 > {} +1 >Emitted(17, 14) Source(12, 69) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(18, 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(19, 9) Source(13, 19) + SourceIndex(1) +2 >Emitted(19, 19) Source(13, 36) + SourceIndex(1) +3 >Emitted(19, 28) Source(13, 45) + SourceIndex(1) +4 >Emitted(19, 29) Source(13, 46) + SourceIndex(1) +5 >Emitted(19, 38) Source(13, 55) + SourceIndex(1) +6 >Emitted(19, 39) Source(13, 56) + SourceIndex(1) +--- +>>> class someClass { +1 >^^^^^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(20, 13) Source(13, 58) + SourceIndex(1) +2 >Emitted(20, 19) Source(13, 71) + SourceIndex(1) +3 >Emitted(20, 28) Source(13, 80) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^^^^^ +1 > {} +1 >Emitted(21, 14) Source(13, 83) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(22, 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(23, 9) Source(14, 19) + SourceIndex(1) +2 >Emitted(23, 15) Source(14, 25) + SourceIndex(1) +3 >Emitted(23, 23) Source(14, 33) + SourceIndex(1) +4 >Emitted(23, 33) Source(14, 43) + SourceIndex(1) +5 >Emitted(23, 36) Source(14, 46) + SourceIndex(1) +6 >Emitted(23, 49) Source(14, 59) + SourceIndex(1) +7 >Emitted(23, 50) Source(14, 60) + SourceIndex(1) +8 >Emitted(23, 51) Source(14, 61) + SourceIndex(1) +9 >Emitted(23, 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(24, 9) Source(15, 19) + SourceIndex(1) +2 >Emitted(24, 14) Source(15, 31) + SourceIndex(1) +3 >Emitted(24, 26) Source(15, 43) + SourceIndex(1) +4 >Emitted(24, 29) Source(15, 46) + SourceIndex(1) +5 >Emitted(24, 38) Source(15, 55) + SourceIndex(1) +6 >Emitted(24, 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(25, 9) Source(16, 26) + SourceIndex(1) +2 >Emitted(25, 15) Source(16, 32) + SourceIndex(1) +3 >Emitted(25, 28) Source(16, 45) + SourceIndex(1) +4 >Emitted(25, 33) Source(16, 50) + SourceIndex(1) +5 >Emitted(25, 34) Source(16, 51) + SourceIndex(1) +--- +>>> enum internalEnum { +1 >^^^^^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum +1 >Emitted(26, 9) Source(17, 19) + SourceIndex(1) +2 >Emitted(26, 14) Source(17, 31) + SourceIndex(1) +3 >Emitted(26, 26) Source(17, 43) + SourceIndex(1) +--- +>>> a = 0, +1 >^^^^^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(27, 13) Source(17, 46) + SourceIndex(1) +2 >Emitted(27, 14) Source(17, 47) + SourceIndex(1) +3 >Emitted(27, 18) Source(17, 47) + SourceIndex(1) +--- +>>> b = 1, +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(28, 13) Source(17, 49) + SourceIndex(1) +2 >Emitted(28, 14) Source(17, 50) + SourceIndex(1) +3 >Emitted(28, 18) Source(17, 50) + SourceIndex(1) +--- +>>> c = 2 +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(29, 13) Source(17, 52) + SourceIndex(1) +2 >Emitted(29, 14) Source(17, 53) + SourceIndex(1) +3 >Emitted(29, 18) Source(17, 53) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +1 > } +1 >Emitted(30, 10) Source(17, 55) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(31, 6) Source(18, 2) + SourceIndex(1) +--- +>>> export class internalC { +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^ +1-> + >/*@internal*/ +2 > export +3 > class +4 > internalC +1->Emitted(32, 5) Source(19, 15) + SourceIndex(1) +2 >Emitted(32, 11) Source(19, 21) + SourceIndex(1) +3 >Emitted(32, 18) Source(19, 28) + SourceIndex(1) +4 >Emitted(32, 27) Source(19, 37) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(33, 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(34, 5) Source(20, 15) + SourceIndex(1) +2 >Emitted(34, 11) Source(20, 21) + SourceIndex(1) +3 >Emitted(34, 21) Source(20, 31) + SourceIndex(1) +4 >Emitted(34, 32) Source(20, 42) + SourceIndex(1) +5 >Emitted(34, 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(35, 5) Source(21, 15) + SourceIndex(1) +2 >Emitted(35, 11) Source(21, 21) + SourceIndex(1) +3 >Emitted(35, 22) Source(21, 32) + SourceIndex(1) +4 >Emitted(35, 39) Source(21, 49) + SourceIndex(1) +5 >Emitted(35, 40) Source(21, 50) + SourceIndex(1) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(36, 9) Source(21, 52) + SourceIndex(1) +2 >Emitted(36, 15) Source(21, 65) + SourceIndex(1) +3 >Emitted(36, 24) Source(21, 74) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(37, 10) Source(21, 77) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(38, 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(39, 5) Source(22, 15) + SourceIndex(1) +2 >Emitted(39, 11) Source(22, 21) + SourceIndex(1) +3 >Emitted(39, 22) Source(22, 32) + SourceIndex(1) +4 >Emitted(39, 35) Source(22, 45) + SourceIndex(1) +5 >Emitted(39, 36) Source(22, 46) + SourceIndex(1) +6 >Emitted(39, 45) Source(22, 55) + SourceIndex(1) +7 >Emitted(39, 46) Source(22, 56) + SourceIndex(1) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(40, 9) Source(22, 58) + SourceIndex(1) +2 >Emitted(40, 15) Source(22, 71) + SourceIndex(1) +3 >Emitted(40, 24) Source(22, 80) + SourceIndex(1) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(41, 10) Source(22, 83) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(42, 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(43, 5) Source(23, 15) + SourceIndex(1) +2 >Emitted(43, 11) Source(23, 21) + SourceIndex(1) +3 >Emitted(43, 19) Source(23, 29) + SourceIndex(1) +4 >Emitted(43, 33) Source(23, 43) + SourceIndex(1) +5 >Emitted(43, 36) Source(23, 46) + SourceIndex(1) +6 >Emitted(43, 53) Source(23, 63) + SourceIndex(1) +7 >Emitted(43, 54) Source(23, 64) + SourceIndex(1) +8 >Emitted(43, 63) Source(23, 73) + SourceIndex(1) +9 >Emitted(43, 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(44, 5) Source(24, 15) + SourceIndex(1) +2 >Emitted(44, 11) Source(24, 21) + SourceIndex(1) +3 >Emitted(44, 17) Source(24, 27) + SourceIndex(1) +4 >Emitted(44, 29) Source(24, 39) + SourceIndex(1) +5 >Emitted(44, 32) Source(24, 42) + SourceIndex(1) +6 >Emitted(44, 41) Source(24, 51) + SourceIndex(1) +7 >Emitted(44, 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(45, 5) Source(25, 15) + SourceIndex(1) +2 >Emitted(45, 11) Source(25, 21) + SourceIndex(1) +3 >Emitted(45, 12) Source(25, 22) + SourceIndex(1) +4 >Emitted(45, 18) Source(25, 28) + SourceIndex(1) +5 >Emitted(45, 31) Source(25, 41) + SourceIndex(1) +6 >Emitted(45, 36) Source(25, 46) + SourceIndex(1) +7 >Emitted(45, 37) Source(25, 47) + SourceIndex(1) +--- +>>> export enum internalEnum { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^ +1 > + >/*@internal*/ +2 > export +3 > enum +4 > internalEnum +1 >Emitted(46, 5) Source(26, 15) + SourceIndex(1) +2 >Emitted(46, 11) Source(26, 21) + SourceIndex(1) +3 >Emitted(46, 17) Source(26, 27) + SourceIndex(1) +4 >Emitted(46, 29) Source(26, 39) + SourceIndex(1) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(47, 9) Source(26, 42) + SourceIndex(1) +2 >Emitted(47, 10) Source(26, 43) + SourceIndex(1) +3 >Emitted(47, 14) Source(26, 43) + SourceIndex(1) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(48, 9) Source(26, 45) + SourceIndex(1) +2 >Emitted(48, 10) Source(26, 46) + SourceIndex(1) +3 >Emitted(48, 14) Source(26, 46) + SourceIndex(1) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(49, 9) Source(26, 48) + SourceIndex(1) +2 >Emitted(49, 10) Source(26, 49) + SourceIndex(1) +3 >Emitted(49, 14) Source(26, 49) + SourceIndex(1) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(50, 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(53, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(53, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(53, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(53, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(53, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(53, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(53, 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(55, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(55, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(55, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(55, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(55, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(55, 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.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; + /*@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: false, + 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 = void 0; + 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;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.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; +>>> /*@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: false, +>>> 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/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = void 0; +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(103, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(103, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(103, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(103, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(103, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(103, 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(105, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(105, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(105, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(105, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(105, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(105, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":4425,"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":233,"kind":"internal"},{"pos":235,"end":274,"kind":"text"},{"pos":274,"end":742,"kind":"internal"},{"pos":744,"end":751,"kind":"text"},{"pos":751,"end":1240,"kind":"internal"},{"pos":1242,"end":1333,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +text: (0-4425) +/*@internal*/ var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.internalEnum = exports.internalConst = exports.internalImport = exports.internalOther = exports.internalNamespace = exports.internalfoo = exports.internalC = exports.normalN = exports.normalC = exports.x = void 0; + /*@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: false, + 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 = void 0; + 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-233) + constructor(); + prop: string; + method(): void; + get c(): number; + set c(val: number); +---------------------------------------------------------------------- +text: (235-274) + } + export namespace normalN { + +---------------------------------------------------------------------- +internal: (274-742) + 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: (744-751) + } + +---------------------------------------------------------------------- +internal: (751-1240) + 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: (1242-1333) +} +declare module "file2" { + export const y = 20; +} +declare const globalConst = 10; + +====================================================================== + +//// [/src/lib/module.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 4425, + "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": 233, + "kind": "internal" + }, + { + "pos": 235, + "end": 274, + "kind": "text" + }, + { + "pos": 274, + "end": 742, + "kind": "internal" + }, + { + "pos": 744, + "end": 751, + "kind": "text" + }, + { + "pos": 751, + "end": 1240, + "kind": "internal" + }, + { + "pos": 1242, + "end": 1333, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 587 +} + 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 index 6a36d05360912..3ad0c88e81db1 100644 --- 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 @@ -1160,3 +1160,768 @@ declare const globalConst = 10; "size": 308 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/lib/file1.ts] +export const x = 10;console.log(x); + + + +Output:: +/lib/tsc --b /src/app --verbose +[12:04:00 AM] Projects in this build: + * src/lib/tsconfig.json + * src/app/tsconfig.json + +[12:04:00 AM] Project 'src/lib/tsconfig.json' is out of date because oldest output 'src/lib/module.js' is older than newest input 'src/lib/file1.ts' + +[12:04:00 AM] Building project '/src/lib/tsconfig.json'... + +[12:04:00 AM] Project 'src/app/tsconfig.json' is out of date because output of its dependency 'src/lib' has changed + +[12:04:00 AM] Updating output of project '/src/app/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/app/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/app/module.d.ts] file changed its modified time +//// [/src/app/module.d.ts.map] file changed its modified time +//// [/src/app/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 = void 0; + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = void 0; + exports.y = 20; +}); +var globalConst = 10; +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + 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 +------------------------------------------------------------------- +>>>/// +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/app/module.js +sourceFile:../lib/file1.ts +------------------------------------------------------------------- +>>>define("file1", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.x = void 0; +>>> 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 = void 0; +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(15, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(15, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(15, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(15, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(15, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(15, 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(17, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(17, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(17, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(17, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(17, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(17, 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 = void 0; +>>> exports.z = 30; +1->^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1->export const +2 > +3 > z +4 > = +5 > 30 +6 > ; +1->Emitted(22, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(22, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(22, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(22, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(22, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(22, 20) Source(1, 21) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/app/module.js +sourceFile:file4.ts +------------------------------------------------------------------- +>>>}); +>>>/// +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >/// +1 >Emitted(24, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(24, 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(25, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(25, 5) Source(2, 7) + SourceIndex(5) +3 >Emitted(25, 15) Source(2, 17) + SourceIndex(5) +4 >Emitted(25, 18) Source(2, 20) + SourceIndex(5) +5 >Emitted(25, 22) Source(2, 24) + SourceIndex(5) +6 >Emitted(25, 30) Source(2, 32) + SourceIndex(5) +7 >Emitted(25, 32) Source(2, 34) + SourceIndex(5) +8 >Emitted(25, 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(26, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(26, 5) Source(3, 7) + SourceIndex(5) +3 >Emitted(26, 10) Source(3, 12) + SourceIndex(5) +4 >Emitted(26, 13) Source(3, 15) + SourceIndex(5) +5 >Emitted(26, 15) Source(3, 17) + SourceIndex(5) +6 >Emitted(26, 16) Source(3, 18) + SourceIndex(5) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/app/module.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file3.ts","./file4.ts"],"js":{"sections":[{"pos":0,"end":563,"kind":"prepend","data":"../lib/module.js","texts":[{"pos":0,"end":563,"kind":"text"}]},{"pos":563,"end":864,"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":"../lib/module.d.ts","texts":[{"pos":89,"end":297,"kind":"text"}]},{"pos":297,"end":416,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/app/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/app/module.js +---------------------------------------------------------------------- +prepend: (0-563):: ../lib/module.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-563) +/// +var file0Const = new libfile0(); +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = void 0; + exports.y = 20; +}); +var globalConst = 10; + +---------------------------------------------------------------------- +text: (563-864) +define("file3", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.z = void 0; + 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):: ../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/module.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file3.ts", + "./file4.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 563, + "kind": "prepend", + "data": "../lib/module.js", + "texts": [ + { + "pos": 0, + "end": 563, + "kind": "text" + } + ] + }, + { + "pos": 563, + "end": 864, + "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": "../lib/module.d.ts", + "texts": [ + { + "pos": 89, + "end": 297, + "kind": "text" + } + ] + }, + { + "pos": 297, + "end": 416, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 572 +} + +//// [/src/lib/module.d.ts] file written with same contents +//// [/src/lib/module.d.ts.map] file written with same contents +//// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents +//// [/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 = void 0; + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = void 0; + 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 = void 0; +>>> 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/lib/module.js +sourceFile:file2.ts +------------------------------------------------------------------- +>>>}); +>>>define("file2", ["require", "exports"], function (require, exports) { +>>> "use strict"; +>>> Object.defineProperty(exports, "__esModule", { value: true }); +>>> exports.y = void 0; +>>> exports.y = 20; +1 >^^^^ +2 > ^^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^^ +6 > ^ +1 >export const +2 > +3 > y +4 > = +5 > 20 +6 > ; +1 >Emitted(15, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(15, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(15, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(15, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(15, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(15, 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(17, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(17, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(17, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(17, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(17, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(17, 22) Source(1, 24) + SourceIndex(3) +--- +>>>//# sourceMappingURL=module.js.map + +//// [/src/lib/module.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"./","sourceFiles":["./file0.ts","./file1.ts","./file2.ts","./global.ts"],"js":{"sections":[{"pos":0,"end":563,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":39,"kind":"reference","data":"tripleRef.d.ts"},{"pos":41,"end":249,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/lib/module.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/lib/module.js +---------------------------------------------------------------------- +text: (0-563) +/// +var file0Const = new libfile0(); +var myGlob = 20; +define("file1", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.x = void 0; + exports.x = 10; + console.log(exports.x); +}); +define("file2", ["require", "exports"], function (require, exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.y = void 0; + 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/module.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "./", + "sourceFiles": [ + "./file0.ts", + "./file1.ts", + "./file2.ts", + "./global.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 563, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "reference", + "data": "tripleRef.d.ts" + }, + { + "pos": 41, + "end": 249, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 308 +} + diff --git a/tests/baselines/reference/tsbuild/configFileErrors/incremental-declaration-changes/builds-after-fixing-config-file-errors.js b/tests/baselines/reference/tsbuild/configFileErrors/incremental-declaration-changes/builds-after-fixing-config-file-errors.js deleted file mode 100644 index 04a5178991151..0000000000000 --- a/tests/baselines/reference/tsbuild/configFileErrors/incremental-declaration-changes/builds-after-fixing-config-file-errors.js +++ /dev/null @@ -1,77 +0,0 @@ -Input:: -//// [/src/tsconfig.json] -{"compilerOptions":{"composite":true,"declaration":true},"files":["a.ts","b.ts"]} - - - -Output:: -/lib/tsc --b /src/tsconfig.json -exitCode:: ExitStatus.Success - - -//// [/src/a.d.ts] -export declare function foo(): void; - - -//// [/src/a.js] -"use strict"; -exports.__esModule = true; -exports.foo = void 0; -function foo() { } -exports.foo = foo; - - -//// [/src/b.d.ts] -export declare function bar(): void; - - -//// [/src/b.js] -"use strict"; -exports.__esModule = true; -exports.bar = void 0; -function bar() { } -exports.bar = bar; - - -//// [/src/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"4646078106-export function foo() { }","1045484683-export function bar() { }"],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} - -//// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "program": { - "fileNames": [ - "../lib/lib.d.ts", - "./a.ts", - "./b.ts" - ], - "fileInfos": { - "../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "./a.ts": { - "version": "4646078106-export function foo() { }", - "signature": "4646078106-export function foo() { }" - }, - "./b.ts": { - "version": "1045484683-export function bar() { }", - "signature": "1045484683-export function bar() { }" - } - }, - "options": { - "composite": true, - "declaration": true - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../lib/lib.d.ts", - "./a.ts", - "./b.ts" - ] - }, - "version": "FakeTSVersion", - "size": 788 -} - diff --git a/tests/baselines/reference/tsbuild/configFileErrors/incremental-declaration-doesnt-change/reports-syntax-errors-after-change-to-config-file.js b/tests/baselines/reference/tsbuild/configFileErrors/incremental-declaration-doesnt-change/reports-syntax-errors-after-change-to-config-file.js deleted file mode 100644 index 47aa64fe1a1ab..0000000000000 --- a/tests/baselines/reference/tsbuild/configFileErrors/incremental-declaration-doesnt-change/reports-syntax-errors-after-change-to-config-file.js +++ /dev/null @@ -1,28 +0,0 @@ -Input:: -//// [/src/tsconfig.json] -{ - "compilerOptions": { - "composite": true, - "declaration": true, - }, - "files": [ - "a.ts" - "b.ts" - ] -} - - - -Output:: -/lib/tsc --b /src/tsconfig.json -src/tsconfig.json:8:9 - error TS1005: ',' expected. - -8 "b.ts" -   ~~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped - - diff --git a/tests/baselines/reference/tsbuild/configFileErrors/incremental-declaration-doesnt-change/reports-syntax-errors-after-change-to-ts-file.js b/tests/baselines/reference/tsbuild/configFileErrors/incremental-declaration-doesnt-change/reports-syntax-errors-after-change-to-ts-file.js deleted file mode 100644 index 15011c5129363..0000000000000 --- a/tests/baselines/reference/tsbuild/configFileErrors/incremental-declaration-doesnt-change/reports-syntax-errors-after-change-to-ts-file.js +++ /dev/null @@ -1,19 +0,0 @@ -Input:: -//// [/src/a.ts] -export function foo() { }export function fooBar() { } - - - -Output:: -/lib/tsc --b /src/tsconfig.json -src/tsconfig.json:7:9 - error TS1005: ',' expected. - -7 "b.ts" -   ~~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped - - diff --git a/tests/baselines/reference/tsbuild/configFileErrors/initial-build/reports-syntax-errors-in-config-file.js b/tests/baselines/reference/tsbuild/configFileErrors/initial-build/reports-syntax-errors-in-config-file.js index ef55c7e7b4ceb..54ef641091235 100644 --- a/tests/baselines/reference/tsbuild/configFileErrors/initial-build/reports-syntax-errors-in-config-file.js +++ b/tests/baselines/reference/tsbuild/configFileErrors/initial-build/reports-syntax-errors-in-config-file.js @@ -46,3 +46,158 @@ Found 1 error. exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped + + +Change:: reports syntax errors after change to config file +Input:: +//// [/src/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + }, + "files": [ + "a.ts" + "b.ts" + ] +} + + + +Output:: +/lib/tsc --b /src/tsconfig.json +src/tsconfig.json:8:9 - error TS1005: ',' expected. + +8 "b.ts" +   ~~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped + + + + +Change:: reports syntax errors after change to ts file +Input:: +//// [/src/a.ts] +export function foo() { }export function fooBar() { } + + + +Output:: +/lib/tsc --b /src/tsconfig.json +src/tsconfig.json:8:9 - error TS1005: ',' expected. + +8 "b.ts" +   ~~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped + + + + +Change:: no-change-run +Input:: + + +Output:: +/lib/tsc --b /src/tsconfig.json +src/tsconfig.json:8:9 - error TS1005: ',' expected. + +8 "b.ts" +   ~~~~~~ + + +Found 1 error. + +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped + + + + +Change:: builds after fixing config file errors +Input:: +//// [/src/tsconfig.json] +{"compilerOptions":{"composite":true,"declaration":true},"files":["a.ts","b.ts"]} + + + +Output:: +/lib/tsc --b /src/tsconfig.json +exitCode:: ExitStatus.Success + + +//// [/src/a.d.ts] +export declare function foo(): void; +export declare function fooBar(): void; + + +//// [/src/a.js] +"use strict"; +exports.__esModule = true; +exports.fooBar = exports.foo = void 0; +function foo() { } +exports.foo = foo; +function fooBar() { } +exports.fooBar = fooBar; + + +//// [/src/b.d.ts] +export declare function bar(): void; + + +//// [/src/b.js] +"use strict"; +exports.__esModule = true; +exports.bar = void 0; +function bar() { } +exports.bar = bar; + + +//// [/src/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../lib/lib.d.ts","./a.ts","./b.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"9819159940-export function foo() { }export function fooBar() { }","1045484683-export function bar() { }"],"options":{"composite":true,"declaration":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3]},"version":"FakeTSVersion"} + +//// [/src/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../lib/lib.d.ts", + "./a.ts", + "./b.ts" + ], + "fileInfos": { + "../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./a.ts": { + "version": "9819159940-export function foo() { }export function fooBar() { }", + "signature": "9819159940-export function foo() { }export function fooBar() { }" + }, + "./b.ts": { + "version": "1045484683-export function bar() { }", + "signature": "1045484683-export function bar() { }" + } + }, + "options": { + "composite": true, + "declaration": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../lib/lib.d.ts", + "./a.ts", + "./b.ts" + ] + }, + "version": "FakeTSVersion", + "size": 816 +} + diff --git a/tests/baselines/reference/tsbuild/configFileErrors/no-change-run/reports-syntax-errors-in-config-file.js b/tests/baselines/reference/tsbuild/configFileErrors/no-change-run/reports-syntax-errors-in-config-file.js deleted file mode 100644 index 0ae857d8deb97..0000000000000 --- a/tests/baselines/reference/tsbuild/configFileErrors/no-change-run/reports-syntax-errors-in-config-file.js +++ /dev/null @@ -1,16 +0,0 @@ -Input:: - - -Output:: -/lib/tsc --b /src/tsconfig.json -src/tsconfig.json:7:9 - error TS1005: ',' expected. - -7 "b.ts" -   ~~~~~~ - - -Found 1 error. - -exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped - - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js deleted file mode 100644 index fa567b4ec8510..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/baseline-sectioned-sourcemaps.js +++ /dev/null @@ -1,1312 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' - -[12:04:00 AM] Building project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 2, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-109) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-156) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 109, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 156, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 252 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(22, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(22, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(22, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(22, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(22, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(22, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(22, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(22, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(23, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(23, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":109,"kind":"text"}]},{"pos":109,"end":394,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":109,"end":394,"kind":"text"}]},{"pos":394,"end":430,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-109):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-109) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (109-394):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (109-394) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (394-430) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-156) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (156-256) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (256-275) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 109, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 109, - "kind": "text" - } - ] - }, - { - "pos": 109, - "end": 394, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 109, - "end": 394, - "kind": "text" - } - ] - }, - { - "pos": 394, - "end": 430, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 156, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 156, - "kind": "text" - } - ] - }, - { - "pos": 156, - "end": 256, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 156, - "end": 256, - "kind": "text" - } - ] - }, - { - "pos": 256, - "end": 275, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 720 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js deleted file mode 100644 index a0f6da7799e7d..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js +++ /dev/null @@ -1,1915 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' - -[12:04:00 AM] Building project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 2, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hola, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":728,"kind":"text"}],"sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":207,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (502-728) -var s = "Hola, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-207) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 728, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 207, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 362 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} -declare var c: C; -declare function forthirdthird_part1Rest(): void; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare function forsecondsecond_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > -2 >function -3 > forsecondsecond_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(2) -2 >Emitted(14, 18) Source(12, 10) + SourceIndex(2) -3 >Emitted(14, 43) Source(12, 35) + SourceIndex(2) -4 >Emitted(14, 52) Source(14, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) ---- ->>>declare function forthirdthird_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - >c.doSomething(); - > -2 >function -3 > forthirdthird_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(19, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(19, 18) Source(3, 10) + SourceIndex(4) -3 >Emitted(19, 41) Source(3, 33) + SourceIndex(4) -4 >Emitted(19, 50) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hola, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(21, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(21, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(21, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(22, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(22, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(23, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(23, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(23, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(24, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(24, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(24, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(24, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(24, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(24, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(24, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(24, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(25, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(25, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(26, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(26, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(26, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(26, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(27, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(27, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(27, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(27, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(27, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(27, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(27, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(28, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(28, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(28, 35) Source(12, 35) + SourceIndex(3) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(29, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(29, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(29, 14) Source(13, 24) + SourceIndex(3) -4 >Emitted(29, 16) Source(13, 26) + SourceIndex(3) -5 >Emitted(29, 17) Source(13, 27) + SourceIndex(3) -6 >Emitted(29, 19) Source(13, 29) + SourceIndex(3) -7 >Emitted(29, 21) Source(13, 31) + SourceIndex(3) -8 >Emitted(29, 23) Source(13, 33) + SourceIndex(3) -9 >Emitted(29, 24) Source(13, 34) + SourceIndex(3) -10>Emitted(29, 26) Source(13, 36) + SourceIndex(3) -11>Emitted(29, 28) Source(13, 38) + SourceIndex(3) -12>Emitted(29, 30) Source(13, 40) + SourceIndex(3) -13>Emitted(29, 32) Source(13, 42) + SourceIndex(3) -14>Emitted(29, 34) Source(13, 44) + SourceIndex(3) -15>Emitted(29, 36) Source(13, 46) + SourceIndex(3) -16>Emitted(29, 38) Source(13, 48) + SourceIndex(3) -17>Emitted(29, 40) Source(13, 9) + SourceIndex(3) -18>Emitted(29, 41) Source(13, 10) + SourceIndex(3) -19>Emitted(29, 48) Source(13, 10) + SourceIndex(3) -20>Emitted(29, 50) Source(13, 15) + SourceIndex(3) -21>Emitted(29, 54) Source(13, 19) + SourceIndex(3) -22>Emitted(29, 68) Source(13, 7) + SourceIndex(3) -23>Emitted(29, 73) Source(13, 21) + SourceIndex(3) -24>Emitted(29, 74) Source(13, 48) + SourceIndex(3) -25>Emitted(29, 75) Source(13, 49) + SourceIndex(3) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(30, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(30, 2) Source(14, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(31, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(32, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(33, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(33, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(34, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(34, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(34, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(35, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(35, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(35, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(35, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(35, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(35, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(35, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(35, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(36, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(36, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(37, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(37, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(38, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(38, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(38, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(38, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(39, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(39, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(39, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(39, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(39, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(39, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(39, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(39, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(40, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(40, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(40, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(40, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(40, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(40, 17) Source(2, 17) + SourceIndex(5) ---- ->>>function forthirdthird_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forthirdthird_part1Rest -1->Emitted(41, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(41, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(41, 33) Source(3, 33) + SourceIndex(5) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(42, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(42, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(42, 14) Source(4, 24) + SourceIndex(5) -4 >Emitted(42, 16) Source(4, 26) + SourceIndex(5) -5 >Emitted(42, 17) Source(4, 27) + SourceIndex(5) -6 >Emitted(42, 19) Source(4, 29) + SourceIndex(5) -7 >Emitted(42, 21) Source(4, 31) + SourceIndex(5) -8 >Emitted(42, 23) Source(4, 33) + SourceIndex(5) -9 >Emitted(42, 24) Source(4, 34) + SourceIndex(5) -10>Emitted(42, 26) Source(4, 36) + SourceIndex(5) -11>Emitted(42, 28) Source(4, 38) + SourceIndex(5) -12>Emitted(42, 30) Source(4, 40) + SourceIndex(5) -13>Emitted(42, 32) Source(4, 42) + SourceIndex(5) -14>Emitted(42, 34) Source(4, 44) + SourceIndex(5) -15>Emitted(42, 36) Source(4, 46) + SourceIndex(5) -16>Emitted(42, 38) Source(4, 48) + SourceIndex(5) -17>Emitted(42, 40) Source(4, 9) + SourceIndex(5) -18>Emitted(42, 41) Source(4, 10) + SourceIndex(5) -19>Emitted(42, 48) Source(4, 10) + SourceIndex(5) -20>Emitted(42, 50) Source(4, 15) + SourceIndex(5) -21>Emitted(42, 54) Source(4, 19) + SourceIndex(5) -22>Emitted(42, 68) Source(4, 7) + SourceIndex(5) -23>Emitted(42, 73) Source(4, 21) + SourceIndex(5) -24>Emitted(42, 74) Source(4, 48) + SourceIndex(5) -25>Emitted(42, 75) Source(4, 49) + SourceIndex(5) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(43, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(43, 2) Source(5, 2) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":728,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":728,"kind":"text"}]},{"pos":728,"end":1132,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":728,"end":1132,"kind":"text"}]},{"pos":1132,"end":1285,"kind":"text"}],"sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":207,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":207,"kind":"text"}]},{"pos":207,"end":360,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":207,"end":360,"kind":"text"}]},{"pos":360,"end":430,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (502-728):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (502-728) -var s = "Hola, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (728-1132):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (728-1132) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (1132-1285) -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-207):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-207) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (207-360):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (207-360) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (360-430) -declare var c: C; -declare function forthirdthird_part1Rest(): void; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 728, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 502, - "end": 728, - "kind": "text" - } - ] - }, - { - "pos": 728, - "end": 1132, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 728, - "end": 1132, - "kind": "text" - } - ] - }, - { - "pos": 1132, - "end": 1285, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 207, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 207, - "kind": "text" - } - ] - }, - { - "pos": 207, - "end": 360, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 207, - "end": 360, - "kind": "text" - } - ] - }, - { - "pos": 360, - "end": 430, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 836 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/explainFiles.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/explainFiles.js deleted file mode 100644 index 8417dfa4b1203..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/explainFiles.js +++ /dev/null @@ -1,1309 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - - - -Output:: -/lib/tsc --b /src/third --verbose --explainFiles -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -lib/lib.d.ts - Default library for target 'es5' -src/first/first_PART1.ts - Part of 'files' list in tsconfig.json -src/first/first_part2.ts - Part of 'files' list in tsconfig.json -src/first/first_part3.ts - Part of 'files' list in tsconfig.json -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' - -[12:04:00 AM] Building project '/src/third/tsconfig.json'... - -lib/lib.d.ts - Default library for target 'es5' -src/first/bin/first-output.d.ts - Output from referenced project 'src/first/tsconfig.json' included because '--outFile' specified -src/2/second-output.d.ts - Output from referenced project 'src/second/tsconfig.json' included because '--outFile' specified -src/third/third_part1.ts - Part of 'files' list in tsconfig.json -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-109) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-156) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 109, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 156, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 252 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(22, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(22, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(22, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(22, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(22, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(22, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(22, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(22, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(23, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(23, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":109,"kind":"text"}]},{"pos":109,"end":394,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":109,"end":394,"kind":"text"}]},{"pos":394,"end":430,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-109):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-109) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (109-394):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (109-394) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (394-430) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-156) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (156-256) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (256-275) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 109, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 109, - "kind": "text" - } - ] - }, - { - "pos": 109, - "end": 394, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 109, - "end": 394, - "kind": "text" - } - ] - }, - { - "pos": 394, - "end": 430, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 156, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 156, - "kind": "text" - } - ] - }, - { - "pos": 156, - "end": 256, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 156, - "end": 256, - "kind": "text" - } - ] - }, - { - "pos": 256, - "end": 275, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 720 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js deleted file mode 100644 index 25cce905d39ee..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/multiple-prologues-in-all-projects.js +++ /dev/null @@ -1,1512 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -"myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' - -[12:04:00 AM] Building project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 2, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(6, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -"myPrologue"; -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.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 s = "Hola, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(3, 22) Source(6, 24) + SourceIndex(0) -6 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":139,"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":156,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -text: (30-139) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-156) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 139, - "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": 156, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 588 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(6, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >"myPrologue" - > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(2, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(2, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(2, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(6, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(6, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(6, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1->"myPrologue2"; - > -2 >class -3 > C -1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(2, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(3, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue3"; - >"myPrologue"; - > -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(3, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(3, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(3, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(3, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(3, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -"myPrologue"; -"myPrologue2"; -"myPrologue3"; -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part2.ts","../../third_part1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../second/second_part2.ts,../../third_part1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.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/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>"myPrologue2"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> -2 >"myPrologue2" -3 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 15) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^-> -1-> -2 >"myPrologue3" -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/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1->"myPrologue" - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(5, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(5, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(5, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(5, 22) Source(6, 24) + SourceIndex(0) -6 >Emitted(5, 23) Source(6, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(6, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(6, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(6, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(6, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(6, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(6, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(6, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(6, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(7, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(7, 8) Source(1, 8) + SourceIndex(3) -3 >Emitted(7, 9) Source(1, 9) + SourceIndex(3) -4 >Emitted(7, 12) Source(1, 12) + SourceIndex(3) -5 >Emitted(7, 13) Source(1, 13) + SourceIndex(3) -6 >Emitted(7, 14) Source(1, 14) + SourceIndex(3) -7 >Emitted(7, 16) Source(1, 16) + SourceIndex(3) -8 >Emitted(7, 17) Source(1, 17) + SourceIndex(3) -9 >Emitted(7, 18) Source(1, 18) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(8, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(8, 10) Source(1, 10) + SourceIndex(4) -3 >Emitted(8, 11) Source(1, 11) + SourceIndex(4) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(9, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(9, 12) Source(2, 12) + SourceIndex(4) -3 >Emitted(9, 28) Source(2, 28) + SourceIndex(4) -4 >Emitted(9, 29) Source(2, 29) + SourceIndex(4) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(10, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(10, 2) Source(3, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->"myPrologue" - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(11, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(11, 5) Source(6, 11) + SourceIndex(5) -3 >Emitted(11, 6) Source(6, 12) + SourceIndex(5) -4 >Emitted(11, 7) Source(12, 2) + SourceIndex(5) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(12, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(12, 12) Source(6, 11) + SourceIndex(5) -3 >Emitted(12, 13) Source(6, 12) + SourceIndex(5) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(13, 5) Source(7, 5) + SourceIndex(5) -2 >Emitted(13, 14) Source(7, 14) + SourceIndex(5) -3 >Emitted(13, 15) Source(7, 15) + SourceIndex(5) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(14, 9) Source(8, 9) + SourceIndex(5) -2 >Emitted(14, 16) Source(8, 16) + SourceIndex(5) -3 >Emitted(14, 17) Source(8, 17) + SourceIndex(5) -4 >Emitted(14, 20) Source(8, 20) + SourceIndex(5) -5 >Emitted(14, 21) Source(8, 21) + SourceIndex(5) -6 >Emitted(14, 30) Source(8, 30) + SourceIndex(5) -7 >Emitted(14, 31) Source(8, 31) + SourceIndex(5) -8 >Emitted(14, 32) Source(8, 32) + SourceIndex(5) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(15, 5) Source(9, 5) + SourceIndex(5) -2 >Emitted(15, 6) Source(9, 6) + SourceIndex(5) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(16, 5) Source(11, 5) + SourceIndex(5) -2 >Emitted(16, 6) Source(11, 6) + SourceIndex(5) -3 >Emitted(16, 8) Source(11, 8) + SourceIndex(5) -4 >Emitted(16, 9) Source(11, 9) + SourceIndex(5) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(17, 1) Source(12, 1) + SourceIndex(5) -2 >Emitted(17, 2) Source(12, 2) + SourceIndex(5) -3 >Emitted(17, 4) Source(6, 11) + SourceIndex(5) -4 >Emitted(17, 5) Source(6, 12) + SourceIndex(5) -5 >Emitted(17, 10) Source(6, 11) + SourceIndex(5) -6 >Emitted(17, 11) Source(6, 12) + SourceIndex(5) -7 >Emitted(17, 19) Source(12, 2) + SourceIndex(5) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue2"; - > -1->Emitted(18, 1) Source(2, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(19, 5) Source(2, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(20, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(20, 6) Source(6, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(21, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(21, 28) Source(3, 16) + SourceIndex(1) -3 >Emitted(21, 31) Source(3, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(22, 9) Source(4, 9) + SourceIndex(1) -2 >Emitted(22, 16) Source(4, 16) + SourceIndex(1) -3 >Emitted(22, 17) Source(4, 17) + SourceIndex(1) -4 >Emitted(22, 20) Source(4, 20) + SourceIndex(1) -5 >Emitted(22, 21) Source(4, 21) + SourceIndex(1) -6 >Emitted(22, 41) Source(4, 41) + SourceIndex(1) -7 >Emitted(22, 42) Source(4, 42) + SourceIndex(1) -8 >Emitted(22, 43) Source(4, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(23, 5) Source(5, 5) + SourceIndex(1) -2 >Emitted(23, 6) Source(5, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(24, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(24, 13) Source(6, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(25, 1) Source(6, 1) + SourceIndex(1) -2 >Emitted(25, 2) Source(6, 2) + SourceIndex(1) -3 >Emitted(25, 2) Source(2, 1) + SourceIndex(1) -4 >Emitted(25, 6) Source(6, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1->"myPrologue3"; - >"myPrologue"; - > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(26, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(26, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(26, 6) Source(3, 6) + SourceIndex(2) -4 >Emitted(26, 9) Source(3, 9) + SourceIndex(2) -5 >Emitted(26, 13) Source(3, 13) + SourceIndex(2) -6 >Emitted(26, 14) Source(3, 14) + SourceIndex(2) -7 >Emitted(26, 16) Source(3, 16) + SourceIndex(2) -8 >Emitted(26, 17) Source(3, 17) + SourceIndex(2) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(27, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(27, 2) Source(4, 2) + SourceIndex(2) -3 >Emitted(27, 3) Source(4, 3) + SourceIndex(2) -4 >Emitted(27, 14) Source(4, 14) + SourceIndex(2) -5 >Emitted(27, 16) Source(4, 16) + SourceIndex(2) -6 >Emitted(27, 17) Source(4, 17) + SourceIndex(2) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue2"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue3"},{"pos":62,"end":171,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":62,"end":171,"kind":"text"}]},{"pos":171,"end":456,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":171,"end":456,"kind":"text"}]},{"pos":456,"end":492,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (30-44):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -prologue: (46-60):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -prepend: (62-171):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (62-171) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (171-456):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (171-456) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (456-492) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-156) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (156-256) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (256-275) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 44, - "kind": "prologue", - "data": "myPrologue2" - }, - { - "pos": 46, - "end": 60, - "kind": "prologue", - "data": "myPrologue3" - }, - { - "pos": 62, - "end": 171, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 62, - "end": 171, - "kind": "text" - } - ] - }, - { - "pos": 171, - "end": 456, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 171, - "end": 456, - "kind": "text" - } - ] - }, - { - "pos": 456, - "end": 492, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue3\";\n\"myPrologue\";", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 14, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue3" - } - }, - { - "pos": 14, - "end": 28, - "expression": { - "pos": 14, - "end": 27, - "text": "myPrologue" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 156, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 156, - "kind": "text" - } - ] - }, - { - "pos": 156, - "end": 256, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 156, - "end": 256, - "kind": "text" - } - ] - }, - { - "pos": 256, - "end": 275, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 1268 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js deleted file mode 100644 index 5ec0c1c3bba55..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/shebang-in-all-projects.js +++ /dev/null @@ -1,1331 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -#!someshebang first first_PART1 -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' - -[12:04:00 AM] Building project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 2, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1 -} - -//// [/src/first/bin/first-output.d.ts] -#!someshebang first first_PART1 -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >#!someshebang first first_PART1 - > -2 >interface -3 > TheFirst -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(2, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(5, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(5, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(5, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(5, 32) Source(6, 24) + SourceIndex(0) -6 >Emitted(5, 33) Source(6, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(6, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(6, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(7, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(7, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(7, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(7, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(7, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -#!someshebang first first_PART1 -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(2, 22) Source(6, 24) + SourceIndex(0) -6 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1->#!someshebang first first_part2 - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(2, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(2, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(2, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(2, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(2, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(2, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(2, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(2, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":33,"end":142,"kind":"text"}]},"dts":{"sections":[{"pos":33,"end":189,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (33-142) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (33-189) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 33, - "end": 142, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 33, - "end": 189, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 254 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] -#!someshebang first first_PART1 -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >#!someshebang first first_PART1 - > -2 >interface -3 > TheFirst -1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(2, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(5, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(5, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(5, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(5, 32) Source(6, 24) + SourceIndex(0) -6 >Emitted(5, 33) Source(6, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(6, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(6, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(7, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(7, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(7, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(7, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(7, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >#!someshebang second second_part1 - > -2 >namespace -3 > N -4 > -1 >Emitted(10, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(10, 19) Source(2, 11) + SourceIndex(2) -3 >Emitted(10, 20) Source(2, 12) + SourceIndex(2) -4 >Emitted(10, 21) Source(2, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(11, 2) Source(4, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(12, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(6, 11) + SourceIndex(2) -3 >Emitted(12, 20) Source(6, 12) + SourceIndex(2) -4 >Emitted(12, 21) Source(6, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(13, 2) Source(12, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1->#!someshebang third third_part1 - > -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(17, 1) Source(2, 1) + SourceIndex(4) -2 >Emitted(17, 9) Source(2, 1) + SourceIndex(4) -3 >Emitted(17, 13) Source(2, 5) + SourceIndex(4) -4 >Emitted(17, 14) Source(2, 6) + SourceIndex(4) -5 >Emitted(17, 17) Source(2, 16) + SourceIndex(4) -6 >Emitted(17, 18) Source(2, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -#!someshebang first first_PART1 -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(2, 22) Source(6, 24) + SourceIndex(0) -6 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1->#!someshebang first first_part2 - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(2, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(2, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(2, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(2, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(2, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(2, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(2, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(2, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(6, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(6, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(12, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(6, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(6, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(7, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(7, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(7, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(8, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(8, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(8, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(8, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(8, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(8, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(8, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(8, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(9, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(9, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(11, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(11, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(11, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(11, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(12, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(6, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(6, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(6, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(6, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(12, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1->#!someshebang third third_part1 - > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(2, 5) + SourceIndex(5) -3 >Emitted(23, 6) Source(2, 6) + SourceIndex(5) -4 >Emitted(23, 9) Source(2, 9) + SourceIndex(5) -5 >Emitted(23, 13) Source(2, 13) + SourceIndex(5) -6 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) -7 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) -8 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(24, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(24, 2) Source(3, 2) + SourceIndex(5) -3 >Emitted(24, 3) Source(3, 3) + SourceIndex(5) -4 >Emitted(24, 14) Source(3, 14) + SourceIndex(5) -5 >Emitted(24, 16) Source(3, 16) + SourceIndex(5) -6 >Emitted(24, 17) Source(3, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":33,"end":142,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":33,"end":142,"kind":"text"}]},{"pos":142,"end":427,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":142,"end":427,"kind":"text"}]},{"pos":427,"end":463,"kind":"text"}]},"dts":{"sections":[{"pos":33,"end":189,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":33,"end":189,"kind":"text"}]},{"pos":189,"end":289,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":189,"end":289,"kind":"text"}]},{"pos":289,"end":308,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (33-142):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (33-142) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (142-427):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (142-427) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (427-463) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (33-189):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (33-189) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (189-289):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (189-289) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (289-308) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 33, - "end": 142, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 33, - "end": 142, - "kind": "text" - } - ] - }, - { - "pos": 142, - "end": 427, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 142, - "end": 427, - "kind": "text" - } - ] - }, - { - "pos": 427, - "end": 463, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 33, - "end": 189, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 33, - "end": 189, - "kind": "text" - } - ] - }, - { - "pos": 189, - "end": 289, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 189, - "end": 289, - "kind": "text" - } - ] - }, - { - "pos": 289, - "end": 308, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 724 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js deleted file mode 100644 index 43db36719d225..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/strict-in-all-projects.js +++ /dev/null @@ -1,1372 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' - -[12:04:00 AM] Building project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 2, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":124,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -text: (15-124) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-156) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 124, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 156, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 445 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":124,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":15,"end":124,"kind":"text"}]},{"pos":124,"end":409,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":124,"end":409,"kind":"text"}]},{"pos":409,"end":445,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prepend: (15-124):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (15-124) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (124-409):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (124-409) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (409-445) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-156) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (156-256) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (256-275) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 124, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 15, - "end": 124, - "kind": "text" - } - ] - }, - { - "pos": 124, - "end": 409, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 124, - "end": 409, - "kind": "text" - } - ] - }, - { - "pos": 409, - "end": 445, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 156, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 156, - "kind": "text" - } - ] - }, - { - "pos": 156, - "end": 256, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 156, - "end": 256, - "kind": "text" - } - ] - }, - { - "pos": 256, - "end": 275, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 914 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index eb794dbc11f56..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,5553 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is out of date because oldest output 'src/2/second-output.js' is older than newest input 'src/first' - -[12:04:00 AM] Building project '/src/second/tsconfig.json'... - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/second' - -[12:04:00 AM] Building project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 2, - "/src/second/second_part1.ts": 1, - "/src/second/second_part2.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts": 2, - "/src/third/third_part1.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.js": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1 -} - -//// [/src/2/second-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); -} -declare 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 - } -} -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} -declare class C { - doSomething(): void; -} -//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/*@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(15, 5) Source(15, 19) + SourceIndex(2) -2 >Emitted(15, 9) Source(15, 23) + SourceIndex(2) -3 >Emitted(15, 11) Source(15, 25) + SourceIndex(2) -4 >Emitted(15, 17) Source(15, 31) + SourceIndex(2) -5 >Emitted(15, 18) Source(15, 32) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) ---- ->>> get c(): number; -1->^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^ -6 > ^ -7 > ^^^^-> -1->() { } - > /*@internal*/ -2 > get -3 > c -4 > () { return 10; } - > /*@internal*/ set c(val: -5 > number -6 > -1->Emitted(17, 5) Source(17, 19) + SourceIndex(2) -2 >Emitted(17, 9) Source(17, 23) + SourceIndex(2) -3 >Emitted(17, 10) Source(17, 24) + SourceIndex(2) -4 >Emitted(17, 14) Source(18, 30) + SourceIndex(2) -5 >Emitted(17, 20) Source(18, 36) + SourceIndex(2) -6 >Emitted(17, 21) Source(17, 41) + SourceIndex(2) ---- ->>> set c(val: number); -1->^^^^ -2 > ^^^^ -3 > ^ -4 > ^ -5 > ^^^^^ -6 > ^^^^^^ -7 > ^^ -1-> - > /*@internal*/ -2 > set -3 > c -4 > ( -5 > val: -6 > number -7 > ) { } -1->Emitted(18, 5) Source(18, 19) + SourceIndex(2) -2 >Emitted(18, 9) Source(18, 23) + SourceIndex(2) -3 >Emitted(18, 10) Source(18, 24) + SourceIndex(2) -4 >Emitted(18, 11) Source(18, 25) + SourceIndex(2) -5 >Emitted(18, 16) Source(18, 30) + SourceIndex(2) -6 >Emitted(18, 22) Source(18, 36) + SourceIndex(2) -7 >Emitted(18, 24) Source(18, 41) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(20, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(20, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(20, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(20, 27) Source(20, 19) + SourceIndex(2) ---- ->>> class C { -1 >^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /*@internal*/ -2 > export class -3 > C -1 >Emitted(21, 5) Source(21, 19) + SourceIndex(2) -2 >Emitted(21, 11) Source(21, 32) + SourceIndex(2) -3 >Emitted(21, 12) Source(21, 33) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(22, 6) Source(21, 37) + SourceIndex(2) ---- ->>> function foo(): void; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(23, 5) Source(22, 19) + SourceIndex(2) -2 >Emitted(23, 14) Source(22, 35) + SourceIndex(2) -3 >Emitted(23, 17) Source(22, 38) + SourceIndex(2) -4 >Emitted(23, 26) Source(22, 43) + SourceIndex(2) ---- ->>> namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(24, 5) Source(23, 19) + SourceIndex(2) -2 >Emitted(24, 15) Source(23, 36) + SourceIndex(2) -3 >Emitted(24, 28) Source(23, 49) + SourceIndex(2) -4 >Emitted(24, 29) Source(23, 50) + SourceIndex(2) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(25, 9) Source(23, 52) + SourceIndex(2) -2 >Emitted(25, 15) Source(23, 65) + SourceIndex(2) -3 >Emitted(25, 16) Source(23, 66) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(26, 10) Source(23, 69) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(27, 6) Source(23, 71) + SourceIndex(2) ---- ->>> namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(28, 5) Source(24, 19) + SourceIndex(2) -2 >Emitted(28, 15) Source(24, 36) + SourceIndex(2) -3 >Emitted(28, 24) Source(24, 45) + SourceIndex(2) -4 >Emitted(28, 25) Source(24, 46) + SourceIndex(2) -5 >Emitted(28, 34) Source(24, 55) + SourceIndex(2) -6 >Emitted(28, 35) Source(24, 56) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(29, 9) Source(24, 58) + SourceIndex(2) -2 >Emitted(29, 15) Source(24, 71) + SourceIndex(2) -3 >Emitted(29, 24) Source(24, 80) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(30, 10) Source(24, 83) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(31, 6) Source(24, 85) + SourceIndex(2) ---- ->>> 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(32, 5) Source(25, 19) + SourceIndex(2) -2 >Emitted(32, 11) Source(25, 25) + SourceIndex(2) -3 >Emitted(32, 19) Source(25, 33) + SourceIndex(2) -4 >Emitted(32, 29) Source(25, 43) + SourceIndex(2) -5 >Emitted(32, 32) Source(25, 46) + SourceIndex(2) -6 >Emitted(32, 45) Source(25, 59) + SourceIndex(2) -7 >Emitted(32, 46) Source(25, 60) + SourceIndex(2) -8 >Emitted(32, 47) Source(25, 61) + SourceIndex(2) -9 >Emitted(32, 48) Source(25, 62) + SourceIndex(2) ---- ->>> type internalType = internalC; -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /*@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(33, 5) Source(26, 19) + SourceIndex(2) -2 >Emitted(33, 10) Source(26, 31) + SourceIndex(2) -3 >Emitted(33, 22) Source(26, 43) + SourceIndex(2) -4 >Emitted(33, 25) Source(26, 46) + SourceIndex(2) -5 >Emitted(33, 34) Source(26, 55) + SourceIndex(2) -6 >Emitted(33, 35) Source(26, 56) + SourceIndex(2) ---- ->>> const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /*@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(34, 5) Source(27, 26) + SourceIndex(2) -2 >Emitted(34, 11) Source(27, 32) + SourceIndex(2) -3 >Emitted(34, 24) Source(27, 45) + SourceIndex(2) -4 >Emitted(34, 29) Source(27, 50) + SourceIndex(2) -5 >Emitted(34, 30) Source(27, 51) + SourceIndex(2) ---- ->>> enum internalEnum { -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(35, 5) Source(28, 19) + SourceIndex(2) -2 >Emitted(35, 10) Source(28, 31) + SourceIndex(2) -3 >Emitted(35, 22) Source(28, 43) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(36, 9) Source(28, 46) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 47) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 47) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(37, 9) Source(28, 49) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 50) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 50) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(38, 9) Source(28, 52) + SourceIndex(2) -2 >Emitted(38, 10) Source(28, 53) + SourceIndex(2) -3 >Emitted(38, 14) Source(28, 53) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(39, 6) Source(28, 55) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(40, 2) Source(29, 2) + SourceIndex(2) ---- ->>>declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 >class -3 > internalC -1->Emitted(41, 1) Source(30, 15) + SourceIndex(2) -2 >Emitted(41, 15) Source(30, 21) + SourceIndex(2) -3 >Emitted(41, 24) Source(30, 30) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(42, 2) Source(30, 33) + SourceIndex(2) ---- ->>>declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^ -5 > ^-> -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () {} -1->Emitted(43, 1) Source(31, 15) + SourceIndex(2) -2 >Emitted(43, 18) Source(31, 24) + SourceIndex(2) -3 >Emitted(43, 29) Source(31, 35) + SourceIndex(2) -4 >Emitted(43, 38) Source(31, 40) + SourceIndex(2) ---- ->>>declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > -1->Emitted(44, 1) Source(32, 15) + SourceIndex(2) -2 >Emitted(44, 19) Source(32, 25) + SourceIndex(2) -3 >Emitted(44, 36) Source(32, 42) + SourceIndex(2) -4 >Emitted(44, 37) Source(32, 43) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(45, 5) Source(32, 45) + SourceIndex(2) -2 >Emitted(45, 11) Source(32, 58) + SourceIndex(2) -3 >Emitted(45, 20) Source(32, 67) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(46, 6) Source(32, 70) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(47, 2) Source(32, 72) + SourceIndex(2) ---- ->>>declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalOther -4 > . -5 > something -6 > -1->Emitted(48, 1) Source(33, 15) + SourceIndex(2) -2 >Emitted(48, 19) Source(33, 25) + SourceIndex(2) -3 >Emitted(48, 32) Source(33, 38) + SourceIndex(2) -4 >Emitted(48, 33) Source(33, 39) + SourceIndex(2) -5 >Emitted(48, 42) Source(33, 48) + SourceIndex(2) -6 >Emitted(48, 43) Source(33, 49) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(49, 5) Source(33, 51) + SourceIndex(2) -2 >Emitted(49, 11) Source(33, 64) + SourceIndex(2) -3 >Emitted(49, 20) Source(33, 73) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(50, 6) Source(33, 76) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(51, 2) Source(33, 78) + SourceIndex(2) ---- ->>>import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(52, 1) Source(34, 15) + SourceIndex(2) -2 >Emitted(52, 8) Source(34, 22) + SourceIndex(2) -3 >Emitted(52, 22) Source(34, 36) + SourceIndex(2) -4 >Emitted(52, 25) Source(34, 39) + SourceIndex(2) -5 >Emitted(52, 42) Source(34, 56) + SourceIndex(2) -6 >Emitted(52, 43) Source(34, 57) + SourceIndex(2) -7 >Emitted(52, 52) Source(34, 66) + SourceIndex(2) -8 >Emitted(52, 53) Source(34, 67) + SourceIndex(2) ---- ->>>declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 >type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(53, 1) Source(35, 15) + SourceIndex(2) -2 >Emitted(53, 14) Source(35, 20) + SourceIndex(2) -3 >Emitted(53, 26) Source(35, 32) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 35) + SourceIndex(2) -5 >Emitted(53, 38) Source(35, 44) + SourceIndex(2) -6 >Emitted(53, 39) Source(35, 45) + SourceIndex(2) ---- ->>>declare const internalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 > -3 > const -4 > internalConst -5 > = 10 -6 > ; -1 >Emitted(54, 1) Source(36, 15) + SourceIndex(2) -2 >Emitted(54, 9) Source(36, 15) + SourceIndex(2) -3 >Emitted(54, 15) Source(36, 21) + SourceIndex(2) -4 >Emitted(54, 28) Source(36, 34) + SourceIndex(2) -5 >Emitted(54, 33) Source(36, 39) + SourceIndex(2) -6 >Emitted(54, 34) Source(36, 40) + SourceIndex(2) ---- ->>>declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -1 > - >/*@internal*/ -2 >enum -3 > internalEnum -1 >Emitted(55, 1) Source(37, 15) + SourceIndex(2) -2 >Emitted(55, 14) Source(37, 20) + SourceIndex(2) -3 >Emitted(55, 26) Source(37, 32) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(56, 5) Source(37, 35) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 36) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 36) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(57, 5) Source(37, 38) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 39) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 39) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(58, 5) Source(37, 41) + SourceIndex(2) -2 >Emitted(58, 6) Source(37, 42) + SourceIndex(2) -3 >Emitted(58, 10) Source(37, 42) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 44) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(60, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(60, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(60, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /*@internal*/ -1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) -2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) -3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) -4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) -3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) -4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) -5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) -6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) -7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) -2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) -3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) -4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) -5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >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(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) -2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) -3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) -4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) -5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) -3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(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(44, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) -3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) -4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(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(55, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(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(56, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) -2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) -3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) -4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) -6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) -7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) -2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) -3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) -4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) -5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) -3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(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(64, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@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(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/*@internal*/ -1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) -2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) -3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) -4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) -5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) -3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) -4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) -3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(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(91, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) -2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) -3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) -4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) -5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) -6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) -7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) -8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) -2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) -3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) -4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) -5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) -6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) -3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":109,"kind":"text"}]},{"pos":109,"end":3162,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}]},{"pos":156,"end":233,"kind":"text"},{"pos":233,"end":338,"kind":"internal"},{"pos":340,"end":372,"kind":"text"},{"pos":372,"end":764,"kind":"internal"},{"pos":766,"end":769,"kind":"text"},{"pos":769,"end":1182,"kind":"internal"},{"pos":1184,"end":1232,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-109):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-109) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (109-3162) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-156):: ../first/bin/first-output.d.ts texts:: 2 ->>-------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ->>-------------------------------------------------------------------- -text: (41-156) -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (156-233) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (233-338) - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); ----------------------------------------------------------------------- -text: (340-372) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (372-764) - 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: (766-769) -} - ----------------------------------------------------------------------- -internal: (769-1182) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1184-1232) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 109, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 109, - "kind": "text" - } - ] - }, - { - "pos": 109, - "end": 3162, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 156, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 156, - "kind": "text" - } - ] - }, - { - "pos": 156, - "end": 233, - "kind": "text" - }, - { - "pos": 233, - "end": 338, - "kind": "internal" - }, - { - "pos": 340, - "end": 372, - "kind": "text" - }, - { - "pos": 372, - "end": 764, - "kind": "internal" - }, - { - "pos": 766, - "end": 769, - "kind": "text" - }, - { - "pos": 769, - "end": 1182, - "kind": "internal" - }, - { - "pos": 1184, - "end": 1232, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 769 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/*@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-109) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-156) -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 109, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 156, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 290 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>declare const s = "Hola, world"; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(1, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -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(13, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /*@internal*/ -1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) -2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) -3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) -4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) -3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) -4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) -5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) -6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) -7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) -2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) -3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) -4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) -5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >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(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) -2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) -3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) -4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) -5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) -3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(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(44, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) -3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) -4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(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(55, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(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(56, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) -2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) -3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) -4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) -6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) -7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) -2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) -3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) -4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) -5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) -3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(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(64, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@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(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/*@internal*/ -1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) -2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) -3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) -4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) -5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) -3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) -4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) -3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(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(91, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) -2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) -3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) -4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) -5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) -6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) -7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) -8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) -2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) -3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) -4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) -5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) -6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) -3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3162,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3162,"kind":"text"}]},{"pos":3162,"end":3198,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":275,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":275,"kind":"text"}]},{"pos":275,"end":294,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3162):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3162) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3162-3198) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-275):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-275) -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (275-294) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3162, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3162, - "kind": "text" - } - ] - }, - { - "pos": 3162, - "end": 3198, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 275, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 275, - "kind": "text" - } - ] - }, - { - "pos": 275, - "end": 294, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 464 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js deleted file mode 100644 index 2d0a6750bb7be..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/stripInternal.js +++ /dev/null @@ -1,2708 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' - -[12:04:00 AM] Building project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 2, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1 -} - -//// [/src/first/bin/first-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >/*@internal*/ -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-109) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-156) -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 109, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 156, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 290 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>declare const s = "Hola, world"; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(1, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} -1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -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(13, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /*@internal*/ -1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) -2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) -3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) -4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) -5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) -3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) -4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) -5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) -6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) -7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) -2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) -3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) -4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) -5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >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(26, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) -2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) -3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) -4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) -5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) -3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) -4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(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(44, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) -3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) -4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(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(55, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(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(56, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) -2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) -3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) -4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) -5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) -6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) -7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) -2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) -3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) -4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) -5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) -3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(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(64, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@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(65, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/*@internal*/ -1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) -2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) -3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) -4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) -5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) -3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) -4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) -3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) -4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(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(91, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) -2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) -3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) -4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) -5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) -6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) -7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) -8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) -2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) -3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) -4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) -5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) -6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) -3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":109,"kind":"text"}]},{"pos":109,"end":3162,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":109,"end":3162,"kind":"text"}]},{"pos":3162,"end":3198,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":115,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":115,"kind":"text"}]},{"pos":115,"end":275,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":115,"end":275,"kind":"text"}]},{"pos":275,"end":294,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-109):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-109) -var s = "Hola, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (109-3162):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (109-3162) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3162-3198) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-115):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-115) -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (115-275):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (115-275) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (275-294) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 109, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 109, - "kind": "text" - } - ] - }, - { - "pos": 109, - "end": 3162, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 109, - "end": 3162, - "kind": "text" - } - ] - }, - { - "pos": 3162, - "end": 3198, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 115, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 115, - "kind": "text" - } - ] - }, - { - "pos": 115, - "end": 275, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 115, - "end": 275, - "kind": "text" - } - ] - }, - { - "pos": 275, - "end": 294, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 724 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js deleted file mode 100644 index 640a1220c8363..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/triple-slash-refs-in-all-projects.js +++ /dev/null @@ -1,1582 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hola, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' - -[12:04:00 AM] Building project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/tripleRef.d.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 2, - "/src/2/second-output.tsbuildinfo": 1, - "/src/2/second-output.d.ts": 1, - "/src/second/tripleRef.d.ts": 1, - "/src/third/third_part1.ts": 1, - "/src/third/tripleRef.d.ts": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1 -} - -//// [/src/first/bin/first-output.d.ts] -/// -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; -//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>/// ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(2, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(3, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(3, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(3, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(3, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(3, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(5, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(5, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(5, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(5, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(5, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(5, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(6, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(6, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(6, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(7, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(7, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(7, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>declare const first_part2Const: firstfirst_part2; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^ -6 > ^ -1->/// - > -2 > -3 > const -4 > first_part2Const -5 > = new firstfirst_part2() -6 > ; -1->Emitted(9, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(9, 9) Source(2, 1) + SourceIndex(1) -3 >Emitted(9, 15) Source(2, 7) + SourceIndex(1) -4 >Emitted(9, 31) Source(2, 23) + SourceIndex(1) -5 >Emitted(9, 49) Source(2, 48) + SourceIndex(1) -6 >Emitted(9, 50) Source(2, 49) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(10, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(10, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hola, world"; -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>var first_part2Const = new firstfirst_part2(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > first_part2Const -4 > = -5 > new -6 > firstfirst_part2 -7 > () -8 > ; -1->Emitted(3, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(3, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(3, 21) Source(2, 23) + SourceIndex(1) -4 >Emitted(3, 24) Source(2, 26) + SourceIndex(1) -5 >Emitted(3, 28) Source(2, 30) + SourceIndex(1) -6 >Emitted(3, 44) Source(2, 46) + SourceIndex(1) -7 >Emitted(3, 46) Source(2, 48) + SourceIndex(1) -8 >Emitted(3, 47) Source(2, 49) + SourceIndex(1) ---- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(4, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(3, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(3, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(3, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(3, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(3, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(3, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(3, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(3, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":157,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":44,"end":251,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-157) -var s = "Hola, world"; -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -reference: (0-42):: ../tripleRef.d.ts -/// ----------------------------------------------------------------------- -text: (44-251) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 42, - "kind": "reference", - "data": "../tripleRef.d.ts" - }, - { - "pos": 44, - "end": 251, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 318 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] -/// -/// -/// -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} -declare const third_part1Const: thirdthird_part1; -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>/// ->>>/// ->>>/// ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(4, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(4, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(5, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(5, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(5, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(5, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(5, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(6, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hola, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hola, world" -6 > ; -1->Emitted(7, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(7, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(7, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(7, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(7, 32) Source(5, 24) + SourceIndex(0) -6 >Emitted(7, 33) Source(5, 25) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(8, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(8, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(8, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(9, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(9, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>declare const first_part2Const: firstfirst_part2; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^ -6 > ^ -1->/// - > -2 > -3 > const -4 > first_part2Const -5 > = new firstfirst_part2() -6 > ; -1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(11, 9) Source(2, 1) + SourceIndex(1) -3 >Emitted(11, 15) Source(2, 7) + SourceIndex(1) -4 >Emitted(11, 31) Source(2, 23) + SourceIndex(1) -5 >Emitted(11, 49) Source(2, 48) + SourceIndex(1) -6 >Emitted(11, 50) Source(2, 49) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(12, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(12, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(12, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(12, 30) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare const second_part1Const: secondsecond_part1; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^ -6 > ^ -1->/// - > -2 > -3 > const -4 > second_part1Const -5 > = new secondsecond_part1() -6 > ; -1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(13, 9) Source(2, 1) + SourceIndex(3) -3 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) -4 >Emitted(13, 32) Source(2, 24) + SourceIndex(3) -5 >Emitted(13, 52) Source(2, 51) + SourceIndex(3) -6 >Emitted(13, 53) Source(2, 52) + SourceIndex(3) ---- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > - > -2 >namespace -3 > N -4 > -1 >Emitted(14, 1) Source(3, 1) + SourceIndex(3) -2 >Emitted(14, 19) Source(3, 11) + SourceIndex(3) -3 >Emitted(14, 20) Source(3, 12) + SourceIndex(3) -4 >Emitted(14, 21) Source(3, 13) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(16, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(16, 19) Source(7, 11) + SourceIndex(3) -3 >Emitted(16, 20) Source(7, 12) + SourceIndex(3) -4 >Emitted(16, 21) Source(7, 13) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(17, 2) Source(13, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(18, 15) Source(1, 7) + SourceIndex(4) -3 >Emitted(18, 16) Source(1, 8) + SourceIndex(4) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 16) Source(2, 16) + SourceIndex(4) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(20, 2) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare const third_part1Const: thirdthird_part1; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^ -6 > ^ -1->/// - > -2 > -3 > const -4 > third_part1Const -5 > = new thirdthird_part1() -6 > ; -1->Emitted(21, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(21, 9) Source(2, 1) + SourceIndex(5) -3 >Emitted(21, 15) Source(2, 7) + SourceIndex(5) -4 >Emitted(21, 31) Source(2, 23) + SourceIndex(5) -5 >Emitted(21, 49) Source(2, 48) + SourceIndex(5) -6 >Emitted(21, 50) Source(2, 49) + SourceIndex(5) ---- ->>>declare var c: C; -1 > -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1 >Emitted(22, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(22, 9) Source(3, 1) + SourceIndex(5) -3 >Emitted(22, 13) Source(3, 5) + SourceIndex(5) -4 >Emitted(22, 14) Source(3, 6) + SourceIndex(5) -5 >Emitted(22, 17) Source(3, 16) + SourceIndex(5) -6 >Emitted(22, 18) Source(3, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hola, world"; -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var third_part1Const = new thirdthird_part1(); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hola, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hola, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) -6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>var first_part2Const = new firstfirst_part2(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > first_part2Const -4 > = -5 > new -6 > firstfirst_part2 -7 > () -8 > ; -1->Emitted(3, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(3, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(3, 21) Source(2, 23) + SourceIndex(1) -4 >Emitted(3, 24) Source(2, 26) + SourceIndex(1) -5 >Emitted(3, 28) Source(2, 30) + SourceIndex(1) -6 >Emitted(3, 44) Source(2, 46) + SourceIndex(1) -7 >Emitted(3, 46) Source(2, 48) + SourceIndex(1) -8 >Emitted(3, 47) Source(2, 49) + SourceIndex(1) ---- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(4, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(3, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(3, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(3, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(3, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(3, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(3, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(3, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(3, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var second_part1Const = new secondsecond_part1(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > second_part1Const -4 > = -5 > new -6 > secondsecond_part1 -7 > () -8 > ; -1->Emitted(8, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(2, 7) + SourceIndex(3) -3 >Emitted(8, 22) Source(2, 24) + SourceIndex(3) -4 >Emitted(8, 25) Source(2, 27) + SourceIndex(3) -5 >Emitted(8, 29) Source(2, 31) + SourceIndex(3) -6 >Emitted(8, 47) Source(2, 49) + SourceIndex(3) -7 >Emitted(8, 49) Source(2, 51) + SourceIndex(3) -8 >Emitted(8, 50) Source(2, 52) + SourceIndex(3) ---- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(9, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(7, 11) + SourceIndex(3) -3 >Emitted(9, 6) Source(7, 12) + SourceIndex(3) -4 >Emitted(9, 7) Source(13, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(10, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(10, 12) Source(7, 11) + SourceIndex(3) -3 >Emitted(10, 13) Source(7, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 14) Source(8, 14) + SourceIndex(3) -3 >Emitted(11, 15) Source(8, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(12, 9) Source(9, 9) + SourceIndex(3) -2 >Emitted(12, 16) Source(9, 16) + SourceIndex(3) -3 >Emitted(12, 17) Source(9, 17) + SourceIndex(3) -4 >Emitted(12, 20) Source(9, 20) + SourceIndex(3) -5 >Emitted(12, 21) Source(9, 21) + SourceIndex(3) -6 >Emitted(12, 30) Source(9, 30) + SourceIndex(3) -7 >Emitted(12, 31) Source(9, 31) + SourceIndex(3) -8 >Emitted(12, 32) Source(9, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(14, 5) Source(12, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(12, 6) + SourceIndex(3) -3 >Emitted(14, 8) Source(12, 8) + SourceIndex(3) -4 >Emitted(14, 9) Source(12, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(15, 2) Source(13, 2) + SourceIndex(3) -3 >Emitted(15, 4) Source(7, 11) + SourceIndex(3) -4 >Emitted(15, 5) Source(7, 12) + SourceIndex(3) -5 >Emitted(15, 10) Source(7, 11) + SourceIndex(3) -6 >Emitted(15, 11) Source(7, 12) + SourceIndex(3) -7 >Emitted(15, 19) Source(13, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var third_part1Const = new thirdthird_part1(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > third_part1Const -4 > = -5 > new -6 > thirdthird_part1 -7 > () -8 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 5) Source(2, 7) + SourceIndex(5) -3 >Emitted(24, 21) Source(2, 23) + SourceIndex(5) -4 >Emitted(24, 24) Source(2, 26) + SourceIndex(5) -5 >Emitted(24, 28) Source(2, 30) + SourceIndex(5) -6 >Emitted(24, 44) Source(2, 46) + SourceIndex(5) -7 >Emitted(24, 46) Source(2, 48) + SourceIndex(5) -8 >Emitted(24, 47) Source(2, 49) + SourceIndex(5) ---- ->>>var c = new C(); -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1 > - > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1 >Emitted(25, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(25, 5) Source(3, 5) + SourceIndex(5) -3 >Emitted(25, 6) Source(3, 6) + SourceIndex(5) -4 >Emitted(25, 9) Source(3, 9) + SourceIndex(5) -5 >Emitted(25, 13) Source(3, 13) + SourceIndex(5) -6 >Emitted(25, 14) Source(3, 14) + SourceIndex(5) -7 >Emitted(25, 16) Source(3, 16) + SourceIndex(5) -8 >Emitted(25, 17) Source(3, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(26, 1) Source(4, 1) + SourceIndex(5) -2 >Emitted(26, 2) Source(4, 2) + SourceIndex(5) -3 >Emitted(26, 3) Source(4, 3) + SourceIndex(5) -4 >Emitted(26, 14) Source(4, 14) + SourceIndex(5) -5 >Emitted(26, 16) Source(4, 16) + SourceIndex(5) -6 >Emitted(26, 17) Source(4, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":493,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":157,"end":493,"kind":"text"}]},{"pos":493,"end":577,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":47,"end":101,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":103,"end":158,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":160,"end":367,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":160,"end":367,"kind":"text"}]},{"pos":367,"end":521,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":367,"end":521,"kind":"text"}]},{"pos":521,"end":591,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -var s = "Hola, world"; -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (157-493):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (157-493) -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (493-577) -var third_part1Const = new thirdthird_part1(); -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -reference: (0-45):: ../../tripleRef.d.ts -/// ----------------------------------------------------------------------- -reference: (47-101):: ../../../first/tripleRef.d.ts -/// ----------------------------------------------------------------------- -reference: (103-158):: ../../../second/tripleRef.d.ts -/// ----------------------------------------------------------------------- -prepend: (160-367):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (160-367) -interface TheFirst { - none: any; -} -declare const s = "Hola, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (367-521):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (367-521) -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (521-591) -declare const third_part1Const: thirdthird_part1; -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 493, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 157, - "end": 493, - "kind": "text" - } - ] - }, - { - "pos": 493, - "end": 577, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 45, - "kind": "reference", - "data": "../../tripleRef.d.ts" - }, - { - "pos": 47, - "end": 101, - "kind": "reference", - "data": "../../../first/tripleRef.d.ts" - }, - { - "pos": 103, - "end": 158, - "kind": "reference", - "data": "../../../second/tripleRef.d.ts" - }, - { - "pos": 160, - "end": 367, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 160, - "end": 367, - "kind": "text" - } - ] - }, - { - "pos": 367, - "end": 521, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 367, - "end": 521, - "kind": "text" - } - ] - }, - { - "pos": 521, - "end": 591, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 952 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js deleted file mode 100644 index e900aa02e907a..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/baseline-sectioned-sourcemaps.js +++ /dev/null @@ -1,974 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:08:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:08:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:08:00 AM] Building project '/src/first/tsconfig.json'... - -[12:08:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:08:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:08:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 252 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":412,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":412,"kind":"text"}]},{"pos":412,"end":448,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (127-412):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (127-412) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (412-448) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 412, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 127, - "end": 412, - "kind": "text" - } - ] - }, - { - "pos": 412, - "end": 448, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 720 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js deleted file mode 100644 index 4dc7ffdf5de0e..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js +++ /dev/null @@ -1,1498 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -}console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:08:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:08:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:08:00 AM] Building project '/src/first/tsconfig.json'... - -[12:08:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:08:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:08:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":746,"kind":"text"}],"sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (502-746) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 746, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 362 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(22, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(22, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(22, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(23, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(23, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(23, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(24, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(24, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(24, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(25, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(25, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(25, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(25, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(25, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(25, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(25, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(25, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(26, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(26, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(27, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(27, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(27, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(27, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(28, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(28, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(28, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(28, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(28, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(28, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(28, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(29, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(29, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(29, 35) Source(12, 35) + SourceIndex(3) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(30, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(30, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(30, 14) Source(13, 24) + SourceIndex(3) -4 >Emitted(30, 16) Source(13, 26) + SourceIndex(3) -5 >Emitted(30, 17) Source(13, 27) + SourceIndex(3) -6 >Emitted(30, 19) Source(13, 29) + SourceIndex(3) -7 >Emitted(30, 21) Source(13, 31) + SourceIndex(3) -8 >Emitted(30, 23) Source(13, 33) + SourceIndex(3) -9 >Emitted(30, 24) Source(13, 34) + SourceIndex(3) -10>Emitted(30, 26) Source(13, 36) + SourceIndex(3) -11>Emitted(30, 28) Source(13, 38) + SourceIndex(3) -12>Emitted(30, 30) Source(13, 40) + SourceIndex(3) -13>Emitted(30, 32) Source(13, 42) + SourceIndex(3) -14>Emitted(30, 34) Source(13, 44) + SourceIndex(3) -15>Emitted(30, 36) Source(13, 46) + SourceIndex(3) -16>Emitted(30, 38) Source(13, 48) + SourceIndex(3) -17>Emitted(30, 40) Source(13, 9) + SourceIndex(3) -18>Emitted(30, 41) Source(13, 10) + SourceIndex(3) -19>Emitted(30, 48) Source(13, 10) + SourceIndex(3) -20>Emitted(30, 50) Source(13, 15) + SourceIndex(3) -21>Emitted(30, 54) Source(13, 19) + SourceIndex(3) -22>Emitted(30, 68) Source(13, 7) + SourceIndex(3) -23>Emitted(30, 73) Source(13, 21) + SourceIndex(3) -24>Emitted(30, 74) Source(13, 48) + SourceIndex(3) -25>Emitted(30, 75) Source(13, 49) + SourceIndex(3) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(31, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(31, 2) Source(14, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(32, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(33, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(34, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(34, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(35, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(35, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(35, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(36, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(36, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(36, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(36, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(36, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(36, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(36, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(36, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(37, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(37, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(38, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(38, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(39, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(39, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(39, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(39, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(40, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(40, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(40, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(40, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(40, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(40, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(40, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(40, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(41, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(41, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(41, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(41, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(41, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(41, 17) Source(2, 17) + SourceIndex(5) ---- ->>>function forthirdthird_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forthirdthird_part1Rest -1->Emitted(42, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(42, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(42, 33) Source(3, 33) + SourceIndex(5) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(43, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(43, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(43, 14) Source(4, 24) + SourceIndex(5) -4 >Emitted(43, 16) Source(4, 26) + SourceIndex(5) -5 >Emitted(43, 17) Source(4, 27) + SourceIndex(5) -6 >Emitted(43, 19) Source(4, 29) + SourceIndex(5) -7 >Emitted(43, 21) Source(4, 31) + SourceIndex(5) -8 >Emitted(43, 23) Source(4, 33) + SourceIndex(5) -9 >Emitted(43, 24) Source(4, 34) + SourceIndex(5) -10>Emitted(43, 26) Source(4, 36) + SourceIndex(5) -11>Emitted(43, 28) Source(4, 38) + SourceIndex(5) -12>Emitted(43, 30) Source(4, 40) + SourceIndex(5) -13>Emitted(43, 32) Source(4, 42) + SourceIndex(5) -14>Emitted(43, 34) Source(4, 44) + SourceIndex(5) -15>Emitted(43, 36) Source(4, 46) + SourceIndex(5) -16>Emitted(43, 38) Source(4, 48) + SourceIndex(5) -17>Emitted(43, 40) Source(4, 9) + SourceIndex(5) -18>Emitted(43, 41) Source(4, 10) + SourceIndex(5) -19>Emitted(43, 48) Source(4, 10) + SourceIndex(5) -20>Emitted(43, 50) Source(4, 15) + SourceIndex(5) -21>Emitted(43, 54) Source(4, 19) + SourceIndex(5) -22>Emitted(43, 68) Source(4, 7) + SourceIndex(5) -23>Emitted(43, 73) Source(4, 21) + SourceIndex(5) -24>Emitted(43, 74) Source(4, 48) + SourceIndex(5) -25>Emitted(43, 75) Source(4, 49) + SourceIndex(5) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(44, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(44, 2) Source(5, 2) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":746,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":746,"kind":"text"}]},{"pos":746,"end":1150,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":746,"end":1150,"kind":"text"}]},{"pos":1150,"end":1303,"kind":"text"}],"sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":361,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":361,"kind":"text"}]},{"pos":361,"end":431,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (502-746):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (502-746) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (746-1150):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (746-1150) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (1150-1303) -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (208-361):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (208-361) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (361-431) -declare var c: C; -declare function forthirdthird_part1Rest(): void; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 746, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 502, - "end": 746, - "kind": "text" - } - ] - }, - { - "pos": 746, - "end": 1150, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 746, - "end": 1150, - "kind": "text" - } - ] - }, - { - "pos": 1150, - "end": 1303, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - }, - { - "pos": 208, - "end": 361, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 208, - "end": 361, - "kind": "text" - } - ] - }, - { - "pos": 361, - "end": 431, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 836 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js deleted file mode 100644 index 74915ef414946..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js +++ /dev/null @@ -1,1141 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { }console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 39) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 46) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 47) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 50) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 51) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 52) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 53) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 54) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":167,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-167) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 167, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 252 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(14, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(14, 39) Source(12, 39) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(15, 1) Source(12, 39) + SourceIndex(0) -2 >Emitted(15, 8) Source(12, 46) + SourceIndex(0) -3 >Emitted(15, 9) Source(12, 47) + SourceIndex(0) -4 >Emitted(15, 12) Source(12, 50) + SourceIndex(0) -5 >Emitted(15, 13) Source(12, 51) + SourceIndex(0) -6 >Emitted(15, 14) Source(12, 52) + SourceIndex(0) -7 >Emitted(15, 15) Source(12, 53) + SourceIndex(0) -8 >Emitted(15, 16) Source(12, 54) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(16, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(16, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(16, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(16, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(16, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(16, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(16, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(16, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(17, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(17, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(17, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(18, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(18, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(18, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(18, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(19, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(19, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(20, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(20, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(20, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(20, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(21, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(21, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(22, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(22, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(22, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(23, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(23, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(23, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(23, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(23, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(23, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(23, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(23, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(24, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(24, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(25, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(25, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(25, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(25, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(26, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(26, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(26, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(26, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(26, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(26, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(27, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(27, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(27, 35) Source(12, 35) + SourceIndex(3) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(28, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(28, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(28, 14) Source(13, 24) + SourceIndex(3) -4 >Emitted(28, 16) Source(13, 26) + SourceIndex(3) -5 >Emitted(28, 17) Source(13, 27) + SourceIndex(3) -6 >Emitted(28, 19) Source(13, 29) + SourceIndex(3) -7 >Emitted(28, 21) Source(13, 31) + SourceIndex(3) -8 >Emitted(28, 23) Source(13, 33) + SourceIndex(3) -9 >Emitted(28, 24) Source(13, 34) + SourceIndex(3) -10>Emitted(28, 26) Source(13, 36) + SourceIndex(3) -11>Emitted(28, 28) Source(13, 38) + SourceIndex(3) -12>Emitted(28, 30) Source(13, 40) + SourceIndex(3) -13>Emitted(28, 32) Source(13, 42) + SourceIndex(3) -14>Emitted(28, 34) Source(13, 44) + SourceIndex(3) -15>Emitted(28, 36) Source(13, 46) + SourceIndex(3) -16>Emitted(28, 38) Source(13, 48) + SourceIndex(3) -17>Emitted(28, 40) Source(13, 9) + SourceIndex(3) -18>Emitted(28, 41) Source(13, 10) + SourceIndex(3) -19>Emitted(28, 48) Source(13, 10) + SourceIndex(3) -20>Emitted(28, 50) Source(13, 15) + SourceIndex(3) -21>Emitted(28, 54) Source(13, 19) + SourceIndex(3) -22>Emitted(28, 68) Source(13, 7) + SourceIndex(3) -23>Emitted(28, 73) Source(13, 21) + SourceIndex(3) -24>Emitted(28, 74) Source(13, 48) + SourceIndex(3) -25>Emitted(28, 75) Source(13, 49) + SourceIndex(3) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(29, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(29, 2) Source(14, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(30, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(31, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(32, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(32, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(33, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(33, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(33, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(34, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(34, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(34, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(34, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(34, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(34, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(34, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(34, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(35, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(35, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(36, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(36, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(37, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(37, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(37, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(37, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(38, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(38, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(38, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(38, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(38, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(38, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(38, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(38, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(39, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(39, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(39, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(39, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(39, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(39, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":669,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":669,"kind":"text"}]},{"pos":669,"end":1073,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":669,"end":1073,"kind":"text"}]},{"pos":1073,"end":1109,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":361,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":361,"kind":"text"}]},{"pos":361,"end":380,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (502-669):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (502-669) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (669-1073):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (669-1073) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (1073-1109) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (208-361):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (208-361) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (361-380) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 669, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 502, - "end": 669, - "kind": "text" - } - ] - }, - { - "pos": 669, - "end": 1073, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 669, - "end": 1073, - "kind": "text" - } - ] - }, - { - "pos": 1073, - "end": 1109, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - }, - { - "pos": 208, - "end": 361, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 208, - "end": 361, - "kind": "text" - } - ] - }, - { - "pos": 361, - "end": 380, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 794 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/explainFiles.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/explainFiles.js deleted file mode 100644 index 16c329aa01075..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/explainFiles.js +++ /dev/null @@ -1,960 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose --explainFiles -[12:08:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:08:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:08:00 AM] Building project '/src/first/tsconfig.json'... - -lib/lib.d.ts - Default library for target 'es5' -src/first/first_PART1.ts - Part of 'files' list in tsconfig.json -src/first/first_part2.ts - Part of 'files' list in tsconfig.json -src/first/first_part3.ts - Part of 'files' list in tsconfig.json -[12:08:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:08:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:08:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 252 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":412,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":412,"kind":"text"}]},{"pos":412,"end":448,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (127-412):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (127-412) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (412-448) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 412, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 127, - "end": 412, - "kind": "text" - } - ] - }, - { - "pos": 412, - "end": 448, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 720 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js deleted file mode 100644 index db08d7ac949e7..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js +++ /dev/null @@ -1,2203 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -}console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var firstfirst_part3_ar = [20, 30]; -firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { ->>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { ->>> if (ar || !(i in from)) { ->>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); ->>> ar[i] = from[i]; ->>> } ->>> } ->>> return to.concat(ar || Array.prototype.slice.call(from)); ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(37, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(37, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(37, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(37, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(37, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(37, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(38, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(38, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(38, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(38, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(38, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(38, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(38, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(38, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(39, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(39, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(39, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(40, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(40, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(40, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(40, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(40, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(40, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(40, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(40, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(40, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(40, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(40, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(40, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(40, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(40, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(40, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(40, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(40, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(40, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(40, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(40, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(40, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(40, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(40, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(40, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(40, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(41, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(41, 2) Source(14, 2) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(42, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(42, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(42, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(42, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(42, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(42, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(42, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(42, 16) Source(14, 17) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(43, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(43, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(43, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(43, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(43, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(43, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(43, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(43, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(43, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(44, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(44, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(44, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(45, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(45, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(45, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(45, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(46, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(46, 2) Source(3, 2) + SourceIndex(2) ---- ->>>function firstfirst_part3Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > firstfirst_part3Spread -1->Emitted(47, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(47, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(47, 32) Source(4, 32) + SourceIndex(2) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(48, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(48, 16) Source(4, 47) + SourceIndex(2) ---- ->>> 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(49, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(49, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(49, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(49, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(49, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(49, 49) Source(4, 47) + SourceIndex(2) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(50, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(50, 31) Source(4, 47) + SourceIndex(2) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(52, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(52, 2) Source(4, 52) + SourceIndex(2) ---- ->>>var firstfirst_part3_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > firstfirst_part3_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(53, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(53, 5) Source(5, 7) + SourceIndex(2) -3 >Emitted(53, 24) Source(5, 26) + SourceIndex(2) -4 >Emitted(53, 27) Source(5, 29) + SourceIndex(2) -5 >Emitted(53, 28) Source(5, 30) + SourceIndex(2) -6 >Emitted(53, 30) Source(5, 32) + SourceIndex(2) -7 >Emitted(53, 32) Source(5, 34) + SourceIndex(2) -8 >Emitted(53, 34) Source(5, 36) + SourceIndex(2) -9 >Emitted(53, 35) Source(5, 37) + SourceIndex(2) -10>Emitted(53, 36) Source(5, 38) + SourceIndex(2) ---- ->>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >firstfirst_part3Spread -3 > ( -4 > 10 -5 > , ... -6 > firstfirst_part3_ar -7 > ); -1->Emitted(54, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(54, 23) Source(6, 23) + SourceIndex(2) -3 >Emitted(54, 53) Source(6, 24) + SourceIndex(2) -4 >Emitted(54, 55) Source(6, 26) + SourceIndex(2) -5 >Emitted(54, 65) Source(6, 31) + SourceIndex(2) -6 >Emitted(54, 84) Source(6, 50) + SourceIndex(2) -7 >Emitted(54, 95) Source(6, 52) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":1924,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":318,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -emitHelpers: (502-1006):: 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: (1008-1396):: typescript:spreadArray -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; ----------------------------------------------------------------------- -text: (1398-1924) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var firstfirst_part3_ar = [20, 30]; -firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-318) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare function firstfirst_part3Spread(...b: number[]): void; -declare const firstfirst_part3_ar: number[]; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 1006, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 1008, - "end": 1396, - "kind": "emitHelpers", - "data": "typescript:spreadArray" - }, - { - "pos": 1398, - "end": 1924, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spreadArray" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 318, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 553 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var firstfirst_part3_ar = [20, 30]; -firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -function secondsecond_part2Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var secondsecond_part2_ar = [20, 30]; -secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false)); -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -function thirdthird_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var thirdthird_part1_ar = [20, 30]; -thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false)); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { ->>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { ->>> if (ar || !(i in from)) { ->>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); ->>> ar[i] = from[i]; ->>> } ->>> } ->>> return to.concat(ar || Array.prototype.slice.call(from)); ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(37, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(37, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(37, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(37, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(37, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(37, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(38, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(38, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(38, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(38, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(38, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(38, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(38, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(38, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(39, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(39, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(39, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(40, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(40, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(40, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(40, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(40, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(40, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(40, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(40, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(40, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(40, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(40, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(40, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(40, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(40, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(40, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(40, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(40, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(40, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(40, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(40, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(40, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(40, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(40, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(40, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(40, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(41, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(41, 2) Source(14, 2) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(42, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(42, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(42, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(42, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(42, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(42, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(42, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(42, 16) Source(14, 17) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(43, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(43, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(43, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(43, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(43, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(43, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(43, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(43, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(43, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(44, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(44, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(44, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(45, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(45, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(45, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(45, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(46, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(46, 2) Source(3, 2) + SourceIndex(2) ---- ->>>function firstfirst_part3Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > firstfirst_part3Spread -1->Emitted(47, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(47, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(47, 32) Source(4, 32) + SourceIndex(2) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(48, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(48, 16) Source(4, 47) + SourceIndex(2) ---- ->>> 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(49, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(49, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(49, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(49, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(49, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(49, 49) Source(4, 47) + SourceIndex(2) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(50, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(50, 31) Source(4, 47) + SourceIndex(2) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(52, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(52, 2) Source(4, 52) + SourceIndex(2) ---- ->>>var firstfirst_part3_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > firstfirst_part3_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(53, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(53, 5) Source(5, 7) + SourceIndex(2) -3 >Emitted(53, 24) Source(5, 26) + SourceIndex(2) -4 >Emitted(53, 27) Source(5, 29) + SourceIndex(2) -5 >Emitted(53, 28) Source(5, 30) + SourceIndex(2) -6 >Emitted(53, 30) Source(5, 32) + SourceIndex(2) -7 >Emitted(53, 32) Source(5, 34) + SourceIndex(2) -8 >Emitted(53, 34) Source(5, 36) + SourceIndex(2) -9 >Emitted(53, 35) Source(5, 37) + SourceIndex(2) -10>Emitted(53, 36) Source(5, 38) + SourceIndex(2) ---- ->>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >firstfirst_part3Spread -3 > ( -4 > 10 -5 > , ... -6 > firstfirst_part3_ar -7 > ); -1->Emitted(54, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(54, 23) Source(6, 23) + SourceIndex(2) -3 >Emitted(54, 53) Source(6, 24) + SourceIndex(2) -4 >Emitted(54, 55) Source(6, 26) + SourceIndex(2) -5 >Emitted(54, 65) Source(6, 31) + SourceIndex(2) -6 >Emitted(54, 84) Source(6, 50) + SourceIndex(2) -7 >Emitted(54, 95) Source(6, 52) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(55, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(55, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(55, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(55, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(56, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(56, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(56, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(57, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(57, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(57, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(58, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(58, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(58, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(58, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(58, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(58, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(58, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(58, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(59, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(59, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(60, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(60, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(60, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(60, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(61, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(61, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(61, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(61, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(61, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(61, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(61, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(62, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(62, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(62, 35) Source(12, 35) + SourceIndex(3) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(63, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(63, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(63, 14) Source(13, 24) + SourceIndex(3) -4 >Emitted(63, 16) Source(13, 26) + SourceIndex(3) -5 >Emitted(63, 17) Source(13, 27) + SourceIndex(3) -6 >Emitted(63, 19) Source(13, 29) + SourceIndex(3) -7 >Emitted(63, 21) Source(13, 31) + SourceIndex(3) -8 >Emitted(63, 23) Source(13, 33) + SourceIndex(3) -9 >Emitted(63, 24) Source(13, 34) + SourceIndex(3) -10>Emitted(63, 26) Source(13, 36) + SourceIndex(3) -11>Emitted(63, 28) Source(13, 38) + SourceIndex(3) -12>Emitted(63, 30) Source(13, 40) + SourceIndex(3) -13>Emitted(63, 32) Source(13, 42) + SourceIndex(3) -14>Emitted(63, 34) Source(13, 44) + SourceIndex(3) -15>Emitted(63, 36) Source(13, 46) + SourceIndex(3) -16>Emitted(63, 38) Source(13, 48) + SourceIndex(3) -17>Emitted(63, 40) Source(13, 9) + SourceIndex(3) -18>Emitted(63, 41) Source(13, 10) + SourceIndex(3) -19>Emitted(63, 48) Source(13, 10) + SourceIndex(3) -20>Emitted(63, 50) Source(13, 15) + SourceIndex(3) -21>Emitted(63, 54) Source(13, 19) + SourceIndex(3) -22>Emitted(63, 68) Source(13, 7) + SourceIndex(3) -23>Emitted(63, 73) Source(13, 21) + SourceIndex(3) -24>Emitted(63, 74) Source(13, 48) + SourceIndex(3) -25>Emitted(63, 75) Source(13, 49) + SourceIndex(3) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(64, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(64, 2) Source(14, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(65, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(66, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(67, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(67, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(68, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(68, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(68, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(69, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(69, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(69, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(69, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(69, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(69, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(69, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(69, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(70, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(70, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(71, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(71, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(72, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(72, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(72, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(72, 6) Source(5, 2) + SourceIndex(4) ---- ->>>function secondsecond_part2Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part2Spread -1->Emitted(73, 1) Source(7, 1) + SourceIndex(4) -2 >Emitted(73, 10) Source(7, 10) + SourceIndex(4) -3 >Emitted(73, 34) Source(7, 34) + SourceIndex(4) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(74, 5) Source(7, 35) + SourceIndex(4) -2 >Emitted(74, 16) Source(7, 49) + SourceIndex(4) ---- ->>> 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(75, 10) Source(7, 35) + SourceIndex(4) -2 >Emitted(75, 20) Source(7, 49) + SourceIndex(4) -3 >Emitted(75, 22) Source(7, 35) + SourceIndex(4) -4 >Emitted(75, 43) Source(7, 49) + SourceIndex(4) -5 >Emitted(75, 45) Source(7, 35) + SourceIndex(4) -6 >Emitted(75, 49) Source(7, 49) + SourceIndex(4) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(76, 9) Source(7, 35) + SourceIndex(4) -2 >Emitted(76, 31) Source(7, 49) + SourceIndex(4) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(78, 1) Source(7, 53) + SourceIndex(4) -2 >Emitted(78, 2) Source(7, 54) + SourceIndex(4) ---- ->>>var secondsecond_part2_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > secondsecond_part2_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(79, 1) Source(8, 1) + SourceIndex(4) -2 >Emitted(79, 5) Source(8, 7) + SourceIndex(4) -3 >Emitted(79, 26) Source(8, 28) + SourceIndex(4) -4 >Emitted(79, 29) Source(8, 31) + SourceIndex(4) -5 >Emitted(79, 30) Source(8, 32) + SourceIndex(4) -6 >Emitted(79, 32) Source(8, 34) + SourceIndex(4) -7 >Emitted(79, 34) Source(8, 36) + SourceIndex(4) -8 >Emitted(79, 36) Source(8, 38) + SourceIndex(4) -9 >Emitted(79, 37) Source(8, 39) + SourceIndex(4) -10>Emitted(79, 38) Source(8, 40) + SourceIndex(4) ---- ->>>secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false)); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >secondsecond_part2Spread -3 > ( -4 > 10 -5 > , ... -6 > secondsecond_part2_ar -7 > ); -1->Emitted(80, 1) Source(9, 1) + SourceIndex(4) -2 >Emitted(80, 25) Source(9, 25) + SourceIndex(4) -3 >Emitted(80, 55) Source(9, 26) + SourceIndex(4) -4 >Emitted(80, 57) Source(9, 28) + SourceIndex(4) -5 >Emitted(80, 67) Source(9, 33) + SourceIndex(4) -6 >Emitted(80, 88) Source(9, 54) + SourceIndex(4) -7 >Emitted(80, 99) Source(9, 56) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1 > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1 >Emitted(81, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(81, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(81, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(81, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(81, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(81, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(81, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(81, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(82, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(82, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(82, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(82, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(82, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(82, 17) Source(2, 17) + SourceIndex(5) ---- ->>>function forthirdthird_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forthirdthird_part1Rest -1->Emitted(83, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(83, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(83, 33) Source(3, 33) + SourceIndex(5) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(84, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(84, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(84, 14) Source(4, 24) + SourceIndex(5) -4 >Emitted(84, 16) Source(4, 26) + SourceIndex(5) -5 >Emitted(84, 17) Source(4, 27) + SourceIndex(5) -6 >Emitted(84, 19) Source(4, 29) + SourceIndex(5) -7 >Emitted(84, 21) Source(4, 31) + SourceIndex(5) -8 >Emitted(84, 23) Source(4, 33) + SourceIndex(5) -9 >Emitted(84, 24) Source(4, 34) + SourceIndex(5) -10>Emitted(84, 26) Source(4, 36) + SourceIndex(5) -11>Emitted(84, 28) Source(4, 38) + SourceIndex(5) -12>Emitted(84, 30) Source(4, 40) + SourceIndex(5) -13>Emitted(84, 32) Source(4, 42) + SourceIndex(5) -14>Emitted(84, 34) Source(4, 44) + SourceIndex(5) -15>Emitted(84, 36) Source(4, 46) + SourceIndex(5) -16>Emitted(84, 38) Source(4, 48) + SourceIndex(5) -17>Emitted(84, 40) Source(4, 9) + SourceIndex(5) -18>Emitted(84, 41) Source(4, 10) + SourceIndex(5) -19>Emitted(84, 48) Source(4, 10) + SourceIndex(5) -20>Emitted(84, 50) Source(4, 15) + SourceIndex(5) -21>Emitted(84, 54) Source(4, 19) + SourceIndex(5) -22>Emitted(84, 68) Source(4, 7) + SourceIndex(5) -23>Emitted(84, 73) Source(4, 21) + SourceIndex(5) -24>Emitted(84, 74) Source(4, 48) + SourceIndex(5) -25>Emitted(84, 75) Source(4, 49) + SourceIndex(5) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(85, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(85, 2) Source(5, 2) + SourceIndex(5) ---- ->>>function thirdthird_part1Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > thirdthird_part1Spread -1->Emitted(86, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(86, 10) Source(6, 10) + SourceIndex(5) -3 >Emitted(86, 32) Source(6, 32) + SourceIndex(5) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(87, 5) Source(6, 33) + SourceIndex(5) -2 >Emitted(87, 16) Source(6, 47) + 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(88, 10) Source(6, 33) + SourceIndex(5) -2 >Emitted(88, 20) Source(6, 47) + SourceIndex(5) -3 >Emitted(88, 22) Source(6, 33) + SourceIndex(5) -4 >Emitted(88, 43) Source(6, 47) + SourceIndex(5) -5 >Emitted(88, 45) Source(6, 33) + SourceIndex(5) -6 >Emitted(88, 49) Source(6, 47) + SourceIndex(5) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(89, 9) Source(6, 33) + SourceIndex(5) -2 >Emitted(89, 31) Source(6, 47) + SourceIndex(5) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(91, 1) Source(6, 51) + SourceIndex(5) -2 >Emitted(91, 2) Source(6, 52) + SourceIndex(5) ---- ->>>var thirdthird_part1_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > thirdthird_part1_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(92, 1) Source(7, 1) + SourceIndex(5) -2 >Emitted(92, 5) Source(7, 7) + SourceIndex(5) -3 >Emitted(92, 24) Source(7, 26) + SourceIndex(5) -4 >Emitted(92, 27) Source(7, 29) + SourceIndex(5) -5 >Emitted(92, 28) Source(7, 30) + SourceIndex(5) -6 >Emitted(92, 30) Source(7, 32) + SourceIndex(5) -7 >Emitted(92, 32) Source(7, 34) + SourceIndex(5) -8 >Emitted(92, 34) Source(7, 36) + SourceIndex(5) -9 >Emitted(92, 35) Source(7, 37) + SourceIndex(5) -10>Emitted(92, 36) Source(7, 38) + SourceIndex(5) ---- ->>>thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false)); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >thirdthird_part1Spread -3 > ( -4 > 10 -5 > , ... -6 > thirdthird_part1_ar -7 > ); -1->Emitted(93, 1) Source(8, 1) + SourceIndex(5) -2 >Emitted(93, 23) Source(8, 23) + SourceIndex(5) -3 >Emitted(93, 53) Source(8, 24) + SourceIndex(5) -4 >Emitted(93, 55) Source(8, 26) + SourceIndex(5) -5 >Emitted(93, 65) Source(8, 31) + SourceIndex(5) -6 >Emitted(93, 84) Source(8, 50) + SourceIndex(5) -7 >Emitted(93, 95) Source(8, 52) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":1924,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1924,"kind":"text"}]},{"pos":1924,"end":2618,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1924,"end":2618,"kind":"text"}]},{"pos":2618,"end":3053,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":318,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":318,"kind":"text"}]},{"pos":318,"end":585,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":318,"end":585,"kind":"text"}]},{"pos":585,"end":765,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -emitHelpers: (502-1006):: 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: (1008-1396):: typescript:spreadArray -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; ----------------------------------------------------------------------- -prepend: (1398-1924):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1398-1924) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var firstfirst_part3_ar = [20, 30]; -firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); - ----------------------------------------------------------------------- -prepend: (1924-2618):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1924-2618) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -function secondsecond_part2Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var secondsecond_part2_ar = [20, 30]; -secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false)); - ----------------------------------------------------------------------- -text: (2618-3053) -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -function thirdthird_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var thirdthird_part1_ar = [20, 30]; -thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false)); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-318):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-318) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare function firstfirst_part3Spread(...b: number[]): void; -declare const firstfirst_part3_ar: number[]; - ----------------------------------------------------------------------- -prepend: (318-585):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (318-585) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} -declare function secondsecond_part2Spread(...b: number[]): void; -declare const secondsecond_part2_ar: number[]; - ----------------------------------------------------------------------- -text: (585-765) -declare var c: C; -declare function forthirdthird_part1Rest(): void; -declare function thirdthird_part1Spread(...b: number[]): void; -declare const thirdthird_part1_ar: number[]; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 1006, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 1008, - "end": 1396, - "kind": "emitHelpers", - "data": "typescript:spreadArray" - }, - { - "pos": 1398, - "end": 1924, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 1398, - "end": 1924, - "kind": "text" - } - ] - }, - { - "pos": 1924, - "end": 2618, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 1924, - "end": 2618, - "kind": "text" - } - ] - }, - { - "pos": 2618, - "end": 3053, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spreadArray" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 318, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 318, - "kind": "text" - } - ] - }, - { - "pos": 318, - "end": 585, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 318, - "end": 585, - "kind": "text" - } - ] - }, - { - "pos": 585, - "end": 765, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 1031 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js deleted file mode 100644 index 5fa2125d2c2dd..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js +++ /dev/null @@ -1,1595 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -}console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":746,"kind":"text"}],"sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (502-746) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 746, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 362 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function secondsecond_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var secondsecond_part1_ar = [20, 30]; -secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false)); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { ->>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { ->>> if (ar || !(i in from)) { ->>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); ->>> ar[i] = from[i]; ->>> } ->>> } ->>> return to.concat(ar || Array.prototype.slice.call(from)); ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(37, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(37, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(37, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(37, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(37, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(37, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(38, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(38, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(38, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(38, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(38, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(38, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(38, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(38, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(39, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(39, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(39, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(40, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(40, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(40, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(40, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(40, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(40, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(40, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(40, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(40, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(40, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(40, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(40, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(40, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(40, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(40, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(40, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(40, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(40, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(40, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(40, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(40, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(40, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(40, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(40, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(40, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(41, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(41, 2) Source(14, 2) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(42, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(42, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(42, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(42, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(42, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(42, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(42, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(42, 16) Source(14, 17) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(43, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(43, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(43, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(43, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(43, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(43, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(43, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(43, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(43, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(44, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(44, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(44, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(45, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(45, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(45, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(45, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(46, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(46, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(47, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(47, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(47, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(47, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(48, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(48, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(48, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(49, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(49, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(49, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(50, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(50, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(50, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(50, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(50, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(50, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(50, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(50, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(51, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(51, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(52, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(52, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(52, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(52, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(53, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(53, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(53, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(53, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(53, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(53, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(53, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function secondsecond_part1Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part1Spread -1->Emitted(54, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(54, 10) Source(13, 10) + SourceIndex(3) -3 >Emitted(54, 34) Source(13, 34) + SourceIndex(3) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(55, 5) Source(13, 35) + SourceIndex(3) -2 >Emitted(55, 16) Source(13, 49) + SourceIndex(3) ---- ->>> 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(56, 10) Source(13, 35) + SourceIndex(3) -2 >Emitted(56, 20) Source(13, 49) + SourceIndex(3) -3 >Emitted(56, 22) Source(13, 35) + SourceIndex(3) -4 >Emitted(56, 43) Source(13, 49) + SourceIndex(3) -5 >Emitted(56, 45) Source(13, 35) + SourceIndex(3) -6 >Emitted(56, 49) Source(13, 49) + SourceIndex(3) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(57, 9) Source(13, 35) + SourceIndex(3) -2 >Emitted(57, 31) Source(13, 49) + SourceIndex(3) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(59, 1) Source(13, 53) + SourceIndex(3) -2 >Emitted(59, 2) Source(13, 54) + SourceIndex(3) ---- ->>>var secondsecond_part1_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > secondsecond_part1_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(60, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(60, 5) Source(14, 7) + SourceIndex(3) -3 >Emitted(60, 26) Source(14, 28) + SourceIndex(3) -4 >Emitted(60, 29) Source(14, 31) + SourceIndex(3) -5 >Emitted(60, 30) Source(14, 32) + SourceIndex(3) -6 >Emitted(60, 32) Source(14, 34) + SourceIndex(3) -7 >Emitted(60, 34) Source(14, 36) + SourceIndex(3) -8 >Emitted(60, 36) Source(14, 38) + SourceIndex(3) -9 >Emitted(60, 37) Source(14, 39) + SourceIndex(3) -10>Emitted(60, 38) Source(14, 40) + SourceIndex(3) ---- ->>>secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false)); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >secondsecond_part1Spread -3 > ( -4 > 10 -5 > , ... -6 > secondsecond_part1_ar -7 > ); -1->Emitted(61, 1) Source(15, 1) + SourceIndex(3) -2 >Emitted(61, 25) Source(15, 25) + SourceIndex(3) -3 >Emitted(61, 55) Source(15, 26) + SourceIndex(3) -4 >Emitted(61, 57) Source(15, 28) + SourceIndex(3) -5 >Emitted(61, 67) Source(15, 33) + SourceIndex(3) -6 >Emitted(61, 88) Source(15, 54) + SourceIndex(3) -7 >Emitted(61, 99) Source(15, 56) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(62, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(63, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(64, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(64, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(65, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(65, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(65, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(66, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(66, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(66, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(66, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(66, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(66, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(66, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(66, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(67, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(67, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(68, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(68, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(69, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(69, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(69, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(69, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(70, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(70, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(70, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(70, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(70, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(70, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(70, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(70, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(71, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(71, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(71, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(71, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(71, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(71, 17) Source(2, 17) + SourceIndex(5) ---- ->>>function forthirdthird_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forthirdthird_part1Rest -1->Emitted(72, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(72, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(72, 33) Source(3, 33) + SourceIndex(5) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(73, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(73, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(73, 14) Source(4, 24) + SourceIndex(5) -4 >Emitted(73, 16) Source(4, 26) + SourceIndex(5) -5 >Emitted(73, 17) Source(4, 27) + SourceIndex(5) -6 >Emitted(73, 19) Source(4, 29) + SourceIndex(5) -7 >Emitted(73, 21) Source(4, 31) + SourceIndex(5) -8 >Emitted(73, 23) Source(4, 33) + SourceIndex(5) -9 >Emitted(73, 24) Source(4, 34) + SourceIndex(5) -10>Emitted(73, 26) Source(4, 36) + SourceIndex(5) -11>Emitted(73, 28) Source(4, 38) + SourceIndex(5) -12>Emitted(73, 30) Source(4, 40) + SourceIndex(5) -13>Emitted(73, 32) Source(4, 42) + SourceIndex(5) -14>Emitted(73, 34) Source(4, 44) + SourceIndex(5) -15>Emitted(73, 36) Source(4, 46) + SourceIndex(5) -16>Emitted(73, 38) Source(4, 48) + SourceIndex(5) -17>Emitted(73, 40) Source(4, 9) + SourceIndex(5) -18>Emitted(73, 41) Source(4, 10) + SourceIndex(5) -19>Emitted(73, 48) Source(4, 10) + SourceIndex(5) -20>Emitted(73, 50) Source(4, 15) + SourceIndex(5) -21>Emitted(73, 54) Source(4, 19) + SourceIndex(5) -22>Emitted(73, 68) Source(4, 7) + SourceIndex(5) -23>Emitted(73, 73) Source(4, 21) + SourceIndex(5) -24>Emitted(73, 74) Source(4, 48) + SourceIndex(5) -25>Emitted(73, 75) Source(4, 49) + SourceIndex(5) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(74, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(74, 2) Source(5, 2) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":1642,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1642,"kind":"text"}]},{"pos":1642,"end":2217,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1642,"end":2217,"kind":"text"}]},{"pos":2217,"end":2370,"kind":"text"}],"sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":422,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":422,"kind":"text"}]},{"pos":422,"end":492,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -emitHelpers: (502-1006):: 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: (1008-1396):: typescript:spreadArray -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; ----------------------------------------------------------------------- -prepend: (1398-1642):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1398-1642) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (1642-2217):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1642-2217) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function secondsecond_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var secondsecond_part1_ar = [20, 30]; -secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false)); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (2217-2370) -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (208-422):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (208-422) -declare namespace N { -} -declare namespace N { -} -declare function secondsecond_part1Spread(...b: number[]): void; -declare const secondsecond_part1_ar: number[]; -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (422-492) -declare var c: C; -declare function forthirdthird_part1Rest(): void; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 1006, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 1008, - "end": 1396, - "kind": "emitHelpers", - "data": "typescript:spreadArray" - }, - { - "pos": 1398, - "end": 1642, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 1398, - "end": 1642, - "kind": "text" - } - ] - }, - { - "pos": 1642, - "end": 2217, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 1642, - "end": 2217, - "kind": "text" - } - ] - }, - { - "pos": 2217, - "end": 2370, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - }, - { - "pos": 208, - "end": 422, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 208, - "end": 422, - "kind": "text" - } - ] - }, - { - "pos": 422, - "end": 492, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 988 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js deleted file mode 100644 index 3fbb89cd8fe56..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-all-projects.js +++ /dev/null @@ -1,1168 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -"myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:08:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:08:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:08:00 AM] Building project '/src/first/tsconfig.json'... - -[12:08:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:08:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:08:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -"use strict"; -"myPrologue"; -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.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 s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(5, 8) Source(13, 8) + SourceIndex(0) -3 >Emitted(5, 9) Source(13, 9) + SourceIndex(0) -4 >Emitted(5, 12) Source(13, 12) + SourceIndex(0) -5 >Emitted(5, 13) Source(13, 13) + SourceIndex(0) -6 >Emitted(5, 14) Source(13, 14) + SourceIndex(0) -7 >Emitted(5, 15) Source(13, 15) + SourceIndex(0) -8 >Emitted(5, 16) Source(13, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(6, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(6, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(6, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(6, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(6, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(6, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(6, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(7, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(7, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(7, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(8, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(8, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(8, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(8, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(9, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":157,"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":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -text: (30-157) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 157, - "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": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 588 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -"myPrologue"; -"myPrologue2"; -"myPrologue3"; -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part2.ts","../../third_part1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../second/second_part2.ts,../../third_part1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.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/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>"myPrologue2"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> -2 >"myPrologue2" -3 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 15) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >"myPrologue3" -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/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1->"myPrologue" - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(5, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(5, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(5, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(5, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(5, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(6, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(6, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(6, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(6, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(6, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(6, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(6, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(6, 16) Source(12, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(7, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(7, 8) Source(13, 8) + SourceIndex(0) -3 >Emitted(7, 9) Source(13, 9) + SourceIndex(0) -4 >Emitted(7, 12) Source(13, 12) + SourceIndex(0) -5 >Emitted(7, 13) Source(13, 13) + SourceIndex(0) -6 >Emitted(7, 14) Source(13, 14) + SourceIndex(0) -7 >Emitted(7, 15) Source(13, 15) + SourceIndex(0) -8 >Emitted(7, 16) Source(13, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(8, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(8, 8) Source(1, 8) + SourceIndex(3) -3 >Emitted(8, 9) Source(1, 9) + SourceIndex(3) -4 >Emitted(8, 12) Source(1, 12) + SourceIndex(3) -5 >Emitted(8, 13) Source(1, 13) + SourceIndex(3) -6 >Emitted(8, 14) Source(1, 14) + SourceIndex(3) -7 >Emitted(8, 16) Source(1, 16) + SourceIndex(3) -8 >Emitted(8, 17) Source(1, 17) + SourceIndex(3) -9 >Emitted(8, 18) Source(1, 18) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(9, 10) Source(1, 10) + SourceIndex(4) -3 >Emitted(9, 11) Source(1, 11) + SourceIndex(4) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(10, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(10, 12) Source(2, 12) + SourceIndex(4) -3 >Emitted(10, 28) Source(2, 28) + SourceIndex(4) -4 >Emitted(10, 29) Source(2, 29) + SourceIndex(4) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(11, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(11, 2) Source(3, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->"myPrologue" - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(12, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(12, 5) Source(6, 11) + SourceIndex(5) -3 >Emitted(12, 6) Source(6, 12) + SourceIndex(5) -4 >Emitted(12, 7) Source(12, 2) + SourceIndex(5) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(13, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(13, 12) Source(6, 11) + SourceIndex(5) -3 >Emitted(13, 13) Source(6, 12) + SourceIndex(5) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(14, 5) Source(7, 5) + SourceIndex(5) -2 >Emitted(14, 14) Source(7, 14) + SourceIndex(5) -3 >Emitted(14, 15) Source(7, 15) + SourceIndex(5) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(15, 9) Source(8, 9) + SourceIndex(5) -2 >Emitted(15, 16) Source(8, 16) + SourceIndex(5) -3 >Emitted(15, 17) Source(8, 17) + SourceIndex(5) -4 >Emitted(15, 20) Source(8, 20) + SourceIndex(5) -5 >Emitted(15, 21) Source(8, 21) + SourceIndex(5) -6 >Emitted(15, 30) Source(8, 30) + SourceIndex(5) -7 >Emitted(15, 31) Source(8, 31) + SourceIndex(5) -8 >Emitted(15, 32) Source(8, 32) + SourceIndex(5) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(16, 5) Source(9, 5) + SourceIndex(5) -2 >Emitted(16, 6) Source(9, 6) + SourceIndex(5) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(17, 5) Source(11, 5) + SourceIndex(5) -2 >Emitted(17, 6) Source(11, 6) + SourceIndex(5) -3 >Emitted(17, 8) Source(11, 8) + SourceIndex(5) -4 >Emitted(17, 9) Source(11, 9) + SourceIndex(5) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(18, 1) Source(12, 1) + SourceIndex(5) -2 >Emitted(18, 2) Source(12, 2) + SourceIndex(5) -3 >Emitted(18, 4) Source(6, 11) + SourceIndex(5) -4 >Emitted(18, 5) Source(6, 12) + SourceIndex(5) -5 >Emitted(18, 10) Source(6, 11) + SourceIndex(5) -6 >Emitted(18, 11) Source(6, 12) + SourceIndex(5) -7 >Emitted(18, 19) Source(12, 2) + SourceIndex(5) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue2"; - > -1->Emitted(19, 1) Source(2, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(20, 5) Source(2, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(21, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(21, 6) Source(6, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(22, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(22, 28) Source(3, 16) + SourceIndex(1) -3 >Emitted(22, 31) Source(3, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(23, 9) Source(4, 9) + SourceIndex(1) -2 >Emitted(23, 16) Source(4, 16) + SourceIndex(1) -3 >Emitted(23, 17) Source(4, 17) + SourceIndex(1) -4 >Emitted(23, 20) Source(4, 20) + SourceIndex(1) -5 >Emitted(23, 21) Source(4, 21) + SourceIndex(1) -6 >Emitted(23, 41) Source(4, 41) + SourceIndex(1) -7 >Emitted(23, 42) Source(4, 42) + SourceIndex(1) -8 >Emitted(23, 43) Source(4, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(24, 5) Source(5, 5) + SourceIndex(1) -2 >Emitted(24, 6) Source(5, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(25, 13) Source(6, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(1) -3 >Emitted(26, 2) Source(2, 1) + SourceIndex(1) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1->"myPrologue3"; - >"myPrologue"; - > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(27, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(27, 6) Source(3, 6) + SourceIndex(2) -4 >Emitted(27, 9) Source(3, 9) + SourceIndex(2) -5 >Emitted(27, 13) Source(3, 13) + SourceIndex(2) -6 >Emitted(27, 14) Source(3, 14) + SourceIndex(2) -7 >Emitted(27, 16) Source(3, 16) + SourceIndex(2) -8 >Emitted(27, 17) Source(3, 17) + SourceIndex(2) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(28, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(28, 2) Source(4, 2) + SourceIndex(2) -3 >Emitted(28, 3) Source(4, 3) + SourceIndex(2) -4 >Emitted(28, 14) Source(4, 14) + SourceIndex(2) -5 >Emitted(28, 16) Source(4, 16) + SourceIndex(2) -6 >Emitted(28, 17) Source(4, 17) + SourceIndex(2) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue2"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue3"},{"pos":62,"end":189,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":62,"end":189,"kind":"text"}]},{"pos":189,"end":474,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":189,"end":474,"kind":"text"}]},{"pos":474,"end":510,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (30-44):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -prologue: (46-60):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -prepend: (62-189):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (62-189) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (189-474):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (189-474) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (474-510) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 44, - "kind": "prologue", - "data": "myPrologue2" - }, - { - "pos": 46, - "end": 60, - "kind": "prologue", - "data": "myPrologue3" - }, - { - "pos": 62, - "end": 189, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 62, - "end": 189, - "kind": "text" - } - ] - }, - { - "pos": 189, - "end": 474, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 189, - "end": 474, - "kind": "text" - } - ] - }, - { - "pos": 474, - "end": 510, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue3\";\n\"myPrologue\";", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 14, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue3" - } - }, - { - "pos": 14, - "end": 28, - "expression": { - "pos": 14, - "end": 27, - "text": "myPrologue" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 1268 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js deleted file mode 100644 index 0a8e609a068f4..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-prologues-in-different-projects.js +++ /dev/null @@ -1,1066 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -"use strict"; -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":142,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -text: (15-142) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 142, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 445 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -"myPrologue"; -"myPrologue2"; -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../second/second_part1.ts","../../../second/second_part2.ts","../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../second/second_part1.ts,../../../second/second_part2.ts,../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.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/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>"myPrologue2"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >"myPrologue2" -3 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(3, 15) Source(1, 15) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1->interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(4, 5) Source(5, 7) + SourceIndex(2) -3 >Emitted(4, 6) Source(5, 8) + SourceIndex(2) -4 >Emitted(4, 9) Source(5, 11) + SourceIndex(2) -5 >Emitted(4, 23) Source(5, 25) + SourceIndex(2) -6 >Emitted(4, 24) Source(5, 26) + SourceIndex(2) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(5, 1) Source(11, 1) + SourceIndex(2) -2 >Emitted(5, 8) Source(11, 8) + SourceIndex(2) -3 >Emitted(5, 9) Source(11, 9) + SourceIndex(2) -4 >Emitted(5, 12) Source(11, 12) + SourceIndex(2) -5 >Emitted(5, 13) Source(11, 13) + SourceIndex(2) -6 >Emitted(5, 14) Source(11, 14) + SourceIndex(2) -7 >Emitted(5, 15) Source(11, 15) + SourceIndex(2) -8 >Emitted(5, 16) Source(11, 16) + SourceIndex(2) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(6, 1) Source(12, 1) + SourceIndex(2) -2 >Emitted(6, 8) Source(12, 8) + SourceIndex(2) -3 >Emitted(6, 9) Source(12, 9) + SourceIndex(2) -4 >Emitted(6, 12) Source(12, 12) + SourceIndex(2) -5 >Emitted(6, 13) Source(12, 13) + SourceIndex(2) -6 >Emitted(6, 14) Source(12, 14) + SourceIndex(2) -7 >Emitted(6, 15) Source(12, 15) + SourceIndex(2) -8 >Emitted(6, 16) Source(12, 16) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(7, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(7, 8) Source(1, 8) + SourceIndex(3) -3 >Emitted(7, 9) Source(1, 9) + SourceIndex(3) -4 >Emitted(7, 12) Source(1, 12) + SourceIndex(3) -5 >Emitted(7, 13) Source(1, 13) + SourceIndex(3) -6 >Emitted(7, 14) Source(1, 14) + SourceIndex(3) -7 >Emitted(7, 16) Source(1, 16) + SourceIndex(3) -8 >Emitted(7, 17) Source(1, 17) + SourceIndex(3) -9 >Emitted(7, 18) Source(1, 18) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(8, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(8, 10) Source(1, 10) + SourceIndex(4) -3 >Emitted(8, 11) Source(1, 11) + SourceIndex(4) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(9, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(9, 12) Source(2, 12) + SourceIndex(4) -3 >Emitted(9, 28) Source(2, 28) + SourceIndex(4) -4 >Emitted(9, 29) Source(2, 29) + SourceIndex(4) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(10, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(10, 2) Source(3, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->"myPrologue" - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(11, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(11, 5) Source(6, 11) + SourceIndex(0) -3 >Emitted(11, 6) Source(6, 12) + SourceIndex(0) -4 >Emitted(11, 7) Source(12, 2) + SourceIndex(0) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(12, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(12, 12) Source(6, 11) + SourceIndex(0) -3 >Emitted(12, 13) Source(6, 12) + SourceIndex(0) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(13, 5) Source(7, 5) + SourceIndex(0) -2 >Emitted(13, 14) Source(7, 14) + SourceIndex(0) -3 >Emitted(13, 15) Source(7, 15) + SourceIndex(0) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(14, 9) Source(8, 9) + SourceIndex(0) -2 >Emitted(14, 16) Source(8, 16) + SourceIndex(0) -3 >Emitted(14, 17) Source(8, 17) + SourceIndex(0) -4 >Emitted(14, 20) Source(8, 20) + SourceIndex(0) -5 >Emitted(14, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(14, 30) Source(8, 30) + SourceIndex(0) -7 >Emitted(14, 31) Source(8, 31) + SourceIndex(0) -8 >Emitted(14, 32) Source(8, 32) + SourceIndex(0) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(15, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(15, 6) Source(9, 6) + SourceIndex(0) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(16, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(16, 6) Source(11, 6) + SourceIndex(0) -3 >Emitted(16, 8) Source(11, 8) + SourceIndex(0) -4 >Emitted(16, 9) Source(11, 9) + SourceIndex(0) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(17, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(17, 2) Source(12, 2) + SourceIndex(0) -3 >Emitted(17, 4) Source(6, 11) + SourceIndex(0) -4 >Emitted(17, 5) Source(6, 12) + SourceIndex(0) -5 >Emitted(17, 10) Source(6, 11) + SourceIndex(0) -6 >Emitted(17, 11) Source(6, 12) + SourceIndex(0) -7 >Emitted(17, 19) Source(12, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue2"; - > -1->Emitted(18, 1) Source(2, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(19, 5) Source(2, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(20, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(20, 6) Source(6, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(21, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(21, 28) Source(3, 16) + SourceIndex(1) -3 >Emitted(21, 31) Source(3, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(22, 9) Source(4, 9) + SourceIndex(1) -2 >Emitted(22, 16) Source(4, 16) + SourceIndex(1) -3 >Emitted(22, 17) Source(4, 17) + SourceIndex(1) -4 >Emitted(22, 20) Source(4, 20) + SourceIndex(1) -5 >Emitted(22, 21) Source(4, 21) + SourceIndex(1) -6 >Emitted(22, 41) Source(4, 41) + SourceIndex(1) -7 >Emitted(22, 42) Source(4, 42) + SourceIndex(1) -8 >Emitted(22, 43) Source(4, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(23, 5) Source(5, 5) + SourceIndex(1) -2 >Emitted(23, 6) Source(5, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(24, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(24, 13) Source(6, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(25, 1) Source(6, 1) + SourceIndex(1) -2 >Emitted(25, 2) Source(6, 2) + SourceIndex(1) -3 >Emitted(25, 2) Source(2, 1) + SourceIndex(1) -4 >Emitted(25, 6) Source(6, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(26, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(26, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(26, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(26, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(26, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(26, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(26, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(26, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(27, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(27, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(27, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(27, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(27, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(27, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue2"},{"pos":46,"end":173,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":46,"end":173,"kind":"text"}]},{"pos":173,"end":458,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":173,"end":458,"kind":"text"}]},{"pos":458,"end":494,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (30-44):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -prepend: (46-173):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (46-173) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (173-458):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (173-458) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (458-494) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 44, - "kind": "prologue", - "data": "myPrologue2" - }, - { - "pos": 46, - "end": 173, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 46, - "end": 173, - "kind": "text" - } - ] - }, - { - "pos": 173, - "end": 458, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 173, - "end": 458, - "kind": "text" - } - ] - }, - { - "pos": 458, - "end": 494, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 1031 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js deleted file mode 100644 index cef07103d910e..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-all-projects.js +++ /dev/null @@ -1,985 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -#!someshebang first first_PART1 -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:08:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:08:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:08:00 AM] Building project '/src/first/tsconfig.json'... - -[12:08:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:08:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:08:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1, - "/src/2/second-output.d.ts": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -#!someshebang first first_PART1 -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(4, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(13, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(13, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(13, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(13, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(13, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(13, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(13, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1->#!someshebang first first_part2 - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(2, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(2, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(2, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(2, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(2, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(2, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(2, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(2, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":33,"end":160,"kind":"text"}]},"dts":{"sections":[{"pos":33,"end":190,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (33-160) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (33-190) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 33, - "end": 160, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 33, - "end": 190, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 254 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -#!someshebang first first_PART1 -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang first first_PART1 ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >#!someshebang first first_PART1 - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(4, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(13, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(13, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(13, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(13, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(13, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(13, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(13, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1->#!someshebang first first_part2 - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(2, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(2, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(2, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(2, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(2, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(2, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(2, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(2, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(6, 11) + SourceIndex(3) -3 >Emitted(9, 6) Source(6, 12) + SourceIndex(3) -4 >Emitted(9, 7) Source(12, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(10, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(10, 12) Source(6, 11) + SourceIndex(3) -3 >Emitted(10, 13) Source(6, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(11, 5) Source(7, 5) + SourceIndex(3) -2 >Emitted(11, 14) Source(7, 14) + SourceIndex(3) -3 >Emitted(11, 15) Source(7, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(12, 9) Source(8, 9) + SourceIndex(3) -2 >Emitted(12, 16) Source(8, 16) + SourceIndex(3) -3 >Emitted(12, 17) Source(8, 17) + SourceIndex(3) -4 >Emitted(12, 20) Source(8, 20) + SourceIndex(3) -5 >Emitted(12, 21) Source(8, 21) + SourceIndex(3) -6 >Emitted(12, 30) Source(8, 30) + SourceIndex(3) -7 >Emitted(12, 31) Source(8, 31) + SourceIndex(3) -8 >Emitted(12, 32) Source(8, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(9, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(9, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(14, 5) Source(11, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(11, 6) + SourceIndex(3) -3 >Emitted(14, 8) Source(11, 8) + SourceIndex(3) -4 >Emitted(14, 9) Source(11, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(15, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(15, 2) Source(12, 2) + SourceIndex(3) -3 >Emitted(15, 4) Source(6, 11) + SourceIndex(3) -4 >Emitted(15, 5) Source(6, 12) + SourceIndex(3) -5 >Emitted(15, 10) Source(6, 11) + SourceIndex(3) -6 >Emitted(15, 11) Source(6, 12) + SourceIndex(3) -7 >Emitted(15, 19) Source(12, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1->#!someshebang third third_part1 - > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 5) Source(2, 5) + SourceIndex(5) -3 >Emitted(24, 6) Source(2, 6) + SourceIndex(5) -4 >Emitted(24, 9) Source(2, 9) + SourceIndex(5) -5 >Emitted(24, 13) Source(2, 13) + SourceIndex(5) -6 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) -7 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) -8 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(25, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(25, 2) Source(3, 2) + SourceIndex(5) -3 >Emitted(25, 3) Source(3, 3) + SourceIndex(5) -4 >Emitted(25, 14) Source(3, 14) + SourceIndex(5) -5 >Emitted(25, 16) Source(3, 16) + SourceIndex(5) -6 >Emitted(25, 17) Source(3, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":33,"end":160,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":33,"end":160,"kind":"text"}]},{"pos":160,"end":445,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":160,"end":445,"kind":"text"}]},{"pos":445,"end":481,"kind":"text"}]},"dts":{"sections":[{"pos":33,"end":190,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":33,"end":190,"kind":"text"}]},{"pos":190,"end":290,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":190,"end":290,"kind":"text"}]},{"pos":290,"end":309,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (33-160):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (33-160) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (160-445):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (160-445) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (445-481) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (33-190):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (33-190) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (190-290):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (190-290) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (290-309) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 33, - "end": 160, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 33, - "end": 160, - "kind": "text" - } - ] - }, - { - "pos": 160, - "end": 445, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 160, - "end": 445, - "kind": "text" - } - ] - }, - { - "pos": 445, - "end": 481, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 33, - "end": 190, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 33, - "end": 190, - "kind": "text" - } - ] - }, - { - "pos": 190, - "end": 290, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 190, - "end": 290, - "kind": "text" - } - ] - }, - { - "pos": 290, - "end": 309, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 724 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js deleted file mode 100644 index 5e5bb15e8a948..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/shebang-in-only-one-dependency-project.js +++ /dev/null @@ -1,955 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 252 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -#!someshebang second second_part1 -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>#!someshebang second second_part1 ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->#!someshebang second second_part1 - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(6, 11) + SourceIndex(3) -3 >Emitted(9, 6) Source(6, 12) + SourceIndex(3) -4 >Emitted(9, 7) Source(12, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(10, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(10, 12) Source(6, 11) + SourceIndex(3) -3 >Emitted(10, 13) Source(6, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(11, 5) Source(7, 5) + SourceIndex(3) -2 >Emitted(11, 14) Source(7, 14) + SourceIndex(3) -3 >Emitted(11, 15) Source(7, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(12, 9) Source(8, 9) + SourceIndex(3) -2 >Emitted(12, 16) Source(8, 16) + SourceIndex(3) -3 >Emitted(12, 17) Source(8, 17) + SourceIndex(3) -4 >Emitted(12, 20) Source(8, 20) + SourceIndex(3) -5 >Emitted(12, 21) Source(8, 21) + SourceIndex(3) -6 >Emitted(12, 30) Source(8, 30) + SourceIndex(3) -7 >Emitted(12, 31) Source(8, 31) + SourceIndex(3) -8 >Emitted(12, 32) Source(8, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(9, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(9, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(14, 5) Source(11, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(11, 6) + SourceIndex(3) -3 >Emitted(14, 8) Source(11, 8) + SourceIndex(3) -4 >Emitted(14, 9) Source(11, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(15, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(15, 2) Source(12, 2) + SourceIndex(3) -3 >Emitted(15, 4) Source(6, 11) + SourceIndex(3) -4 >Emitted(15, 5) Source(6, 12) + SourceIndex(3) -5 >Emitted(15, 10) Source(6, 11) + SourceIndex(3) -6 >Emitted(15, 11) Source(6, 12) + SourceIndex(3) -7 >Emitted(15, 19) Source(12, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":35,"end":162,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":35,"end":162,"kind":"text"}]},{"pos":162,"end":447,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":162,"end":447,"kind":"text"}]},{"pos":447,"end":483,"kind":"text"}]},"dts":{"sections":[{"pos":35,"end":192,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":35,"end":192,"kind":"text"}]},{"pos":192,"end":292,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":192,"end":292,"kind":"text"}]},{"pos":292,"end":311,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (35-162):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (35-162) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (162-447):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (162-447) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (447-483) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (35-192):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (35-192) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (192-292):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (192-292) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (292-311) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 35, - "end": 162, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 35, - "end": 162, - "kind": "text" - } - ] - }, - { - "pos": 162, - "end": 447, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 162, - "end": 447, - "kind": "text" - } - ] - }, - { - "pos": 447, - "end": 483, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 35, - "end": 192, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 35, - "end": 192, - "kind": "text" - } - ] - }, - { - "pos": 192, - "end": 292, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 192, - "end": 292, - "kind": "text" - } - ] - }, - { - "pos": 292, - "end": 311, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 724 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js deleted file mode 100644 index 4c0669455297d..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-all-projects.js +++ /dev/null @@ -1,1034 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:08:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:08:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:08:00 AM] Building project '/src/first/tsconfig.json'... - -[12:08:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:08:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:08:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -"use strict"; -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":142,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -text: (15-142) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 142, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 445 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(9, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(10, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(10, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(11, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(11, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(11, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(12, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(12, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(12, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(12, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(12, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(12, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(12, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(12, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(14, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(14, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(14, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(15, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(15, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(15, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(15, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(15, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":142,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":15,"end":142,"kind":"text"}]},{"pos":142,"end":427,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":142,"end":427,"kind":"text"}]},{"pos":427,"end":463,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prepend: (15-142):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (15-142) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (142-427):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (142-427) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (427-463) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 142, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 15, - "end": 142, - "kind": "text" - } - ] - }, - { - "pos": 142, - "end": 427, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 142, - "end": 427, - "kind": "text" - } - ] - }, - { - "pos": 427, - "end": 463, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 914 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js deleted file mode 100644 index 1d83da04c29d0..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/strict-in-one-dependency.js +++ /dev/null @@ -1,963 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 252 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(9, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(10, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(10, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(11, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(11, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(11, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(12, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(12, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(12, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(12, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(12, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(12, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(12, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(12, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(14, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(14, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(14, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(15, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(15, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(15, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(15, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(15, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":142,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":15,"end":142,"kind":"text"}]},{"pos":142,"end":427,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":142,"end":427,"kind":"text"}]},{"pos":427,"end":463,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prepend: (15-142):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (15-142) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (142-427):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (142-427) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (427-463) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 142, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 15, - "end": 142, - "kind": "text" - } - ] - }, - { - "pos": 142, - "end": 427, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 142, - "end": 427, - "kind": "text" - } - ] - }, - { - "pos": 427, - "end": 463, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 779 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index deb10ce3b2d84..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,4327 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:04:00 AM] Updating output of project '/src/second/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/second/tsconfig.json'... - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed - -[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/2/second-output.d.ts] file changed its modified time -//// [/src/2/second-output.d.ts.map] file changed its modified time -//// [/src/2/second-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /**@internal*/ -1->Emitted(16, 5) Source(14, 20) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(17, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /**@internal*/ prop: string; - > /**@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(18, 5) Source(16, 20) + SourceIndex(3) -2 >Emitted(18, 29) Source(16, 26) + SourceIndex(3) -3 >Emitted(18, 32) Source(16, 20) + SourceIndex(3) -4 >Emitted(18, 46) Source(16, 31) + SourceIndex(3) -5 >Emitted(18, 47) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /**@internal*/ -2 > get -3 > c -1->Emitted(19, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(20, 14) Source(17, 20) + SourceIndex(3) -2 >Emitted(20, 28) Source(17, 30) + SourceIndex(3) -3 >Emitted(20, 35) Source(17, 37) + SourceIndex(3) -4 >Emitted(20, 37) Source(17, 39) + SourceIndex(3) -5 >Emitted(20, 38) Source(17, 40) + SourceIndex(3) -6 >Emitted(20, 39) Source(17, 41) + SourceIndex(3) -7 >Emitted(20, 40) Source(17, 42) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /**@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(21, 14) Source(18, 20) + SourceIndex(3) -2 >Emitted(21, 24) Source(18, 26) + SourceIndex(3) -3 >Emitted(21, 27) Source(18, 37) + SourceIndex(3) -4 >Emitted(21, 31) Source(18, 41) + SourceIndex(3) -5 >Emitted(21, 32) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >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(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /**@internal*/ -1->Emitted(29, 5) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /**@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(35, 5) Source(22, 20) + SourceIndex(3) -2 >Emitted(35, 14) Source(22, 36) + SourceIndex(3) -3 >Emitted(35, 17) Source(22, 39) + SourceIndex(3) -4 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -5 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(36, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /**@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(37, 9) Source(23, 37) + SourceIndex(3) -3 >Emitted(37, 22) Source(23, 50) + SourceIndex(3) -4 >Emitted(37, 23) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(38, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(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(45, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(46, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(46, 9) Source(24, 37) + SourceIndex(3) -3 >Emitted(46, 18) Source(24, 46) + SourceIndex(3) -4 >Emitted(46, 19) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(47, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(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(56, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(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(57, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /**@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(58, 5) Source(25, 34) + SourceIndex(3) -2 >Emitted(58, 23) Source(25, 44) + SourceIndex(3) -3 >Emitted(58, 26) Source(25, 47) + SourceIndex(3) -4 >Emitted(58, 39) Source(25, 60) + SourceIndex(3) -5 >Emitted(58, 40) Source(25, 61) + SourceIndex(3) -6 >Emitted(58, 41) Source(25, 62) + SourceIndex(3) -7 >Emitted(58, 42) Source(25, 63) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(59, 5) Source(27, 33) + SourceIndex(3) -2 >Emitted(59, 26) Source(27, 46) + SourceIndex(3) -3 >Emitted(59, 29) Source(27, 49) + SourceIndex(3) -4 >Emitted(59, 31) Source(27, 51) + SourceIndex(3) -5 >Emitted(59, 32) Source(27, 52) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(60, 9) Source(28, 32) + SourceIndex(3) -3 >Emitted(60, 21) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(61, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(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(65, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@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(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/**@internal*/ -1->Emitted(67, 1) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/**@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(72, 1) Source(31, 16) + SourceIndex(3) -2 >Emitted(72, 10) Source(31, 25) + SourceIndex(3) -3 >Emitted(72, 21) Source(31, 36) + SourceIndex(3) -4 >Emitted(72, 26) Source(31, 40) + SourceIndex(3) -5 >Emitted(72, 27) Source(31, 41) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(73, 5) Source(32, 26) + SourceIndex(3) -3 >Emitted(73, 22) Source(32, 43) + SourceIndex(3) -4 >Emitted(73, 23) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(74, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(82, 5) Source(33, 26) + SourceIndex(3) -3 >Emitted(82, 18) Source(33, 39) + SourceIndex(3) -4 >Emitted(82, 19) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(83, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(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(92, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/**@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(94, 1) Source(34, 16) + SourceIndex(3) -2 >Emitted(94, 5) Source(34, 23) + SourceIndex(3) -3 >Emitted(94, 19) Source(34, 37) + SourceIndex(3) -4 >Emitted(94, 22) Source(34, 40) + SourceIndex(3) -5 >Emitted(94, 39) Source(34, 57) + SourceIndex(3) -6 >Emitted(94, 40) Source(34, 58) + SourceIndex(3) -7 >Emitted(94, 49) Source(34, 67) + SourceIndex(3) -8 >Emitted(94, 50) Source(34, 68) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(95, 1) Source(36, 16) + SourceIndex(3) -2 >Emitted(95, 5) Source(36, 22) + SourceIndex(3) -3 >Emitted(95, 18) Source(36, 35) + SourceIndex(3) -4 >Emitted(95, 21) Source(36, 38) + SourceIndex(3) -5 >Emitted(95, 23) Source(36, 40) + SourceIndex(3) -6 >Emitted(95, 24) Source(36, 41) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(96, 5) Source(37, 21) + SourceIndex(3) -3 >Emitted(96, 17) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(97, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3180,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1183,"kind":"internal"},{"pos":1185,"end":1233,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (127-3180) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 2 ->>-------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ->>-------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (157-234) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (234-339) - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); ----------------------------------------------------------------------- -text: (341-373) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (373-765) - 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: (767-770) -} - ----------------------------------------------------------------------- -internal: (770-1183) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1185-1233) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 3180, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 234, - "kind": "text" - }, - { - "pos": 234, - "end": 339, - "kind": "internal" - }, - { - "pos": 341, - "end": 373, - "kind": "text" - }, - { - "pos": 373, - "end": 765, - "kind": "internal" - }, - { - "pos": 767, - "end": 770, - "kind": "text" - }, - { - "pos": 770, - "end": 1183, - "kind": "internal" - }, - { - "pos": 1185, - "end": 1233, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 769 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 290 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /**@internal*/ -1->Emitted(16, 5) Source(14, 20) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(17, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /**@internal*/ prop: string; - > /**@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(18, 5) Source(16, 20) + SourceIndex(3) -2 >Emitted(18, 29) Source(16, 26) + SourceIndex(3) -3 >Emitted(18, 32) Source(16, 20) + SourceIndex(3) -4 >Emitted(18, 46) Source(16, 31) + SourceIndex(3) -5 >Emitted(18, 47) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /**@internal*/ -2 > get -3 > c -1->Emitted(19, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(20, 14) Source(17, 20) + SourceIndex(3) -2 >Emitted(20, 28) Source(17, 30) + SourceIndex(3) -3 >Emitted(20, 35) Source(17, 37) + SourceIndex(3) -4 >Emitted(20, 37) Source(17, 39) + SourceIndex(3) -5 >Emitted(20, 38) Source(17, 40) + SourceIndex(3) -6 >Emitted(20, 39) Source(17, 41) + SourceIndex(3) -7 >Emitted(20, 40) Source(17, 42) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /**@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(21, 14) Source(18, 20) + SourceIndex(3) -2 >Emitted(21, 24) Source(18, 26) + SourceIndex(3) -3 >Emitted(21, 27) Source(18, 37) + SourceIndex(3) -4 >Emitted(21, 31) Source(18, 41) + SourceIndex(3) -5 >Emitted(21, 32) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >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(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /**@internal*/ -1->Emitted(29, 5) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /**@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(35, 5) Source(22, 20) + SourceIndex(3) -2 >Emitted(35, 14) Source(22, 36) + SourceIndex(3) -3 >Emitted(35, 17) Source(22, 39) + SourceIndex(3) -4 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -5 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(36, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /**@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(37, 9) Source(23, 37) + SourceIndex(3) -3 >Emitted(37, 22) Source(23, 50) + SourceIndex(3) -4 >Emitted(37, 23) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(38, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(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(45, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(46, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(46, 9) Source(24, 37) + SourceIndex(3) -3 >Emitted(46, 18) Source(24, 46) + SourceIndex(3) -4 >Emitted(46, 19) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(47, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(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(56, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(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(57, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /**@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(58, 5) Source(25, 34) + SourceIndex(3) -2 >Emitted(58, 23) Source(25, 44) + SourceIndex(3) -3 >Emitted(58, 26) Source(25, 47) + SourceIndex(3) -4 >Emitted(58, 39) Source(25, 60) + SourceIndex(3) -5 >Emitted(58, 40) Source(25, 61) + SourceIndex(3) -6 >Emitted(58, 41) Source(25, 62) + SourceIndex(3) -7 >Emitted(58, 42) Source(25, 63) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(59, 5) Source(27, 33) + SourceIndex(3) -2 >Emitted(59, 26) Source(27, 46) + SourceIndex(3) -3 >Emitted(59, 29) Source(27, 49) + SourceIndex(3) -4 >Emitted(59, 31) Source(27, 51) + SourceIndex(3) -5 >Emitted(59, 32) Source(27, 52) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(60, 9) Source(28, 32) + SourceIndex(3) -3 >Emitted(60, 21) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(61, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(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(65, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@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(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/**@internal*/ -1->Emitted(67, 1) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/**@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(72, 1) Source(31, 16) + SourceIndex(3) -2 >Emitted(72, 10) Source(31, 25) + SourceIndex(3) -3 >Emitted(72, 21) Source(31, 36) + SourceIndex(3) -4 >Emitted(72, 26) Source(31, 40) + SourceIndex(3) -5 >Emitted(72, 27) Source(31, 41) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(73, 5) Source(32, 26) + SourceIndex(3) -3 >Emitted(73, 22) Source(32, 43) + SourceIndex(3) -4 >Emitted(73, 23) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(74, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(82, 5) Source(33, 26) + SourceIndex(3) -3 >Emitted(82, 18) Source(33, 39) + SourceIndex(3) -4 >Emitted(82, 19) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(83, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(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(92, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/**@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(94, 1) Source(34, 16) + SourceIndex(3) -2 >Emitted(94, 5) Source(34, 23) + SourceIndex(3) -3 >Emitted(94, 19) Source(34, 37) + SourceIndex(3) -4 >Emitted(94, 22) Source(34, 40) + SourceIndex(3) -5 >Emitted(94, 39) Source(34, 57) + SourceIndex(3) -6 >Emitted(94, 40) Source(34, 58) + SourceIndex(3) -7 >Emitted(94, 49) Source(34, 67) + SourceIndex(3) -8 >Emitted(94, 50) Source(34, 68) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(95, 1) Source(36, 16) + SourceIndex(3) -2 >Emitted(95, 5) Source(36, 22) + SourceIndex(3) -3 >Emitted(95, 18) Source(36, 35) + SourceIndex(3) -4 >Emitted(95, 21) Source(36, 38) + SourceIndex(3) -5 >Emitted(95, 23) Source(36, 40) + SourceIndex(3) -6 >Emitted(95, 24) Source(36, 41) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(96, 5) Source(37, 21) + SourceIndex(3) -3 >Emitted(96, 17) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(97, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3180,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3180,"kind":"text"}]},{"pos":3180,"end":3216,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3180):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3180) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3180-3216) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-276) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3180, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3180, - "kind": "text" - } - ] - }, - { - "pos": 3180, - "end": 3216, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 464 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js deleted file mode 100644 index 21a1fbe160ea2..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-comment.js +++ /dev/null @@ -1,2326 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 290 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /**@internal*/ -1->Emitted(16, 5) Source(14, 20) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(17, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /**@internal*/ prop: string; - > /**@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(18, 5) Source(16, 20) + SourceIndex(3) -2 >Emitted(18, 29) Source(16, 26) + SourceIndex(3) -3 >Emitted(18, 32) Source(16, 20) + SourceIndex(3) -4 >Emitted(18, 46) Source(16, 31) + SourceIndex(3) -5 >Emitted(18, 47) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /**@internal*/ -2 > get -3 > c -1->Emitted(19, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(20, 14) Source(17, 20) + SourceIndex(3) -2 >Emitted(20, 28) Source(17, 30) + SourceIndex(3) -3 >Emitted(20, 35) Source(17, 37) + SourceIndex(3) -4 >Emitted(20, 37) Source(17, 39) + SourceIndex(3) -5 >Emitted(20, 38) Source(17, 40) + SourceIndex(3) -6 >Emitted(20, 39) Source(17, 41) + SourceIndex(3) -7 >Emitted(20, 40) Source(17, 42) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /**@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(21, 14) Source(18, 20) + SourceIndex(3) -2 >Emitted(21, 24) Source(18, 26) + SourceIndex(3) -3 >Emitted(21, 27) Source(18, 37) + SourceIndex(3) -4 >Emitted(21, 31) Source(18, 41) + SourceIndex(3) -5 >Emitted(21, 32) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >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(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /**@internal*/ -1->Emitted(29, 5) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /**@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(35, 5) Source(22, 20) + SourceIndex(3) -2 >Emitted(35, 14) Source(22, 36) + SourceIndex(3) -3 >Emitted(35, 17) Source(22, 39) + SourceIndex(3) -4 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) -5 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(36, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /**@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(37, 9) Source(23, 37) + SourceIndex(3) -3 >Emitted(37, 22) Source(23, 50) + SourceIndex(3) -4 >Emitted(37, 23) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(38, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(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(45, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(46, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(46, 9) Source(24, 37) + SourceIndex(3) -3 >Emitted(46, 18) Source(24, 46) + SourceIndex(3) -4 >Emitted(46, 19) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(47, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(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(56, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(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(57, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /**@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(58, 5) Source(25, 34) + SourceIndex(3) -2 >Emitted(58, 23) Source(25, 44) + SourceIndex(3) -3 >Emitted(58, 26) Source(25, 47) + SourceIndex(3) -4 >Emitted(58, 39) Source(25, 60) + SourceIndex(3) -5 >Emitted(58, 40) Source(25, 61) + SourceIndex(3) -6 >Emitted(58, 41) Source(25, 62) + SourceIndex(3) -7 >Emitted(58, 42) Source(25, 63) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /**@internal*/ export type internalType = internalC; - > /**@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(59, 5) Source(27, 33) + SourceIndex(3) -2 >Emitted(59, 26) Source(27, 46) + SourceIndex(3) -3 >Emitted(59, 29) Source(27, 49) + SourceIndex(3) -4 >Emitted(59, 31) Source(27, 51) + SourceIndex(3) -5 >Emitted(59, 32) Source(27, 52) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /**@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(60, 9) Source(28, 32) + SourceIndex(3) -3 >Emitted(60, 21) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(61, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(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(65, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@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(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/**@internal*/ -1->Emitted(67, 1) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/**@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(72, 1) Source(31, 16) + SourceIndex(3) -2 >Emitted(72, 10) Source(31, 25) + SourceIndex(3) -3 >Emitted(72, 21) Source(31, 36) + SourceIndex(3) -4 >Emitted(72, 26) Source(31, 40) + SourceIndex(3) -5 >Emitted(72, 27) Source(31, 41) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(73, 5) Source(32, 26) + SourceIndex(3) -3 >Emitted(73, 22) Source(32, 43) + SourceIndex(3) -4 >Emitted(73, 23) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(74, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(82, 5) Source(33, 26) + SourceIndex(3) -3 >Emitted(82, 18) Source(33, 39) + SourceIndex(3) -4 >Emitted(82, 19) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(83, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(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(92, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/**@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(94, 1) Source(34, 16) + SourceIndex(3) -2 >Emitted(94, 5) Source(34, 23) + SourceIndex(3) -3 >Emitted(94, 19) Source(34, 37) + SourceIndex(3) -4 >Emitted(94, 22) Source(34, 40) + SourceIndex(3) -5 >Emitted(94, 39) Source(34, 57) + SourceIndex(3) -6 >Emitted(94, 40) Source(34, 58) + SourceIndex(3) -7 >Emitted(94, 49) Source(34, 67) + SourceIndex(3) -8 >Emitted(94, 50) Source(34, 68) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/**@internal*/ type internalType = internalC; - >/**@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(95, 1) Source(36, 16) + SourceIndex(3) -2 >Emitted(95, 5) Source(36, 22) + SourceIndex(3) -3 >Emitted(95, 18) Source(36, 35) + SourceIndex(3) -4 >Emitted(95, 21) Source(36, 38) + SourceIndex(3) -5 >Emitted(95, 23) Source(36, 40) + SourceIndex(3) -6 >Emitted(95, 24) Source(36, 41) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/**@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(96, 5) Source(37, 21) + SourceIndex(3) -3 >Emitted(96, 17) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(97, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3180,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":3180,"kind":"text"}]},{"pos":3180,"end":3216,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (127-3180):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (127-3180) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3180-3216) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-116) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (116-276) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 3180, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 127, - "end": 3180, - "kind": "text" - } - ] - }, - { - "pos": 3180, - "end": 3216, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 116, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 116, - "kind": "text" - } - ] - }, - { - "pos": 116, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 116, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 724 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index 3ddf904adc1a1..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,4527 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:04:00 AM] Updating output of project '/src/second/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/second/tsconfig.json'... - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed - -[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/2/second-output.d.ts] file changed its modified time -//// [/src/2/second-output.d.ts.map] file changed its modified time -//// [/src/2/second-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -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: false, - configurable: true - }); - return 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 || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (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 || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /**@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /**@internal*/ -3 > -1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) -3 >Emitted(16, 20) Source(14, 20) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(17, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) ---- ->>> /**@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(18, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) -3 >Emitted(18, 20) Source(16, 20) + SourceIndex(3) -4 >Emitted(18, 44) Source(16, 26) + SourceIndex(3) -5 >Emitted(18, 47) Source(16, 20) + SourceIndex(3) -6 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) -7 >Emitted(18, 62) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^-> -1 > - > /**@internal*/ -2 > get -3 > c -1 >Emitted(19, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) ---- ->>> /**@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(20, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(20, 23) Source(17, 19) + SourceIndex(3) -3 >Emitted(20, 29) Source(17, 20) + SourceIndex(3) -4 >Emitted(20, 43) Source(17, 30) + SourceIndex(3) -5 >Emitted(20, 50) Source(17, 37) + SourceIndex(3) -6 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) -7 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) -8 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) -9 >Emitted(20, 55) Source(17, 42) + SourceIndex(3) ---- ->>> /**@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(21, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(21, 23) Source(18, 19) + SourceIndex(3) -3 >Emitted(21, 29) Source(18, 20) + SourceIndex(3) -4 >Emitted(21, 39) Source(18, 26) + SourceIndex(3) -5 >Emitted(21, 42) Source(18, 37) + SourceIndex(3) -6 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) -7 >Emitted(21, 47) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >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(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /**@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^-> -1-> { - > -2 > /**@internal*/ -3 > -1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) -3 >Emitted(29, 20) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) ---- ->>> /**@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) -3 >Emitted(35, 20) Source(22, 20) + SourceIndex(3) -4 >Emitted(35, 29) Source(22, 36) + SourceIndex(3) -5 >Emitted(35, 32) Source(22, 39) + SourceIndex(3) -6 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) -7 >Emitted(35, 38) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(36, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) ---- ->>> /**@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) -3 >Emitted(37, 20) Source(23, 20) + SourceIndex(3) -4 >Emitted(37, 24) Source(23, 37) + SourceIndex(3) -5 >Emitted(37, 37) Source(23, 50) + SourceIndex(3) -6 >Emitted(37, 38) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(38, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(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(45, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) ---- ->>> /**@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(46, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) -3 >Emitted(46, 20) Source(24, 20) + SourceIndex(3) -4 >Emitted(46, 24) Source(24, 37) + SourceIndex(3) -5 >Emitted(46, 33) Source(24, 46) + SourceIndex(3) -6 >Emitted(46, 34) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(47, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(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(56, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(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(57, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) ---- ->>> /**@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(58, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(58, 19) Source(25, 19) + SourceIndex(3) -3 >Emitted(58, 20) Source(25, 34) + SourceIndex(3) -4 >Emitted(58, 38) Source(25, 44) + SourceIndex(3) -5 >Emitted(58, 41) Source(25, 47) + SourceIndex(3) -6 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) -7 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) -8 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) -9 >Emitted(58, 57) Source(25, 63) + SourceIndex(3) ---- ->>> /**@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(59, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(59, 19) Source(27, 19) + SourceIndex(3) -3 >Emitted(59, 20) Source(27, 33) + SourceIndex(3) -4 >Emitted(59, 41) Source(27, 46) + SourceIndex(3) -5 >Emitted(59, 44) Source(27, 49) + SourceIndex(3) -6 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) -7 >Emitted(59, 47) Source(27, 52) + SourceIndex(3) ---- ->>> /**@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /**@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) -3 >Emitted(60, 20) Source(28, 20) + SourceIndex(3) -4 >Emitted(60, 24) Source(28, 32) + SourceIndex(3) -5 >Emitted(60, 36) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(61, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(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(65, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@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(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/**@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^-> -1-> - > -2 >/**@internal*/ -3 > -1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) -3 >Emitted(67, 16) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) ---- ->>>/**@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) -3 >Emitted(72, 16) Source(31, 16) + SourceIndex(3) -4 >Emitted(72, 25) Source(31, 25) + SourceIndex(3) -5 >Emitted(72, 36) Source(31, 36) + SourceIndex(3) -6 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) -7 >Emitted(72, 42) Source(31, 41) + SourceIndex(3) ---- ->>>/**@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) -3 >Emitted(73, 16) Source(32, 16) + SourceIndex(3) -4 >Emitted(73, 20) Source(32, 26) + SourceIndex(3) -5 >Emitted(73, 37) Source(32, 43) + SourceIndex(3) -6 >Emitted(73, 38) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(74, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) ---- ->>>/**@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) -3 >Emitted(82, 16) Source(33, 16) + SourceIndex(3) -4 >Emitted(82, 20) Source(33, 26) + SourceIndex(3) -5 >Emitted(82, 33) Source(33, 39) + SourceIndex(3) -6 >Emitted(82, 34) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(83, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(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(92, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) ---- ->>>/**@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/**@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) -3 >Emitted(94, 16) Source(34, 16) + SourceIndex(3) -4 >Emitted(94, 20) Source(34, 23) + SourceIndex(3) -5 >Emitted(94, 34) Source(34, 37) + SourceIndex(3) -6 >Emitted(94, 37) Source(34, 40) + SourceIndex(3) -7 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) -8 >Emitted(94, 55) Source(34, 58) + SourceIndex(3) -9 >Emitted(94, 64) Source(34, 67) + SourceIndex(3) -10>Emitted(94, 65) Source(34, 68) + SourceIndex(3) ---- ->>>/**@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/**@internal*/ type internalType = internalC; - > -2 >/**@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) -3 >Emitted(95, 16) Source(36, 16) + SourceIndex(3) -4 >Emitted(95, 20) Source(36, 22) + SourceIndex(3) -5 >Emitted(95, 33) Source(36, 35) + SourceIndex(3) -6 >Emitted(95, 36) Source(36, 38) + SourceIndex(3) -7 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) -8 >Emitted(95, 39) Source(36, 41) + SourceIndex(3) ---- ->>>/**@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/**@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) -3 >Emitted(96, 16) Source(37, 16) + SourceIndex(3) -4 >Emitted(96, 20) Source(37, 21) + SourceIndex(3) -5 >Emitted(96, 32) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(97, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3562,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":172,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":54,"kind":"internal"},{"pos":56,"end":172,"kind":"text"}]},{"pos":172,"end":249,"kind":"text"},{"pos":249,"end":429,"kind":"internal"},{"pos":431,"end":463,"kind":"text"},{"pos":463,"end":975,"kind":"internal"},{"pos":977,"end":980,"kind":"text"},{"pos":980,"end":1513,"kind":"internal"},{"pos":1515,"end":1563,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (127-3562) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -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: false, - configurable: true - }); - return 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 || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (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 || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-172):: ../first/bin/first-output.d.ts texts:: 2 ->>-------------------------------------------------------------------- -internal: (0-54) -/**@internal*/ interface TheFirst { - none: any; -} ->>-------------------------------------------------------------------- -text: (56-172) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (172-249) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (249-429) - /**@internal*/ constructor(); - /**@internal*/ prop: string; - /**@internal*/ method(): void; - /**@internal*/ get c(): number; - /**@internal*/ set c(val: number); ----------------------------------------------------------------------- -text: (431-463) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (463-975) - /**@internal*/ class C { - } - /**@internal*/ function foo(): void; - /**@internal*/ namespace someNamespace { - class C { - } - } - /**@internal*/ namespace someOther.something { - class someClass { - } - } - /**@internal*/ export import someImport = someNamespace.C; - /**@internal*/ type internalType = internalC; - /**@internal*/ const internalConst = 10; - /**@internal*/ enum internalEnum { - a = 0, - b = 1, - c = 2 - } ----------------------------------------------------------------------- -text: (977-980) -} - ----------------------------------------------------------------------- -internal: (980-1513) -/**@internal*/ declare class internalC { -} -/**@internal*/ declare function internalfoo(): void; -/**@internal*/ declare namespace internalNamespace { - class someClass { - } -} -/**@internal*/ declare namespace internalOther.something { - class someClass { - } -} -/**@internal*/ import internalImport = internalNamespace.someClass; -/**@internal*/ declare type internalType = internalC; -/**@internal*/ declare const internalConst = 10; -/**@internal*/ declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1515-1563) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 3562, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 172, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 54, - "kind": "internal" - }, - { - "pos": 56, - "end": 172, - "kind": "text" - } - ] - }, - { - "pos": 172, - "end": 249, - "kind": "text" - }, - { - "pos": 249, - "end": 429, - "kind": "internal" - }, - { - "pos": 431, - "end": 463, - "kind": "text" - }, - { - "pos": 463, - "end": 975, - "kind": "internal" - }, - { - "pos": 977, - "end": 980, - "kind": "text" - }, - { - "pos": 980, - "end": 1513, - "kind": "internal" - }, - { - "pos": 1515, - "end": 1563, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 769 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":54,"kind":"internal"},{"pos":56,"end":172,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-54) -/**@internal*/ interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (56-172) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 54, - "kind": "internal" - }, - { - "pos": 56, - "end": 172, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 290 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -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: false, - configurable: true - }); - return 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 || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (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 || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /**@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /**@internal*/ -3 > -1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) -3 >Emitted(16, 20) Source(14, 20) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(17, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) ---- ->>> /**@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(18, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) -3 >Emitted(18, 20) Source(16, 20) + SourceIndex(3) -4 >Emitted(18, 44) Source(16, 26) + SourceIndex(3) -5 >Emitted(18, 47) Source(16, 20) + SourceIndex(3) -6 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) -7 >Emitted(18, 62) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^-> -1 > - > /**@internal*/ -2 > get -3 > c -1 >Emitted(19, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) ---- ->>> /**@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(20, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(20, 23) Source(17, 19) + SourceIndex(3) -3 >Emitted(20, 29) Source(17, 20) + SourceIndex(3) -4 >Emitted(20, 43) Source(17, 30) + SourceIndex(3) -5 >Emitted(20, 50) Source(17, 37) + SourceIndex(3) -6 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) -7 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) -8 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) -9 >Emitted(20, 55) Source(17, 42) + SourceIndex(3) ---- ->>> /**@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(21, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(21, 23) Source(18, 19) + SourceIndex(3) -3 >Emitted(21, 29) Source(18, 20) + SourceIndex(3) -4 >Emitted(21, 39) Source(18, 26) + SourceIndex(3) -5 >Emitted(21, 42) Source(18, 37) + SourceIndex(3) -6 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) -7 >Emitted(21, 47) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >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(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /**@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^-> -1-> { - > -2 > /**@internal*/ -3 > -1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) -3 >Emitted(29, 20) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) ---- ->>> /**@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) -3 >Emitted(35, 20) Source(22, 20) + SourceIndex(3) -4 >Emitted(35, 29) Source(22, 36) + SourceIndex(3) -5 >Emitted(35, 32) Source(22, 39) + SourceIndex(3) -6 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) -7 >Emitted(35, 38) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(36, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) ---- ->>> /**@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) -3 >Emitted(37, 20) Source(23, 20) + SourceIndex(3) -4 >Emitted(37, 24) Source(23, 37) + SourceIndex(3) -5 >Emitted(37, 37) Source(23, 50) + SourceIndex(3) -6 >Emitted(37, 38) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(38, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(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(45, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) ---- ->>> /**@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(46, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) -3 >Emitted(46, 20) Source(24, 20) + SourceIndex(3) -4 >Emitted(46, 24) Source(24, 37) + SourceIndex(3) -5 >Emitted(46, 33) Source(24, 46) + SourceIndex(3) -6 >Emitted(46, 34) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(47, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(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(56, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(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(57, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) ---- ->>> /**@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(58, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(58, 19) Source(25, 19) + SourceIndex(3) -3 >Emitted(58, 20) Source(25, 34) + SourceIndex(3) -4 >Emitted(58, 38) Source(25, 44) + SourceIndex(3) -5 >Emitted(58, 41) Source(25, 47) + SourceIndex(3) -6 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) -7 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) -8 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) -9 >Emitted(58, 57) Source(25, 63) + SourceIndex(3) ---- ->>> /**@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(59, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(59, 19) Source(27, 19) + SourceIndex(3) -3 >Emitted(59, 20) Source(27, 33) + SourceIndex(3) -4 >Emitted(59, 41) Source(27, 46) + SourceIndex(3) -5 >Emitted(59, 44) Source(27, 49) + SourceIndex(3) -6 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) -7 >Emitted(59, 47) Source(27, 52) + SourceIndex(3) ---- ->>> /**@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /**@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) -3 >Emitted(60, 20) Source(28, 20) + SourceIndex(3) -4 >Emitted(60, 24) Source(28, 32) + SourceIndex(3) -5 >Emitted(60, 36) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(61, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(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(65, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@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(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/**@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^-> -1-> - > -2 >/**@internal*/ -3 > -1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) -3 >Emitted(67, 16) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) ---- ->>>/**@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) -3 >Emitted(72, 16) Source(31, 16) + SourceIndex(3) -4 >Emitted(72, 25) Source(31, 25) + SourceIndex(3) -5 >Emitted(72, 36) Source(31, 36) + SourceIndex(3) -6 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) -7 >Emitted(72, 42) Source(31, 41) + SourceIndex(3) ---- ->>>/**@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) -3 >Emitted(73, 16) Source(32, 16) + SourceIndex(3) -4 >Emitted(73, 20) Source(32, 26) + SourceIndex(3) -5 >Emitted(73, 37) Source(32, 43) + SourceIndex(3) -6 >Emitted(73, 38) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(74, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) ---- ->>>/**@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) -3 >Emitted(82, 16) Source(33, 16) + SourceIndex(3) -4 >Emitted(82, 20) Source(33, 26) + SourceIndex(3) -5 >Emitted(82, 33) Source(33, 39) + SourceIndex(3) -6 >Emitted(82, 34) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(83, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(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(92, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) ---- ->>>/**@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/**@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) -3 >Emitted(94, 16) Source(34, 16) + SourceIndex(3) -4 >Emitted(94, 20) Source(34, 23) + SourceIndex(3) -5 >Emitted(94, 34) Source(34, 37) + SourceIndex(3) -6 >Emitted(94, 37) Source(34, 40) + SourceIndex(3) -7 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) -8 >Emitted(94, 55) Source(34, 58) + SourceIndex(3) -9 >Emitted(94, 64) Source(34, 67) + SourceIndex(3) -10>Emitted(94, 65) Source(34, 68) + SourceIndex(3) ---- ->>>/**@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/**@internal*/ type internalType = internalC; - > -2 >/**@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) -3 >Emitted(95, 16) Source(36, 16) + SourceIndex(3) -4 >Emitted(95, 20) Source(36, 22) + SourceIndex(3) -5 >Emitted(95, 33) Source(36, 35) + SourceIndex(3) -6 >Emitted(95, 36) Source(36, 38) + SourceIndex(3) -7 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) -8 >Emitted(95, 39) Source(36, 41) + SourceIndex(3) ---- ->>>/**@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/**@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) -3 >Emitted(96, 16) Source(37, 16) + SourceIndex(3) -4 >Emitted(96, 20) Source(37, 21) + SourceIndex(3) -5 >Emitted(96, 32) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(97, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3562,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3562,"kind":"text"}]},{"pos":3562,"end":3598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3562):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3562) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -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: false, - configurable: true - }); - return 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 || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (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 || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3562-3598) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-276) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3562, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3562, - "kind": "text" - } - ] - }, - { - "pos": 3562, - "end": 3598, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 464 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js deleted file mode 100644 index a2828f6a2dfa7..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-jsdoc-style-with-comments-emit-enabled.js +++ /dev/null @@ -1,2426 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -/**@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":54,"kind":"internal"},{"pos":56,"end":172,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-54) -/**@internal*/ interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (56-172) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 54, - "kind": "internal" - }, - { - "pos": 56, - "end": 172, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 290 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -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: false, - configurable: true - }); - return 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 || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (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 || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/**@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /**@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /**@internal*/ -3 > -1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) -3 >Emitted(16, 20) Source(14, 20) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(17, 5) Source(14, 36) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) ---- ->>> /**@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(18, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) -3 >Emitted(18, 20) Source(16, 20) + SourceIndex(3) -4 >Emitted(18, 44) Source(16, 26) + SourceIndex(3) -5 >Emitted(18, 47) Source(16, 20) + SourceIndex(3) -6 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) -7 >Emitted(18, 62) Source(16, 32) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^-> -1 > - > /**@internal*/ -2 > get -3 > c -1 >Emitted(19, 5) Source(17, 20) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) ---- ->>> /**@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(20, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(20, 23) Source(17, 19) + SourceIndex(3) -3 >Emitted(20, 29) Source(17, 20) + SourceIndex(3) -4 >Emitted(20, 43) Source(17, 30) + SourceIndex(3) -5 >Emitted(20, 50) Source(17, 37) + SourceIndex(3) -6 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) -7 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) -8 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) -9 >Emitted(20, 55) Source(17, 42) + SourceIndex(3) ---- ->>> /**@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(21, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(21, 23) Source(18, 19) + SourceIndex(3) -3 >Emitted(21, 29) Source(18, 20) + SourceIndex(3) -4 >Emitted(21, 39) Source(18, 26) + SourceIndex(3) -5 >Emitted(21, 42) Source(18, 37) + SourceIndex(3) -6 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) -7 >Emitted(21, 47) Source(18, 42) + SourceIndex(3) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /**@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >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(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /**@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^-> -1-> { - > -2 > /**@internal*/ -3 > -1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) -3 >Emitted(29, 20) Source(21, 20) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) ---- ->>> /**@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) -3 >Emitted(35, 20) Source(22, 20) + SourceIndex(3) -4 >Emitted(35, 29) Source(22, 36) + SourceIndex(3) -5 >Emitted(35, 32) Source(22, 39) + SourceIndex(3) -6 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) -7 >Emitted(35, 38) Source(22, 44) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(36, 5) Source(22, 36) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) ---- ->>> /**@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) -3 >Emitted(37, 20) Source(23, 20) + SourceIndex(3) -4 >Emitted(37, 24) Source(23, 37) + SourceIndex(3) -5 >Emitted(37, 37) Source(23, 50) + SourceIndex(3) -6 >Emitted(37, 38) Source(23, 72) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(38, 5) Source(23, 20) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) ---- ->>> })(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(45, 5) Source(23, 71) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) ---- ->>> /**@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(46, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) -3 >Emitted(46, 20) Source(24, 20) + SourceIndex(3) -4 >Emitted(46, 24) Source(24, 37) + SourceIndex(3) -5 >Emitted(46, 33) Source(24, 46) + SourceIndex(3) -6 >Emitted(46, 34) Source(24, 86) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(47, 5) Source(24, 20) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) ---- ->>> })(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(56, 9) Source(24, 85) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) ---- ->>> })(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(57, 5) Source(24, 85) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) ---- ->>> /**@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(58, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(58, 19) Source(25, 19) + SourceIndex(3) -3 >Emitted(58, 20) Source(25, 34) + SourceIndex(3) -4 >Emitted(58, 38) Source(25, 44) + SourceIndex(3) -5 >Emitted(58, 41) Source(25, 47) + SourceIndex(3) -6 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) -7 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) -8 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) -9 >Emitted(58, 57) Source(25, 63) + SourceIndex(3) ---- ->>> /**@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(59, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(59, 19) Source(27, 19) + SourceIndex(3) -3 >Emitted(59, 20) Source(27, 33) + SourceIndex(3) -4 >Emitted(59, 41) Source(27, 46) + SourceIndex(3) -5 >Emitted(59, 44) Source(27, 49) + SourceIndex(3) -6 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) -7 >Emitted(59, 47) Source(27, 52) + SourceIndex(3) ---- ->>> /**@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /**@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) -3 >Emitted(60, 20) Source(28, 20) + SourceIndex(3) -4 >Emitted(60, 24) Source(28, 32) + SourceIndex(3) -5 >Emitted(60, 36) Source(28, 56) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(61, 5) Source(28, 20) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) ---- ->>> })(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(65, 5) Source(28, 55) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /**@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(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/**@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^-> -1-> - > -2 >/**@internal*/ -3 > -1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) -3 >Emitted(67, 16) Source(30, 16) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) ---- ->>>/**@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) -3 >Emitted(72, 16) Source(31, 16) + SourceIndex(3) -4 >Emitted(72, 25) Source(31, 25) + SourceIndex(3) -5 >Emitted(72, 36) Source(31, 36) + SourceIndex(3) -6 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) -7 >Emitted(72, 42) Source(31, 41) + SourceIndex(3) ---- ->>>/**@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) -3 >Emitted(73, 16) Source(32, 16) + SourceIndex(3) -4 >Emitted(73, 20) Source(32, 26) + SourceIndex(3) -5 >Emitted(73, 37) Source(32, 43) + SourceIndex(3) -6 >Emitted(73, 38) Source(32, 73) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(74, 1) Source(32, 16) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) ---- ->>>/**@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) -3 >Emitted(82, 16) Source(33, 16) + SourceIndex(3) -4 >Emitted(82, 20) Source(33, 26) + SourceIndex(3) -5 >Emitted(82, 33) Source(33, 39) + SourceIndex(3) -6 >Emitted(82, 34) Source(33, 79) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(83, 1) Source(33, 16) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) ---- ->>> })(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(92, 5) Source(33, 78) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) ---- ->>>/**@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/**@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) -3 >Emitted(94, 16) Source(34, 16) + SourceIndex(3) -4 >Emitted(94, 20) Source(34, 23) + SourceIndex(3) -5 >Emitted(94, 34) Source(34, 37) + SourceIndex(3) -6 >Emitted(94, 37) Source(34, 40) + SourceIndex(3) -7 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) -8 >Emitted(94, 55) Source(34, 58) + SourceIndex(3) -9 >Emitted(94, 64) Source(34, 67) + SourceIndex(3) -10>Emitted(94, 65) Source(34, 68) + SourceIndex(3) ---- ->>>/**@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/**@internal*/ type internalType = internalC; - > -2 >/**@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) -3 >Emitted(95, 16) Source(36, 16) + SourceIndex(3) -4 >Emitted(95, 20) Source(36, 22) + SourceIndex(3) -5 >Emitted(95, 33) Source(36, 35) + SourceIndex(3) -6 >Emitted(95, 36) Source(36, 38) + SourceIndex(3) -7 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) -8 >Emitted(95, 39) Source(36, 41) + SourceIndex(3) ---- ->>>/**@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/**@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) -3 >Emitted(96, 16) Source(37, 16) + SourceIndex(3) -4 >Emitted(96, 20) Source(37, 21) + SourceIndex(3) -5 >Emitted(96, 32) Source(37, 45) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(97, 1) Source(37, 16) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3562,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":3562,"kind":"text"}]},{"pos":3562,"end":3598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (127-3562):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (127-3562) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -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: false, - configurable: true - }); - return 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 || (normalN = {})); -/**@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/**@internal*/ function internalfoo() { } -/**@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (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 || (internalOther = {})); -/**@internal*/ var internalImport = internalNamespace.someClass; -/**@internal*/ var internalConst = 10; -/**@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3562-3598) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-116) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (116-276) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 3562, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 127, - "end": 3562, - "kind": "text" - } - ] - }, - { - "pos": 3562, - "end": 3598, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 116, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 116, - "kind": "text" - } - ] - }, - { - "pos": 116, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 116, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 724 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index d787e6f76b2c9..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,4349 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:08:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:08:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:08:00 AM] Building project '/src/first/tsconfig.json'... - -[12:08:00 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:08:00 AM] Updating output of project '/src/second/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/second/tsconfig.json'... - -[12:08:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed - -[12:08:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 2, - "/src/2/second-output.js": 2, - "/src/2/second-output.js.map": 2, - "/src/2/second-output.d.ts": 2, - "/src/2/second-output.d.ts.map": 2, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1 -} - -//// [/src/2/second-output.d.ts] file changed its modified time -//// [/src/2/second-output.d.ts.map] file changed its modified time -//// [/src/2/second-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /*@internal*/ -1->Emitted(16, 5) Source(14, 19) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(17, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(18, 5) Source(16, 19) + SourceIndex(3) -2 >Emitted(18, 29) Source(16, 25) + SourceIndex(3) -3 >Emitted(18, 32) Source(16, 19) + SourceIndex(3) -4 >Emitted(18, 46) Source(16, 30) + SourceIndex(3) -5 >Emitted(18, 47) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(19, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(20, 14) Source(17, 19) + SourceIndex(3) -2 >Emitted(20, 28) Source(17, 29) + SourceIndex(3) -3 >Emitted(20, 35) Source(17, 36) + SourceIndex(3) -4 >Emitted(20, 37) Source(17, 38) + SourceIndex(3) -5 >Emitted(20, 38) Source(17, 39) + SourceIndex(3) -6 >Emitted(20, 39) Source(17, 40) + SourceIndex(3) -7 >Emitted(20, 40) Source(17, 41) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(21, 14) Source(18, 19) + SourceIndex(3) -2 >Emitted(21, 24) Source(18, 25) + SourceIndex(3) -3 >Emitted(21, 27) Source(18, 36) + SourceIndex(3) -4 >Emitted(21, 31) Source(18, 40) + SourceIndex(3) -5 >Emitted(21, 32) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >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(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(29, 5) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(35, 5) Source(22, 19) + SourceIndex(3) -2 >Emitted(35, 14) Source(22, 35) + SourceIndex(3) -3 >Emitted(35, 17) Source(22, 38) + SourceIndex(3) -4 >Emitted(35, 22) Source(22, 42) + SourceIndex(3) -5 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(36, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 9) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 22) Source(23, 49) + SourceIndex(3) -4 >Emitted(37, 23) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(38, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(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(45, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 9) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 18) Source(24, 45) + SourceIndex(3) -4 >Emitted(46, 19) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(47, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(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(56, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(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(57, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(58, 5) Source(25, 33) + SourceIndex(3) -2 >Emitted(58, 23) Source(25, 43) + SourceIndex(3) -3 >Emitted(58, 26) Source(25, 46) + SourceIndex(3) -4 >Emitted(58, 39) Source(25, 59) + SourceIndex(3) -5 >Emitted(58, 40) Source(25, 60) + SourceIndex(3) -6 >Emitted(58, 41) Source(25, 61) + SourceIndex(3) -7 >Emitted(58, 42) Source(25, 62) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(59, 5) Source(27, 32) + SourceIndex(3) -2 >Emitted(59, 26) Source(27, 45) + SourceIndex(3) -3 >Emitted(59, 29) Source(27, 48) + SourceIndex(3) -4 >Emitted(59, 31) Source(27, 50) + SourceIndex(3) -5 >Emitted(59, 32) Source(27, 51) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 9) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 21) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(61, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(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(65, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@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(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/*@internal*/ -1->Emitted(67, 1) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(72, 1) Source(31, 15) + SourceIndex(3) -2 >Emitted(72, 10) Source(31, 24) + SourceIndex(3) -3 >Emitted(72, 21) Source(31, 35) + SourceIndex(3) -4 >Emitted(72, 26) Source(31, 39) + SourceIndex(3) -5 >Emitted(72, 27) Source(31, 40) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 5) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 22) Source(32, 42) + SourceIndex(3) -4 >Emitted(73, 23) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(74, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 5) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 18) Source(33, 38) + SourceIndex(3) -4 >Emitted(82, 19) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(83, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(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(92, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(94, 1) Source(34, 15) + SourceIndex(3) -2 >Emitted(94, 5) Source(34, 22) + SourceIndex(3) -3 >Emitted(94, 19) Source(34, 36) + SourceIndex(3) -4 >Emitted(94, 22) Source(34, 39) + SourceIndex(3) -5 >Emitted(94, 39) Source(34, 56) + SourceIndex(3) -6 >Emitted(94, 40) Source(34, 57) + SourceIndex(3) -7 >Emitted(94, 49) Source(34, 66) + SourceIndex(3) -8 >Emitted(94, 50) Source(34, 67) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(95, 1) Source(36, 15) + SourceIndex(3) -2 >Emitted(95, 5) Source(36, 21) + SourceIndex(3) -3 >Emitted(95, 18) Source(36, 34) + SourceIndex(3) -4 >Emitted(95, 21) Source(36, 37) + SourceIndex(3) -5 >Emitted(95, 23) Source(36, 39) + SourceIndex(3) -6 >Emitted(95, 24) Source(36, 40) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 5) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 17) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(97, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3180,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1183,"kind":"internal"},{"pos":1185,"end":1233,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (127-3180) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 2 ->>-------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ->>-------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (157-234) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (234-339) - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); ----------------------------------------------------------------------- -text: (341-373) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (373-765) - 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: (767-770) -} - ----------------------------------------------------------------------- -internal: (770-1183) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1185-1233) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 3180, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 234, - "kind": "text" - }, - { - "pos": 234, - "end": 339, - "kind": "internal" - }, - { - "pos": 341, - "end": 373, - "kind": "text" - }, - { - "pos": 373, - "end": 765, - "kind": "internal" - }, - { - "pos": 767, - "end": 770, - "kind": "text" - }, - { - "pos": 770, - "end": 1183, - "kind": "internal" - }, - { - "pos": 1185, - "end": 1233, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 769 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 290 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /*@internal*/ -1->Emitted(16, 5) Source(14, 19) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(17, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(18, 5) Source(16, 19) + SourceIndex(3) -2 >Emitted(18, 29) Source(16, 25) + SourceIndex(3) -3 >Emitted(18, 32) Source(16, 19) + SourceIndex(3) -4 >Emitted(18, 46) Source(16, 30) + SourceIndex(3) -5 >Emitted(18, 47) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(19, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(20, 14) Source(17, 19) + SourceIndex(3) -2 >Emitted(20, 28) Source(17, 29) + SourceIndex(3) -3 >Emitted(20, 35) Source(17, 36) + SourceIndex(3) -4 >Emitted(20, 37) Source(17, 38) + SourceIndex(3) -5 >Emitted(20, 38) Source(17, 39) + SourceIndex(3) -6 >Emitted(20, 39) Source(17, 40) + SourceIndex(3) -7 >Emitted(20, 40) Source(17, 41) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(21, 14) Source(18, 19) + SourceIndex(3) -2 >Emitted(21, 24) Source(18, 25) + SourceIndex(3) -3 >Emitted(21, 27) Source(18, 36) + SourceIndex(3) -4 >Emitted(21, 31) Source(18, 40) + SourceIndex(3) -5 >Emitted(21, 32) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >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(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(29, 5) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(35, 5) Source(22, 19) + SourceIndex(3) -2 >Emitted(35, 14) Source(22, 35) + SourceIndex(3) -3 >Emitted(35, 17) Source(22, 38) + SourceIndex(3) -4 >Emitted(35, 22) Source(22, 42) + SourceIndex(3) -5 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(36, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 9) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 22) Source(23, 49) + SourceIndex(3) -4 >Emitted(37, 23) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(38, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(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(45, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 9) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 18) Source(24, 45) + SourceIndex(3) -4 >Emitted(46, 19) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(47, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(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(56, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(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(57, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(58, 5) Source(25, 33) + SourceIndex(3) -2 >Emitted(58, 23) Source(25, 43) + SourceIndex(3) -3 >Emitted(58, 26) Source(25, 46) + SourceIndex(3) -4 >Emitted(58, 39) Source(25, 59) + SourceIndex(3) -5 >Emitted(58, 40) Source(25, 60) + SourceIndex(3) -6 >Emitted(58, 41) Source(25, 61) + SourceIndex(3) -7 >Emitted(58, 42) Source(25, 62) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(59, 5) Source(27, 32) + SourceIndex(3) -2 >Emitted(59, 26) Source(27, 45) + SourceIndex(3) -3 >Emitted(59, 29) Source(27, 48) + SourceIndex(3) -4 >Emitted(59, 31) Source(27, 50) + SourceIndex(3) -5 >Emitted(59, 32) Source(27, 51) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 9) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 21) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(61, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(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(65, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@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(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/*@internal*/ -1->Emitted(67, 1) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(72, 1) Source(31, 15) + SourceIndex(3) -2 >Emitted(72, 10) Source(31, 24) + SourceIndex(3) -3 >Emitted(72, 21) Source(31, 35) + SourceIndex(3) -4 >Emitted(72, 26) Source(31, 39) + SourceIndex(3) -5 >Emitted(72, 27) Source(31, 40) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 5) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 22) Source(32, 42) + SourceIndex(3) -4 >Emitted(73, 23) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(74, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 5) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 18) Source(33, 38) + SourceIndex(3) -4 >Emitted(82, 19) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(83, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(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(92, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(94, 1) Source(34, 15) + SourceIndex(3) -2 >Emitted(94, 5) Source(34, 22) + SourceIndex(3) -3 >Emitted(94, 19) Source(34, 36) + SourceIndex(3) -4 >Emitted(94, 22) Source(34, 39) + SourceIndex(3) -5 >Emitted(94, 39) Source(34, 56) + SourceIndex(3) -6 >Emitted(94, 40) Source(34, 57) + SourceIndex(3) -7 >Emitted(94, 49) Source(34, 66) + SourceIndex(3) -8 >Emitted(94, 50) Source(34, 67) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(95, 1) Source(36, 15) + SourceIndex(3) -2 >Emitted(95, 5) Source(36, 21) + SourceIndex(3) -3 >Emitted(95, 18) Source(36, 34) + SourceIndex(3) -4 >Emitted(95, 21) Source(36, 37) + SourceIndex(3) -5 >Emitted(95, 23) Source(36, 39) + SourceIndex(3) -6 >Emitted(95, 24) Source(36, 40) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 5) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 17) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(97, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3180,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3180,"kind":"text"}]},{"pos":3180,"end":3216,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3180):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3180) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3180-3216) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-276) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3180, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3180, - "kind": "text" - } - ] - }, - { - "pos": 3180, - "end": 3216, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 464 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index af54aaa7e38dd..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,4527 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:04:00 AM] Updating output of project '/src/second/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/second/tsconfig.json'... - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed - -[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/2/second-output.d.ts] file changed its modified time -//// [/src/2/second-output.d.ts.map] file changed its modified time -//// [/src/2/second-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -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: false, - configurable: true - }); - return 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 || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (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 || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.js.map] -{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,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;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/2/second-output.js.map.baseline.txt] -=================================================================== -JsFile: second-output.js -mapUrl: second-output.js.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /*@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(16, 18) Source(14, 18) + SourceIndex(3) -3 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(17, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) ---- ->>> /*@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(18, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(18, 18) Source(16, 18) + SourceIndex(3) -3 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) -4 >Emitted(18, 43) Source(16, 25) + SourceIndex(3) -5 >Emitted(18, 46) Source(16, 19) + SourceIndex(3) -6 >Emitted(18, 60) Source(16, 30) + SourceIndex(3) -7 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(19, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) ---- ->>> /*@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(20, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(20, 22) Source(17, 18) + SourceIndex(3) -3 >Emitted(20, 28) Source(17, 19) + SourceIndex(3) -4 >Emitted(20, 42) Source(17, 29) + SourceIndex(3) -5 >Emitted(20, 49) Source(17, 36) + SourceIndex(3) -6 >Emitted(20, 51) Source(17, 38) + SourceIndex(3) -7 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) -8 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) -9 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) ---- ->>> /*@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(21, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(21, 22) Source(18, 18) + SourceIndex(3) -3 >Emitted(21, 28) Source(18, 19) + SourceIndex(3) -4 >Emitted(21, 38) Source(18, 25) + SourceIndex(3) -5 >Emitted(21, 41) Source(18, 36) + SourceIndex(3) -6 >Emitted(21, 45) Source(18, 40) + SourceIndex(3) -7 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >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(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(29, 18) Source(21, 18) + SourceIndex(3) -3 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) ---- ->>> /*@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(35, 18) Source(22, 18) + SourceIndex(3) -3 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) -4 >Emitted(35, 28) Source(22, 35) + SourceIndex(3) -5 >Emitted(35, 31) Source(22, 38) + SourceIndex(3) -6 >Emitted(35, 36) Source(22, 42) + SourceIndex(3) -7 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(36, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(37, 18) Source(23, 18) + SourceIndex(3) -3 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) -4 >Emitted(37, 23) Source(23, 36) + SourceIndex(3) -5 >Emitted(37, 36) Source(23, 49) + SourceIndex(3) -6 >Emitted(37, 37) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(38, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(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(45, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) ---- ->>> /*@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(46, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(46, 18) Source(24, 18) + SourceIndex(3) -3 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) -4 >Emitted(46, 23) Source(24, 36) + SourceIndex(3) -5 >Emitted(46, 32) Source(24, 45) + SourceIndex(3) -6 >Emitted(46, 33) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(47, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(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(56, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(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(57, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) ---- ->>> /*@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(58, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(58, 18) Source(25, 18) + SourceIndex(3) -3 >Emitted(58, 19) Source(25, 33) + SourceIndex(3) -4 >Emitted(58, 37) Source(25, 43) + SourceIndex(3) -5 >Emitted(58, 40) Source(25, 46) + SourceIndex(3) -6 >Emitted(58, 53) Source(25, 59) + SourceIndex(3) -7 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) -8 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) -9 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) ---- ->>> /*@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(59, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(59, 18) Source(27, 18) + SourceIndex(3) -3 >Emitted(59, 19) Source(27, 32) + SourceIndex(3) -4 >Emitted(59, 40) Source(27, 45) + SourceIndex(3) -5 >Emitted(59, 43) Source(27, 48) + SourceIndex(3) -6 >Emitted(59, 45) Source(27, 50) + SourceIndex(3) -7 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(60, 18) Source(28, 18) + SourceIndex(3) -3 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) -4 >Emitted(60, 23) Source(28, 31) + SourceIndex(3) -5 >Emitted(60, 35) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(61, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(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(65, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@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(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/*@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^-> -1-> - > -2 >/*@internal*/ -3 > -1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(67, 14) Source(30, 14) + SourceIndex(3) -3 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) ---- ->>>/*@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/*@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(72, 14) Source(31, 14) + SourceIndex(3) -3 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) -4 >Emitted(72, 24) Source(31, 24) + SourceIndex(3) -5 >Emitted(72, 35) Source(31, 35) + SourceIndex(3) -6 >Emitted(72, 40) Source(31, 39) + SourceIndex(3) -7 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(73, 14) Source(32, 14) + SourceIndex(3) -3 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) -4 >Emitted(73, 19) Source(32, 25) + SourceIndex(3) -5 >Emitted(73, 36) Source(32, 42) + SourceIndex(3) -6 >Emitted(73, 37) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(74, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) ---- ->>>/*@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(82, 14) Source(33, 14) + SourceIndex(3) -3 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) -4 >Emitted(82, 19) Source(33, 25) + SourceIndex(3) -5 >Emitted(82, 32) Source(33, 38) + SourceIndex(3) -6 >Emitted(82, 33) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(83, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(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(92, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) ---- ->>>/*@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/*@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(94, 14) Source(34, 14) + SourceIndex(3) -3 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) -4 >Emitted(94, 19) Source(34, 22) + SourceIndex(3) -5 >Emitted(94, 33) Source(34, 36) + SourceIndex(3) -6 >Emitted(94, 36) Source(34, 39) + SourceIndex(3) -7 >Emitted(94, 53) Source(34, 56) + SourceIndex(3) -8 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) -9 >Emitted(94, 63) Source(34, 66) + SourceIndex(3) -10>Emitted(94, 64) Source(34, 67) + SourceIndex(3) ---- ->>>/*@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ type internalType = internalC; - > -2 >/*@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(95, 14) Source(36, 14) + SourceIndex(3) -3 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) -4 >Emitted(95, 19) Source(36, 21) + SourceIndex(3) -5 >Emitted(95, 32) Source(36, 34) + SourceIndex(3) -6 >Emitted(95, 35) Source(36, 37) + SourceIndex(3) -7 >Emitted(95, 37) Source(36, 39) + SourceIndex(3) -8 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/*@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(96, 14) Source(37, 14) + SourceIndex(3) -3 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) -4 >Emitted(96, 19) Source(37, 20) + SourceIndex(3) -5 >Emitted(96, 31) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(97, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.js -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=second-output.js.map - -//// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3544,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1183,"kind":"internal"},{"pos":1185,"end":1233,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (127-3544) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -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: false, - configurable: true - }); - return 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 || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (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 || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 2 ->>-------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ->>-------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (157-234) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (234-339) - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); ----------------------------------------------------------------------- -text: (341-373) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (373-765) - 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: (767-770) -} - ----------------------------------------------------------------------- -internal: (770-1183) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1185-1233) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 3544, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 234, - "kind": "text" - }, - { - "pos": 234, - "end": 339, - "kind": "internal" - }, - { - "pos": 341, - "end": 373, - "kind": "text" - }, - { - "pos": 373, - "end": 765, - "kind": "internal" - }, - { - "pos": 767, - "end": 770, - "kind": "text" - }, - { - "pos": 770, - "end": 1183, - "kind": "internal" - }, - { - "pos": 1185, - "end": 1233, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 769 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 290 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -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: false, - configurable: true - }); - return 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 || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (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 || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,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;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /*@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(16, 18) Source(14, 18) + SourceIndex(3) -3 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(17, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) ---- ->>> /*@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(18, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(18, 18) Source(16, 18) + SourceIndex(3) -3 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) -4 >Emitted(18, 43) Source(16, 25) + SourceIndex(3) -5 >Emitted(18, 46) Source(16, 19) + SourceIndex(3) -6 >Emitted(18, 60) Source(16, 30) + SourceIndex(3) -7 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(19, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) ---- ->>> /*@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(20, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(20, 22) Source(17, 18) + SourceIndex(3) -3 >Emitted(20, 28) Source(17, 19) + SourceIndex(3) -4 >Emitted(20, 42) Source(17, 29) + SourceIndex(3) -5 >Emitted(20, 49) Source(17, 36) + SourceIndex(3) -6 >Emitted(20, 51) Source(17, 38) + SourceIndex(3) -7 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) -8 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) -9 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) ---- ->>> /*@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(21, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(21, 22) Source(18, 18) + SourceIndex(3) -3 >Emitted(21, 28) Source(18, 19) + SourceIndex(3) -4 >Emitted(21, 38) Source(18, 25) + SourceIndex(3) -5 >Emitted(21, 41) Source(18, 36) + SourceIndex(3) -6 >Emitted(21, 45) Source(18, 40) + SourceIndex(3) -7 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >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(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(29, 18) Source(21, 18) + SourceIndex(3) -3 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) ---- ->>> /*@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(35, 18) Source(22, 18) + SourceIndex(3) -3 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) -4 >Emitted(35, 28) Source(22, 35) + SourceIndex(3) -5 >Emitted(35, 31) Source(22, 38) + SourceIndex(3) -6 >Emitted(35, 36) Source(22, 42) + SourceIndex(3) -7 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(36, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(37, 18) Source(23, 18) + SourceIndex(3) -3 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) -4 >Emitted(37, 23) Source(23, 36) + SourceIndex(3) -5 >Emitted(37, 36) Source(23, 49) + SourceIndex(3) -6 >Emitted(37, 37) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(38, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(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(45, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) ---- ->>> /*@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(46, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(46, 18) Source(24, 18) + SourceIndex(3) -3 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) -4 >Emitted(46, 23) Source(24, 36) + SourceIndex(3) -5 >Emitted(46, 32) Source(24, 45) + SourceIndex(3) -6 >Emitted(46, 33) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(47, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(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(56, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(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(57, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) ---- ->>> /*@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(58, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(58, 18) Source(25, 18) + SourceIndex(3) -3 >Emitted(58, 19) Source(25, 33) + SourceIndex(3) -4 >Emitted(58, 37) Source(25, 43) + SourceIndex(3) -5 >Emitted(58, 40) Source(25, 46) + SourceIndex(3) -6 >Emitted(58, 53) Source(25, 59) + SourceIndex(3) -7 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) -8 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) -9 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) ---- ->>> /*@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(59, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(59, 18) Source(27, 18) + SourceIndex(3) -3 >Emitted(59, 19) Source(27, 32) + SourceIndex(3) -4 >Emitted(59, 40) Source(27, 45) + SourceIndex(3) -5 >Emitted(59, 43) Source(27, 48) + SourceIndex(3) -6 >Emitted(59, 45) Source(27, 50) + SourceIndex(3) -7 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(60, 18) Source(28, 18) + SourceIndex(3) -3 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) -4 >Emitted(60, 23) Source(28, 31) + SourceIndex(3) -5 >Emitted(60, 35) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(61, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(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(65, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@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(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/*@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^-> -1-> - > -2 >/*@internal*/ -3 > -1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(67, 14) Source(30, 14) + SourceIndex(3) -3 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) ---- ->>>/*@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/*@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(72, 14) Source(31, 14) + SourceIndex(3) -3 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) -4 >Emitted(72, 24) Source(31, 24) + SourceIndex(3) -5 >Emitted(72, 35) Source(31, 35) + SourceIndex(3) -6 >Emitted(72, 40) Source(31, 39) + SourceIndex(3) -7 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(73, 14) Source(32, 14) + SourceIndex(3) -3 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) -4 >Emitted(73, 19) Source(32, 25) + SourceIndex(3) -5 >Emitted(73, 36) Source(32, 42) + SourceIndex(3) -6 >Emitted(73, 37) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(74, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) ---- ->>>/*@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(82, 14) Source(33, 14) + SourceIndex(3) -3 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) -4 >Emitted(82, 19) Source(33, 25) + SourceIndex(3) -5 >Emitted(82, 32) Source(33, 38) + SourceIndex(3) -6 >Emitted(82, 33) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(83, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(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(92, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) ---- ->>>/*@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/*@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(94, 14) Source(34, 14) + SourceIndex(3) -3 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) -4 >Emitted(94, 19) Source(34, 22) + SourceIndex(3) -5 >Emitted(94, 33) Source(34, 36) + SourceIndex(3) -6 >Emitted(94, 36) Source(34, 39) + SourceIndex(3) -7 >Emitted(94, 53) Source(34, 56) + SourceIndex(3) -8 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) -9 >Emitted(94, 63) Source(34, 66) + SourceIndex(3) -10>Emitted(94, 64) Source(34, 67) + SourceIndex(3) ---- ->>>/*@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ type internalType = internalC; - > -2 >/*@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(95, 14) Source(36, 14) + SourceIndex(3) -3 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) -4 >Emitted(95, 19) Source(36, 21) + SourceIndex(3) -5 >Emitted(95, 32) Source(36, 34) + SourceIndex(3) -6 >Emitted(95, 35) Source(36, 37) + SourceIndex(3) -7 >Emitted(95, 37) Source(36, 39) + SourceIndex(3) -8 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/*@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(96, 14) Source(37, 14) + SourceIndex(3) -3 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) -4 >Emitted(96, 19) Source(37, 20) + SourceIndex(3) -5 >Emitted(96, 31) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(97, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3544,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3544,"kind":"text"}]},{"pos":3544,"end":3580,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3544):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3544) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -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: false, - configurable: true - }); - return 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 || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (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 || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3544-3580) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-276) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3544, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3544, - "kind": "text" - } - ] - }, - { - "pos": 3544, - "end": 3580, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 464 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js deleted file mode 100644 index 78a9de3c1c128..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal-with-comments-emit-enabled.js +++ /dev/null @@ -1,2426 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 290 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -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: false, - configurable: true - }); - return 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 || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (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 || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,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;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> /*@internal*/ function normalC() { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -1->class normalC { - > -2 > /*@internal*/ -3 > -1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) -2 >Emitted(16, 18) Source(14, 18) + SourceIndex(3) -3 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >constructor() { -2 > } -1 >Emitted(17, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) ---- ->>> /*@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(18, 5) Source(16, 5) + SourceIndex(3) -2 >Emitted(18, 18) Source(16, 18) + SourceIndex(3) -3 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) -4 >Emitted(18, 43) Source(16, 25) + SourceIndex(3) -5 >Emitted(18, 46) Source(16, 19) + SourceIndex(3) -6 >Emitted(18, 60) Source(16, 30) + SourceIndex(3) -7 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1 > - > /*@internal*/ -2 > get -3 > c -1 >Emitted(19, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) ---- ->>> /*@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(20, 9) Source(17, 5) + SourceIndex(3) -2 >Emitted(20, 22) Source(17, 18) + SourceIndex(3) -3 >Emitted(20, 28) Source(17, 19) + SourceIndex(3) -4 >Emitted(20, 42) Source(17, 29) + SourceIndex(3) -5 >Emitted(20, 49) Source(17, 36) + SourceIndex(3) -6 >Emitted(20, 51) Source(17, 38) + SourceIndex(3) -7 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) -8 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) -9 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) ---- ->>> /*@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(21, 9) Source(18, 5) + SourceIndex(3) -2 >Emitted(21, 22) Source(18, 18) + SourceIndex(3) -3 >Emitted(21, 28) Source(18, 19) + SourceIndex(3) -4 >Emitted(21, 38) Source(18, 25) + SourceIndex(3) -5 >Emitted(21, 41) Source(18, 36) + SourceIndex(3) -6 >Emitted(21, 45) Source(18, 40) + SourceIndex(3) -7 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >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(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> /*@internal*/ var C = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^-> -1-> { - > -2 > /*@internal*/ -3 > -1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) -2 >Emitted(29, 18) Source(21, 18) + SourceIndex(3) -3 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) ---- ->>> /*@internal*/ function foo() { } -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export function -5 > foo -6 > () { -7 > } -1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) -2 >Emitted(35, 18) Source(22, 18) + SourceIndex(3) -3 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) -4 >Emitted(35, 28) Source(22, 35) + SourceIndex(3) -5 >Emitted(35, 31) Source(22, 38) + SourceIndex(3) -6 >Emitted(35, 36) Source(22, 42) + SourceIndex(3) -7 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^-> -1 > -2 > foo -3 > () {} -4 > -1 >Emitted(36, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) ---- ->>> /*@internal*/ var someNamespace; -1->^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /*@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > { export class C {} } -1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) -2 >Emitted(37, 18) Source(23, 18) + SourceIndex(3) -3 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) -4 >Emitted(37, 23) Source(23, 36) + SourceIndex(3) -5 >Emitted(37, 36) Source(23, 49) + SourceIndex(3) -6 >Emitted(37, 37) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^-> -1 > -2 > export namespace -3 > someNamespace -1 >Emitted(38, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(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(45, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) ---- ->>> /*@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(46, 5) Source(24, 5) + SourceIndex(3) -2 >Emitted(46, 18) Source(24, 18) + SourceIndex(3) -3 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) -4 >Emitted(46, 23) Source(24, 36) + SourceIndex(3) -5 >Emitted(46, 32) Source(24, 45) + SourceIndex(3) -6 >Emitted(46, 33) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1 > -2 > export namespace -3 > someOther -1 >Emitted(47, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(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(56, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(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(57, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) ---- ->>> /*@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(58, 5) Source(25, 5) + SourceIndex(3) -2 >Emitted(58, 18) Source(25, 18) + SourceIndex(3) -3 >Emitted(58, 19) Source(25, 33) + SourceIndex(3) -4 >Emitted(58, 37) Source(25, 43) + SourceIndex(3) -5 >Emitted(58, 40) Source(25, 46) + SourceIndex(3) -6 >Emitted(58, 53) Source(25, 59) + SourceIndex(3) -7 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) -8 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) -9 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) ---- ->>> /*@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(59, 5) Source(27, 5) + SourceIndex(3) -2 >Emitted(59, 18) Source(27, 18) + SourceIndex(3) -3 >Emitted(59, 19) Source(27, 32) + SourceIndex(3) -4 >Emitted(59, 40) Source(27, 45) + SourceIndex(3) -5 >Emitted(59, 43) Source(27, 48) + SourceIndex(3) -6 >Emitted(59, 45) Source(27, 50) + SourceIndex(3) -7 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) ---- ->>> /*@internal*/ var internalEnum; -1 >^^^^ -2 > ^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /*@internal*/ -3 > -4 > export enum -5 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) -2 >Emitted(60, 18) Source(28, 18) + SourceIndex(3) -3 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) -4 >Emitted(60, 23) Source(28, 31) + SourceIndex(3) -5 >Emitted(60, 35) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > export enum -3 > internalEnum -1 >Emitted(61, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(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(65, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@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(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>/*@internal*/ var internalC = /** @class */ (function () { -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^-> -1-> - > -2 >/*@internal*/ -3 > -1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) -2 >Emitted(67, 14) Source(30, 14) + SourceIndex(3) -3 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) ---- ->>>/*@internal*/ function internalfoo() { } -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1-> - > -2 >/*@internal*/ -3 > -4 > function -5 > internalfoo -6 > () { -7 > } -1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) -2 >Emitted(72, 14) Source(31, 14) + SourceIndex(3) -3 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) -4 >Emitted(72, 24) Source(31, 24) + SourceIndex(3) -5 >Emitted(72, 35) Source(31, 35) + SourceIndex(3) -6 >Emitted(72, 40) Source(31, 39) + SourceIndex(3) -7 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalNamespace; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) -2 >Emitted(73, 14) Source(32, 14) + SourceIndex(3) -3 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) -4 >Emitted(73, 19) Source(32, 25) + SourceIndex(3) -5 >Emitted(73, 36) Source(32, 42) + SourceIndex(3) -6 >Emitted(73, 37) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >namespace -3 > internalNamespace -1 >Emitted(74, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) ---- ->>>/*@internal*/ var internalOther; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1 > - > -2 >/*@internal*/ -3 > -4 > namespace -5 > internalOther -6 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) -2 >Emitted(82, 14) Source(33, 14) + SourceIndex(3) -3 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) -4 >Emitted(82, 19) Source(33, 25) + SourceIndex(3) -5 >Emitted(82, 32) Source(33, 38) + SourceIndex(3) -6 >Emitted(82, 33) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1 > -2 >namespace -3 > internalOther -1 >Emitted(83, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = /** @class */ (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(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(92, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) ---- ->>>/*@internal*/ var internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^^^^^^^^^ -8 > ^ -9 > ^^^^^^^^^ -10> ^ -1-> - > -2 >/*@internal*/ -3 > -4 > import -5 > internalImport -6 > = -7 > internalNamespace -8 > . -9 > someClass -10> ; -1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) -2 >Emitted(94, 14) Source(34, 14) + SourceIndex(3) -3 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) -4 >Emitted(94, 19) Source(34, 22) + SourceIndex(3) -5 >Emitted(94, 33) Source(34, 36) + SourceIndex(3) -6 >Emitted(94, 36) Source(34, 39) + SourceIndex(3) -7 >Emitted(94, 53) Source(34, 56) + SourceIndex(3) -8 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) -9 >Emitted(94, 63) Source(34, 66) + SourceIndex(3) -10>Emitted(94, 64) Source(34, 67) + SourceIndex(3) ---- ->>>/*@internal*/ var internalConst = 10; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^ -7 > ^^ -8 > ^ -1 > - >/*@internal*/ type internalType = internalC; - > -2 >/*@internal*/ -3 > -4 > const -5 > internalConst -6 > = -7 > 10 -8 > ; -1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) -2 >Emitted(95, 14) Source(36, 14) + SourceIndex(3) -3 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) -4 >Emitted(95, 19) Source(36, 21) + SourceIndex(3) -5 >Emitted(95, 32) Source(36, 34) + SourceIndex(3) -6 >Emitted(95, 35) Source(36, 37) + SourceIndex(3) -7 >Emitted(95, 37) Source(36, 39) + SourceIndex(3) -8 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) ---- ->>>/*@internal*/ var internalEnum; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/*@internal*/ -3 > -4 > enum -5 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) -2 >Emitted(96, 14) Source(37, 14) + SourceIndex(3) -3 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) -4 >Emitted(96, 19) Source(37, 20) + SourceIndex(3) -5 >Emitted(96, 31) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1 > -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >enum -3 > internalEnum -1 >Emitted(97, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = /** @class */ (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3544,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":3544,"kind":"text"}]},{"pos":3544,"end":3580,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (127-3544):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (127-3544) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -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: false, - configurable: true - }); - return 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 || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (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 || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3544-3580) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-116) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (116-276) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 3544, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 127, - "end": 3544, - "kind": "text" - } - ] - }, - { - "pos": 3544, - "end": 3580, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 116, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 116, - "kind": "text" - } - ] - }, - { - "pos": 116, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 116, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 724 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js deleted file mode 100644 index b5e94f4f2df13..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/stripInternal.js +++ /dev/null @@ -1,2348 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -/*@internal*/ interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:08:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:08:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:08:00 AM] Building project '/src/first/tsconfig.json'... - -[12:08:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:08:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:08:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -internal: (0-39) -interface TheFirst { - none: any; -} ----------------------------------------------------------------------- -text: (41-157) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 39, - "kind": "internal" - }, - { - "pos": 41, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 290 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >/*@internal*/ interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- ->>>var normalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > - > -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) ---- ->>> function normalC() { -1->^^^^ -2 > ^^-> -1->class normalC { - > /*@internal*/ -1->Emitted(16, 5) Source(14, 19) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->constructor() { -2 > } -1->Emitted(17, 5) Source(14, 35) + SourceIndex(3) -2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) ---- ->>> normalC.prototype.method = function () { }; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^^ -5 > ^ -6 > ^^^^^^-> -1-> - > /*@internal*/ prop: string; - > /*@internal*/ -2 > method -3 > -4 > method() { -5 > } -1->Emitted(18, 5) Source(16, 19) + SourceIndex(3) -2 >Emitted(18, 29) Source(16, 25) + SourceIndex(3) -3 >Emitted(18, 32) Source(16, 19) + SourceIndex(3) -4 >Emitted(18, 46) Source(16, 30) + SourceIndex(3) -5 >Emitted(18, 47) Source(16, 31) + SourceIndex(3) ---- ->>> Object.defineProperty(normalC.prototype, "c", { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > /*@internal*/ -2 > get -3 > c -1->Emitted(19, 5) Source(17, 19) + SourceIndex(3) -2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) -3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) ---- ->>> get: function () { return 10; }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^ -5 > ^ -6 > ^ -7 > ^ -1 > -2 > get c() { -3 > return -4 > 10 -5 > ; -6 > -7 > } -1 >Emitted(20, 14) Source(17, 19) + SourceIndex(3) -2 >Emitted(20, 28) Source(17, 29) + SourceIndex(3) -3 >Emitted(20, 35) Source(17, 36) + SourceIndex(3) -4 >Emitted(20, 37) Source(17, 38) + SourceIndex(3) -5 >Emitted(20, 38) Source(17, 39) + SourceIndex(3) -6 >Emitted(20, 39) Source(17, 40) + SourceIndex(3) -7 >Emitted(20, 40) Source(17, 41) + SourceIndex(3) ---- ->>> set: function (val) { }, -1 >^^^^^^^^^^^^^ -2 > ^^^^^^^^^^ -3 > ^^^ -4 > ^^^^ -5 > ^ -1 > - > /*@internal*/ -2 > set c( -3 > val: number -4 > ) { -5 > } -1 >Emitted(21, 14) Source(18, 19) + SourceIndex(3) -2 >Emitted(21, 24) Source(18, 25) + SourceIndex(3) -3 >Emitted(21, 27) Source(18, 36) + SourceIndex(3) -4 >Emitted(21, 31) Source(18, 40) + SourceIndex(3) -5 >Emitted(21, 32) Source(18, 41) + SourceIndex(3) ---- ->>> enumerable: false, ->>> configurable: true ->>> }); -1 >^^^^^^^ -2 > ^^^^^^^^^^^^^-> -1 > -1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) ---- ->>> return normalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -1-> - > /*@internal*/ set c(val: number) { } - > -2 > } -1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) -2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > class normalC { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - > } -1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) -3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) ---- ->>>var normalN; -1-> -2 >^^^^ -3 > ^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > -2 >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(27, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) -3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) -4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) ---- ->>>(function (normalN) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^^^^^^^^^-> -1-> -2 >namespace -3 > normalN -1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) -2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) -3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { - > /*@internal*/ -1->Emitted(29, 5) Source(21, 19) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) -2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C { } -1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) -2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) -3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) -4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) ---- ->>> normalN.C = C; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^-> -1-> -2 > C -3 > { } -4 > -1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) -2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) -3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) -4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) ---- ->>> function foo() { } -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^ -5 > ^ -6 > ^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () { -5 > } -1->Emitted(35, 5) Source(22, 19) + SourceIndex(3) -2 >Emitted(35, 14) Source(22, 35) + SourceIndex(3) -3 >Emitted(35, 17) Source(22, 38) + SourceIndex(3) -4 >Emitted(35, 22) Source(22, 42) + SourceIndex(3) -5 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) ---- ->>> normalN.foo = foo; -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^-> -1-> -2 > foo -3 > () {} -4 > -1->Emitted(36, 5) Source(22, 35) + SourceIndex(3) -2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) -3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) -4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) ---- ->>> var someNamespace; -1->^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > { export class C {} } -1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(37, 9) Source(23, 36) + SourceIndex(3) -3 >Emitted(37, 22) Source(23, 49) + SourceIndex(3) -4 >Emitted(37, 23) Source(23, 71) + SourceIndex(3) ---- ->>> (function (someNamespace) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^-> -1-> -2 > export namespace -3 > someNamespace -1->Emitted(38, 5) Source(23, 19) + SourceIndex(3) -2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) -3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) ---- ->>> var C = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) ---- ->>> function C() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1->export class C { -2 > } -1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) ---- ->>> return C; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^ -1-> -2 > } -1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) -2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class C {} -1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) -2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) -3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) -4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) ---- ->>> someNamespace.C = C; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > C -3 > {} -4 > -1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) -2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) -3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) -4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) ---- ->>> })(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(45, 5) Source(23, 70) + SourceIndex(3) -2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) -3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) -4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) -5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) -6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) -7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) -8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) -9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) ---- ->>> var someOther; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export namespace -3 > someOther -4 > .something { export class someClass {} } -1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(46, 9) Source(24, 36) + SourceIndex(3) -3 >Emitted(46, 18) Source(24, 45) + SourceIndex(3) -4 >Emitted(46, 19) Source(24, 85) + SourceIndex(3) ---- ->>> (function (someOther) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> -2 > export namespace -3 > someOther -1->Emitted(47, 5) Source(24, 19) + SourceIndex(3) -2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) -3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) ---- ->>> var something; -1 >^^^^^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) -3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) -4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) -2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) -3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) -2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) -2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) -3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) -4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) -2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) -3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) -4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) ---- ->>> })(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(56, 9) Source(24, 84) + SourceIndex(3) -2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) -3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) -4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) -5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) -6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) -7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) -8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) -9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) ---- ->>> })(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(57, 5) Source(24, 84) + SourceIndex(3) -2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) -3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) -4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) -5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) -6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) -7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) -8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) -9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) ---- ->>> normalN.someImport = someNamespace.C; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^ -5 > ^ -6 > ^ -7 > ^ -1 > - > /*@internal*/ export import -2 > someImport -3 > = -4 > someNamespace -5 > . -6 > C -7 > ; -1 >Emitted(58, 5) Source(25, 33) + SourceIndex(3) -2 >Emitted(58, 23) Source(25, 43) + SourceIndex(3) -3 >Emitted(58, 26) Source(25, 46) + SourceIndex(3) -4 >Emitted(58, 39) Source(25, 59) + SourceIndex(3) -5 >Emitted(58, 40) Source(25, 60) + SourceIndex(3) -6 >Emitted(58, 41) Source(25, 61) + SourceIndex(3) -7 >Emitted(58, 42) Source(25, 62) + SourceIndex(3) ---- ->>> normalN.internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^ -5 > ^ -1 > - > /*@internal*/ export type internalType = internalC; - > /*@internal*/ export const -2 > internalConst -3 > = -4 > 10 -5 > ; -1 >Emitted(59, 5) Source(27, 32) + SourceIndex(3) -2 >Emitted(59, 26) Source(27, 45) + SourceIndex(3) -3 >Emitted(59, 29) Source(27, 48) + SourceIndex(3) -4 >Emitted(59, 31) Source(27, 50) + SourceIndex(3) -5 >Emitted(59, 32) Source(27, 51) + SourceIndex(3) ---- ->>> var internalEnum; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum { a, b, c } -1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(60, 9) Source(28, 31) + SourceIndex(3) -3 >Emitted(60, 21) Source(28, 55) + SourceIndex(3) ---- ->>> (function (internalEnum) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > export enum -3 > internalEnum -1->Emitted(61, 5) Source(28, 19) + SourceIndex(3) -2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) -3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) -2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) -3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) -2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) -3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->, -2 > c -3 > -1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) -2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) -3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) ---- ->>> })(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(65, 5) Source(28, 54) + SourceIndex(3) -2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) -3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) -4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) -5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) -6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) -7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) -8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) -9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) ---- ->>>})(normalN || (normalN = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^ -7 > ^^^^^^^^ -8 > ^-> -1 > - > -2 >} -3 > -4 > normalN -5 > -6 > normalN -7 > { - > /*@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(66, 1) Source(29, 1) + SourceIndex(3) -2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) -3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) -4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) -5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) -6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) -7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) ---- ->>>var internalC = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - >/*@internal*/ -1->Emitted(67, 1) Source(30, 15) + SourceIndex(3) ---- ->>> function internalC() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->class internalC { -2 > } -1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) ---- ->>> return internalC; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) -2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class internalC {} -1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) -2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) -3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) -4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) ---- ->>>function internalfoo() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () { -5 > } -1->Emitted(72, 1) Source(31, 15) + SourceIndex(3) -2 >Emitted(72, 10) Source(31, 24) + SourceIndex(3) -3 >Emitted(72, 21) Source(31, 35) + SourceIndex(3) -4 >Emitted(72, 26) Source(31, 39) + SourceIndex(3) -5 >Emitted(72, 27) Source(31, 40) + SourceIndex(3) ---- ->>>var internalNamespace; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > { export class someClass {} } -1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(73, 5) Source(32, 25) + SourceIndex(3) -3 >Emitted(73, 22) Source(32, 42) + SourceIndex(3) -4 >Emitted(73, 23) Source(32, 72) + SourceIndex(3) ---- ->>>(function (internalNamespace) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > internalNamespace -1->Emitted(74, 1) Source(32, 15) + SourceIndex(3) -2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) -3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) -2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) ---- ->>> }()); -1 >^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) -2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) -3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) -4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) ---- ->>> internalNamespace.someClass = someClass; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) -2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) -3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) -4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) ---- ->>>})(internalNamespace || (internalNamespace = {})); -1-> -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^ -1-> -2 >} -3 > -4 > internalNamespace -5 > -6 > internalNamespace -7 > { export class someClass {} } -1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) -2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) -3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) -4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) -5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) -6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) -7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) ---- ->>>var internalOther; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >namespace -3 > internalOther -4 > .something { export class someClass {} } -1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(82, 5) Source(33, 25) + SourceIndex(3) -3 >Emitted(82, 18) Source(33, 38) + SourceIndex(3) -4 >Emitted(82, 19) Source(33, 78) + SourceIndex(3) ---- ->>>(function (internalOther) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -1-> -2 >namespace -3 > internalOther -1->Emitted(83, 1) Source(33, 15) + SourceIndex(3) -2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) -3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) ---- ->>> var something; -1 >^^^^ -2 > ^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >. -2 > -3 > something -4 > { export class someClass {} } -1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) -3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) -4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) ---- ->>> (function (something) { -1->^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^-> -1-> -2 > -3 > something -1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) -2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) -3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) ---- ->>> var someClass = (function () { -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> { -1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) ---- ->>> function someClass() { -1->^^^^^^^^^^^^ -2 > ^^-> -1-> -1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) ---- ->>> } -1->^^^^^^^^^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^-> -1->export class someClass { -2 > } -1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) ---- ->>> return someClass; -1->^^^^^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^ -1-> -2 > } -1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) -2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) ---- ->>> }()); -1 >^^^^^^^^ -2 > ^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > } -3 > -4 > export class someClass {} -1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) -2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) -3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) -4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) ---- ->>> something.someClass = someClass; -1->^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > someClass -3 > {} -4 > -1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) -2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) -3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) -4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) ---- ->>> })(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(92, 5) Source(33, 77) + SourceIndex(3) -2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) -3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) -4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) -5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) -6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) -7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) -8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) -9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) ---- ->>>})(internalOther || (internalOther = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^^^^ -8 > ^^^^^^^^-> -1 > -2 >} -3 > -4 > internalOther -5 > -6 > internalOther -7 > .something { export class someClass {} } -1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) -2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) -3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) -4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) -5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) -6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) -7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) ---- ->>>var internalImport = internalNamespace.someClass; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(94, 1) Source(34, 15) + SourceIndex(3) -2 >Emitted(94, 5) Source(34, 22) + SourceIndex(3) -3 >Emitted(94, 19) Source(34, 36) + SourceIndex(3) -4 >Emitted(94, 22) Source(34, 39) + SourceIndex(3) -5 >Emitted(94, 39) Source(34, 56) + SourceIndex(3) -6 >Emitted(94, 40) Source(34, 57) + SourceIndex(3) -7 >Emitted(94, 49) Source(34, 66) + SourceIndex(3) -8 >Emitted(94, 50) Source(34, 67) + SourceIndex(3) ---- ->>>var internalConst = 10; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^ -6 > ^ -1 > - >/*@internal*/ type internalType = internalC; - >/*@internal*/ -2 >const -3 > internalConst -4 > = -5 > 10 -6 > ; -1 >Emitted(95, 1) Source(36, 15) + SourceIndex(3) -2 >Emitted(95, 5) Source(36, 21) + SourceIndex(3) -3 >Emitted(95, 18) Source(36, 34) + SourceIndex(3) -4 >Emitted(95, 21) Source(36, 37) + SourceIndex(3) -5 >Emitted(95, 23) Source(36, 39) + SourceIndex(3) -6 >Emitted(95, 24) Source(36, 40) + SourceIndex(3) ---- ->>>var internalEnum; -1 > -2 >^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^-> -1 > - >/*@internal*/ -2 >enum -3 > internalEnum { a, b, c } -1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(96, 5) Source(37, 20) + SourceIndex(3) -3 >Emitted(96, 17) Source(37, 44) + SourceIndex(3) ---- ->>>(function (internalEnum) { -1-> -2 >^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 >enum -3 > internalEnum -1->Emitted(97, 1) Source(37, 15) + SourceIndex(3) -2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) -3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["a"] = 0] = "a"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> { -2 > a -3 > -1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) -2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) -3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["b"] = 1] = "b"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) -2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) -3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) ---- ->>> internalEnum[internalEnum["c"] = 2] = "c"; -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^ -1->, -2 > c -3 > -1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) -2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) -3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) ---- ->>>})(internalEnum || (internalEnum = {})); -1 > -2 >^ -3 > ^^ -4 > ^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^^^^^^^^^^^^ -7 > ^^^^^^^^ -1 > -2 >} -3 > -4 > internalEnum -5 > -6 > internalEnum -7 > { a, b, c } -1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) -2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) -3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) -4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) -5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) -6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) -7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3180,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":3180,"kind":"text"}]},{"pos":3180,"end":3216,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (127-3180):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (127-3180) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3180-3216) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-116) -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (116-276) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (276-295) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 3180, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 127, - "end": 3180, - "kind": "text" - } - ] - }, - { - "pos": 3180, - "end": 3216, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 116, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 116, - "kind": "text" - } - ] - }, - { - "pos": 116, - "end": 276, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 116, - "end": 276, - "kind": "text" - } - ] - }, - { - "pos": 276, - "end": 295, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 724 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js deleted file mode 100644 index e73ba55f9469c..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-all-projects.js +++ /dev/null @@ -1,1135 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:08:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:08:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:08:00 AM] Building project '/src/first/tsconfig.json'... - -[12:08:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:08:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:08:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/tripleRef.d.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>var first_part2Const = new firstfirst_part2(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > first_part2Const -4 > = -5 > new -6 > firstfirst_part2 -7 > () -8 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(4, 21) Source(2, 23) + SourceIndex(1) -4 >Emitted(4, 24) Source(2, 26) + SourceIndex(1) -5 >Emitted(4, 28) Source(2, 30) + SourceIndex(1) -6 >Emitted(4, 44) Source(2, 46) + SourceIndex(1) -7 >Emitted(4, 46) Source(2, 48) + SourceIndex(1) -8 >Emitted(4, 47) Source(2, 49) + SourceIndex(1) ---- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(5, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(3, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(3, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(3, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(3, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(3, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(3, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(3, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(3, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":175,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":44,"end":252,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-175) -var s = "Hello, world"; -console.log(s); -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -reference: (0-42):: ../tripleRef.d.ts -/// ----------------------------------------------------------------------- -text: (44-252) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 175, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 42, - "kind": "reference", - "data": "../tripleRef.d.ts" - }, - { - "pos": 44, - "end": 252, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 318 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var third_part1Const = new thirdthird_part1(); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>var first_part2Const = new firstfirst_part2(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > first_part2Const -4 > = -5 > new -6 > firstfirst_part2 -7 > () -8 > ; -1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) -2 >Emitted(4, 5) Source(2, 7) + SourceIndex(1) -3 >Emitted(4, 21) Source(2, 23) + SourceIndex(1) -4 >Emitted(4, 24) Source(2, 26) + SourceIndex(1) -5 >Emitted(4, 28) Source(2, 30) + SourceIndex(1) -6 >Emitted(4, 44) Source(2, 46) + SourceIndex(1) -7 >Emitted(4, 46) Source(2, 48) + SourceIndex(1) -8 >Emitted(4, 47) Source(2, 49) + SourceIndex(1) ---- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > - > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(5, 1) Source(3, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(3, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(3, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(3, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(3, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(3, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(3, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(3, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(3, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var second_part1Const = new secondsecond_part1(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > second_part1Const -4 > = -5 > new -6 > secondsecond_part1 -7 > () -8 > ; -1->Emitted(9, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(2, 7) + SourceIndex(3) -3 >Emitted(9, 22) Source(2, 24) + SourceIndex(3) -4 >Emitted(9, 25) Source(2, 27) + SourceIndex(3) -5 >Emitted(9, 29) Source(2, 31) + SourceIndex(3) -6 >Emitted(9, 47) Source(2, 49) + SourceIndex(3) -7 >Emitted(9, 49) Source(2, 51) + SourceIndex(3) -8 >Emitted(9, 50) Source(2, 52) + SourceIndex(3) ---- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(10, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(10, 5) Source(7, 11) + SourceIndex(3) -3 >Emitted(10, 6) Source(7, 12) + SourceIndex(3) -4 >Emitted(10, 7) Source(13, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(11, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(11, 12) Source(7, 11) + SourceIndex(3) -3 >Emitted(11, 13) Source(7, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 14) Source(8, 14) + SourceIndex(3) -3 >Emitted(12, 15) Source(8, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(13, 9) Source(9, 9) + SourceIndex(3) -2 >Emitted(13, 16) Source(9, 16) + SourceIndex(3) -3 >Emitted(13, 17) Source(9, 17) + SourceIndex(3) -4 >Emitted(13, 20) Source(9, 20) + SourceIndex(3) -5 >Emitted(13, 21) Source(9, 21) + SourceIndex(3) -6 >Emitted(13, 30) Source(9, 30) + SourceIndex(3) -7 >Emitted(13, 31) Source(9, 31) + SourceIndex(3) -8 >Emitted(13, 32) Source(9, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(14, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(15, 5) Source(12, 5) + SourceIndex(3) -2 >Emitted(15, 6) Source(12, 6) + SourceIndex(3) -3 >Emitted(15, 8) Source(12, 8) + SourceIndex(3) -4 >Emitted(15, 9) Source(12, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(16, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(16, 2) Source(13, 2) + SourceIndex(3) -3 >Emitted(16, 4) Source(7, 11) + SourceIndex(3) -4 >Emitted(16, 5) Source(7, 12) + SourceIndex(3) -5 >Emitted(16, 10) Source(7, 11) + SourceIndex(3) -6 >Emitted(16, 11) Source(7, 12) + SourceIndex(3) -7 >Emitted(16, 19) Source(13, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(18, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(19, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(19, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(20, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(20, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(20, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(21, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(21, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(21, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(21, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(21, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(21, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(21, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(21, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(22, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(22, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(23, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(24, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(24, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(24, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(24, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var third_part1Const = new thirdthird_part1(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > third_part1Const -4 > = -5 > new -6 > thirdthird_part1 -7 > () -8 > ; -1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(25, 5) Source(2, 7) + SourceIndex(5) -3 >Emitted(25, 21) Source(2, 23) + SourceIndex(5) -4 >Emitted(25, 24) Source(2, 26) + SourceIndex(5) -5 >Emitted(25, 28) Source(2, 30) + SourceIndex(5) -6 >Emitted(25, 44) Source(2, 46) + SourceIndex(5) -7 >Emitted(25, 46) Source(2, 48) + SourceIndex(5) -8 >Emitted(25, 47) Source(2, 49) + SourceIndex(5) ---- ->>>var c = new C(); -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1 > - > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1 >Emitted(26, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(26, 5) Source(3, 5) + SourceIndex(5) -3 >Emitted(26, 6) Source(3, 6) + SourceIndex(5) -4 >Emitted(26, 9) Source(3, 9) + SourceIndex(5) -5 >Emitted(26, 13) Source(3, 13) + SourceIndex(5) -6 >Emitted(26, 14) Source(3, 14) + SourceIndex(5) -7 >Emitted(26, 16) Source(3, 16) + SourceIndex(5) -8 >Emitted(26, 17) Source(3, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(27, 1) Source(4, 1) + SourceIndex(5) -2 >Emitted(27, 2) Source(4, 2) + SourceIndex(5) -3 >Emitted(27, 3) Source(4, 3) + SourceIndex(5) -4 >Emitted(27, 14) Source(4, 14) + SourceIndex(5) -5 >Emitted(27, 16) Source(4, 16) + SourceIndex(5) -6 >Emitted(27, 17) Source(4, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":175,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":175,"kind":"text"}]},{"pos":175,"end":511,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":175,"end":511,"kind":"text"}]},{"pos":511,"end":595,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":47,"end":101,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":103,"end":158,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":160,"end":368,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":160,"end":368,"kind":"text"}]},{"pos":368,"end":522,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":368,"end":522,"kind":"text"}]},{"pos":522,"end":592,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-175):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-175) -var s = "Hello, world"; -console.log(s); -console.log(s); -var first_part2Const = new firstfirst_part2(); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (175-511):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (175-511) -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (511-595) -var third_part1Const = new thirdthird_part1(); -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -reference: (0-45):: ../../tripleRef.d.ts -/// ----------------------------------------------------------------------- -reference: (47-101):: ../../../first/tripleRef.d.ts -/// ----------------------------------------------------------------------- -reference: (103-158):: ../../../second/tripleRef.d.ts -/// ----------------------------------------------------------------------- -prepend: (160-368):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (160-368) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare const first_part2Const: firstfirst_part2; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (368-522):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (368-522) -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (522-592) -declare const third_part1Const: thirdthird_part1; -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 175, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 175, - "kind": "text" - } - ] - }, - { - "pos": 175, - "end": 511, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 175, - "end": 511, - "kind": "text" - } - ] - }, - { - "pos": 511, - "end": 595, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 45, - "kind": "reference", - "data": "../../tripleRef.d.ts" - }, - { - "pos": 47, - "end": 101, - "kind": "reference", - "data": "../../../first/tripleRef.d.ts" - }, - { - "pos": 103, - "end": 158, - "kind": "reference", - "data": "../../../second/tripleRef.d.ts" - }, - { - "pos": 160, - "end": 368, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 160, - "end": 368, - "kind": "text" - } - ] - }, - { - "pos": 368, - "end": 522, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 368, - "end": 522, - "kind": "text" - } - ] - }, - { - "pos": 522, - "end": 592, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 952 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js deleted file mode 100644 index 3e416335558a1..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/triple-slash-refs-in-one-project.js +++ /dev/null @@ -1,992 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 252 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var second_part1Const = new secondsecond_part1(); -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^ -6 > ^^^^^^^^^^^^^^^^^^ -7 > ^^ -8 > ^ -1->/// - > -2 >const -3 > second_part1Const -4 > = -5 > new -6 > secondsecond_part1 -7 > () -8 > ; -1->Emitted(8, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(2, 7) + SourceIndex(3) -3 >Emitted(8, 22) Source(2, 24) + SourceIndex(3) -4 >Emitted(8, 25) Source(2, 27) + SourceIndex(3) -5 >Emitted(8, 29) Source(2, 31) + SourceIndex(3) -6 >Emitted(8, 47) Source(2, 49) + SourceIndex(3) -7 >Emitted(8, 49) Source(2, 51) + SourceIndex(3) -8 >Emitted(8, 50) Source(2, 52) + SourceIndex(3) ---- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 > - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(9, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(7, 11) + SourceIndex(3) -3 >Emitted(9, 6) Source(7, 12) + SourceIndex(3) -4 >Emitted(9, 7) Source(13, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(10, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(10, 12) Source(7, 11) + SourceIndex(3) -3 >Emitted(10, 13) Source(7, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 14) Source(8, 14) + SourceIndex(3) -3 >Emitted(11, 15) Source(8, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(12, 9) Source(9, 9) + SourceIndex(3) -2 >Emitted(12, 16) Source(9, 16) + SourceIndex(3) -3 >Emitted(12, 17) Source(9, 17) + SourceIndex(3) -4 >Emitted(12, 20) Source(9, 20) + SourceIndex(3) -5 >Emitted(12, 21) Source(9, 21) + SourceIndex(3) -6 >Emitted(12, 30) Source(9, 30) + SourceIndex(3) -7 >Emitted(12, 31) Source(9, 31) + SourceIndex(3) -8 >Emitted(12, 32) Source(9, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(14, 5) Source(12, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(12, 6) + SourceIndex(3) -3 >Emitted(14, 8) Source(12, 8) + SourceIndex(3) -4 >Emitted(14, 9) Source(12, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(15, 2) Source(13, 2) + SourceIndex(3) -3 >Emitted(15, 4) Source(7, 11) + SourceIndex(3) -4 >Emitted(15, 5) Source(7, 12) + SourceIndex(3) -5 >Emitted(15, 10) Source(7, 11) + SourceIndex(3) -6 >Emitted(15, 11) Source(7, 12) + SourceIndex(3) -7 >Emitted(15, 19) Source(13, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":463,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":463,"kind":"text"}]},{"pos":463,"end":499,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":55,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":57,"end":214,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":57,"end":214,"kind":"text"}]},{"pos":214,"end":368,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":214,"end":368,"kind":"text"}]},{"pos":368,"end":387,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (127-463):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (127-463) -var second_part1Const = new secondsecond_part1(); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (463-499) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -reference: (0-55):: ../../../second/tripleRef.d.ts -/// ----------------------------------------------------------------------- -prepend: (57-214):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (57-214) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (214-368):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (214-368) -declare const second_part1Const: secondsecond_part1; -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (368-387) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 463, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 127, - "end": 463, - "kind": "text" - } - ] - }, - { - "pos": 463, - "end": 499, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 55, - "kind": "reference", - "data": "../../../second/tripleRef.d.ts" - }, - { - "pos": 57, - "end": 214, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 57, - "end": 214, - "kind": "text" - } - ] - }, - { - "pos": 214, - "end": 368, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 214, - "end": 368, - "kind": "text" - } - ] - }, - { - "pos": 368, - "end": 387, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 800 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js deleted file mode 100644 index 272001e0cdf49..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-final-project-is-not-composite-but-uses-project-references.js +++ /dev/null @@ -1,792 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:04:00 AM] Building project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 252 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents -//// [/src/third/thirdjs/output/third-output.d.ts.map] file written with same contents -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js deleted file mode 100644 index 5483f7c0f450e..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/when-source-files-are-empty-in-the-own-file.js +++ /dev/null @@ -1,878 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -console.log(s); - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:04:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:04:00 AM] Building project '/src/first/tsconfig.json'... - -[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] file written with same contents -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 252 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js] -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>console.log(s); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1-> - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":412,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":412,"kind":"text"}]}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-127) -var s = "Hello, world"; -console.log(s); -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (127-412):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (127-412) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 127, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 127, - "kind": "text" - } - ] - }, - { - "pos": 127, - "end": 412, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 127, - "end": 412, - "kind": "text" - } - ] - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - } - ] - } - }, - "version": "FakeTSVersion", - "size": 648 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js deleted file mode 100644 index 07aa76cbfccfa..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js +++ /dev/null @@ -1,1662 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { } - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:12:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:12:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:12:00 AM] Building project '/src/first/tsconfig.json'... - -[12:12:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:12:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:12:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:12:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":150,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-150) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 150, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 252 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare function forsecondsecond_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > -2 >function -3 > forsecondsecond_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(2) -2 >Emitted(14, 18) Source(12, 10) + SourceIndex(2) -3 >Emitted(14, 43) Source(12, 35) + SourceIndex(2) -4 >Emitted(14, 52) Source(14, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) ---- ->>>declare function forthirdthird_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - >c.doSomething(); - > -2 >function -3 > forthirdthird_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(19, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(19, 18) Source(3, 10) + SourceIndex(4) -3 >Emitted(19, 41) Source(3, 33) + SourceIndex(4) -4 >Emitted(19, 50) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(14, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(14, 39) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(15, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(15, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(15, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(15, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(15, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(15, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(15, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(15, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(16, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(16, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(16, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(17, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(17, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(17, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(17, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(18, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(18, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(19, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(19, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(19, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(19, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(20, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(20, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(20, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(21, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(21, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(21, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(22, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(22, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(22, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(22, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(22, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(22, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(22, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(22, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(23, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(23, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(24, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(24, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(24, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(24, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(25, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(25, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(25, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(25, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(25, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(25, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(26, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(26, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(26, 35) Source(12, 35) + SourceIndex(3) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(27, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(27, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(27, 14) Source(13, 24) + SourceIndex(3) -4 >Emitted(27, 16) Source(13, 26) + SourceIndex(3) -5 >Emitted(27, 17) Source(13, 27) + SourceIndex(3) -6 >Emitted(27, 19) Source(13, 29) + SourceIndex(3) -7 >Emitted(27, 21) Source(13, 31) + SourceIndex(3) -8 >Emitted(27, 23) Source(13, 33) + SourceIndex(3) -9 >Emitted(27, 24) Source(13, 34) + SourceIndex(3) -10>Emitted(27, 26) Source(13, 36) + SourceIndex(3) -11>Emitted(27, 28) Source(13, 38) + SourceIndex(3) -12>Emitted(27, 30) Source(13, 40) + SourceIndex(3) -13>Emitted(27, 32) Source(13, 42) + SourceIndex(3) -14>Emitted(27, 34) Source(13, 44) + SourceIndex(3) -15>Emitted(27, 36) Source(13, 46) + SourceIndex(3) -16>Emitted(27, 38) Source(13, 48) + SourceIndex(3) -17>Emitted(27, 40) Source(13, 9) + SourceIndex(3) -18>Emitted(27, 41) Source(13, 10) + SourceIndex(3) -19>Emitted(27, 48) Source(13, 10) + SourceIndex(3) -20>Emitted(27, 50) Source(13, 15) + SourceIndex(3) -21>Emitted(27, 54) Source(13, 19) + SourceIndex(3) -22>Emitted(27, 68) Source(13, 7) + SourceIndex(3) -23>Emitted(27, 73) Source(13, 21) + SourceIndex(3) -24>Emitted(27, 74) Source(13, 48) + SourceIndex(3) -25>Emitted(27, 75) Source(13, 49) + SourceIndex(3) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(28, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(28, 2) Source(14, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(29, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(30, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(31, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(31, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(32, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(32, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(32, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(33, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(33, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(33, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(33, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(33, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(33, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(33, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(33, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(34, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(34, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(35, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(35, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(36, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(36, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(36, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(36, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(37, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(37, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(37, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(37, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(37, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(37, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(37, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(37, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(38, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(38, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(38, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(38, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(38, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(38, 17) Source(2, 17) + SourceIndex(5) ---- ->>>function forthirdthird_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forthirdthird_part1Rest -1->Emitted(39, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(39, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(39, 33) Source(3, 33) + SourceIndex(5) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(40, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(40, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(40, 14) Source(4, 24) + SourceIndex(5) -4 >Emitted(40, 16) Source(4, 26) + SourceIndex(5) -5 >Emitted(40, 17) Source(4, 27) + SourceIndex(5) -6 >Emitted(40, 19) Source(4, 29) + SourceIndex(5) -7 >Emitted(40, 21) Source(4, 31) + SourceIndex(5) -8 >Emitted(40, 23) Source(4, 33) + SourceIndex(5) -9 >Emitted(40, 24) Source(4, 34) + SourceIndex(5) -10>Emitted(40, 26) Source(4, 36) + SourceIndex(5) -11>Emitted(40, 28) Source(4, 38) + SourceIndex(5) -12>Emitted(40, 30) Source(4, 40) + SourceIndex(5) -13>Emitted(40, 32) Source(4, 42) + SourceIndex(5) -14>Emitted(40, 34) Source(4, 44) + SourceIndex(5) -15>Emitted(40, 36) Source(4, 46) + SourceIndex(5) -16>Emitted(40, 38) Source(4, 48) + SourceIndex(5) -17>Emitted(40, 40) Source(4, 9) + SourceIndex(5) -18>Emitted(40, 41) Source(4, 10) + SourceIndex(5) -19>Emitted(40, 48) Source(4, 10) + SourceIndex(5) -20>Emitted(40, 50) Source(4, 15) + SourceIndex(5) -21>Emitted(40, 54) Source(4, 19) + SourceIndex(5) -22>Emitted(40, 68) Source(4, 7) + SourceIndex(5) -23>Emitted(40, 73) Source(4, 21) + SourceIndex(5) -24>Emitted(40, 74) Source(4, 48) + SourceIndex(5) -25>Emitted(40, 75) Source(4, 49) + SourceIndex(5) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(41, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(41, 2) Source(5, 2) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":652,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":652,"kind":"text"}]},{"pos":652,"end":1056,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":652,"end":1056,"kind":"text"}]},{"pos":1056,"end":1209,"kind":"text"}],"sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":361,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":361,"kind":"text"}]},{"pos":361,"end":431,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (502-652):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (502-652) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (652-1056):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (652-1056) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (1056-1209) -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (208-361):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (208-361) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (361-431) -declare var c: C; -declare function forthirdthird_part1Rest(): void; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 652, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 502, - "end": 652, - "kind": "text" - } - ] - }, - { - "pos": 652, - "end": 1056, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 652, - "end": 1056, - "kind": "text" - } - ] - }, - { - "pos": 1056, - "end": 1209, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - }, - { - "pos": 208, - "end": 361, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 208, - "end": 361, - "kind": "text" - } - ] - }, - { - "pos": 361, - "end": 431, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 836 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js deleted file mode 100644 index eef90697523f0..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js +++ /dev/null @@ -1,1735 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { -const { b, ...rest } = { a: 10, b: 30, yy: 30 }; -} - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:08:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:08:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:08:00 AM] Building project '/src/first/tsconfig.json'... - -[12:08:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:08:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:08:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":729,"kind":"text"}],"sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -text: (502-729) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 729, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 362 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare function forsecondsecond_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > -2 >function -3 > forsecondsecond_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(2) -2 >Emitted(14, 18) Source(12, 10) + SourceIndex(2) -3 >Emitted(14, 43) Source(12, 35) + SourceIndex(2) -4 >Emitted(14, 52) Source(14, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(21, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(21, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(21, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(22, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(22, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(23, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(23, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(23, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(24, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(24, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(24, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(24, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(24, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(24, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(24, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(24, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(25, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(25, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(26, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(26, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(26, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(26, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(27, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(27, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(27, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(27, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(27, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(27, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(27, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(28, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(28, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(28, 35) Source(12, 35) + SourceIndex(3) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(29, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(29, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(29, 14) Source(13, 24) + SourceIndex(3) -4 >Emitted(29, 16) Source(13, 26) + SourceIndex(3) -5 >Emitted(29, 17) Source(13, 27) + SourceIndex(3) -6 >Emitted(29, 19) Source(13, 29) + SourceIndex(3) -7 >Emitted(29, 21) Source(13, 31) + SourceIndex(3) -8 >Emitted(29, 23) Source(13, 33) + SourceIndex(3) -9 >Emitted(29, 24) Source(13, 34) + SourceIndex(3) -10>Emitted(29, 26) Source(13, 36) + SourceIndex(3) -11>Emitted(29, 28) Source(13, 38) + SourceIndex(3) -12>Emitted(29, 30) Source(13, 40) + SourceIndex(3) -13>Emitted(29, 32) Source(13, 42) + SourceIndex(3) -14>Emitted(29, 34) Source(13, 44) + SourceIndex(3) -15>Emitted(29, 36) Source(13, 46) + SourceIndex(3) -16>Emitted(29, 38) Source(13, 48) + SourceIndex(3) -17>Emitted(29, 40) Source(13, 9) + SourceIndex(3) -18>Emitted(29, 41) Source(13, 10) + SourceIndex(3) -19>Emitted(29, 48) Source(13, 10) + SourceIndex(3) -20>Emitted(29, 50) Source(13, 15) + SourceIndex(3) -21>Emitted(29, 54) Source(13, 19) + SourceIndex(3) -22>Emitted(29, 68) Source(13, 7) + SourceIndex(3) -23>Emitted(29, 73) Source(13, 21) + SourceIndex(3) -24>Emitted(29, 74) Source(13, 48) + SourceIndex(3) -25>Emitted(29, 75) Source(13, 49) + SourceIndex(3) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(30, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(30, 2) Source(14, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(31, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(32, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(33, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(33, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(34, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(34, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(34, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(35, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(35, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(35, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(35, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(35, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(35, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(35, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(35, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(36, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(36, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(37, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(37, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(38, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(38, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(38, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(38, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(39, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(39, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(39, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(39, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(39, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(39, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(39, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(39, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(40, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(40, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(40, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(40, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(40, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(40, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":729,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":729,"kind":"text"}]},{"pos":729,"end":1133,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":729,"end":1133,"kind":"text"}]},{"pos":1133,"end":1169,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":361,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":361,"kind":"text"}]},{"pos":361,"end":380,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (502-729):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (502-729) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (729-1133):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (729-1133) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (1133-1169) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (208-361):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (208-361) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (361-380) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 500, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 502, - "end": 729, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 502, - "end": 729, - "kind": "text" - } - ] - }, - { - "pos": 729, - "end": 1133, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 729, - "end": 1133, - "kind": "text" - } - ] - }, - { - "pos": 1133, - "end": 1169, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - }, - { - "pos": 208, - "end": 361, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 208, - "end": 361, - "kind": "text" - } - ] - }, - { - "pos": 361, - "end": 380, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 794 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js deleted file mode 100644 index d83b7db5bea3e..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js +++ /dev/null @@ -1,2578 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { } - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:08:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:08:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:08:00 AM] Building project '/src/first/tsconfig.json'... - -[12:08:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:08:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:08:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>declare function firstfirst_part3Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > -2 >function -3 > firstfirst_part3Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(10, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(10, 18) Source(4, 10) + SourceIndex(2) -3 >Emitted(10, 40) Source(4, 32) + SourceIndex(2) -4 >Emitted(10, 41) Source(4, 33) + SourceIndex(2) -5 >Emitted(10, 44) Source(4, 36) + SourceIndex(2) -6 >Emitted(10, 47) Source(4, 39) + SourceIndex(2) -7 >Emitted(10, 53) Source(4, 45) + SourceIndex(2) -8 >Emitted(10, 55) Source(4, 47) + SourceIndex(2) -9 >Emitted(10, 63) Source(4, 52) + SourceIndex(2) ---- ->>>declare const firstfirst_part3_ar: number[]; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^ -6 > ^ -1 > - > -2 > -3 > const -4 > firstfirst_part3_ar -5 > = [20, 30] -6 > ; -1 >Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 9) Source(5, 1) + SourceIndex(2) -3 >Emitted(11, 15) Source(5, 7) + SourceIndex(2) -4 >Emitted(11, 34) Source(5, 26) + SourceIndex(2) -5 >Emitted(11, 44) Source(5, 37) + SourceIndex(2) -6 >Emitted(11, 45) Source(5, 38) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var firstfirst_part3_ar = [20, 30]; -firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { ->>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { ->>> if (ar || !(i in from)) { ->>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); ->>> ar[i] = from[i]; ->>> } ->>> } ->>> return to.concat(ar || Array.prototype.slice.call(from)); ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(26, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(26, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(26, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(26, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(26, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(26, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(27, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(27, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(27, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(27, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(27, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(27, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(27, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(27, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(28, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(28, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(28, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(28, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(28, 39) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(29, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(29, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(29, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(29, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(29, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(29, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(29, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(29, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(29, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(30, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(30, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(30, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(31, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(31, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(31, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(31, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(32, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(32, 2) Source(3, 2) + SourceIndex(2) ---- ->>>function firstfirst_part3Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > firstfirst_part3Spread -1->Emitted(33, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(33, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(33, 32) Source(4, 32) + SourceIndex(2) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(34, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(34, 16) Source(4, 47) + SourceIndex(2) ---- ->>> 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(35, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(35, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(35, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(35, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(35, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(35, 49) Source(4, 47) + SourceIndex(2) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(36, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(36, 31) Source(4, 47) + SourceIndex(2) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(38, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(38, 2) Source(4, 52) + SourceIndex(2) ---- ->>>var firstfirst_part3_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > firstfirst_part3_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(39, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(39, 5) Source(5, 7) + SourceIndex(2) -3 >Emitted(39, 24) Source(5, 26) + SourceIndex(2) -4 >Emitted(39, 27) Source(5, 29) + SourceIndex(2) -5 >Emitted(39, 28) Source(5, 30) + SourceIndex(2) -6 >Emitted(39, 30) Source(5, 32) + SourceIndex(2) -7 >Emitted(39, 32) Source(5, 34) + SourceIndex(2) -8 >Emitted(39, 34) Source(5, 36) + SourceIndex(2) -9 >Emitted(39, 35) Source(5, 37) + SourceIndex(2) -10>Emitted(39, 36) Source(5, 38) + SourceIndex(2) ---- ->>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >firstfirst_part3Spread -3 > ( -4 > 10 -5 > , ... -6 > firstfirst_part3_ar -7 > ); -1->Emitted(40, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(40, 23) Source(6, 23) + SourceIndex(2) -3 >Emitted(40, 53) Source(6, 24) + SourceIndex(2) -4 >Emitted(40, 55) Source(6, 26) + SourceIndex(2) -5 >Emitted(40, 65) Source(6, 31) + SourceIndex(2) -6 >Emitted(40, 84) Source(6, 50) + SourceIndex(2) -7 >Emitted(40, 95) Source(6, 52) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1328,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":318,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.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-894):: typescript:spreadArray -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; ----------------------------------------------------------------------- -text: (896-1328) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var firstfirst_part3_ar = [20, 30]; -firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-318) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare function firstfirst_part3Spread(...b: number[]): void; -declare const firstfirst_part3_ar: number[]; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 894, - "kind": "emitHelpers", - "data": "typescript:spreadArray" - }, - { - "pos": 896, - "end": 1328, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:read", - "typescript:spreadArray" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 318, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 463 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) ---- ->>>declare function firstfirst_part3Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > -2 >function -3 > firstfirst_part3Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(10, 1) Source(4, 1) + SourceIndex(1) -2 >Emitted(10, 18) Source(4, 10) + SourceIndex(1) -3 >Emitted(10, 40) Source(4, 32) + SourceIndex(1) -4 >Emitted(10, 41) Source(4, 33) + SourceIndex(1) -5 >Emitted(10, 44) Source(4, 36) + SourceIndex(1) -6 >Emitted(10, 47) Source(4, 39) + SourceIndex(1) -7 >Emitted(10, 53) Source(4, 45) + SourceIndex(1) -8 >Emitted(10, 55) Source(4, 47) + SourceIndex(1) -9 >Emitted(10, 63) Source(4, 52) + SourceIndex(1) ---- ->>>declare const firstfirst_part3_ar: number[]; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^ -6 > ^ -1 > - > -2 > -3 > const -4 > firstfirst_part3_ar -5 > = [20, 30] -6 > ; -1 >Emitted(11, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(11, 9) Source(5, 1) + SourceIndex(1) -3 >Emitted(11, 15) Source(5, 7) + SourceIndex(1) -4 >Emitted(11, 34) Source(5, 26) + SourceIndex(1) -5 >Emitted(11, 44) Source(5, 37) + SourceIndex(1) -6 >Emitted(11, 45) Source(5, 38) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(12, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(12, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(12, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(13, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(14, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(14, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(14, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(14, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(15, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare function forsecondsecond_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > -2 >function -3 > forsecondsecond_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(16, 1) Source(12, 1) + SourceIndex(2) -2 >Emitted(16, 18) Source(12, 10) + SourceIndex(2) -3 >Emitted(16, 43) Source(12, 35) + SourceIndex(2) -4 >Emitted(16, 52) Source(14, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(17, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) ---- ->>>declare function secondsecond_part2Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part2Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(20, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(20, 18) Source(7, 10) + SourceIndex(3) -3 >Emitted(20, 42) Source(7, 34) + SourceIndex(3) -4 >Emitted(20, 43) Source(7, 35) + SourceIndex(3) -5 >Emitted(20, 46) Source(7, 38) + SourceIndex(3) -6 >Emitted(20, 49) Source(7, 41) + SourceIndex(3) -7 >Emitted(20, 55) Source(7, 47) + SourceIndex(3) -8 >Emitted(20, 57) Source(7, 49) + SourceIndex(3) -9 >Emitted(20, 65) Source(7, 54) + SourceIndex(3) ---- ->>>declare const secondsecond_part2_ar: number[]; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^ -6 > ^ -1 > - > -2 > -3 > const -4 > secondsecond_part2_ar -5 > = [20, 30] -6 > ; -1 >Emitted(21, 1) Source(8, 1) + SourceIndex(3) -2 >Emitted(21, 9) Source(8, 1) + SourceIndex(3) -3 >Emitted(21, 15) Source(8, 7) + SourceIndex(3) -4 >Emitted(21, 36) Source(8, 28) + SourceIndex(3) -5 >Emitted(21, 46) Source(8, 39) + SourceIndex(3) -6 >Emitted(21, 47) Source(8, 40) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1 > -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1 >Emitted(22, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(22, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(22, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(22, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(22, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(22, 18) Source(1, 17) + SourceIndex(4) ---- ->>>declare function forthirdthird_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -5 > ^^^^^^^^^^^^^^-> -1-> - >c.doSomething(); - > -2 >function -3 > forthirdthird_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(23, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(23, 18) Source(3, 10) + SourceIndex(4) -3 >Emitted(23, 41) Source(3, 33) + SourceIndex(4) -4 >Emitted(23, 50) Source(5, 2) + SourceIndex(4) ---- ->>>declare function thirdthird_part1Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > -2 >function -3 > thirdthird_part1Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(24, 1) Source(6, 1) + SourceIndex(4) -2 >Emitted(24, 18) Source(6, 10) + SourceIndex(4) -3 >Emitted(24, 40) Source(6, 32) + SourceIndex(4) -4 >Emitted(24, 41) Source(6, 33) + SourceIndex(4) -5 >Emitted(24, 44) Source(6, 36) + SourceIndex(4) -6 >Emitted(24, 47) Source(6, 39) + SourceIndex(4) -7 >Emitted(24, 53) Source(6, 45) + SourceIndex(4) -8 >Emitted(24, 55) Source(6, 47) + SourceIndex(4) -9 >Emitted(24, 63) Source(6, 52) + SourceIndex(4) ---- ->>>declare const thirdthird_part1_ar: number[]; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^ -6 > ^ -1 > - > -2 > -3 > const -4 > thirdthird_part1_ar -5 > = [20, 30] -6 > ; -1 >Emitted(25, 1) Source(7, 1) + SourceIndex(4) -2 >Emitted(25, 9) Source(7, 1) + SourceIndex(4) -3 >Emitted(25, 15) Source(7, 7) + SourceIndex(4) -4 >Emitted(25, 34) Source(7, 26) + SourceIndex(4) -5 >Emitted(25, 44) Source(7, 37) + SourceIndex(4) -6 >Emitted(25, 45) Source(7, 38) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var firstfirst_part3_ar = [20, 30]; -firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -function secondsecond_part2Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var secondsecond_part2_ar = [20, 30]; -secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false)); -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -function thirdthird_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var thirdthird_part1_ar = [20, 30]; -thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false)); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { ->>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { ->>> if (ar || !(i in from)) { ->>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); ->>> ar[i] = from[i]; ->>> } ->>> } ->>> return to.concat(ar || Array.prototype.slice.call(from)); ->>>}; ->>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(37, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(37, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(37, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(37, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(37, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(37, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(38, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(38, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(38, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(38, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(38, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(38, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(38, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(38, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(39, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(39, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(39, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(39, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(39, 39) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(40, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(40, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(40, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(40, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(40, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(40, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(40, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(40, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(40, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(41, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(41, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(41, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(42, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(42, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(42, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(42, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(43, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(43, 2) Source(3, 2) + SourceIndex(2) ---- ->>>function firstfirst_part3Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > firstfirst_part3Spread -1->Emitted(44, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(44, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(44, 32) Source(4, 32) + SourceIndex(2) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(45, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(45, 16) Source(4, 47) + SourceIndex(2) ---- ->>> 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(46, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(46, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(46, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(46, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(46, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(46, 49) Source(4, 47) + SourceIndex(2) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(47, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(47, 31) Source(4, 47) + SourceIndex(2) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(49, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(49, 2) Source(4, 52) + SourceIndex(2) ---- ->>>var firstfirst_part3_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > firstfirst_part3_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(50, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(50, 5) Source(5, 7) + SourceIndex(2) -3 >Emitted(50, 24) Source(5, 26) + SourceIndex(2) -4 >Emitted(50, 27) Source(5, 29) + SourceIndex(2) -5 >Emitted(50, 28) Source(5, 30) + SourceIndex(2) -6 >Emitted(50, 30) Source(5, 32) + SourceIndex(2) -7 >Emitted(50, 32) Source(5, 34) + SourceIndex(2) -8 >Emitted(50, 34) Source(5, 36) + SourceIndex(2) -9 >Emitted(50, 35) Source(5, 37) + SourceIndex(2) -10>Emitted(50, 36) Source(5, 38) + SourceIndex(2) ---- ->>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >firstfirst_part3Spread -3 > ( -4 > 10 -5 > , ... -6 > firstfirst_part3_ar -7 > ); -1->Emitted(51, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(51, 23) Source(6, 23) + SourceIndex(2) -3 >Emitted(51, 53) Source(6, 24) + SourceIndex(2) -4 >Emitted(51, 55) Source(6, 26) + SourceIndex(2) -5 >Emitted(51, 65) Source(6, 31) + SourceIndex(2) -6 >Emitted(51, 84) Source(6, 50) + SourceIndex(2) -7 >Emitted(51, 95) Source(6, 52) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1 > -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1 >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1 >Emitted(52, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(52, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(52, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(52, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(53, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(53, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(53, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(54, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(54, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(54, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(55, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(55, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(55, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(55, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(55, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(55, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(55, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(55, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(56, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(56, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(57, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(57, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(57, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(57, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(58, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(58, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(58, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(58, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(58, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(58, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(58, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function forsecondsecond_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forsecondsecond_part1Rest -1->Emitted(59, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(59, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(59, 35) Source(12, 35) + SourceIndex(3) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(60, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(60, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(60, 14) Source(13, 24) + SourceIndex(3) -4 >Emitted(60, 16) Source(13, 26) + SourceIndex(3) -5 >Emitted(60, 17) Source(13, 27) + SourceIndex(3) -6 >Emitted(60, 19) Source(13, 29) + SourceIndex(3) -7 >Emitted(60, 21) Source(13, 31) + SourceIndex(3) -8 >Emitted(60, 23) Source(13, 33) + SourceIndex(3) -9 >Emitted(60, 24) Source(13, 34) + SourceIndex(3) -10>Emitted(60, 26) Source(13, 36) + SourceIndex(3) -11>Emitted(60, 28) Source(13, 38) + SourceIndex(3) -12>Emitted(60, 30) Source(13, 40) + SourceIndex(3) -13>Emitted(60, 32) Source(13, 42) + SourceIndex(3) -14>Emitted(60, 34) Source(13, 44) + SourceIndex(3) -15>Emitted(60, 36) Source(13, 46) + SourceIndex(3) -16>Emitted(60, 38) Source(13, 48) + SourceIndex(3) -17>Emitted(60, 40) Source(13, 9) + SourceIndex(3) -18>Emitted(60, 41) Source(13, 10) + SourceIndex(3) -19>Emitted(60, 48) Source(13, 10) + SourceIndex(3) -20>Emitted(60, 50) Source(13, 15) + SourceIndex(3) -21>Emitted(60, 54) Source(13, 19) + SourceIndex(3) -22>Emitted(60, 68) Source(13, 7) + SourceIndex(3) -23>Emitted(60, 73) Source(13, 21) + SourceIndex(3) -24>Emitted(60, 74) Source(13, 48) + SourceIndex(3) -25>Emitted(60, 75) Source(13, 49) + SourceIndex(3) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(61, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(61, 2) Source(14, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(62, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(63, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(64, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(64, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(65, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(65, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(65, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(66, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(66, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(66, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(66, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(66, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(66, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(66, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(66, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(67, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(67, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(68, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(68, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(69, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(69, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(69, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(69, 6) Source(5, 2) + SourceIndex(4) ---- ->>>function secondsecond_part2Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part2Spread -1->Emitted(70, 1) Source(7, 1) + SourceIndex(4) -2 >Emitted(70, 10) Source(7, 10) + SourceIndex(4) -3 >Emitted(70, 34) Source(7, 34) + SourceIndex(4) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(71, 5) Source(7, 35) + SourceIndex(4) -2 >Emitted(71, 16) Source(7, 49) + SourceIndex(4) ---- ->>> 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(72, 10) Source(7, 35) + SourceIndex(4) -2 >Emitted(72, 20) Source(7, 49) + SourceIndex(4) -3 >Emitted(72, 22) Source(7, 35) + SourceIndex(4) -4 >Emitted(72, 43) Source(7, 49) + SourceIndex(4) -5 >Emitted(72, 45) Source(7, 35) + SourceIndex(4) -6 >Emitted(72, 49) Source(7, 49) + SourceIndex(4) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(73, 9) Source(7, 35) + SourceIndex(4) -2 >Emitted(73, 31) Source(7, 49) + SourceIndex(4) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(75, 1) Source(7, 53) + SourceIndex(4) -2 >Emitted(75, 2) Source(7, 54) + SourceIndex(4) ---- ->>>var secondsecond_part2_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > secondsecond_part2_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(76, 1) Source(8, 1) + SourceIndex(4) -2 >Emitted(76, 5) Source(8, 7) + SourceIndex(4) -3 >Emitted(76, 26) Source(8, 28) + SourceIndex(4) -4 >Emitted(76, 29) Source(8, 31) + SourceIndex(4) -5 >Emitted(76, 30) Source(8, 32) + SourceIndex(4) -6 >Emitted(76, 32) Source(8, 34) + SourceIndex(4) -7 >Emitted(76, 34) Source(8, 36) + SourceIndex(4) -8 >Emitted(76, 36) Source(8, 38) + SourceIndex(4) -9 >Emitted(76, 37) Source(8, 39) + SourceIndex(4) -10>Emitted(76, 38) Source(8, 40) + SourceIndex(4) ---- ->>>secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false)); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >secondsecond_part2Spread -3 > ( -4 > 10 -5 > , ... -6 > secondsecond_part2_ar -7 > ); -1->Emitted(77, 1) Source(9, 1) + SourceIndex(4) -2 >Emitted(77, 25) Source(9, 25) + SourceIndex(4) -3 >Emitted(77, 55) Source(9, 26) + SourceIndex(4) -4 >Emitted(77, 57) Source(9, 28) + SourceIndex(4) -5 >Emitted(77, 67) Source(9, 33) + SourceIndex(4) -6 >Emitted(77, 88) Source(9, 54) + SourceIndex(4) -7 >Emitted(77, 99) Source(9, 56) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1 > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1 >Emitted(78, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(78, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(78, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(78, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(78, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(78, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(78, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(78, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(79, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(79, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(79, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(79, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(79, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(79, 17) Source(2, 17) + SourceIndex(5) ---- ->>>function forthirdthird_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forthirdthird_part1Rest -1->Emitted(80, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(80, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(80, 33) Source(3, 33) + SourceIndex(5) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(81, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(81, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(81, 14) Source(4, 24) + SourceIndex(5) -4 >Emitted(81, 16) Source(4, 26) + SourceIndex(5) -5 >Emitted(81, 17) Source(4, 27) + SourceIndex(5) -6 >Emitted(81, 19) Source(4, 29) + SourceIndex(5) -7 >Emitted(81, 21) Source(4, 31) + SourceIndex(5) -8 >Emitted(81, 23) Source(4, 33) + SourceIndex(5) -9 >Emitted(81, 24) Source(4, 34) + SourceIndex(5) -10>Emitted(81, 26) Source(4, 36) + SourceIndex(5) -11>Emitted(81, 28) Source(4, 38) + SourceIndex(5) -12>Emitted(81, 30) Source(4, 40) + SourceIndex(5) -13>Emitted(81, 32) Source(4, 42) + SourceIndex(5) -14>Emitted(81, 34) Source(4, 44) + SourceIndex(5) -15>Emitted(81, 36) Source(4, 46) + SourceIndex(5) -16>Emitted(81, 38) Source(4, 48) + SourceIndex(5) -17>Emitted(81, 40) Source(4, 9) + SourceIndex(5) -18>Emitted(81, 41) Source(4, 10) + SourceIndex(5) -19>Emitted(81, 48) Source(4, 10) + SourceIndex(5) -20>Emitted(81, 50) Source(4, 15) + SourceIndex(5) -21>Emitted(81, 54) Source(4, 19) + SourceIndex(5) -22>Emitted(81, 68) Source(4, 7) + SourceIndex(5) -23>Emitted(81, 73) Source(4, 21) + SourceIndex(5) -24>Emitted(81, 74) Source(4, 48) + SourceIndex(5) -25>Emitted(81, 75) Source(4, 49) + SourceIndex(5) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(82, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(82, 2) Source(5, 2) + SourceIndex(5) ---- ->>>function thirdthird_part1Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^ -1-> - > -2 >function -3 > thirdthird_part1Spread -1->Emitted(83, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(83, 10) Source(6, 10) + SourceIndex(5) -3 >Emitted(83, 32) Source(6, 32) + SourceIndex(5) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(84, 5) Source(6, 33) + SourceIndex(5) -2 >Emitted(84, 16) Source(6, 47) + 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(85, 10) Source(6, 33) + SourceIndex(5) -2 >Emitted(85, 20) Source(6, 47) + SourceIndex(5) -3 >Emitted(85, 22) Source(6, 33) + SourceIndex(5) -4 >Emitted(85, 43) Source(6, 47) + SourceIndex(5) -5 >Emitted(85, 45) Source(6, 33) + SourceIndex(5) -6 >Emitted(85, 49) Source(6, 47) + SourceIndex(5) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(86, 9) Source(6, 33) + SourceIndex(5) -2 >Emitted(86, 31) Source(6, 47) + SourceIndex(5) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(88, 1) Source(6, 51) + SourceIndex(5) -2 >Emitted(88, 2) Source(6, 52) + SourceIndex(5) ---- ->>>var thirdthird_part1_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > thirdthird_part1_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(89, 1) Source(7, 1) + SourceIndex(5) -2 >Emitted(89, 5) Source(7, 7) + SourceIndex(5) -3 >Emitted(89, 24) Source(7, 26) + SourceIndex(5) -4 >Emitted(89, 27) Source(7, 29) + SourceIndex(5) -5 >Emitted(89, 28) Source(7, 30) + SourceIndex(5) -6 >Emitted(89, 30) Source(7, 32) + SourceIndex(5) -7 >Emitted(89, 32) Source(7, 34) + SourceIndex(5) -8 >Emitted(89, 34) Source(7, 36) + SourceIndex(5) -9 >Emitted(89, 35) Source(7, 37) + SourceIndex(5) -10>Emitted(89, 36) Source(7, 38) + SourceIndex(5) ---- ->>>thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false)); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >thirdthird_part1Spread -3 > ( -4 > 10 -5 > , ... -6 > thirdthird_part1_ar -7 > ); -1->Emitted(90, 1) Source(8, 1) + SourceIndex(5) -2 >Emitted(90, 23) Source(8, 23) + SourceIndex(5) -3 >Emitted(90, 53) Source(8, 24) + SourceIndex(5) -4 >Emitted(90, 55) Source(8, 26) + SourceIndex(5) -5 >Emitted(90, 65) Source(8, 31) + SourceIndex(5) -6 >Emitted(90, 84) Source(8, 50) + SourceIndex(5) -7 >Emitted(90, 95) Source(8, 52) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":1830,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1830,"kind":"text"}]},{"pos":1830,"end":2524,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1830,"end":2524,"kind":"text"}]},{"pos":2524,"end":2959,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":318,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":318,"kind":"text"}]},{"pos":318,"end":585,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":318,"end":585,"kind":"text"}]},{"pos":585,"end":765,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.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-894):: typescript:spreadArray -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; ----------------------------------------------------------------------- -emitHelpers: (896-1396):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (1398-1830):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1398-1830) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} -function firstfirst_part3Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var firstfirst_part3_ar = [20, 30]; -firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); - ----------------------------------------------------------------------- -prepend: (1830-2524):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1830-2524) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function forsecondsecond_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -function secondsecond_part2Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var secondsecond_part2_ar = [20, 30]; -secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false)); - ----------------------------------------------------------------------- -text: (2524-2959) -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -function thirdthird_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var thirdthird_part1_ar = [20, 30]; -thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false)); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-318):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-318) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; -declare function firstfirst_part3Spread(...b: number[]): void; -declare const firstfirst_part3_ar: number[]; - ----------------------------------------------------------------------- -prepend: (318-585):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (318-585) -declare namespace N { -} -declare namespace N { -} -declare function forsecondsecond_part1Rest(): void; -declare class C { - doSomething(): void; -} -declare function secondsecond_part2Spread(...b: number[]): void; -declare const secondsecond_part2_ar: number[]; - ----------------------------------------------------------------------- -text: (585-765) -declare var c: C; -declare function forthirdthird_part1Rest(): void; -declare function thirdthird_part1Spread(...b: number[]): void; -declare const thirdthird_part1_ar: number[]; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 894, - "kind": "emitHelpers", - "data": "typescript:spreadArray" - }, - { - "pos": 896, - "end": 1396, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 1398, - "end": 1830, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 1398, - "end": 1830, - "kind": "text" - } - ] - }, - { - "pos": 1830, - "end": 2524, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 1830, - "end": 2524, - "kind": "text" - } - ] - }, - { - "pos": 2524, - "end": 2959, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spreadArray" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 318, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 318, - "kind": "text" - } - ] - }, - { - "pos": 318, - "end": 585, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 318, - "end": 585, - "kind": "text" - } - ] - }, - { - "pos": 585, - "end": 765, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 1029 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js deleted file mode 100644 index 68235b642a216..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js +++ /dev/null @@ -1,1794 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); -function forfirstfirst_PART1Rest() { } - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:08:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:08:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:08:00 AM] Building project '/src/first/tsconfig.json'... - -[12:08:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:08:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:08:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":150,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-150) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 150, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 252 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- ->>>declare function forfirstfirst_PART1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - > - >console.log(s); - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { } -1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) -3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) -4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1 > -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1 > -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare function secondsecond_part1Spread(...b: number[]): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^^ -6 > ^^^ -7 > ^^^^^^ -8 > ^^ -9 > ^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part1Spread -4 > ( -5 > ... -6 > b: -7 > number -8 > [] -9 > ) { } -1->Emitted(14, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(14, 18) Source(13, 10) + SourceIndex(2) -3 >Emitted(14, 42) Source(13, 34) + SourceIndex(2) -4 >Emitted(14, 43) Source(13, 35) + SourceIndex(2) -5 >Emitted(14, 46) Source(13, 38) + SourceIndex(2) -6 >Emitted(14, 49) Source(13, 41) + SourceIndex(2) -7 >Emitted(14, 55) Source(13, 47) + SourceIndex(2) -8 >Emitted(14, 57) Source(13, 49) + SourceIndex(2) -9 >Emitted(14, 65) Source(13, 54) + SourceIndex(2) ---- ->>>declare const secondsecond_part1_ar: number[]; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^ -6 > ^ -1 > - > -2 > -3 > const -4 > secondsecond_part1_ar -5 > = [20, 30] -6 > ; -1 >Emitted(15, 1) Source(14, 1) + SourceIndex(2) -2 >Emitted(15, 9) Source(14, 1) + SourceIndex(2) -3 >Emitted(15, 15) Source(14, 7) + SourceIndex(2) -4 >Emitted(15, 36) Source(14, 28) + SourceIndex(2) -5 >Emitted(15, 46) Source(14, 39) + SourceIndex(2) -6 >Emitted(15, 47) Source(14, 40) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >class -3 > C -1 >Emitted(16, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(16, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(16, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(17, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(17, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(18, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(19, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(19, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(19, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(19, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(19, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(19, 18) Source(1, 17) + SourceIndex(4) ---- ->>>declare function forthirdthird_part1Rest(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^ -1-> - >c.doSomething(); - > -2 >function -3 > forthirdthird_part1Rest -4 > () { - > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; - > } -1->Emitted(20, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(20, 18) Source(3, 10) + SourceIndex(4) -3 >Emitted(20, 41) Source(3, 33) + SourceIndex(4) -4 >Emitted(20, 50) Source(5, 2) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function secondsecond_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var secondsecond_part1_ar = [20, 30]; -secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false)); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { ->>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { ->>> if (ar || !(i in from)) { ->>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); ->>> ar[i] = from[i]; ->>> } ->>> } ->>> return to.concat(ar || Array.prototype.slice.call(from)); ->>>}; ->>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) ->>> t[p[i]] = s[p[i]]; ->>> } ->>> return t; ->>>}; ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(37, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(37, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(37, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(37, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(37, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(37, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(38, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(38, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(38, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(38, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(38, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(38, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(38, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(38, 16) Source(11, 16) + SourceIndex(0) ---- ->>>function forfirstfirst_PART1Rest() { } -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1-> - > -2 >function -3 > forfirstfirst_PART1Rest -4 > () { -5 > } -1->Emitted(39, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(39, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(39, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(39, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(39, 39) Source(12, 39) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1 > -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1 >Emitted(40, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(40, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(40, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(40, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(40, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(40, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(40, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(40, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(40, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(41, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(41, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(41, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(42, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(42, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(42, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(42, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(43, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(43, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(44, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(44, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(44, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(44, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(45, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(45, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(45, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(46, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(46, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(46, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(47, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(47, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(47, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(47, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(47, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(47, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(47, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(47, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(48, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(48, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(49, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(49, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(49, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(49, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(50, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(50, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(50, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(50, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(50, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(50, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(50, 19) Source(11, 2) + SourceIndex(3) ---- ->>>function secondsecond_part1Spread() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -1-> - > - > -2 >function -3 > secondsecond_part1Spread -1->Emitted(51, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(51, 10) Source(13, 10) + SourceIndex(3) -3 >Emitted(51, 34) Source(13, 34) + SourceIndex(3) ---- ->>> var b = []; -1 >^^^^ -2 > ^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >( -2 > ...b: number[] -1 >Emitted(52, 5) Source(13, 35) + SourceIndex(3) -2 >Emitted(52, 16) Source(13, 49) + SourceIndex(3) ---- ->>> 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(53, 10) Source(13, 35) + SourceIndex(3) -2 >Emitted(53, 20) Source(13, 49) + SourceIndex(3) -3 >Emitted(53, 22) Source(13, 35) + SourceIndex(3) -4 >Emitted(53, 43) Source(13, 49) + SourceIndex(3) -5 >Emitted(53, 45) Source(13, 35) + SourceIndex(3) -6 >Emitted(53, 49) Source(13, 49) + SourceIndex(3) ---- ->>> b[_i] = arguments[_i]; -1 >^^^^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^ -1 > -2 > ...b: number[] -1 >Emitted(54, 9) Source(13, 35) + SourceIndex(3) -2 >Emitted(54, 31) Source(13, 49) + SourceIndex(3) ---- ->>> } ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { -2 >} -1 >Emitted(56, 1) Source(13, 53) + SourceIndex(3) -2 >Emitted(56, 2) Source(13, 54) + SourceIndex(3) ---- ->>>var secondsecond_part1_ar = [20, 30]; -1-> -2 >^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^ -11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >const -3 > secondsecond_part1_ar -4 > = -5 > [ -6 > 20 -7 > , -8 > 30 -9 > ] -10> ; -1->Emitted(57, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(57, 5) Source(14, 7) + SourceIndex(3) -3 >Emitted(57, 26) Source(14, 28) + SourceIndex(3) -4 >Emitted(57, 29) Source(14, 31) + SourceIndex(3) -5 >Emitted(57, 30) Source(14, 32) + SourceIndex(3) -6 >Emitted(57, 32) Source(14, 34) + SourceIndex(3) -7 >Emitted(57, 34) Source(14, 36) + SourceIndex(3) -8 >Emitted(57, 36) Source(14, 38) + SourceIndex(3) -9 >Emitted(57, 37) Source(14, 39) + SourceIndex(3) -10>Emitted(57, 38) Source(14, 40) + SourceIndex(3) ---- ->>>secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false)); -1-> -2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^ -5 > ^^^^^^^^^^ -6 > ^^^^^^^^^^^^^^^^^^^^^ -7 > ^^^^^^^^^^^ -1-> - > -2 >secondsecond_part1Spread -3 > ( -4 > 10 -5 > , ... -6 > secondsecond_part1_ar -7 > ); -1->Emitted(58, 1) Source(15, 1) + SourceIndex(3) -2 >Emitted(58, 25) Source(15, 25) + SourceIndex(3) -3 >Emitted(58, 55) Source(15, 26) + SourceIndex(3) -4 >Emitted(58, 57) Source(15, 28) + SourceIndex(3) -5 >Emitted(58, 67) Source(15, 33) + SourceIndex(3) -6 >Emitted(58, 88) Source(15, 54) + SourceIndex(3) -7 >Emitted(58, 99) Source(15, 56) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1 > -2 >^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(59, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(60, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(61, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(61, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(62, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(62, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(62, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(63, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(63, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(63, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(63, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(63, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(63, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(63, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(63, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(64, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(64, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(65, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(65, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(66, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(66, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(66, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(66, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(67, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(67, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(67, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(67, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(67, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(67, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(67, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(67, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(68, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(68, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(68, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(68, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(68, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(68, 17) Source(2, 17) + SourceIndex(5) ---- ->>>function forthirdthird_part1Rest() { -1-> -2 >^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >function -3 > forthirdthird_part1Rest -1->Emitted(69, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(69, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(69, 33) Source(3, 33) + SourceIndex(5) ---- ->>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -1->^^^^ -2 > ^^^^ -3 > ^^^^^ -4 > ^^ -5 > ^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^ -10> ^^ -11> ^^ -12> ^^ -13> ^^ -14> ^^ -15> ^^ -16> ^^ -17> ^^ -18> ^ -19> ^^^^^^^ -20> ^^ -21> ^^^^ -22> ^^^^^^^^^^^^^^ -23> ^^^^^ -24> ^ -25> ^ -1->() { - > -2 > const -3 > { b, ...rest } = -4 > { -5 > a -6 > : -7 > 10 -8 > , -9 > b -10> : -11> 30 -12> , -13> yy -14> : -15> 30 -16> } -17> -18> b -19> -20> , ... -21> rest -22> -23> { b, ...rest } -24> = { a: 10, b: 30, yy: 30 } -25> ; -1->Emitted(70, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(70, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(70, 14) Source(4, 24) + SourceIndex(5) -4 >Emitted(70, 16) Source(4, 26) + SourceIndex(5) -5 >Emitted(70, 17) Source(4, 27) + SourceIndex(5) -6 >Emitted(70, 19) Source(4, 29) + SourceIndex(5) -7 >Emitted(70, 21) Source(4, 31) + SourceIndex(5) -8 >Emitted(70, 23) Source(4, 33) + SourceIndex(5) -9 >Emitted(70, 24) Source(4, 34) + SourceIndex(5) -10>Emitted(70, 26) Source(4, 36) + SourceIndex(5) -11>Emitted(70, 28) Source(4, 38) + SourceIndex(5) -12>Emitted(70, 30) Source(4, 40) + SourceIndex(5) -13>Emitted(70, 32) Source(4, 42) + SourceIndex(5) -14>Emitted(70, 34) Source(4, 44) + SourceIndex(5) -15>Emitted(70, 36) Source(4, 46) + SourceIndex(5) -16>Emitted(70, 38) Source(4, 48) + SourceIndex(5) -17>Emitted(70, 40) Source(4, 9) + SourceIndex(5) -18>Emitted(70, 41) Source(4, 10) + SourceIndex(5) -19>Emitted(70, 48) Source(4, 10) + SourceIndex(5) -20>Emitted(70, 50) Source(4, 15) + SourceIndex(5) -21>Emitted(70, 54) Source(4, 19) + SourceIndex(5) -22>Emitted(70, 68) Source(4, 7) + SourceIndex(5) -23>Emitted(70, 73) Source(4, 21) + SourceIndex(5) -24>Emitted(70, 74) Source(4, 48) + SourceIndex(5) -25>Emitted(70, 75) Source(4, 49) + SourceIndex(5) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(71, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(71, 2) Source(5, 2) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":1548,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1548,"kind":"text"}]},{"pos":1548,"end":2123,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1548,"end":2123,"kind":"text"}]},{"pos":2123,"end":2276,"kind":"text"}],"sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":422,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":422,"kind":"text"}]},{"pos":422,"end":492,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.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-894):: typescript:spreadArray -var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; ----------------------------------------------------------------------- -emitHelpers: (896-1396):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; ----------------------------------------------------------------------- -prepend: (1398-1548):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1398-1548) -var s = "Hello, world"; -console.log(s); -function forfirstfirst_PART1Rest() { } -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (1548-2123):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (1548-2123) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -function secondsecond_part1Spread() { - var b = []; - for (var _i = 0; _i < arguments.length; _i++) { - b[_i] = arguments[_i]; - } -} -var secondsecond_part1_ar = [20, 30]; -secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false)); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (2123-2276) -var c = new C(); -c.doSomething(); -function forthirdthird_part1Rest() { - var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); -} - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-208) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function forfirstfirst_PART1Rest(): void; -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (208-422):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (208-422) -declare namespace N { -} -declare namespace N { -} -declare function secondsecond_part1Spread(...b: number[]): void; -declare const secondsecond_part1_ar: number[]; -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (422-492) -declare var c: C; -declare function forthirdthird_part1Rest(): void; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 894, - "kind": "emitHelpers", - "data": "typescript:spreadArray" - }, - { - "pos": 896, - "end": 1396, - "kind": "emitHelpers", - "data": "typescript:rest" - }, - { - "pos": 1398, - "end": 1548, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 1398, - "end": 1548, - "kind": "text" - } - ] - }, - { - "pos": 1548, - "end": 2123, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 1548, - "end": 2123, - "kind": "text" - } - ] - }, - { - "pos": 2123, - "end": 2276, - "kind": "text" - } - ], - "sources": { - "helpers": [ - "typescript:rest" - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 208, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 208, - "kind": "text" - } - ] - }, - { - "pos": 208, - "end": 422, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 208, - "end": 422, - "kind": "text" - } - ] - }, - { - "pos": 422, - "end": 492, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 986 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js deleted file mode 100644 index da5de57663296..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-all-projects.js +++ /dev/null @@ -1,1546 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -"myPrologue5" -"myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:12:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:12:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:12:00 AM] Building project '/src/first/tsconfig.json'... - -[12:12:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:12:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:12:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:12:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEVD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue5" - >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(3, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(3, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(4, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(4, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(4, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(4, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(4, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(5, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(7, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(7, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(7, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(7, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(7, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(9, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(9, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(10, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(10, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(10, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -"myPrologue5"; -"myPrologue"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue5"; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -1 > -2 >"myPrologue5" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) -3 >Emitted(2, 15) Source(1, 14) + SourceIndex(0) ---- ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^-> -1 > - > -2 >"myPrologue" -3 > -1 >Emitted(3, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(3, 13) Source(2, 13) + SourceIndex(0) -3 >Emitted(3, 14) Source(2, 13) + SourceIndex(0) ---- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(4, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(4, 5) Source(7, 7) + SourceIndex(0) -3 >Emitted(4, 6) Source(7, 8) + SourceIndex(0) -4 >Emitted(4, 9) Source(7, 11) + SourceIndex(0) -5 >Emitted(4, 23) Source(7, 25) + SourceIndex(0) -6 >Emitted(4, 24) Source(7, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(5, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(5, 8) Source(13, 8) + SourceIndex(0) -3 >Emitted(5, 9) Source(13, 9) + SourceIndex(0) -4 >Emitted(5, 12) Source(13, 12) + SourceIndex(0) -5 >Emitted(5, 13) Source(13, 13) + SourceIndex(0) -6 >Emitted(5, 14) Source(13, 14) + SourceIndex(0) -7 >Emitted(5, 15) Source(13, 15) + SourceIndex(0) -8 >Emitted(5, 16) Source(13, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(6, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(6, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(6, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(6, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(6, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(6, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(6, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(7, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(7, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(7, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(8, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(8, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(8, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(8, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(9, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":29,"kind":"prologue","data":"myPrologue5"},{"pos":31,"end":44,"kind":"prologue","data":"myPrologue"},{"pos":46,"end":156,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue5\"\n\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue5"}},{"pos":13,"end":26,"expression":{"pos":13,"end":26,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-29):: myPrologue5 -"myPrologue5"; ----------------------------------------------------------------------- -prologue: (31-44):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -text: (46-156) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 29, - "kind": "prologue", - "data": "myPrologue5" - }, - { - "pos": 31, - "end": 44, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 46, - "end": 156, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue5\"\n\"myPrologue\"", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 13, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue5" - } - }, - { - "pos": 13, - "end": 26, - "expression": { - "pos": 13, - "end": 26, - "text": "myPrologue" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 738 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACVD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue5" - >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(3, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(3, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(4, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(4, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(4, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(4, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(4, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(5, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(7, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(7, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(7, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(7, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(7, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(9, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(9, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(9, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(10, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(10, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(10, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >"myPrologue" - > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(2, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(2, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(2, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(6, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(6, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(6, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1->"myPrologue2"; - > -2 >class -3 > C -1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(2, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(3, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue3"; - >"myPrologue"; - > -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(3, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(3, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(3, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(3, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(3, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -"myPrologue5"; -"myPrologue"; -"myPrologue2"; -"myPrologue3"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part2.ts","../../third_part1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts"],"names":[],"mappings":";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;ACDZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFMd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../second/second_part2.ts,../../third_part1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue5"; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -1 > -2 >"myPrologue5" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) -3 >Emitted(2, 15) Source(1, 14) + SourceIndex(0) ---- ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1 > - > -2 >"myPrologue" -3 > -1 >Emitted(3, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(3, 13) Source(2, 13) + SourceIndex(0) -3 >Emitted(3, 14) Source(2, 13) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>"myPrologue2"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1-> -2 >"myPrologue2" -3 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -3 >Emitted(4, 15) Source(1, 15) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>"myPrologue3"; -1-> -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >"myPrologue3" -3 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 14) Source(1, 14) + SourceIndex(2) -3 >Emitted(5, 15) Source(1, 15) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1->"myPrologue5" - >"myPrologue" - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(6, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(6, 5) Source(7, 7) + SourceIndex(0) -3 >Emitted(6, 6) Source(7, 8) + SourceIndex(0) -4 >Emitted(6, 9) Source(7, 11) + SourceIndex(0) -5 >Emitted(6, 23) Source(7, 25) + SourceIndex(0) -6 >Emitted(6, 24) Source(7, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(7, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(7, 8) Source(13, 8) + SourceIndex(0) -3 >Emitted(7, 9) Source(13, 9) + SourceIndex(0) -4 >Emitted(7, 12) Source(13, 12) + SourceIndex(0) -5 >Emitted(7, 13) Source(13, 13) + SourceIndex(0) -6 >Emitted(7, 14) Source(13, 14) + SourceIndex(0) -7 >Emitted(7, 15) Source(13, 15) + SourceIndex(0) -8 >Emitted(7, 16) Source(13, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(8, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(8, 8) Source(1, 8) + SourceIndex(3) -3 >Emitted(8, 9) Source(1, 9) + SourceIndex(3) -4 >Emitted(8, 12) Source(1, 12) + SourceIndex(3) -5 >Emitted(8, 13) Source(1, 13) + SourceIndex(3) -6 >Emitted(8, 14) Source(1, 14) + SourceIndex(3) -7 >Emitted(8, 16) Source(1, 16) + SourceIndex(3) -8 >Emitted(8, 17) Source(1, 17) + SourceIndex(3) -9 >Emitted(8, 18) Source(1, 18) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(9, 10) Source(1, 10) + SourceIndex(4) -3 >Emitted(9, 11) Source(1, 11) + SourceIndex(4) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(10, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(10, 12) Source(2, 12) + SourceIndex(4) -3 >Emitted(10, 28) Source(2, 28) + SourceIndex(4) -4 >Emitted(10, 29) Source(2, 29) + SourceIndex(4) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(11, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(11, 2) Source(3, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->"myPrologue" - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(12, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(12, 5) Source(6, 11) + SourceIndex(5) -3 >Emitted(12, 6) Source(6, 12) + SourceIndex(5) -4 >Emitted(12, 7) Source(12, 2) + SourceIndex(5) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(13, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(13, 12) Source(6, 11) + SourceIndex(5) -3 >Emitted(13, 13) Source(6, 12) + SourceIndex(5) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(14, 5) Source(7, 5) + SourceIndex(5) -2 >Emitted(14, 14) Source(7, 14) + SourceIndex(5) -3 >Emitted(14, 15) Source(7, 15) + SourceIndex(5) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(15, 9) Source(8, 9) + SourceIndex(5) -2 >Emitted(15, 16) Source(8, 16) + SourceIndex(5) -3 >Emitted(15, 17) Source(8, 17) + SourceIndex(5) -4 >Emitted(15, 20) Source(8, 20) + SourceIndex(5) -5 >Emitted(15, 21) Source(8, 21) + SourceIndex(5) -6 >Emitted(15, 30) Source(8, 30) + SourceIndex(5) -7 >Emitted(15, 31) Source(8, 31) + SourceIndex(5) -8 >Emitted(15, 32) Source(8, 32) + SourceIndex(5) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(16, 5) Source(9, 5) + SourceIndex(5) -2 >Emitted(16, 6) Source(9, 6) + SourceIndex(5) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(17, 5) Source(11, 5) + SourceIndex(5) -2 >Emitted(17, 6) Source(11, 6) + SourceIndex(5) -3 >Emitted(17, 8) Source(11, 8) + SourceIndex(5) -4 >Emitted(17, 9) Source(11, 9) + SourceIndex(5) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(18, 1) Source(12, 1) + SourceIndex(5) -2 >Emitted(18, 2) Source(12, 2) + SourceIndex(5) -3 >Emitted(18, 4) Source(6, 11) + SourceIndex(5) -4 >Emitted(18, 5) Source(6, 12) + SourceIndex(5) -5 >Emitted(18, 10) Source(6, 11) + SourceIndex(5) -6 >Emitted(18, 11) Source(6, 12) + SourceIndex(5) -7 >Emitted(18, 19) Source(12, 2) + SourceIndex(5) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue2"; - > -1->Emitted(19, 1) Source(2, 1) + SourceIndex(1) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(20, 5) Source(2, 1) + SourceIndex(1) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(21, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(21, 6) Source(6, 2) + SourceIndex(1) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(22, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(22, 28) Source(3, 16) + SourceIndex(1) -3 >Emitted(22, 31) Source(3, 5) + SourceIndex(1) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(23, 9) Source(4, 9) + SourceIndex(1) -2 >Emitted(23, 16) Source(4, 16) + SourceIndex(1) -3 >Emitted(23, 17) Source(4, 17) + SourceIndex(1) -4 >Emitted(23, 20) Source(4, 20) + SourceIndex(1) -5 >Emitted(23, 21) Source(4, 21) + SourceIndex(1) -6 >Emitted(23, 41) Source(4, 41) + SourceIndex(1) -7 >Emitted(23, 42) Source(4, 42) + SourceIndex(1) -8 >Emitted(23, 43) Source(4, 43) + SourceIndex(1) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(24, 5) Source(5, 5) + SourceIndex(1) -2 >Emitted(24, 6) Source(5, 6) + SourceIndex(1) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(25, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(25, 13) Source(6, 2) + SourceIndex(1) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(26, 1) Source(6, 1) + SourceIndex(1) -2 >Emitted(26, 2) Source(6, 2) + SourceIndex(1) -3 >Emitted(26, 2) Source(2, 1) + SourceIndex(1) -4 >Emitted(26, 6) Source(6, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1->"myPrologue3"; - >"myPrologue"; - > -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(27, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(27, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(27, 6) Source(3, 6) + SourceIndex(2) -4 >Emitted(27, 9) Source(3, 9) + SourceIndex(2) -5 >Emitted(27, 13) Source(3, 13) + SourceIndex(2) -6 >Emitted(27, 14) Source(3, 14) + SourceIndex(2) -7 >Emitted(27, 16) Source(3, 16) + SourceIndex(2) -8 >Emitted(27, 17) Source(3, 17) + SourceIndex(2) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(28, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(28, 2) Source(4, 2) + SourceIndex(2) -3 >Emitted(28, 3) Source(4, 3) + SourceIndex(2) -4 >Emitted(28, 14) Source(4, 14) + SourceIndex(2) -5 >Emitted(28, 16) Source(4, 16) + SourceIndex(2) -6 >Emitted(28, 17) Source(4, 17) + SourceIndex(2) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":29,"kind":"prologue","data":"myPrologue5"},{"pos":31,"end":44,"kind":"prologue","data":"myPrologue"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue2"},{"pos":62,"end":76,"kind":"prologue","data":"myPrologue3"},{"pos":78,"end":188,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":78,"end":188,"kind":"text"}]},{"pos":188,"end":473,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":188,"end":473,"kind":"text"}]},{"pos":473,"end":509,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-29):: myPrologue5 -"myPrologue5"; ----------------------------------------------------------------------- -prologue: (31-44):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (46-60):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -prologue: (62-76):: myPrologue3 -"myPrologue3"; ----------------------------------------------------------------------- -prepend: (78-188):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (78-188) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (188-473):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (188-473) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (473-509) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 29, - "kind": "prologue", - "data": "myPrologue5" - }, - { - "pos": 31, - "end": 44, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 46, - "end": 60, - "kind": "prologue", - "data": "myPrologue2" - }, - { - "pos": 62, - "end": 76, - "kind": "prologue", - "data": "myPrologue3" - }, - { - "pos": 78, - "end": 188, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 78, - "end": 188, - "kind": "text" - } - ] - }, - { - "pos": 188, - "end": 473, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 188, - "end": 473, - "kind": "text" - } - ] - }, - { - "pos": 473, - "end": 509, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue3\";\n\"myPrologue\";", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 14, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue3" - } - }, - { - "pos": 14, - "end": 28, - "expression": { - "pos": 14, - "end": 27, - "text": "myPrologue" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 1327 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js deleted file mode 100644 index 98a68fde5c31e..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-prologues-in-different-projects.js +++ /dev/null @@ -1,1444 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -"myPrologue5" -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:08:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:08:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:08:00 AM] Building project '/src/first/tsconfig.json'... - -[12:08:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:08:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:08:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue5" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -"myPrologue5"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,aAAa,CAAA;AAKb,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue5"; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1 > -2 >"myPrologue5" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) -3 >Emitted(2, 15) Source(1, 14) + SourceIndex(0) ---- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":29,"kind":"prologue","data":"myPrologue5"},{"pos":31,"end":141,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue5\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue5"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-29):: myPrologue5 -"myPrologue5"; ----------------------------------------------------------------------- -text: (31-141) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 29, - "kind": "prologue", - "data": "myPrologue5" - }, - { - "pos": 31, - "end": 141, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue5\"", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - }, - { - "pos": 0, - "end": 13, - "expression": { - "pos": 0, - "end": 13, - "text": "myPrologue5" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 591 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue5" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 >"myPrologue" - > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(2, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(2, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(2, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(6, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(6, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(6, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1->"myPrologue2"; - > -2 >class -3 > C -1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(2, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(3, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -"myPrologue5"; -"myPrologue"; -"myPrologue2"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,aAAa,CAAA;ACAb,YAAY,CAAA;ACAZ,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AHGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AGLD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>"use strict"; ->>>"myPrologue5"; -1 > -2 >^^^^^^^^^^^^^ -3 > ^ -1 > -2 >"myPrologue5" -3 > -1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) -3 >Emitted(2, 15) Source(1, 14) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -3 >Emitted(3, 14) Source(1, 13) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.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/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1->"myPrologue5" - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(5, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(5, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(5, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(5, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(5, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(6, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(6, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(6, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(6, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(6, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(6, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(6, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(6, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(7, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(7, 8) Source(1, 8) + SourceIndex(3) -3 >Emitted(7, 9) Source(1, 9) + SourceIndex(3) -4 >Emitted(7, 12) Source(1, 12) + SourceIndex(3) -5 >Emitted(7, 13) Source(1, 13) + SourceIndex(3) -6 >Emitted(7, 14) Source(1, 14) + SourceIndex(3) -7 >Emitted(7, 16) Source(1, 16) + SourceIndex(3) -8 >Emitted(7, 17) Source(1, 17) + SourceIndex(3) -9 >Emitted(7, 18) Source(1, 18) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(8, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(8, 10) Source(1, 10) + SourceIndex(4) -3 >Emitted(8, 11) Source(1, 11) + SourceIndex(4) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(9, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(9, 12) Source(2, 12) + SourceIndex(4) -3 >Emitted(9, 28) Source(2, 28) + SourceIndex(4) -4 >Emitted(9, 29) Source(2, 29) + SourceIndex(4) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(10, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(10, 2) Source(3, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->"myPrologue" - >namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(11, 1) Source(6, 1) + SourceIndex(1) -2 >Emitted(11, 5) Source(6, 11) + SourceIndex(1) -3 >Emitted(11, 6) Source(6, 12) + SourceIndex(1) -4 >Emitted(11, 7) Source(12, 2) + SourceIndex(1) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(12, 1) Source(6, 1) + SourceIndex(1) -2 >Emitted(12, 12) Source(6, 11) + SourceIndex(1) -3 >Emitted(12, 13) Source(6, 12) + SourceIndex(1) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(13, 5) Source(7, 5) + SourceIndex(1) -2 >Emitted(13, 14) Source(7, 14) + SourceIndex(1) -3 >Emitted(13, 15) Source(7, 15) + SourceIndex(1) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(14, 9) Source(8, 9) + SourceIndex(1) -2 >Emitted(14, 16) Source(8, 16) + SourceIndex(1) -3 >Emitted(14, 17) Source(8, 17) + SourceIndex(1) -4 >Emitted(14, 20) Source(8, 20) + SourceIndex(1) -5 >Emitted(14, 21) Source(8, 21) + SourceIndex(1) -6 >Emitted(14, 30) Source(8, 30) + SourceIndex(1) -7 >Emitted(14, 31) Source(8, 31) + SourceIndex(1) -8 >Emitted(14, 32) Source(8, 32) + SourceIndex(1) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(15, 5) Source(9, 5) + SourceIndex(1) -2 >Emitted(15, 6) Source(9, 6) + SourceIndex(1) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(16, 5) Source(11, 5) + SourceIndex(1) -2 >Emitted(16, 6) Source(11, 6) + SourceIndex(1) -3 >Emitted(16, 8) Source(11, 8) + SourceIndex(1) -4 >Emitted(16, 9) Source(11, 9) + SourceIndex(1) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(17, 1) Source(12, 1) + SourceIndex(1) -2 >Emitted(17, 2) Source(12, 2) + SourceIndex(1) -3 >Emitted(17, 4) Source(6, 11) + SourceIndex(1) -4 >Emitted(17, 5) Source(6, 12) + SourceIndex(1) -5 >Emitted(17, 10) Source(6, 11) + SourceIndex(1) -6 >Emitted(17, 11) Source(6, 12) + SourceIndex(1) -7 >Emitted(17, 19) Source(12, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1->"myPrologue2"; - > -1->Emitted(18, 1) Source(2, 1) + SourceIndex(2) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(19, 5) Source(2, 1) + SourceIndex(2) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(20, 5) Source(6, 1) + SourceIndex(2) -2 >Emitted(20, 6) Source(6, 2) + SourceIndex(2) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(21, 5) Source(3, 5) + SourceIndex(2) -2 >Emitted(21, 28) Source(3, 16) + SourceIndex(2) -3 >Emitted(21, 31) Source(3, 5) + SourceIndex(2) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(22, 9) Source(4, 9) + SourceIndex(2) -2 >Emitted(22, 16) Source(4, 16) + SourceIndex(2) -3 >Emitted(22, 17) Source(4, 17) + SourceIndex(2) -4 >Emitted(22, 20) Source(4, 20) + SourceIndex(2) -5 >Emitted(22, 21) Source(4, 21) + SourceIndex(2) -6 >Emitted(22, 41) Source(4, 41) + SourceIndex(2) -7 >Emitted(22, 42) Source(4, 42) + SourceIndex(2) -8 >Emitted(22, 43) Source(4, 43) + SourceIndex(2) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(23, 5) Source(5, 5) + SourceIndex(2) -2 >Emitted(23, 6) Source(5, 6) + SourceIndex(2) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(24, 5) Source(6, 1) + SourceIndex(2) -2 >Emitted(24, 13) Source(6, 2) + SourceIndex(2) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(25, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(25, 2) Source(6, 2) + SourceIndex(2) -3 >Emitted(25, 2) Source(2, 1) + SourceIndex(2) -4 >Emitted(25, 6) Source(6, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(26, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(26, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(26, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(26, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(26, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(26, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(26, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(26, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(27, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(27, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(27, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(27, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(27, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(27, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":29,"kind":"prologue","data":"myPrologue5"},{"pos":31,"end":44,"kind":"prologue","data":"myPrologue"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue2"},{"pos":62,"end":172,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":62,"end":172,"kind":"text"}]},{"pos":172,"end":457,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":172,"end":457,"kind":"text"}]},{"pos":457,"end":493,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-29):: myPrologue5 -"myPrologue5"; ----------------------------------------------------------------------- -prologue: (31-44):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (46-60):: myPrologue2 -"myPrologue2"; ----------------------------------------------------------------------- -prepend: (62-172):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (62-172) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (172-457):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (172-457) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (457-493) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 29, - "kind": "prologue", - "data": "myPrologue5" - }, - { - "pos": 31, - "end": 44, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 46, - "end": 60, - "kind": "prologue", - "data": "myPrologue2" - }, - { - "pos": 62, - "end": 172, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 62, - "end": 172, - "kind": "text" - } - ] - }, - { - "pos": 172, - "end": 457, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 172, - "end": 457, - "kind": "text" - } - ] - }, - { - "pos": 457, - "end": 493, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 1090 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js deleted file mode 100644 index 2817ea715a220..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-all-projects.js +++ /dev/null @@ -1,1407 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -"myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:12:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:12:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:12:00 AM] Building project '/src/first/tsconfig.json'... - -[12:12:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:12:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:12:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:12:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"use strict"; -"myPrologue"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.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 s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":140,"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":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -text: (30-140) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 140, - "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": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 588 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -"use strict"; -"myPrologue"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.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 s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(9, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(10, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(10, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(11, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(11, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(11, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(12, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(12, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(12, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(12, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(12, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(12, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(12, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(12, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(14, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(14, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(14, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(15, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(15, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(15, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(15, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(15, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":140,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":30,"end":140,"kind":"text"}]},{"pos":140,"end":425,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":140,"end":425,"kind":"text"}]},{"pos":425,"end":461,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: use strict -"use strict"; ----------------------------------------------------------------------- -prologue: (15-28):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prepend: (30-140):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (30-140) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (140-425):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (140-425) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (425-461) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 30, - "end": 140, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 30, - "end": 140, - "kind": "text" - } - ] - }, - { - "pos": 140, - "end": 425, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 140, - "end": 425, - "kind": "text" - } - ] - }, - { - "pos": 425, - "end": 461, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "", - "directives": [ - { - "pos": -1, - "end": -1, - "expression": { - "pos": -1, - "end": -1, - "text": "use strict" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 972 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js deleted file mode 100644 index 19b20a01ae93f..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/strict-in-one-dependency.js +++ /dev/null @@ -1,1346 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -"myPrologue" -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:08:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:08:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:08:00 AM] Building project '/src/first/tsconfig.json'... - -[12:08:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:08:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:08:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] -"myPrologue"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} - -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(1, 14) Source(1, 13) + SourceIndex(0) ---- ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(2, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(2, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":15,"end":125,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -prologue: (0-13):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -text: (15-125) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 15, - "end": 125, - "kind": "text" - } - ], - "sources": { - "prologues": [ - { - "file": 0, - "text": "\"myPrologue\"", - "directives": [ - { - "pos": 0, - "end": 12, - "expression": { - "pos": 0, - "end": 12, - "text": "myPrologue" - } - } - ] - } - ] - } - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 457 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 >"myPrologue" - > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] -"myPrologue"; -"use strict"; -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); -var c = new C(); -c.doSomething(); -//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} - -//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] -=================================================================== -JsFile: third-output.js -mapUrl: third-output.js.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>"myPrologue"; -1 > -2 >^^^^^^^^^^^^ -3 > ^ -4 > ^-> -1 > -2 >"myPrologue" -3 > -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 13) Source(1, 13) + SourceIndex(0) -3 >Emitted(1, 14) Source(1, 13) + SourceIndex(0) ---- ->>>"use strict"; ->>>var s = "Hello, world"; -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1-> - >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) -3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) -4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) -5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) -6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) -3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) -4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) -5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) -6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) -7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) -8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^-> -1 > - > -2 >} -1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>var N; -1-> -2 >^^^^ -3 > ^ -4 > ^ -5 > ^^^^^^^^^^-> -1->namespace N { - > // Comment text - >} - > - > -2 >namespace -3 > N -4 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(9, 7) Source(11, 2) + SourceIndex(3) ---- ->>>(function (N) { -1-> -2 >^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^-> -1-> -2 >namespace -3 > N -1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(10, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(10, 13) Source(5, 12) + SourceIndex(3) ---- ->>> function f() { -1->^^^^ -2 > ^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1-> { - > -2 > function -3 > f -1->Emitted(11, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(11, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(11, 15) Source(6, 15) + SourceIndex(3) ---- ->>> console.log('testing'); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^ -7 > ^ -8 > ^ -1->() { - > -2 > console -3 > . -4 > log -5 > ( -6 > 'testing' -7 > ) -8 > ; -1->Emitted(12, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(12, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(12, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(12, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(12, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(12, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(12, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(12, 32) Source(7, 32) + SourceIndex(3) ---- ->>> } -1 >^^^^ -2 > ^ -3 > ^^^^-> -1 > - > -2 > } -1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(8, 6) + SourceIndex(3) ---- ->>> f(); -1->^^^^ -2 > ^ -3 > ^^ -4 > ^ -5 > ^^^^^^^^^^^-> -1-> - > - > -2 > f -3 > () -4 > ; -1->Emitted(14, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(14, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(14, 9) Source(10, 9) + SourceIndex(3) ---- ->>>})(N || (N = {})); -1-> -2 >^ -3 > ^^ -4 > ^ -5 > ^^^^^ -6 > ^ -7 > ^^^^^^^^ -8 > ^^^^^-> -1-> - > -2 >} -3 > -4 > N -5 > -6 > N -7 > { - > function f() { - > console.log('testing'); - > } - > - > f(); - > } -1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(15, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(15, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(15, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(15, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(15, 19) Source(11, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>var C = (function () { -1-> -2 >^^^^^^^^^^^^^^^^^^^-> -1-> -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) ---- ->>> function C() { -1->^^^^ -2 > ^^-> -1-> -1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) ---- ->>> } -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1->class C { - > doSomething() { - > console.log("something got done"); - > } - > -2 > } -1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) ---- ->>> C.prototype.doSomething = function () { -1->^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^^^^-> -1-> -2 > doSomething -3 > -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) ---- ->>> console.log("something got done"); -1->^^^^^^^^ -2 > ^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^^^^^^^^^^^^^^^^^^^^ -7 > ^ -8 > ^ -1->doSomething() { - > -2 > console -3 > . -4 > log -5 > ( -6 > "something got done" -7 > ) -8 > ; -1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) ---- ->>> }; -1 >^^^^ -2 > ^ -3 > ^^^^^^^^^-> -1 > - > -2 > } -1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) ---- ->>> return C; -1->^^^^ -2 > ^^^^^^^^ -1-> - > -2 > } -1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) ---- ->>>}()); -1 > -2 >^ -3 > -4 > ^^^^ -5 > ^^^^^^^^^^^^-> -1 > -2 >} -3 > -4 > class C { - > doSomething() { - > console.log("something got done"); - > } - > } -1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.js -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>var c = new C(); -1-> -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^-> -1-> -2 >var -3 > c -4 > = -5 > new -6 > C -7 > () -8 > ; -1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) ---- ->>>c.doSomething(); -1-> -2 >^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 >c -3 > . -4 > doSomething -5 > () -6 > ; -1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) ---- ->>>//# sourceMappingURL=third-output.js.map - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":15,"end":28,"kind":"prologue","data":"use strict"},{"pos":30,"end":140,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":30,"end":140,"kind":"text"}]},{"pos":140,"end":425,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":140,"end":425,"kind":"text"}]},{"pos":425,"end":461,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prologue: (0-13):: myPrologue -"myPrologue"; ----------------------------------------------------------------------- -prologue: (15-28):: use strict -"use strict"; ----------------------------------------------------------------------- -prepend: (30-140):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (30-140) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (140-425):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (140-425) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (425-461) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-257) -declare namespace N { -} -declare namespace N { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (257-276) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 13, - "kind": "prologue", - "data": "myPrologue" - }, - { - "pos": 15, - "end": 28, - "kind": "prologue", - "data": "use strict" - }, - { - "pos": 30, - "end": 140, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 30, - "end": 140, - "kind": "text" - } - ] - }, - { - "pos": 140, - "end": 425, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 140, - "end": 425, - "kind": "text" - } - ] - }, - { - "pos": 425, - "end": 461, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 257, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 257, - "kind": "text" - } - ] - }, - { - "pos": 257, - "end": 276, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 837 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index b110160120f7c..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,2037 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:08:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:08:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:08:00 AM] Building project '/src/first/tsconfig.json'... - -[12:08:00 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:08:00 AM] Updating output of project '/src/second/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/second/tsconfig.json'... - -[12:08:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed - -[12:08:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/2/second-output.d.ts] file changed its modified time -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^^-> -1 > { - > /**@internal*/ constructor() { } - > /**@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(15, 5) Source(15, 20) + SourceIndex(2) -2 >Emitted(15, 9) Source(15, 24) + SourceIndex(2) -3 >Emitted(15, 11) Source(15, 26) + SourceIndex(2) -4 >Emitted(15, 17) Source(15, 32) + SourceIndex(2) -5 >Emitted(15, 18) Source(15, 33) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^-> -1-> - > /**@internal*/ -2 > method -1->Emitted(16, 5) Source(16, 20) + SourceIndex(2) -2 >Emitted(16, 11) Source(16, 26) + SourceIndex(2) ---- ->>> get c(): number; -1->^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^ -6 > ^ -7 > ^^^^-> -1->() { } - > /**@internal*/ -2 > get -3 > c -4 > () { return 10; } - > /**@internal*/ set c(val: -5 > number -6 > -1->Emitted(17, 5) Source(17, 20) + SourceIndex(2) -2 >Emitted(17, 9) Source(17, 24) + SourceIndex(2) -3 >Emitted(17, 10) Source(17, 25) + SourceIndex(2) -4 >Emitted(17, 14) Source(18, 31) + SourceIndex(2) -5 >Emitted(17, 20) Source(18, 37) + SourceIndex(2) -6 >Emitted(17, 21) Source(17, 42) + SourceIndex(2) ---- ->>> set c(val: number); -1->^^^^ -2 > ^^^^ -3 > ^ -4 > ^ -5 > ^^^^^ -6 > ^^^^^^ -7 > ^^ -1-> - > /**@internal*/ -2 > set -3 > c -4 > ( -5 > val: -6 > number -7 > ) { } -1->Emitted(18, 5) Source(18, 20) + SourceIndex(2) -2 >Emitted(18, 9) Source(18, 24) + SourceIndex(2) -3 >Emitted(18, 10) Source(18, 25) + SourceIndex(2) -4 >Emitted(18, 11) Source(18, 26) + SourceIndex(2) -5 >Emitted(18, 16) Source(18, 31) + SourceIndex(2) -6 >Emitted(18, 22) Source(18, 37) + SourceIndex(2) -7 >Emitted(18, 24) Source(18, 42) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(20, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(20, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(20, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(20, 27) Source(20, 19) + SourceIndex(2) ---- ->>> class C { -1 >^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /**@internal*/ -2 > export class -3 > C -1 >Emitted(21, 5) Source(21, 20) + SourceIndex(2) -2 >Emitted(21, 11) Source(21, 33) + SourceIndex(2) -3 >Emitted(21, 12) Source(21, 34) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(22, 6) Source(21, 38) + SourceIndex(2) ---- ->>> function foo(): void; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^^-> -1-> - > /**@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(23, 5) Source(22, 20) + SourceIndex(2) -2 >Emitted(23, 14) Source(22, 36) + SourceIndex(2) -3 >Emitted(23, 17) Source(22, 39) + SourceIndex(2) -4 >Emitted(23, 26) Source(22, 44) + SourceIndex(2) ---- ->>> namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /**@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(24, 5) Source(23, 20) + SourceIndex(2) -2 >Emitted(24, 15) Source(23, 37) + SourceIndex(2) -3 >Emitted(24, 28) Source(23, 50) + SourceIndex(2) -4 >Emitted(24, 29) Source(23, 51) + SourceIndex(2) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(25, 9) Source(23, 53) + SourceIndex(2) -2 >Emitted(25, 15) Source(23, 66) + SourceIndex(2) -3 >Emitted(25, 16) Source(23, 67) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(26, 10) Source(23, 70) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(27, 6) Source(23, 72) + SourceIndex(2) ---- ->>> namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /**@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(28, 5) Source(24, 20) + SourceIndex(2) -2 >Emitted(28, 15) Source(24, 37) + SourceIndex(2) -3 >Emitted(28, 24) Source(24, 46) + SourceIndex(2) -4 >Emitted(28, 25) Source(24, 47) + SourceIndex(2) -5 >Emitted(28, 34) Source(24, 56) + SourceIndex(2) -6 >Emitted(28, 35) Source(24, 57) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(29, 9) Source(24, 59) + SourceIndex(2) -2 >Emitted(29, 15) Source(24, 72) + SourceIndex(2) -3 >Emitted(29, 24) Source(24, 81) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(30, 10) Source(24, 84) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(31, 6) Source(24, 86) + SourceIndex(2) ---- ->>> 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(32, 5) Source(25, 20) + SourceIndex(2) -2 >Emitted(32, 11) Source(25, 26) + SourceIndex(2) -3 >Emitted(32, 19) Source(25, 34) + SourceIndex(2) -4 >Emitted(32, 29) Source(25, 44) + SourceIndex(2) -5 >Emitted(32, 32) Source(25, 47) + SourceIndex(2) -6 >Emitted(32, 45) Source(25, 60) + SourceIndex(2) -7 >Emitted(32, 46) Source(25, 61) + SourceIndex(2) -8 >Emitted(32, 47) Source(25, 62) + SourceIndex(2) -9 >Emitted(32, 48) Source(25, 63) + SourceIndex(2) ---- ->>> type internalType = internalC; -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /**@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(33, 5) Source(26, 20) + SourceIndex(2) -2 >Emitted(33, 10) Source(26, 32) + SourceIndex(2) -3 >Emitted(33, 22) Source(26, 44) + SourceIndex(2) -4 >Emitted(33, 25) Source(26, 47) + SourceIndex(2) -5 >Emitted(33, 34) Source(26, 56) + SourceIndex(2) -6 >Emitted(33, 35) Source(26, 57) + SourceIndex(2) ---- ->>> const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /**@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(34, 5) Source(27, 27) + SourceIndex(2) -2 >Emitted(34, 11) Source(27, 33) + SourceIndex(2) -3 >Emitted(34, 24) Source(27, 46) + SourceIndex(2) -4 >Emitted(34, 29) Source(27, 51) + SourceIndex(2) -5 >Emitted(34, 30) Source(27, 52) + SourceIndex(2) ---- ->>> enum internalEnum { -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /**@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(35, 5) Source(28, 20) + SourceIndex(2) -2 >Emitted(35, 10) Source(28, 32) + SourceIndex(2) -3 >Emitted(35, 22) Source(28, 44) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(36, 9) Source(28, 47) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 48) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 48) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(37, 9) Source(28, 50) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 51) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 51) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(38, 9) Source(28, 53) + SourceIndex(2) -2 >Emitted(38, 10) Source(28, 54) + SourceIndex(2) -3 >Emitted(38, 14) Source(28, 54) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(39, 6) Source(28, 56) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(40, 2) Source(29, 2) + SourceIndex(2) ---- ->>>declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> - >/**@internal*/ -2 >class -3 > internalC -1->Emitted(41, 1) Source(30, 16) + SourceIndex(2) -2 >Emitted(41, 15) Source(30, 22) + SourceIndex(2) -3 >Emitted(41, 24) Source(30, 31) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(42, 2) Source(30, 34) + SourceIndex(2) ---- ->>>declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^ -5 > ^-> -1-> - >/**@internal*/ -2 >function -3 > internalfoo -4 > () {} -1->Emitted(43, 1) Source(31, 16) + SourceIndex(2) -2 >Emitted(43, 18) Source(31, 25) + SourceIndex(2) -3 >Emitted(43, 29) Source(31, 36) + SourceIndex(2) -4 >Emitted(43, 38) Source(31, 41) + SourceIndex(2) ---- ->>>declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -1-> - >/**@internal*/ -2 >namespace -3 > internalNamespace -4 > -1->Emitted(44, 1) Source(32, 16) + SourceIndex(2) -2 >Emitted(44, 19) Source(32, 26) + SourceIndex(2) -3 >Emitted(44, 36) Source(32, 43) + SourceIndex(2) -4 >Emitted(44, 37) Source(32, 44) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(45, 5) Source(32, 46) + SourceIndex(2) -2 >Emitted(45, 11) Source(32, 59) + SourceIndex(2) -3 >Emitted(45, 20) Source(32, 68) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(46, 6) Source(32, 71) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(47, 2) Source(32, 73) + SourceIndex(2) ---- ->>>declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - >/**@internal*/ -2 >namespace -3 > internalOther -4 > . -5 > something -6 > -1->Emitted(48, 1) Source(33, 16) + SourceIndex(2) -2 >Emitted(48, 19) Source(33, 26) + SourceIndex(2) -3 >Emitted(48, 32) Source(33, 39) + SourceIndex(2) -4 >Emitted(48, 33) Source(33, 40) + SourceIndex(2) -5 >Emitted(48, 42) Source(33, 49) + SourceIndex(2) -6 >Emitted(48, 43) Source(33, 50) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(49, 5) Source(33, 52) + SourceIndex(2) -2 >Emitted(49, 11) Source(33, 65) + SourceIndex(2) -3 >Emitted(49, 20) Source(33, 74) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(50, 6) Source(33, 77) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(51, 2) Source(33, 79) + SourceIndex(2) ---- ->>>import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/**@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(52, 1) Source(34, 16) + SourceIndex(2) -2 >Emitted(52, 8) Source(34, 23) + SourceIndex(2) -3 >Emitted(52, 22) Source(34, 37) + SourceIndex(2) -4 >Emitted(52, 25) Source(34, 40) + SourceIndex(2) -5 >Emitted(52, 42) Source(34, 57) + SourceIndex(2) -6 >Emitted(52, 43) Source(34, 58) + SourceIndex(2) -7 >Emitted(52, 52) Source(34, 67) + SourceIndex(2) -8 >Emitted(52, 53) Source(34, 68) + SourceIndex(2) ---- ->>>declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - >/**@internal*/ -2 >type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(53, 1) Source(35, 16) + SourceIndex(2) -2 >Emitted(53, 14) Source(35, 21) + SourceIndex(2) -3 >Emitted(53, 26) Source(35, 33) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 36) + SourceIndex(2) -5 >Emitted(53, 38) Source(35, 45) + SourceIndex(2) -6 >Emitted(53, 39) Source(35, 46) + SourceIndex(2) ---- ->>>declare const internalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > - >/**@internal*/ -2 > -3 > const -4 > internalConst -5 > = 10 -6 > ; -1 >Emitted(54, 1) Source(36, 16) + SourceIndex(2) -2 >Emitted(54, 9) Source(36, 16) + SourceIndex(2) -3 >Emitted(54, 15) Source(36, 22) + SourceIndex(2) -4 >Emitted(54, 28) Source(36, 35) + SourceIndex(2) -5 >Emitted(54, 33) Source(36, 40) + SourceIndex(2) -6 >Emitted(54, 34) Source(36, 41) + SourceIndex(2) ---- ->>>declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -1 > - >/**@internal*/ -2 >enum -3 > internalEnum -1 >Emitted(55, 1) Source(37, 16) + SourceIndex(2) -2 >Emitted(55, 14) Source(37, 21) + SourceIndex(2) -3 >Emitted(55, 26) Source(37, 33) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(56, 5) Source(37, 36) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 37) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 37) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(57, 5) Source(37, 39) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 40) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 40) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(58, 5) Source(37, 42) + SourceIndex(2) -2 >Emitted(58, 6) Source(37, 43) + SourceIndex(2) -3 >Emitted(58, 10) Source(37, 43) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 45) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(60, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(60, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(60, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] file changed its modified time -//// [/src/2/second-output.js.map] file changed its modified time -//// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3163,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1183,"kind":"internal"},{"pos":1185,"end":1233,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (110-3163) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (157-234) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (234-339) - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); ----------------------------------------------------------------------- -text: (341-373) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (373-765) - 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: (767-770) -} - ----------------------------------------------------------------------- -internal: (770-1183) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1185-1233) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3163, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 234, - "kind": "text" - }, - { - "pos": 234, - "end": 339, - "kind": "internal" - }, - { - "pos": 341, - "end": 373, - "kind": "text" - }, - { - "pos": 373, - "end": 765, - "kind": "internal" - }, - { - "pos": 767, - "end": 770, - "kind": "text" - }, - { - "pos": 770, - "end": 1183, - "kind": "internal" - }, - { - "pos": 1185, - "end": 1233, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 731 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] file written with same contents -//// [/src/first/bin/first-output.js.map] file written with same contents -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 252 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - >} -1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -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(16, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3163,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3163,"kind":"text"}]},{"pos":3163,"end":3199,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":317,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":317,"kind":"text"}]},{"pos":317,"end":336,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3163):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3163) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3163-3199) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-317):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-317) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (317-336) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3163, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3163, - "kind": "text" - } - ] - }, - { - "pos": 3163, - "end": 3199, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 317, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 317, - "kind": "text" - } - ] - }, - { - "pos": 317, - "end": 336, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 464 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js deleted file mode 100644 index c435bb7188009..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-jsdoc-style-comment.js +++ /dev/null @@ -1,956 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:08:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:08:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:08:00 AM] Building project '/src/first/tsconfig.json'... - -[12:08:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:08:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:08:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] file written with same contents -//// [/src/first/bin/first-output.js.map] file written with same contents -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 252 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /**@internal*/ constructor() { } - > /**@internal*/ prop: string; - > /**@internal*/ method() { } - > /**@internal*/ get c() { return 10; } - > /**@internal*/ set c(val: number) { } - >} -1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -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(16, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3163,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":3163,"kind":"text"}]},{"pos":3163,"end":3199,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":317,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":317,"kind":"text"}]},{"pos":317,"end":336,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (110-3163):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (110-3163) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3163-3199) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-317):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-317) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (317-336) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3163, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 110, - "end": 3163, - "kind": "text" - } - ] - }, - { - "pos": 3163, - "end": 3199, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 317, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 317, - "kind": "text" - } - ] - }, - { - "pos": 317, - "end": 336, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 724 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index d0c3fefd8d0d1..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,2059 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:12:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:12:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:12:00 AM] Building project '/src/first/tsconfig.json'... - -[12:12:00 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:12:00 AM] Updating output of project '/src/second/tsconfig.json'... - -[12:12:00 AM] Updating unchanged output timestamps of project '/src/second/tsconfig.json'... - -[12:12:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed - -[12:12:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:12:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 2, - "/src/2/second-output.js": 2, - "/src/2/second-output.js.map": 2, - "/src/2/second-output.d.ts": 2, - "/src/2/second-output.d.ts.map": 2, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1 -} - -//// [/src/2/second-output.d.ts] file changed its modified time -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(15, 5) Source(15, 19) + SourceIndex(2) -2 >Emitted(15, 9) Source(15, 23) + SourceIndex(2) -3 >Emitted(15, 11) Source(15, 25) + SourceIndex(2) -4 >Emitted(15, 17) Source(15, 31) + SourceIndex(2) -5 >Emitted(15, 18) Source(15, 32) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) ---- ->>> get c(): number; -1->^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^ -6 > ^ -7 > ^^^^-> -1->() { } - > /*@internal*/ -2 > get -3 > c -4 > () { return 10; } - > /*@internal*/ set c(val: -5 > number -6 > -1->Emitted(17, 5) Source(17, 19) + SourceIndex(2) -2 >Emitted(17, 9) Source(17, 23) + SourceIndex(2) -3 >Emitted(17, 10) Source(17, 24) + SourceIndex(2) -4 >Emitted(17, 14) Source(18, 30) + SourceIndex(2) -5 >Emitted(17, 20) Source(18, 36) + SourceIndex(2) -6 >Emitted(17, 21) Source(17, 41) + SourceIndex(2) ---- ->>> set c(val: number); -1->^^^^ -2 > ^^^^ -3 > ^ -4 > ^ -5 > ^^^^^ -6 > ^^^^^^ -7 > ^^ -1-> - > /*@internal*/ -2 > set -3 > c -4 > ( -5 > val: -6 > number -7 > ) { } -1->Emitted(18, 5) Source(18, 19) + SourceIndex(2) -2 >Emitted(18, 9) Source(18, 23) + SourceIndex(2) -3 >Emitted(18, 10) Source(18, 24) + SourceIndex(2) -4 >Emitted(18, 11) Source(18, 25) + SourceIndex(2) -5 >Emitted(18, 16) Source(18, 30) + SourceIndex(2) -6 >Emitted(18, 22) Source(18, 36) + SourceIndex(2) -7 >Emitted(18, 24) Source(18, 41) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(20, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(20, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(20, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(20, 27) Source(20, 19) + SourceIndex(2) ---- ->>> class C { -1 >^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /*@internal*/ -2 > export class -3 > C -1 >Emitted(21, 5) Source(21, 19) + SourceIndex(2) -2 >Emitted(21, 11) Source(21, 32) + SourceIndex(2) -3 >Emitted(21, 12) Source(21, 33) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(22, 6) Source(21, 37) + SourceIndex(2) ---- ->>> function foo(): void; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(23, 5) Source(22, 19) + SourceIndex(2) -2 >Emitted(23, 14) Source(22, 35) + SourceIndex(2) -3 >Emitted(23, 17) Source(22, 38) + SourceIndex(2) -4 >Emitted(23, 26) Source(22, 43) + SourceIndex(2) ---- ->>> namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(24, 5) Source(23, 19) + SourceIndex(2) -2 >Emitted(24, 15) Source(23, 36) + SourceIndex(2) -3 >Emitted(24, 28) Source(23, 49) + SourceIndex(2) -4 >Emitted(24, 29) Source(23, 50) + SourceIndex(2) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(25, 9) Source(23, 52) + SourceIndex(2) -2 >Emitted(25, 15) Source(23, 65) + SourceIndex(2) -3 >Emitted(25, 16) Source(23, 66) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(26, 10) Source(23, 69) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(27, 6) Source(23, 71) + SourceIndex(2) ---- ->>> namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(28, 5) Source(24, 19) + SourceIndex(2) -2 >Emitted(28, 15) Source(24, 36) + SourceIndex(2) -3 >Emitted(28, 24) Source(24, 45) + SourceIndex(2) -4 >Emitted(28, 25) Source(24, 46) + SourceIndex(2) -5 >Emitted(28, 34) Source(24, 55) + SourceIndex(2) -6 >Emitted(28, 35) Source(24, 56) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(29, 9) Source(24, 58) + SourceIndex(2) -2 >Emitted(29, 15) Source(24, 71) + SourceIndex(2) -3 >Emitted(29, 24) Source(24, 80) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(30, 10) Source(24, 83) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(31, 6) Source(24, 85) + SourceIndex(2) ---- ->>> 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(32, 5) Source(25, 19) + SourceIndex(2) -2 >Emitted(32, 11) Source(25, 25) + SourceIndex(2) -3 >Emitted(32, 19) Source(25, 33) + SourceIndex(2) -4 >Emitted(32, 29) Source(25, 43) + SourceIndex(2) -5 >Emitted(32, 32) Source(25, 46) + SourceIndex(2) -6 >Emitted(32, 45) Source(25, 59) + SourceIndex(2) -7 >Emitted(32, 46) Source(25, 60) + SourceIndex(2) -8 >Emitted(32, 47) Source(25, 61) + SourceIndex(2) -9 >Emitted(32, 48) Source(25, 62) + SourceIndex(2) ---- ->>> type internalType = internalC; -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /*@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(33, 5) Source(26, 19) + SourceIndex(2) -2 >Emitted(33, 10) Source(26, 31) + SourceIndex(2) -3 >Emitted(33, 22) Source(26, 43) + SourceIndex(2) -4 >Emitted(33, 25) Source(26, 46) + SourceIndex(2) -5 >Emitted(33, 34) Source(26, 55) + SourceIndex(2) -6 >Emitted(33, 35) Source(26, 56) + SourceIndex(2) ---- ->>> const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /*@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(34, 5) Source(27, 26) + SourceIndex(2) -2 >Emitted(34, 11) Source(27, 32) + SourceIndex(2) -3 >Emitted(34, 24) Source(27, 45) + SourceIndex(2) -4 >Emitted(34, 29) Source(27, 50) + SourceIndex(2) -5 >Emitted(34, 30) Source(27, 51) + SourceIndex(2) ---- ->>> enum internalEnum { -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(35, 5) Source(28, 19) + SourceIndex(2) -2 >Emitted(35, 10) Source(28, 31) + SourceIndex(2) -3 >Emitted(35, 22) Source(28, 43) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(36, 9) Source(28, 46) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 47) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 47) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(37, 9) Source(28, 49) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 50) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 50) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(38, 9) Source(28, 52) + SourceIndex(2) -2 >Emitted(38, 10) Source(28, 53) + SourceIndex(2) -3 >Emitted(38, 14) Source(28, 53) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(39, 6) Source(28, 55) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(40, 2) Source(29, 2) + SourceIndex(2) ---- ->>>declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 >class -3 > internalC -1->Emitted(41, 1) Source(30, 15) + SourceIndex(2) -2 >Emitted(41, 15) Source(30, 21) + SourceIndex(2) -3 >Emitted(41, 24) Source(30, 30) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(42, 2) Source(30, 33) + SourceIndex(2) ---- ->>>declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^ -5 > ^-> -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () {} -1->Emitted(43, 1) Source(31, 15) + SourceIndex(2) -2 >Emitted(43, 18) Source(31, 24) + SourceIndex(2) -3 >Emitted(43, 29) Source(31, 35) + SourceIndex(2) -4 >Emitted(43, 38) Source(31, 40) + SourceIndex(2) ---- ->>>declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > -1->Emitted(44, 1) Source(32, 15) + SourceIndex(2) -2 >Emitted(44, 19) Source(32, 25) + SourceIndex(2) -3 >Emitted(44, 36) Source(32, 42) + SourceIndex(2) -4 >Emitted(44, 37) Source(32, 43) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(45, 5) Source(32, 45) + SourceIndex(2) -2 >Emitted(45, 11) Source(32, 58) + SourceIndex(2) -3 >Emitted(45, 20) Source(32, 67) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(46, 6) Source(32, 70) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(47, 2) Source(32, 72) + SourceIndex(2) ---- ->>>declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalOther -4 > . -5 > something -6 > -1->Emitted(48, 1) Source(33, 15) + SourceIndex(2) -2 >Emitted(48, 19) Source(33, 25) + SourceIndex(2) -3 >Emitted(48, 32) Source(33, 38) + SourceIndex(2) -4 >Emitted(48, 33) Source(33, 39) + SourceIndex(2) -5 >Emitted(48, 42) Source(33, 48) + SourceIndex(2) -6 >Emitted(48, 43) Source(33, 49) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(49, 5) Source(33, 51) + SourceIndex(2) -2 >Emitted(49, 11) Source(33, 64) + SourceIndex(2) -3 >Emitted(49, 20) Source(33, 73) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(50, 6) Source(33, 76) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(51, 2) Source(33, 78) + SourceIndex(2) ---- ->>>import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(52, 1) Source(34, 15) + SourceIndex(2) -2 >Emitted(52, 8) Source(34, 22) + SourceIndex(2) -3 >Emitted(52, 22) Source(34, 36) + SourceIndex(2) -4 >Emitted(52, 25) Source(34, 39) + SourceIndex(2) -5 >Emitted(52, 42) Source(34, 56) + SourceIndex(2) -6 >Emitted(52, 43) Source(34, 57) + SourceIndex(2) -7 >Emitted(52, 52) Source(34, 66) + SourceIndex(2) -8 >Emitted(52, 53) Source(34, 67) + SourceIndex(2) ---- ->>>declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 >type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(53, 1) Source(35, 15) + SourceIndex(2) -2 >Emitted(53, 14) Source(35, 20) + SourceIndex(2) -3 >Emitted(53, 26) Source(35, 32) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 35) + SourceIndex(2) -5 >Emitted(53, 38) Source(35, 44) + SourceIndex(2) -6 >Emitted(53, 39) Source(35, 45) + SourceIndex(2) ---- ->>>declare const internalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 > -3 > const -4 > internalConst -5 > = 10 -6 > ; -1 >Emitted(54, 1) Source(36, 15) + SourceIndex(2) -2 >Emitted(54, 9) Source(36, 15) + SourceIndex(2) -3 >Emitted(54, 15) Source(36, 21) + SourceIndex(2) -4 >Emitted(54, 28) Source(36, 34) + SourceIndex(2) -5 >Emitted(54, 33) Source(36, 39) + SourceIndex(2) -6 >Emitted(54, 34) Source(36, 40) + SourceIndex(2) ---- ->>>declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -1 > - >/*@internal*/ -2 >enum -3 > internalEnum -1 >Emitted(55, 1) Source(37, 15) + SourceIndex(2) -2 >Emitted(55, 14) Source(37, 20) + SourceIndex(2) -3 >Emitted(55, 26) Source(37, 32) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(56, 5) Source(37, 35) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 36) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 36) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(57, 5) Source(37, 38) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 39) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 39) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(58, 5) Source(37, 41) + SourceIndex(2) -2 >Emitted(58, 6) Source(37, 42) + SourceIndex(2) -3 >Emitted(58, 10) Source(37, 42) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 44) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(60, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(60, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(60, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] file changed its modified time -//// [/src/2/second-output.js.map] file changed its modified time -//// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3163,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1183,"kind":"internal"},{"pos":1185,"end":1233,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (110-3163) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (157-234) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (234-339) - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); ----------------------------------------------------------------------- -text: (341-373) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (373-765) - 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: (767-770) -} - ----------------------------------------------------------------------- -internal: (770-1183) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1185-1233) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3163, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 234, - "kind": "text" - }, - { - "pos": 234, - "end": 339, - "kind": "internal" - }, - { - "pos": 341, - "end": 373, - "kind": "text" - }, - { - "pos": 373, - "end": 765, - "kind": "internal" - }, - { - "pos": 767, - "end": 770, - "kind": "text" - }, - { - "pos": 770, - "end": 1183, - "kind": "internal" - }, - { - "pos": 1185, - "end": 1233, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 731 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] file written with same contents -//// [/src/first/bin/first-output.js.map] file written with same contents -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 252 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} -1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -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(16, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3163,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3163,"kind":"text"}]},{"pos":3163,"end":3199,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":317,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":317,"kind":"text"}]},{"pos":317,"end":336,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3163):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3163) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3163-3199) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-317):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-317) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (317-336) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3163, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3163, - "kind": "text" - } - ] - }, - { - "pos": 3163, - "end": 3199, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 317, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 317, - "kind": "text" - } - ] - }, - { - "pos": 317, - "end": 336, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 464 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js deleted file mode 100644 index 98a7f00576684..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ /dev/null @@ -1,2037 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:08:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:08:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:08:00 AM] Building project '/src/first/tsconfig.json'... - -[12:08:00 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:08:00 AM] Updating output of project '/src/second/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/second/tsconfig.json'... - -[12:08:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed - -[12:08:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/2/second-output.d.ts] file changed its modified time -//// [/src/2/second-output.d.ts.map] -{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} - -//// [/src/2/second-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: second-output.d.ts -mapUrl: second-output.d.ts.map -sourceRoot: -sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>> constructor(); ->>> prop: string; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^^^^ -5 > ^ -6 > ^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ -2 > prop -3 > : -4 > string -5 > ; -1 >Emitted(15, 5) Source(15, 19) + SourceIndex(2) -2 >Emitted(15, 9) Source(15, 23) + SourceIndex(2) -3 >Emitted(15, 11) Source(15, 25) + SourceIndex(2) -4 >Emitted(15, 17) Source(15, 31) + SourceIndex(2) -5 >Emitted(15, 18) Source(15, 32) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) ---- ->>> get c(): number; -1->^^^^ -2 > ^^^^ -3 > ^ -4 > ^^^^ -5 > ^^^^^^ -6 > ^ -7 > ^^^^-> -1->() { } - > /*@internal*/ -2 > get -3 > c -4 > () { return 10; } - > /*@internal*/ set c(val: -5 > number -6 > -1->Emitted(17, 5) Source(17, 19) + SourceIndex(2) -2 >Emitted(17, 9) Source(17, 23) + SourceIndex(2) -3 >Emitted(17, 10) Source(17, 24) + SourceIndex(2) -4 >Emitted(17, 14) Source(18, 30) + SourceIndex(2) -5 >Emitted(17, 20) Source(18, 36) + SourceIndex(2) -6 >Emitted(17, 21) Source(17, 41) + SourceIndex(2) ---- ->>> set c(val: number); -1->^^^^ -2 > ^^^^ -3 > ^ -4 > ^ -5 > ^^^^^ -6 > ^^^^^^ -7 > ^^ -1-> - > /*@internal*/ -2 > set -3 > c -4 > ( -5 > val: -6 > number -7 > ) { } -1->Emitted(18, 5) Source(18, 19) + SourceIndex(2) -2 >Emitted(18, 9) Source(18, 23) + SourceIndex(2) -3 >Emitted(18, 10) Source(18, 24) + SourceIndex(2) -4 >Emitted(18, 11) Source(18, 25) + SourceIndex(2) -5 >Emitted(18, 16) Source(18, 30) + SourceIndex(2) -6 >Emitted(18, 22) Source(18, 36) + SourceIndex(2) -7 >Emitted(18, 24) Source(18, 41) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(20, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(20, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(20, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(20, 27) Source(20, 19) + SourceIndex(2) ---- ->>> class C { -1 >^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ - > /*@internal*/ -2 > export class -3 > C -1 >Emitted(21, 5) Source(21, 19) + SourceIndex(2) -2 >Emitted(21, 11) Source(21, 32) + SourceIndex(2) -3 >Emitted(21, 12) Source(21, 33) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(22, 6) Source(21, 37) + SourceIndex(2) ---- ->>> function foo(): void; -1->^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^ -5 > ^^^^^-> -1-> - > /*@internal*/ -2 > export function -3 > foo -4 > () {} -1->Emitted(23, 5) Source(22, 19) + SourceIndex(2) -2 >Emitted(23, 14) Source(22, 35) + SourceIndex(2) -3 >Emitted(23, 17) Source(22, 38) + SourceIndex(2) -4 >Emitted(23, 26) Source(22, 43) + SourceIndex(2) ---- ->>> namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someNamespace -4 > -1->Emitted(24, 5) Source(23, 19) + SourceIndex(2) -2 >Emitted(24, 15) Source(23, 36) + SourceIndex(2) -3 >Emitted(24, 28) Source(23, 49) + SourceIndex(2) -4 >Emitted(24, 29) Source(23, 50) + SourceIndex(2) ---- ->>> class C { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^ -1 >{ -2 > export class -3 > C -1 >Emitted(25, 9) Source(23, 52) + SourceIndex(2) -2 >Emitted(25, 15) Source(23, 65) + SourceIndex(2) -3 >Emitted(25, 16) Source(23, 66) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(26, 10) Source(23, 69) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(27, 6) Source(23, 71) + SourceIndex(2) ---- ->>> namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^ -3 > ^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - > /*@internal*/ -2 > export namespace -3 > someOther -4 > . -5 > something -6 > -1->Emitted(28, 5) Source(24, 19) + SourceIndex(2) -2 >Emitted(28, 15) Source(24, 36) + SourceIndex(2) -3 >Emitted(28, 24) Source(24, 45) + SourceIndex(2) -4 >Emitted(28, 25) Source(24, 46) + SourceIndex(2) -5 >Emitted(28, 34) Source(24, 55) + SourceIndex(2) -6 >Emitted(28, 35) Source(24, 56) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(29, 9) Source(24, 58) + SourceIndex(2) -2 >Emitted(29, 15) Source(24, 71) + SourceIndex(2) -3 >Emitted(29, 24) Source(24, 80) + SourceIndex(2) ---- ->>> } -1 >^^^^^^^^^ -1 > {} -1 >Emitted(30, 10) Source(24, 83) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(31, 6) Source(24, 85) + SourceIndex(2) ---- ->>> 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(32, 5) Source(25, 19) + SourceIndex(2) -2 >Emitted(32, 11) Source(25, 25) + SourceIndex(2) -3 >Emitted(32, 19) Source(25, 33) + SourceIndex(2) -4 >Emitted(32, 29) Source(25, 43) + SourceIndex(2) -5 >Emitted(32, 32) Source(25, 46) + SourceIndex(2) -6 >Emitted(32, 45) Source(25, 59) + SourceIndex(2) -7 >Emitted(32, 46) Source(25, 60) + SourceIndex(2) -8 >Emitted(32, 47) Source(25, 61) + SourceIndex(2) -9 >Emitted(32, 48) Source(25, 62) + SourceIndex(2) ---- ->>> type internalType = internalC; -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - > /*@internal*/ -2 > export type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(33, 5) Source(26, 19) + SourceIndex(2) -2 >Emitted(33, 10) Source(26, 31) + SourceIndex(2) -3 >Emitted(33, 22) Source(26, 43) + SourceIndex(2) -4 >Emitted(33, 25) Source(26, 46) + SourceIndex(2) -5 >Emitted(33, 34) Source(26, 55) + SourceIndex(2) -6 >Emitted(33, 35) Source(26, 56) + SourceIndex(2) ---- ->>> const internalConst = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^^^^^ -5 > ^ -1 > - > /*@internal*/ export -2 > const -3 > internalConst -4 > = 10 -5 > ; -1 >Emitted(34, 5) Source(27, 26) + SourceIndex(2) -2 >Emitted(34, 11) Source(27, 32) + SourceIndex(2) -3 >Emitted(34, 24) Source(27, 45) + SourceIndex(2) -4 >Emitted(34, 29) Source(27, 50) + SourceIndex(2) -5 >Emitted(34, 30) Source(27, 51) + SourceIndex(2) ---- ->>> enum internalEnum { -1 >^^^^ -2 > ^^^^^ -3 > ^^^^^^^^^^^^ -1 > - > /*@internal*/ -2 > export enum -3 > internalEnum -1 >Emitted(35, 5) Source(28, 19) + SourceIndex(2) -2 >Emitted(35, 10) Source(28, 31) + SourceIndex(2) -3 >Emitted(35, 22) Source(28, 43) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(36, 9) Source(28, 46) + SourceIndex(2) -2 >Emitted(36, 10) Source(28, 47) + SourceIndex(2) -3 >Emitted(36, 14) Source(28, 47) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(37, 9) Source(28, 49) + SourceIndex(2) -2 >Emitted(37, 10) Source(28, 50) + SourceIndex(2) -3 >Emitted(37, 14) Source(28, 50) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(38, 9) Source(28, 52) + SourceIndex(2) -2 >Emitted(38, 10) Source(28, 53) + SourceIndex(2) -3 >Emitted(38, 14) Source(28, 53) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > } -1 >Emitted(39, 6) Source(28, 55) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(40, 2) Source(29, 2) + SourceIndex(2) ---- ->>>declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^ -1-> - >/*@internal*/ -2 >class -3 > internalC -1->Emitted(41, 1) Source(30, 15) + SourceIndex(2) -2 >Emitted(41, 15) Source(30, 21) + SourceIndex(2) -3 >Emitted(41, 24) Source(30, 30) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(42, 2) Source(30, 33) + SourceIndex(2) ---- ->>>declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^ -4 > ^^^^^^^^^ -5 > ^-> -1-> - >/*@internal*/ -2 >function -3 > internalfoo -4 > () {} -1->Emitted(43, 1) Source(31, 15) + SourceIndex(2) -2 >Emitted(43, 18) Source(31, 24) + SourceIndex(2) -3 >Emitted(43, 29) Source(31, 35) + SourceIndex(2) -4 >Emitted(43, 38) Source(31, 40) + SourceIndex(2) ---- ->>>declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -4 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalNamespace -4 > -1->Emitted(44, 1) Source(32, 15) + SourceIndex(2) -2 >Emitted(44, 19) Source(32, 25) + SourceIndex(2) -3 >Emitted(44, 36) Source(32, 42) + SourceIndex(2) -4 >Emitted(44, 37) Source(32, 43) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(45, 5) Source(32, 45) + SourceIndex(2) -2 >Emitted(45, 11) Source(32, 58) + SourceIndex(2) -3 >Emitted(45, 20) Source(32, 67) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(46, 6) Source(32, 70) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(47, 2) Source(32, 72) + SourceIndex(2) ---- ->>>declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^ -4 > ^ -5 > ^^^^^^^^^ -6 > ^ -1-> - >/*@internal*/ -2 >namespace -3 > internalOther -4 > . -5 > something -6 > -1->Emitted(48, 1) Source(33, 15) + SourceIndex(2) -2 >Emitted(48, 19) Source(33, 25) + SourceIndex(2) -3 >Emitted(48, 32) Source(33, 38) + SourceIndex(2) -4 >Emitted(48, 33) Source(33, 39) + SourceIndex(2) -5 >Emitted(48, 42) Source(33, 48) + SourceIndex(2) -6 >Emitted(48, 43) Source(33, 49) + SourceIndex(2) ---- ->>> class someClass { -1 >^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^ -1 >{ -2 > export class -3 > someClass -1 >Emitted(49, 5) Source(33, 51) + SourceIndex(2) -2 >Emitted(49, 11) Source(33, 64) + SourceIndex(2) -3 >Emitted(49, 20) Source(33, 73) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -1 > {} -1 >Emitted(50, 6) Source(33, 76) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(51, 2) Source(33, 78) + SourceIndex(2) ---- ->>>import internalImport = internalNamespace.someClass; -1-> -2 >^^^^^^^ -3 > ^^^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - >/*@internal*/ -2 >import -3 > internalImport -4 > = -5 > internalNamespace -6 > . -7 > someClass -8 > ; -1->Emitted(52, 1) Source(34, 15) + SourceIndex(2) -2 >Emitted(52, 8) Source(34, 22) + SourceIndex(2) -3 >Emitted(52, 22) Source(34, 36) + SourceIndex(2) -4 >Emitted(52, 25) Source(34, 39) + SourceIndex(2) -5 >Emitted(52, 42) Source(34, 56) + SourceIndex(2) -6 >Emitted(52, 43) Source(34, 57) + SourceIndex(2) -7 >Emitted(52, 52) Source(34, 66) + SourceIndex(2) -8 >Emitted(52, 53) Source(34, 67) + SourceIndex(2) ---- ->>>declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -4 > ^^^ -5 > ^^^^^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 >type -3 > internalType -4 > = -5 > internalC -6 > ; -1 >Emitted(53, 1) Source(35, 15) + SourceIndex(2) -2 >Emitted(53, 14) Source(35, 20) + SourceIndex(2) -3 >Emitted(53, 26) Source(35, 32) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 35) + SourceIndex(2) -5 >Emitted(53, 38) Source(35, 44) + SourceIndex(2) -6 >Emitted(53, 39) Source(35, 45) + SourceIndex(2) ---- ->>>declare const internalConst = 10; -1 > -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^ -6 > ^ -1 > - >/*@internal*/ -2 > -3 > const -4 > internalConst -5 > = 10 -6 > ; -1 >Emitted(54, 1) Source(36, 15) + SourceIndex(2) -2 >Emitted(54, 9) Source(36, 15) + SourceIndex(2) -3 >Emitted(54, 15) Source(36, 21) + SourceIndex(2) -4 >Emitted(54, 28) Source(36, 34) + SourceIndex(2) -5 >Emitted(54, 33) Source(36, 39) + SourceIndex(2) -6 >Emitted(54, 34) Source(36, 40) + SourceIndex(2) ---- ->>>declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^ -1 > - >/*@internal*/ -2 >enum -3 > internalEnum -1 >Emitted(55, 1) Source(37, 15) + SourceIndex(2) -2 >Emitted(55, 14) Source(37, 20) + SourceIndex(2) -3 >Emitted(55, 26) Source(37, 32) + SourceIndex(2) ---- ->>> a = 0, -1 >^^^^ -2 > ^ -3 > ^^^^ -4 > ^^-> -1 > { -2 > a -3 > -1 >Emitted(56, 5) Source(37, 35) + SourceIndex(2) -2 >Emitted(56, 6) Source(37, 36) + SourceIndex(2) -3 >Emitted(56, 10) Source(37, 36) + SourceIndex(2) ---- ->>> b = 1, -1->^^^^ -2 > ^ -3 > ^^^^ -4 > ^-> -1->, -2 > b -3 > -1->Emitted(57, 5) Source(37, 38) + SourceIndex(2) -2 >Emitted(57, 6) Source(37, 39) + SourceIndex(2) -3 >Emitted(57, 10) Source(37, 39) + SourceIndex(2) ---- ->>> c = 2 -1->^^^^ -2 > ^ -3 > ^^^^ -1->, -2 > c -3 > -1->Emitted(58, 5) Source(37, 41) + SourceIndex(2) -2 >Emitted(58, 6) Source(37, 42) + SourceIndex(2) -3 >Emitted(58, 10) Source(37, 42) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 44) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/2/second-output.d.ts -sourceFile:../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(60, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(60, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(60, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) ---- ->>>//# sourceMappingURL=second-output.d.ts.map - -//// [/src/2/second-output.js] file changed its modified time -//// [/src/2/second-output.js.map] file changed its modified time -//// [/src/2/second-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3527,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1183,"kind":"internal"},{"pos":1185,"end":1233,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/2/second-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/2/second-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -text: (110-3527) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -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: false, - configurable: true - }); - return 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 || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (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 || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - -====================================================================== -====================================================================== -File:: /src/2/second-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -text: (157-234) -declare namespace N { -} -declare namespace N { -} -declare class normalC { - ----------------------------------------------------------------------- -internal: (234-339) - constructor(); - prop: string; - method(): void; - get c(): number; - set c(val: number); ----------------------------------------------------------------------- -text: (341-373) -} -declare namespace normalN { - ----------------------------------------------------------------------- -internal: (373-765) - 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: (767-770) -} - ----------------------------------------------------------------------- -internal: (770-1183) -declare class internalC { -} -declare function internalfoo(): void; -declare namespace internalNamespace { - class someClass { - } -} -declare namespace internalOther.something { - class someClass { - } -} -import internalImport = internalNamespace.someClass; -declare type internalType = internalC; -declare const internalConst = 10; -declare enum internalEnum { - a = 0, - b = 1, - c = 2 -} ----------------------------------------------------------------------- -text: (1185-1233) -declare class C { - doSomething(): void; -} - -====================================================================== - -//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../second", - "sourceFiles": [ - "../second/second_part1.ts", - "../second/second_part2.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3527, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 234, - "kind": "text" - }, - { - "pos": 234, - "end": 339, - "kind": "internal" - }, - { - "pos": 341, - "end": 373, - "kind": "text" - }, - { - "pos": 373, - "end": 765, - "kind": "internal" - }, - { - "pos": 767, - "end": 770, - "kind": "text" - }, - { - "pos": 770, - "end": 1183, - "kind": "internal" - }, - { - "pos": 1185, - "end": 1233, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 731 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] file written with same contents -//// [/src/first/bin/first-output.js.map] file written with same contents -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 252 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} -1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -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(16, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3527,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3527,"kind":"text"}]},{"pos":3527,"end":3563,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":317,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":317,"kind":"text"}]},{"pos":317,"end":336,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-3527):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-3527) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -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: false, - configurable: true - }); - return 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 || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (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 || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3527-3563) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-317):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-317) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (317-336) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 3527, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 0, - "end": 3527, - "kind": "text" - } - ] - }, - { - "pos": 3527, - "end": 3563, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 317, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 317, - "kind": "text" - } - ] - }, - { - "pos": 317, - "end": 336, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 464 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js deleted file mode 100644 index ac35dbe39677c..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal-with-comments-emit-enabled.js +++ /dev/null @@ -1,956 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:08:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:08:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:08:00 AM] Building project '/src/first/tsconfig.json'... - -[12:08:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:08:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:08:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] file written with same contents -//// [/src/first/bin/first-output.js.map] file written with same contents -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 252 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} -1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -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(16, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3527,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":3527,"kind":"text"}]},{"pos":3527,"end":3563,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":317,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":317,"kind":"text"}]},{"pos":317,"end":336,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (110-3527):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (110-3527) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -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: false, - configurable: true - }); - return 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 || (normalN = {})); -/*@internal*/ var internalC = /** @class */ (function () { - function internalC() { - } - return internalC; -}()); -/*@internal*/ function internalfoo() { } -/*@internal*/ var internalNamespace; -(function (internalNamespace) { - var someClass = /** @class */ (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (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 || (internalOther = {})); -/*@internal*/ var internalImport = internalNamespace.someClass; -/*@internal*/ var internalConst = 10; -/*@internal*/ var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = /** @class */ (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3527-3563) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-317):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-317) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (317-336) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3527, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 110, - "end": 3527, - "kind": "text" - } - ] - }, - { - "pos": 3527, - "end": 3563, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 317, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 317, - "kind": "text" - } - ] - }, - { - "pos": 317, - "end": 336, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 724 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js deleted file mode 100644 index 62c0ca5e1c0e1..0000000000000 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/stripInternal.js +++ /dev/null @@ -1,978 +0,0 @@ -Input:: -//// [/src/first/first_PART1.ts] -interface TheFirst { - none: any; -} - -const s = "Hello, world"; - -interface NoJsForHereEither { - none: any; -} - -console.log(s); - - - - -Output:: -/lib/tsc --b /src/third --verbose -[12:12:00 AM] Projects in this build: - * src/first/tsconfig.json - * src/second/tsconfig.json - * src/third/tsconfig.json - -[12:12:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' - -[12:12:00 AM] Building project '/src/first/tsconfig.json'... - -[12:12:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' - -[12:12:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed - -[12:12:00 AM] Updating output of project '/src/third/tsconfig.json'... - -[12:12:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... - -exitCode:: ExitStatus.Success -readFiles:: { - "/src/third/tsconfig.json": 1, - "/src/first/tsconfig.json": 1, - "/src/second/tsconfig.json": 1, - "/src/first/first_PART1.ts": 1, - "/src/first/first_part2.ts": 1, - "/src/first/first_part3.ts": 1, - "/src/first/bin/first-output.d.ts": 1, - "/src/2/second-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, - "/src/third/thirdjs/output/third-output.js": 1, - "/src/third/thirdjs/output/third-output.js.map": 1, - "/src/third/thirdjs/output/third-output.d.ts": 1, - "/src/third/thirdjs/output/third-output.d.ts.map": 1, - "/src/first/bin/first-output.tsbuildinfo": 1, - "/src/first/bin/first-output.js": 1, - "/src/2/second-output.js": 1, - "/src/first/bin/first-output.js.map": 1, - "/src/2/second-output.js.map": 1, - "/src/2/second-output.d.ts": 1, - "/src/first/bin/first-output.d.ts.map": 1, - "/src/2/second-output.d.ts.map": 1 -} - -//// [/src/first/bin/first-output.d.ts] file written with same contents -//// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} - -//// [/src/first/bin/first-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: first-output.d.ts -mapUrl: first-output.d.ts.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.d.ts -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^-> -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.d.ts.map - -//// [/src/first/bin/first-output.js] file written with same contents -//// [/src/first/bin/first-output.js.map] file written with same contents -//// [/src/first/bin/first-output.js.map.baseline.txt] -=================================================================== -JsFile: first-output.js -mapUrl: first-output.js.map -sourceRoot: -sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_PART1.ts -------------------------------------------------------------------- ->>>var s = "Hello, world"; -1 > -2 >^^^^ -3 > ^ -4 > ^^^ -5 > ^^^^^^^^^^^^^^ -6 > ^ -1 >interface TheFirst { - > none: any; - >} - > - > -2 >const -3 > s -4 > = -5 > "Hello, world" -6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) ---- ->>>console.log(s); -1 > -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^ -8 > ^ -9 > ^^^-> -1 > - > - >interface NoJsForHereEither { - > none: any; - >} - > - > -2 >console -3 > . -4 > log -5 > ( -6 > s -7 > ) -8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part2.ts -------------------------------------------------------------------- ->>>console.log(f()); -1-> -2 >^^^^^^^ -3 > ^ -4 > ^^^ -5 > ^ -6 > ^ -7 > ^^ -8 > ^ -9 > ^ -1-> -2 >console -3 > . -4 > log -5 > ( -6 > f -7 > () -8 > ) -9 > ; -1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/first/bin/first-output.js -sourceFile:../first_part3.ts -------------------------------------------------------------------- ->>>function f() { -1 > -2 >^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^^-> -1 > -2 >function -3 > f -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) ---- ->>> return "JS does hoists"; -1->^^^^ -2 > ^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -1->() { - > -2 > return -3 > "JS does hoists" -4 > ; -1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) ---- ->>>} -1 > -2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - > -2 >} -1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) ---- ->>>//# sourceMappingURL=first-output.js.map - -//// [/src/first/bin/first-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/first/bin/first-output.js ----------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - -====================================================================== -====================================================================== -File:: /src/first/bin/first-output.d.ts ----------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - -====================================================================== - -//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "..", - "sourceFiles": [ - "../first_PART1.ts", - "../first_part2.ts", - "../first_part3.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 252 -} - -//// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} -declare var c: C; -//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} - -//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] -=================================================================== -JsFile: third-output.d.ts -mapUrl: third-output.d.ts.map -sourceRoot: -sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts -=================================================================== -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_PART1.ts -------------------------------------------------------------------- ->>>interface TheFirst { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^ -1 > -2 >interface -3 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) -2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) -3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) -4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) -5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) ---- ->>>declare const s = "Hello, world"; -1-> -2 >^^^^^^^^ -3 > ^^^^^^ -4 > ^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > - > -2 > -3 > const -4 > s -5 > = "Hello, world" -6 > ; -1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) -3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) -4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) -5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) -6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) ---- ->>>interface NoJsForHereEither { -1 > -2 >^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^ -1 > - > - > -2 >interface -3 > NoJsForHereEither -1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) -2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) -3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) ---- ->>> none: any; -1 >^^^^ -2 > ^^^^ -3 > ^^ -4 > ^^^ -5 > ^ -1 > { - > -2 > none -3 > : -4 > any -5 > ; -1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) -3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) -4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) -5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > - >} -1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../first/first_part3.ts -------------------------------------------------------------------- ->>>declare function f(): string; -1-> -2 >^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^ -1-> -2 >function -3 > f -4 > () { - > return "JS does hoists"; - > } -1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) -3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) -4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part1.ts -------------------------------------------------------------------- ->>>declare namespace N { -1 > -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1 > -2 >namespace -3 > N -4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > // Comment text - >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) ---- ->>>declare namespace N { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^ -1-> - > - > -2 >namespace -3 > N -4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^-> -1 >{ - > function f() { - > console.log('testing'); - > } - > - > f(); - >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) ---- ->>>declare class normalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^ -1-> - > - > -2 >class -3 > normalC -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { - > /*@internal*/ constructor() { } - > /*@internal*/ prop: string; - > /*@internal*/ method() { } - > /*@internal*/ get c() { return 10; } - > /*@internal*/ set c(val: number) { } - >} -1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) ---- ->>>declare namespace normalN { -1-> -2 >^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^ -4 > ^ -1-> - > -2 >namespace -3 > normalN -4 > -1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) -2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) -3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) -4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -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(16, 2) Source(29, 2) + SourceIndex(2) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../../second/second_part2.ts -------------------------------------------------------------------- ->>>declare class C { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^-> -1-> -2 >class -3 > C -1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) ---- ->>> doSomething(): void; -1->^^^^ -2 > ^^^^^^^^^^^ -1-> { - > -2 > doSomething -1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^-> -1 >() { - > console.log("something got done"); - > } - >} -1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) ---- -------------------------------------------------------------------- -emittedFile:/src/third/thirdjs/output/third-output.d.ts -sourceFile:../../third_part1.ts -------------------------------------------------------------------- ->>>declare var c: C; -1-> -2 >^^^^^^^^ -3 > ^^^^ -4 > ^ -5 > ^^^ -6 > ^ -7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> -1-> -2 > -3 > var -4 > c -5 > = new C() -6 > ; -1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) ---- ->>>//# sourceMappingURL=third-output.d.ts.map - -//// [/src/third/thirdjs/output/third-output.js] file changed its modified time -//// [/src/third/thirdjs/output/third-output.js.map] file changed its modified time -//// [/src/third/thirdjs/output/third-output.tsbuildinfo] -{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":110,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":110,"kind":"text"}]},{"pos":110,"end":3163,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":110,"end":3163,"kind":"text"}]},{"pos":3163,"end":3199,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":317,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":317,"kind":"text"}]},{"pos":317,"end":336,"kind":"text"}]}},"version":"FakeTSVersion"} - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] -====================================================================== -File:: /src/third/thirdjs/output/third-output.js ----------------------------------------------------------------------- -prepend: (0-110):: ../../../first/bin/first-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (0-110) -var s = "Hello, world"; -console.log(s); -console.log(f()); -function f() { - return "JS does hoists"; -} - ----------------------------------------------------------------------- -prepend: (110-3163):: ../../../2/second-output.js texts:: 1 ->>-------------------------------------------------------------------- -text: (110-3163) -var N; -(function (N) { - function f() { - console.log('testing'); - } - f(); -})(N || (N = {})); -var normalC = (function () { - function normalC() { - } - normalC.prototype.method = function () { }; - Object.defineProperty(normalC.prototype, "c", { - get: function () { return 10; }, - set: function (val) { }, - enumerable: false, - configurable: true - }); - return normalC; -}()); -var normalN; -(function (normalN) { - var C = (function () { - function C() { - } - return C; - }()); - normalN.C = C; - function foo() { } - normalN.foo = foo; - var someNamespace; - (function (someNamespace) { - var C = (function () { - function C() { - } - return C; - }()); - someNamespace.C = C; - })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); - var someOther; - (function (someOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = someOther.something || (someOther.something = {})); - })(someOther = normalN.someOther || (normalN.someOther = {})); - normalN.someImport = someNamespace.C; - normalN.internalConst = 10; - 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 || (normalN = {})); -var internalC = (function () { - function internalC() { - } - return internalC; -}()); -function internalfoo() { } -var internalNamespace; -(function (internalNamespace) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - internalNamespace.someClass = someClass; -})(internalNamespace || (internalNamespace = {})); -var internalOther; -(function (internalOther) { - var something; - (function (something) { - var someClass = (function () { - function someClass() { - } - return someClass; - }()); - something.someClass = someClass; - })(something = internalOther.something || (internalOther.something = {})); -})(internalOther || (internalOther = {})); -var internalImport = internalNamespace.someClass; -var internalConst = 10; -var internalEnum; -(function (internalEnum) { - internalEnum[internalEnum["a"] = 0] = "a"; - internalEnum[internalEnum["b"] = 1] = "b"; - internalEnum[internalEnum["c"] = 2] = "c"; -})(internalEnum || (internalEnum = {})); -var C = (function () { - function C() { - } - C.prototype.doSomething = function () { - console.log("something got done"); - }; - return C; -}()); - ----------------------------------------------------------------------- -text: (3163-3199) -var c = new C(); -c.doSomething(); - -====================================================================== -====================================================================== -File:: /src/third/thirdjs/output/third-output.d.ts ----------------------------------------------------------------------- -prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} -declare const s = "Hello, world"; -interface NoJsForHereEither { - none: any; -} -declare function f(): string; - ----------------------------------------------------------------------- -prepend: (157-317):: ../../../2/second-output.d.ts texts:: 1 ->>-------------------------------------------------------------------- -text: (157-317) -declare namespace N { -} -declare namespace N { -} -declare class normalC { -} -declare namespace normalN { -} -declare class C { - doSomething(): void; -} - ----------------------------------------------------------------------- -text: (317-336) -declare var c: C; - -====================================================================== - -//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] -{ - "bundle": { - "commonSourceDirectory": "../..", - "sourceFiles": [ - "../../third_part1.ts" - ], - "js": { - "sections": [ - { - "pos": 0, - "end": 110, - "kind": "prepend", - "data": "../../../first/bin/first-output.js", - "texts": [ - { - "pos": 0, - "end": 110, - "kind": "text" - } - ] - }, - { - "pos": 110, - "end": 3163, - "kind": "prepend", - "data": "../../../2/second-output.js", - "texts": [ - { - "pos": 110, - "end": 3163, - "kind": "text" - } - ] - }, - { - "pos": 3163, - "end": 3199, - "kind": "text" - } - ] - }, - "dts": { - "sections": [ - { - "pos": 0, - "end": 157, - "kind": "prepend", - "data": "../../../first/bin/first-output.d.ts", - "texts": [ - { - "pos": 0, - "end": 157, - "kind": "text" - } - ] - }, - { - "pos": 157, - "end": 317, - "kind": "prepend", - "data": "../../../2/second-output.d.ts", - "texts": [ - { - "pos": 157, - "end": 317, - "kind": "text" - } - ] - }, - { - "pos": 317, - "end": 336, - "kind": "text" - } - ] - } - }, - "version": "FakeTSVersion", - "size": 724 -} - diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/baseline-sectioned-sourcemaps.js index 1cd893fe6b4f8..8e52089769e64 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/baseline-sectioned-sourcemaps.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/baseline-sectioned-sourcemaps.js @@ -1882,3 +1882,2295 @@ declare var c: C; "size": 720 } + + +Change:: incremental-declaration-changes +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +[12:04:00 AM] Building project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-109) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 109, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 252 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(22, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(22, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(22, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(22, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(22, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(22, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(22, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(22, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(23, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(23, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":109,"kind":"text"}]},{"pos":109,"end":394,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":109,"end":394,"kind":"text"}]},{"pos":394,"end":430,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-109):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-109) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (109-394):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (109-394) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (394-430) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (156-256) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (256-275) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 109, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 109, + "kind": "text" + } + ] + }, + { + "pos": 109, + "end": 394, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 109, + "end": 394, + "kind": "text" + } + ] + }, + { + "pos": 394, + "end": 430, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 256, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 156, + "end": 256, + "kind": "text" + } + ] + }, + { + "pos": 256, + "end": 275, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 720 +} + + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:07:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:07:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:07:00 AM] Building project '/src/first/tsconfig.json'... + +[12:07:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:07:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:07:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-126) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 126, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 252 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":126,"kind":"text"}]},{"pos":126,"end":411,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":126,"end":411,"kind":"text"}]},{"pos":411,"end":447,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-126):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-126) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (126-411):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (126-411) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (411-447) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (156-256) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (256-275) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 126, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 126, + "kind": "text" + } + ] + }, + { + "pos": 126, + "end": 411, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 126, + "end": 411, + "kind": "text" + } + ] + }, + { + "pos": 411, + "end": 447, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 256, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 156, + "end": 256, + "kind": "text" + } + ] + }, + { + "pos": 256, + "end": 275, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 720 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-all-projects.js index fb973616e3133..7873788adf680 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-all-projects.js @@ -2661,3 +2661,5145 @@ declare function forthirdthird_part1Rest(): void; "size": 836 } + + +Change:: incremental-declaration-changes +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +} + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +[12:04:00 AM] Building project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hola, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) +4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) +5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) +6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) +7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) +8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) +9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) +10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) +11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) +12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) +13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) +14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) +15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) +16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) +17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) +18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) +19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) +20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) +21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) +22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) +23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) +24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) +25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":728,"kind":"text"}],"sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":207,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +text: (502-728) +var s = "Hola, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-207) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 728, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 207, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 362 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} +declare var c: C; +declare function forthirdthird_part1Rest(): void; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare function forsecondsecond_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > +2 >function +3 > forsecondsecond_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(14, 1) Source(12, 1) + SourceIndex(2) +2 >Emitted(14, 18) Source(12, 10) + SourceIndex(2) +3 >Emitted(14, 43) Source(12, 35) + SourceIndex(2) +4 >Emitted(14, 52) Source(14, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) +--- +>>>declare function forthirdthird_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + >c.doSomething(); + > +2 >function +3 > forthirdthird_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(19, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(19, 18) Source(3, 10) + SourceIndex(4) +3 >Emitted(19, 41) Source(3, 33) + SourceIndex(4) +4 >Emitted(19, 50) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hola, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) +4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) +5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) +6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) +7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) +8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) +9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) +10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) +11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) +12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) +13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) +14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) +15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) +16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) +17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) +18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) +19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) +20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) +21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) +22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) +23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) +24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) +25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(21, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(21, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(21, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(22, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(22, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(23, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(23, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(23, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(24, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(24, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(24, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(24, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(24, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(24, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(24, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(24, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(25, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(25, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(26, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(26, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(26, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(26, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(27, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(27, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(27, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(27, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(27, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(27, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(27, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(28, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(28, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(28, 35) Source(12, 35) + SourceIndex(3) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(29, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(29, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(29, 14) Source(13, 24) + SourceIndex(3) +4 >Emitted(29, 16) Source(13, 26) + SourceIndex(3) +5 >Emitted(29, 17) Source(13, 27) + SourceIndex(3) +6 >Emitted(29, 19) Source(13, 29) + SourceIndex(3) +7 >Emitted(29, 21) Source(13, 31) + SourceIndex(3) +8 >Emitted(29, 23) Source(13, 33) + SourceIndex(3) +9 >Emitted(29, 24) Source(13, 34) + SourceIndex(3) +10>Emitted(29, 26) Source(13, 36) + SourceIndex(3) +11>Emitted(29, 28) Source(13, 38) + SourceIndex(3) +12>Emitted(29, 30) Source(13, 40) + SourceIndex(3) +13>Emitted(29, 32) Source(13, 42) + SourceIndex(3) +14>Emitted(29, 34) Source(13, 44) + SourceIndex(3) +15>Emitted(29, 36) Source(13, 46) + SourceIndex(3) +16>Emitted(29, 38) Source(13, 48) + SourceIndex(3) +17>Emitted(29, 40) Source(13, 9) + SourceIndex(3) +18>Emitted(29, 41) Source(13, 10) + SourceIndex(3) +19>Emitted(29, 48) Source(13, 10) + SourceIndex(3) +20>Emitted(29, 50) Source(13, 15) + SourceIndex(3) +21>Emitted(29, 54) Source(13, 19) + SourceIndex(3) +22>Emitted(29, 68) Source(13, 7) + SourceIndex(3) +23>Emitted(29, 73) Source(13, 21) + SourceIndex(3) +24>Emitted(29, 74) Source(13, 48) + SourceIndex(3) +25>Emitted(29, 75) Source(13, 49) + SourceIndex(3) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(30, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(30, 2) Source(14, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(31, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(32, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(33, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(33, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(34, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(34, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(34, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(35, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(35, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(35, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(35, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(35, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(35, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(35, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(35, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(36, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(36, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(37, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(37, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(38, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(38, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(38, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(38, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(39, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(39, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(39, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(39, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(39, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(39, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(39, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(39, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(40, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(40, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(40, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(40, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(40, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(40, 17) Source(2, 17) + SourceIndex(5) +--- +>>>function forthirdthird_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forthirdthird_part1Rest +1->Emitted(41, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(41, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(41, 33) Source(3, 33) + SourceIndex(5) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(42, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(42, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(42, 14) Source(4, 24) + SourceIndex(5) +4 >Emitted(42, 16) Source(4, 26) + SourceIndex(5) +5 >Emitted(42, 17) Source(4, 27) + SourceIndex(5) +6 >Emitted(42, 19) Source(4, 29) + SourceIndex(5) +7 >Emitted(42, 21) Source(4, 31) + SourceIndex(5) +8 >Emitted(42, 23) Source(4, 33) + SourceIndex(5) +9 >Emitted(42, 24) Source(4, 34) + SourceIndex(5) +10>Emitted(42, 26) Source(4, 36) + SourceIndex(5) +11>Emitted(42, 28) Source(4, 38) + SourceIndex(5) +12>Emitted(42, 30) Source(4, 40) + SourceIndex(5) +13>Emitted(42, 32) Source(4, 42) + SourceIndex(5) +14>Emitted(42, 34) Source(4, 44) + SourceIndex(5) +15>Emitted(42, 36) Source(4, 46) + SourceIndex(5) +16>Emitted(42, 38) Source(4, 48) + SourceIndex(5) +17>Emitted(42, 40) Source(4, 9) + SourceIndex(5) +18>Emitted(42, 41) Source(4, 10) + SourceIndex(5) +19>Emitted(42, 48) Source(4, 10) + SourceIndex(5) +20>Emitted(42, 50) Source(4, 15) + SourceIndex(5) +21>Emitted(42, 54) Source(4, 19) + SourceIndex(5) +22>Emitted(42, 68) Source(4, 7) + SourceIndex(5) +23>Emitted(42, 73) Source(4, 21) + SourceIndex(5) +24>Emitted(42, 74) Source(4, 48) + SourceIndex(5) +25>Emitted(42, 75) Source(4, 49) + SourceIndex(5) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(43, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(43, 2) Source(5, 2) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":728,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":728,"kind":"text"}]},{"pos":728,"end":1132,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":728,"end":1132,"kind":"text"}]},{"pos":1132,"end":1285,"kind":"text"}],"sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":207,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":207,"kind":"text"}]},{"pos":207,"end":360,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":207,"end":360,"kind":"text"}]},{"pos":360,"end":430,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (502-728):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (502-728) +var s = "Hola, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (728-1132):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (728-1132) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (1132-1285) +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-207):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-207) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (207-360):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (207-360) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (360-430) +declare var c: C; +declare function forthirdthird_part1Rest(): void; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 728, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 502, + "end": 728, + "kind": "text" + } + ] + }, + { + "pos": 728, + "end": 1132, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 728, + "end": 1132, + "kind": "text" + } + ] + }, + { + "pos": 1132, + "end": 1285, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 207, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 207, + "kind": "text" + } + ] + }, + { + "pos": 207, + "end": 360, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 207, + "end": 360, + "kind": "text" + } + ] + }, + { + "pos": 360, + "end": 430, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 836 +} + + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +}console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:07:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:07:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:07:00 AM] Building project '/src/first/tsconfig.json'... + +[12:07:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:07:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:07:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hola, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) +4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) +5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) +6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) +7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) +8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) +9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) +10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) +11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) +12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) +13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) +14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) +15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) +16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) +17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) +18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) +19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) +20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) +21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) +22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) +23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) +24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) +25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":745,"kind":"text"}],"sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":207,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +text: (502-745) +var s = "Hola, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-207) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 745, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 207, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 362 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hola, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) +4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) +5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) +6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) +7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) +8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) +9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) +10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) +11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) +12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) +13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) +14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) +15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) +16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) +17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) +18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) +19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) +20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) +21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) +22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) +23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) +24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) +25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(22, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(22, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(22, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(23, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(23, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(23, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(24, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(24, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(24, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(25, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(25, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(25, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(25, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(25, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(25, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(25, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(25, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(26, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(26, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(27, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(27, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(27, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(27, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(28, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(28, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(28, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(28, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(28, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(28, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(28, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(29, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(29, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(29, 35) Source(12, 35) + SourceIndex(3) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(30, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(30, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(30, 14) Source(13, 24) + SourceIndex(3) +4 >Emitted(30, 16) Source(13, 26) + SourceIndex(3) +5 >Emitted(30, 17) Source(13, 27) + SourceIndex(3) +6 >Emitted(30, 19) Source(13, 29) + SourceIndex(3) +7 >Emitted(30, 21) Source(13, 31) + SourceIndex(3) +8 >Emitted(30, 23) Source(13, 33) + SourceIndex(3) +9 >Emitted(30, 24) Source(13, 34) + SourceIndex(3) +10>Emitted(30, 26) Source(13, 36) + SourceIndex(3) +11>Emitted(30, 28) Source(13, 38) + SourceIndex(3) +12>Emitted(30, 30) Source(13, 40) + SourceIndex(3) +13>Emitted(30, 32) Source(13, 42) + SourceIndex(3) +14>Emitted(30, 34) Source(13, 44) + SourceIndex(3) +15>Emitted(30, 36) Source(13, 46) + SourceIndex(3) +16>Emitted(30, 38) Source(13, 48) + SourceIndex(3) +17>Emitted(30, 40) Source(13, 9) + SourceIndex(3) +18>Emitted(30, 41) Source(13, 10) + SourceIndex(3) +19>Emitted(30, 48) Source(13, 10) + SourceIndex(3) +20>Emitted(30, 50) Source(13, 15) + SourceIndex(3) +21>Emitted(30, 54) Source(13, 19) + SourceIndex(3) +22>Emitted(30, 68) Source(13, 7) + SourceIndex(3) +23>Emitted(30, 73) Source(13, 21) + SourceIndex(3) +24>Emitted(30, 74) Source(13, 48) + SourceIndex(3) +25>Emitted(30, 75) Source(13, 49) + SourceIndex(3) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(31, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(31, 2) Source(14, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(32, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(33, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(34, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(34, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(35, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(35, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(35, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(36, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(36, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(36, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(36, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(36, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(36, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(36, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(36, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(37, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(37, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(38, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(38, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(39, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(39, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(39, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(39, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(40, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(40, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(40, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(40, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(40, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(40, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(40, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(40, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(41, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(41, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(41, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(41, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(41, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(41, 17) Source(2, 17) + SourceIndex(5) +--- +>>>function forthirdthird_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forthirdthird_part1Rest +1->Emitted(42, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(42, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(42, 33) Source(3, 33) + SourceIndex(5) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(43, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(43, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(43, 14) Source(4, 24) + SourceIndex(5) +4 >Emitted(43, 16) Source(4, 26) + SourceIndex(5) +5 >Emitted(43, 17) Source(4, 27) + SourceIndex(5) +6 >Emitted(43, 19) Source(4, 29) + SourceIndex(5) +7 >Emitted(43, 21) Source(4, 31) + SourceIndex(5) +8 >Emitted(43, 23) Source(4, 33) + SourceIndex(5) +9 >Emitted(43, 24) Source(4, 34) + SourceIndex(5) +10>Emitted(43, 26) Source(4, 36) + SourceIndex(5) +11>Emitted(43, 28) Source(4, 38) + SourceIndex(5) +12>Emitted(43, 30) Source(4, 40) + SourceIndex(5) +13>Emitted(43, 32) Source(4, 42) + SourceIndex(5) +14>Emitted(43, 34) Source(4, 44) + SourceIndex(5) +15>Emitted(43, 36) Source(4, 46) + SourceIndex(5) +16>Emitted(43, 38) Source(4, 48) + SourceIndex(5) +17>Emitted(43, 40) Source(4, 9) + SourceIndex(5) +18>Emitted(43, 41) Source(4, 10) + SourceIndex(5) +19>Emitted(43, 48) Source(4, 10) + SourceIndex(5) +20>Emitted(43, 50) Source(4, 15) + SourceIndex(5) +21>Emitted(43, 54) Source(4, 19) + SourceIndex(5) +22>Emitted(43, 68) Source(4, 7) + SourceIndex(5) +23>Emitted(43, 73) Source(4, 21) + SourceIndex(5) +24>Emitted(43, 74) Source(4, 48) + SourceIndex(5) +25>Emitted(43, 75) Source(4, 49) + SourceIndex(5) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(44, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(44, 2) Source(5, 2) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":745,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":745,"kind":"text"}]},{"pos":745,"end":1149,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":745,"end":1149,"kind":"text"}]},{"pos":1149,"end":1302,"kind":"text"}],"sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":207,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":207,"kind":"text"}]},{"pos":207,"end":360,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":207,"end":360,"kind":"text"}]},{"pos":360,"end":430,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (502-745):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (502-745) +var s = "Hola, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (745-1149):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (745-1149) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (1149-1302) +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-207):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-207) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (207-360):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (207-360) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (360-430) +declare var c: C; +declare function forthirdthird_part1Rest(): void; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 745, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 502, + "end": 745, + "kind": "text" + } + ] + }, + { + "pos": 745, + "end": 1149, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 745, + "end": 1149, + "kind": "text" + } + ] + }, + { + "pos": 1149, + "end": 1302, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 207, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 207, + "kind": "text" + } + ] + }, + { + "pos": 207, + "end": 360, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 207, + "end": 360, + "kind": "text" + } + ] + }, + { + "pos": 360, + "end": 430, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 836 +} + + + +Change:: incremental-headers-change-without-dts-changes +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { }console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:10:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:10:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:10:00 AM] Building project '/src/first/tsconfig.json'... + +[12:10:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:10:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:10:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:10:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hola, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { +5 > } +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(4, 1) Source(12, 39) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 46) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 47) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 50) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 51) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 52) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 53) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 54) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":166,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":207,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-166) +var s = "Hola, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-207) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 166, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 207, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 252 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare function forsecondsecond_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > +2 >function +3 > forsecondsecond_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(14, 1) Source(12, 1) + SourceIndex(2) +2 >Emitted(14, 18) Source(12, 10) + SourceIndex(2) +3 >Emitted(14, 43) Source(12, 35) + SourceIndex(2) +4 >Emitted(14, 52) Source(14, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) +--- +>>>declare function forthirdthird_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + >c.doSomething(); + > +2 >function +3 > forthirdthird_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(19, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(19, 18) Source(3, 10) + SourceIndex(4) +3 >Emitted(19, 41) Source(3, 33) + SourceIndex(4) +4 >Emitted(19, 50) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hola, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { +5 > } +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(14, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(14, 39) Source(12, 39) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(15, 1) Source(12, 39) + SourceIndex(0) +2 >Emitted(15, 8) Source(12, 46) + SourceIndex(0) +3 >Emitted(15, 9) Source(12, 47) + SourceIndex(0) +4 >Emitted(15, 12) Source(12, 50) + SourceIndex(0) +5 >Emitted(15, 13) Source(12, 51) + SourceIndex(0) +6 >Emitted(15, 14) Source(12, 52) + SourceIndex(0) +7 >Emitted(15, 15) Source(12, 53) + SourceIndex(0) +8 >Emitted(15, 16) Source(12, 54) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(16, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(16, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(16, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(16, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(16, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(16, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(16, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(16, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(17, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(17, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(17, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(18, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(18, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(18, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(18, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(19, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(19, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(20, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(20, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(20, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(20, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(21, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(21, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(22, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(22, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(22, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(23, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(23, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(23, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(23, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(23, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(23, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(23, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(23, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(24, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(24, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(25, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(25, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(25, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(25, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(26, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(26, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(26, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(26, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(26, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(26, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(27, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(27, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(27, 35) Source(12, 35) + SourceIndex(3) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(28, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(28, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(28, 14) Source(13, 24) + SourceIndex(3) +4 >Emitted(28, 16) Source(13, 26) + SourceIndex(3) +5 >Emitted(28, 17) Source(13, 27) + SourceIndex(3) +6 >Emitted(28, 19) Source(13, 29) + SourceIndex(3) +7 >Emitted(28, 21) Source(13, 31) + SourceIndex(3) +8 >Emitted(28, 23) Source(13, 33) + SourceIndex(3) +9 >Emitted(28, 24) Source(13, 34) + SourceIndex(3) +10>Emitted(28, 26) Source(13, 36) + SourceIndex(3) +11>Emitted(28, 28) Source(13, 38) + SourceIndex(3) +12>Emitted(28, 30) Source(13, 40) + SourceIndex(3) +13>Emitted(28, 32) Source(13, 42) + SourceIndex(3) +14>Emitted(28, 34) Source(13, 44) + SourceIndex(3) +15>Emitted(28, 36) Source(13, 46) + SourceIndex(3) +16>Emitted(28, 38) Source(13, 48) + SourceIndex(3) +17>Emitted(28, 40) Source(13, 9) + SourceIndex(3) +18>Emitted(28, 41) Source(13, 10) + SourceIndex(3) +19>Emitted(28, 48) Source(13, 10) + SourceIndex(3) +20>Emitted(28, 50) Source(13, 15) + SourceIndex(3) +21>Emitted(28, 54) Source(13, 19) + SourceIndex(3) +22>Emitted(28, 68) Source(13, 7) + SourceIndex(3) +23>Emitted(28, 73) Source(13, 21) + SourceIndex(3) +24>Emitted(28, 74) Source(13, 48) + SourceIndex(3) +25>Emitted(28, 75) Source(13, 49) + SourceIndex(3) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(29, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(29, 2) Source(14, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(30, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(31, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(32, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(32, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(33, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(33, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(33, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(34, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(34, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(34, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(34, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(34, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(34, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(34, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(34, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(35, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(35, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(36, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(36, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(37, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(37, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(37, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(37, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(38, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(38, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(38, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(38, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(38, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(38, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(38, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(38, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(39, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(39, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(39, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(39, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(39, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(39, 17) Source(2, 17) + SourceIndex(5) +--- +>>>function forthirdthird_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forthirdthird_part1Rest +1->Emitted(40, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(40, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(40, 33) Source(3, 33) + SourceIndex(5) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(41, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(41, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(41, 14) Source(4, 24) + SourceIndex(5) +4 >Emitted(41, 16) Source(4, 26) + SourceIndex(5) +5 >Emitted(41, 17) Source(4, 27) + SourceIndex(5) +6 >Emitted(41, 19) Source(4, 29) + SourceIndex(5) +7 >Emitted(41, 21) Source(4, 31) + SourceIndex(5) +8 >Emitted(41, 23) Source(4, 33) + SourceIndex(5) +9 >Emitted(41, 24) Source(4, 34) + SourceIndex(5) +10>Emitted(41, 26) Source(4, 36) + SourceIndex(5) +11>Emitted(41, 28) Source(4, 38) + SourceIndex(5) +12>Emitted(41, 30) Source(4, 40) + SourceIndex(5) +13>Emitted(41, 32) Source(4, 42) + SourceIndex(5) +14>Emitted(41, 34) Source(4, 44) + SourceIndex(5) +15>Emitted(41, 36) Source(4, 46) + SourceIndex(5) +16>Emitted(41, 38) Source(4, 48) + SourceIndex(5) +17>Emitted(41, 40) Source(4, 9) + SourceIndex(5) +18>Emitted(41, 41) Source(4, 10) + SourceIndex(5) +19>Emitted(41, 48) Source(4, 10) + SourceIndex(5) +20>Emitted(41, 50) Source(4, 15) + SourceIndex(5) +21>Emitted(41, 54) Source(4, 19) + SourceIndex(5) +22>Emitted(41, 68) Source(4, 7) + SourceIndex(5) +23>Emitted(41, 73) Source(4, 21) + SourceIndex(5) +24>Emitted(41, 74) Source(4, 48) + SourceIndex(5) +25>Emitted(41, 75) Source(4, 49) + SourceIndex(5) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(42, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(42, 2) Source(5, 2) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":668,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":668,"kind":"text"}]},{"pos":668,"end":1072,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":668,"end":1072,"kind":"text"}]},{"pos":1072,"end":1225,"kind":"text"}],"sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":207,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":207,"kind":"text"}]},{"pos":207,"end":360,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":207,"end":360,"kind":"text"}]},{"pos":360,"end":430,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (502-668):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (502-668) +var s = "Hola, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (668-1072):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (668-1072) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (1072-1225) +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-207):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-207) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (207-360):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (207-360) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (360-430) +declare var c: C; +declare function forthirdthird_part1Rest(): void; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 668, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 502, + "end": 668, + "kind": "text" + } + ] + }, + { + "pos": 668, + "end": 1072, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 668, + "end": 1072, + "kind": "text" + } + ] + }, + { + "pos": 1072, + "end": 1225, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 207, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 207, + "kind": "text" + } + ] + }, + { + "pos": 207, + "end": 360, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 207, + "end": 360, + "kind": "text" + } + ] + }, + { + "pos": 360, + "end": 430, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 836 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-only-one-dependency-project.js index 793ee27625de7..c59ab5c275a79 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-only-one-dependency-project.js @@ -2281,3 +2281,2943 @@ declare var c: C; "size": 794 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { }console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { +5 > } +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(4, 1) Source(12, 39) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 46) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 47) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 50) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 51) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 52) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 53) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 54) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":167,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-167) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 167, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 252 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { +5 > } +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(14, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(14, 39) Source(12, 39) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(15, 1) Source(12, 39) + SourceIndex(0) +2 >Emitted(15, 8) Source(12, 46) + SourceIndex(0) +3 >Emitted(15, 9) Source(12, 47) + SourceIndex(0) +4 >Emitted(15, 12) Source(12, 50) + SourceIndex(0) +5 >Emitted(15, 13) Source(12, 51) + SourceIndex(0) +6 >Emitted(15, 14) Source(12, 52) + SourceIndex(0) +7 >Emitted(15, 15) Source(12, 53) + SourceIndex(0) +8 >Emitted(15, 16) Source(12, 54) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(16, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(16, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(16, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(16, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(16, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(16, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(16, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(16, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(17, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(17, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(17, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(18, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(18, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(18, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(18, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(19, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(19, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(20, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(20, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(20, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(20, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(21, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(21, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(22, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(22, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(22, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(23, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(23, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(23, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(23, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(23, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(23, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(23, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(23, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(24, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(24, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(25, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(25, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(25, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(25, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(26, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(26, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(26, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(26, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(26, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(26, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(27, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(27, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(27, 35) Source(12, 35) + SourceIndex(3) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(28, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(28, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(28, 14) Source(13, 24) + SourceIndex(3) +4 >Emitted(28, 16) Source(13, 26) + SourceIndex(3) +5 >Emitted(28, 17) Source(13, 27) + SourceIndex(3) +6 >Emitted(28, 19) Source(13, 29) + SourceIndex(3) +7 >Emitted(28, 21) Source(13, 31) + SourceIndex(3) +8 >Emitted(28, 23) Source(13, 33) + SourceIndex(3) +9 >Emitted(28, 24) Source(13, 34) + SourceIndex(3) +10>Emitted(28, 26) Source(13, 36) + SourceIndex(3) +11>Emitted(28, 28) Source(13, 38) + SourceIndex(3) +12>Emitted(28, 30) Source(13, 40) + SourceIndex(3) +13>Emitted(28, 32) Source(13, 42) + SourceIndex(3) +14>Emitted(28, 34) Source(13, 44) + SourceIndex(3) +15>Emitted(28, 36) Source(13, 46) + SourceIndex(3) +16>Emitted(28, 38) Source(13, 48) + SourceIndex(3) +17>Emitted(28, 40) Source(13, 9) + SourceIndex(3) +18>Emitted(28, 41) Source(13, 10) + SourceIndex(3) +19>Emitted(28, 48) Source(13, 10) + SourceIndex(3) +20>Emitted(28, 50) Source(13, 15) + SourceIndex(3) +21>Emitted(28, 54) Source(13, 19) + SourceIndex(3) +22>Emitted(28, 68) Source(13, 7) + SourceIndex(3) +23>Emitted(28, 73) Source(13, 21) + SourceIndex(3) +24>Emitted(28, 74) Source(13, 48) + SourceIndex(3) +25>Emitted(28, 75) Source(13, 49) + SourceIndex(3) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(29, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(29, 2) Source(14, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(30, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(31, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(32, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(32, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(33, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(33, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(33, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(34, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(34, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(34, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(34, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(34, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(34, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(34, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(34, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(35, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(35, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(36, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(36, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(37, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(37, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(37, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(37, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(38, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(38, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(38, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(38, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(38, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(38, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(38, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(38, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(39, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(39, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(39, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(39, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(39, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(39, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":669,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":669,"kind":"text"}]},{"pos":669,"end":1073,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":669,"end":1073,"kind":"text"}]},{"pos":1073,"end":1109,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":361,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":361,"kind":"text"}]},{"pos":361,"end":380,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (502-669):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (502-669) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (669-1073):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (669-1073) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (1073-1109) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (208-361):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (208-361) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (361-380) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 669, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 502, + "end": 669, + "kind": "text" + } + ] + }, + { + "pos": 669, + "end": 1073, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 669, + "end": 1073, + "kind": "text" + } + ] + }, + { + "pos": 1073, + "end": 1109, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + }, + { + "pos": 208, + "end": 361, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 208, + "end": 361, + "kind": "text" + } + ] + }, + { + "pos": 361, + "end": 380, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 794 +} + + + +Change:: incremental-headers-change-without-dts-changes +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +}console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:07:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:07:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:07:00 AM] Building project '/src/first/tsconfig.json'... + +[12:07:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:07:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:07:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) +4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) +5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) +6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) +7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) +8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) +9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) +10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) +11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) +12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) +13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) +14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) +15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) +16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) +17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) +18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) +19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) +20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) +21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) +22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) +23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) +24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) +25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":746,"kind":"text"}],"sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +text: (502-746) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 746, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 362 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(14, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare function forsecondsecond_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > +2 >function +3 > forsecondsecond_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(14, 1) Source(12, 1) + SourceIndex(2) +2 >Emitted(14, 18) Source(12, 10) + SourceIndex(2) +3 >Emitted(14, 43) Source(12, 35) + SourceIndex(2) +4 >Emitted(14, 52) Source(14, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) +4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) +5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) +6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) +7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) +8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) +9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) +10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) +11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) +12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) +13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) +14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) +15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) +16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) +17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) +18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) +19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) +20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) +21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) +22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) +23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) +24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) +25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(22, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(22, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(22, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(23, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(23, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(23, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(24, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(24, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(24, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(25, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(25, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(25, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(25, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(25, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(25, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(25, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(25, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(26, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(26, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(27, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(27, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(27, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(27, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(28, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(28, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(28, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(28, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(28, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(28, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(28, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(29, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(29, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(29, 35) Source(12, 35) + SourceIndex(3) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(30, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(30, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(30, 14) Source(13, 24) + SourceIndex(3) +4 >Emitted(30, 16) Source(13, 26) + SourceIndex(3) +5 >Emitted(30, 17) Source(13, 27) + SourceIndex(3) +6 >Emitted(30, 19) Source(13, 29) + SourceIndex(3) +7 >Emitted(30, 21) Source(13, 31) + SourceIndex(3) +8 >Emitted(30, 23) Source(13, 33) + SourceIndex(3) +9 >Emitted(30, 24) Source(13, 34) + SourceIndex(3) +10>Emitted(30, 26) Source(13, 36) + SourceIndex(3) +11>Emitted(30, 28) Source(13, 38) + SourceIndex(3) +12>Emitted(30, 30) Source(13, 40) + SourceIndex(3) +13>Emitted(30, 32) Source(13, 42) + SourceIndex(3) +14>Emitted(30, 34) Source(13, 44) + SourceIndex(3) +15>Emitted(30, 36) Source(13, 46) + SourceIndex(3) +16>Emitted(30, 38) Source(13, 48) + SourceIndex(3) +17>Emitted(30, 40) Source(13, 9) + SourceIndex(3) +18>Emitted(30, 41) Source(13, 10) + SourceIndex(3) +19>Emitted(30, 48) Source(13, 10) + SourceIndex(3) +20>Emitted(30, 50) Source(13, 15) + SourceIndex(3) +21>Emitted(30, 54) Source(13, 19) + SourceIndex(3) +22>Emitted(30, 68) Source(13, 7) + SourceIndex(3) +23>Emitted(30, 73) Source(13, 21) + SourceIndex(3) +24>Emitted(30, 74) Source(13, 48) + SourceIndex(3) +25>Emitted(30, 75) Source(13, 49) + SourceIndex(3) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(31, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(31, 2) Source(14, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(32, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(33, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(34, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(34, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(35, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(35, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(35, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(36, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(36, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(36, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(36, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(36, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(36, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(36, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(36, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(37, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(37, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(38, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(38, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(39, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(39, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(39, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(39, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(40, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(40, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(40, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(40, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(40, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(40, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(40, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(40, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(41, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(41, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(41, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(41, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(41, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(41, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":746,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":502,"end":746,"kind":"text"}]},{"pos":746,"end":1150,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":746,"end":1150,"kind":"text"}]},{"pos":1150,"end":1186,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":361,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":361,"kind":"text"}]},{"pos":361,"end":380,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (502-746):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (502-746) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (746-1150):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (746-1150) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (1150-1186) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (208-361):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (208-361) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (361-380) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 746, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 502, + "end": 746, + "kind": "text" + } + ] + }, + { + "pos": 746, + "end": 1150, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 746, + "end": 1150, + "kind": "text" + } + ] + }, + { + "pos": 1150, + "end": 1186, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + }, + { + "pos": 208, + "end": 361, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 208, + "end": 361, + "kind": "text" + } + ] + }, + { + "pos": 361, + "end": 380, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 794 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/explainFiles.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/explainFiles.js index b820225f68933..4898823e45ea8 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/explainFiles.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/explainFiles.js @@ -1884,3 +1884,2278 @@ declare var c: C; "size": 720 } + + +Change:: incremental-declaration-changes +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + + + +Output:: +/lib/tsc --b /src/third --verbose --explainFiles +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +lib/lib.d.ts + Default library for target 'es5' +src/first/first_PART1.ts + Part of 'files' list in tsconfig.json +src/first/first_part2.ts + Part of 'files' list in tsconfig.json +src/first/first_part3.ts + Part of 'files' list in tsconfig.json +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +[12:04:00 AM] Building project '/src/third/tsconfig.json'... + +lib/lib.d.ts + Default library for target 'es5' +src/first/bin/first-output.d.ts + Output from referenced project 'src/first/tsconfig.json' included because '--outFile' specified +src/2/second-output.d.ts + Output from referenced project 'src/second/tsconfig.json' included because '--outFile' specified +src/third/third_part1.ts + Part of 'files' list in tsconfig.json +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-109) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 109, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 252 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(22, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(22, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(22, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(22, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(22, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(22, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(22, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(22, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(23, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(23, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":109,"kind":"text"}]},{"pos":109,"end":394,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":109,"end":394,"kind":"text"}]},{"pos":394,"end":430,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-109):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-109) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (109-394):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (109-394) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (394-430) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (156-256) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (256-275) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 109, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 109, + "kind": "text" + } + ] + }, + { + "pos": 109, + "end": 394, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 109, + "end": 394, + "kind": "text" + } + ] + }, + { + "pos": 394, + "end": 430, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 256, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 156, + "end": 256, + "kind": "text" + } + ] + }, + { + "pos": 256, + "end": 275, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 720 +} + + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose --explainFiles +[12:07:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:07:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:07:00 AM] Building project '/src/first/tsconfig.json'... + +lib/lib.d.ts + Default library for target 'es5' +src/first/first_PART1.ts + Part of 'files' list in tsconfig.json +src/first/first_part2.ts + Part of 'files' list in tsconfig.json +src/first/first_part3.ts + Part of 'files' list in tsconfig.json +[12:07:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:07:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:07:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-126) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 126, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 252 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":126,"kind":"text"}]},{"pos":126,"end":411,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":126,"end":411,"kind":"text"}]},{"pos":411,"end":447,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-126):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-126) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (126-411):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (126-411) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (411-447) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (156-256) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (256-275) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 126, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 126, + "kind": "text" + } + ] + }, + { + "pos": 126, + "end": 411, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 126, + "end": 411, + "kind": "text" + } + ] + }, + { + "pos": 411, + "end": 447, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 256, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 156, + "end": 256, + "kind": "text" + } + ] + }, + { + "pos": 256, + "end": 275, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 720 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-all-projects.js index 5ea70b3c25db8..ede8ff76c5ade 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-all-projects.js @@ -3878,3 +3878,4848 @@ declare const thirdthird_part1_ar: number[]; "size": 1031 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +}console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { +>>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { +>>> if (ar || !(i in from)) { +>>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); +>>> ar[i] = from[i]; +>>> } +>>> } +>>> return to.concat(ar || Array.prototype.slice.call(from)); +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(37, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(37, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(37, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(37, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(37, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(37, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(38, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(38, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(38, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(38, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(38, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(38, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(38, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(38, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(39, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(39, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(39, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(40, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(40, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(40, 14) Source(13, 24) + SourceIndex(0) +4 >Emitted(40, 16) Source(13, 26) + SourceIndex(0) +5 >Emitted(40, 17) Source(13, 27) + SourceIndex(0) +6 >Emitted(40, 19) Source(13, 29) + SourceIndex(0) +7 >Emitted(40, 21) Source(13, 31) + SourceIndex(0) +8 >Emitted(40, 23) Source(13, 33) + SourceIndex(0) +9 >Emitted(40, 24) Source(13, 34) + SourceIndex(0) +10>Emitted(40, 26) Source(13, 36) + SourceIndex(0) +11>Emitted(40, 28) Source(13, 38) + SourceIndex(0) +12>Emitted(40, 30) Source(13, 40) + SourceIndex(0) +13>Emitted(40, 32) Source(13, 42) + SourceIndex(0) +14>Emitted(40, 34) Source(13, 44) + SourceIndex(0) +15>Emitted(40, 36) Source(13, 46) + SourceIndex(0) +16>Emitted(40, 38) Source(13, 48) + SourceIndex(0) +17>Emitted(40, 40) Source(13, 9) + SourceIndex(0) +18>Emitted(40, 41) Source(13, 10) + SourceIndex(0) +19>Emitted(40, 48) Source(13, 10) + SourceIndex(0) +20>Emitted(40, 50) Source(13, 15) + SourceIndex(0) +21>Emitted(40, 54) Source(13, 19) + SourceIndex(0) +22>Emitted(40, 68) Source(13, 7) + SourceIndex(0) +23>Emitted(40, 73) Source(13, 21) + SourceIndex(0) +24>Emitted(40, 74) Source(13, 48) + SourceIndex(0) +25>Emitted(40, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(41, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(41, 2) Source(14, 2) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(42, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(42, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(42, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(42, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(42, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(42, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(42, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(42, 16) Source(14, 17) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(43, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(43, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(43, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(43, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(43, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(43, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(43, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(43, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(43, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(44, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(44, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(44, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(45, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(45, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(45, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(45, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(46, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(46, 2) Source(3, 2) + SourceIndex(2) +--- +>>>function firstfirst_part3Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > firstfirst_part3Spread +1->Emitted(47, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(47, 10) Source(4, 10) + SourceIndex(2) +3 >Emitted(47, 32) Source(4, 32) + SourceIndex(2) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(48, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(48, 16) Source(4, 47) + SourceIndex(2) +--- +>>> 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(49, 10) Source(4, 33) + SourceIndex(2) +2 >Emitted(49, 20) Source(4, 47) + SourceIndex(2) +3 >Emitted(49, 22) Source(4, 33) + SourceIndex(2) +4 >Emitted(49, 43) Source(4, 47) + SourceIndex(2) +5 >Emitted(49, 45) Source(4, 33) + SourceIndex(2) +6 >Emitted(49, 49) Source(4, 47) + SourceIndex(2) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(50, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(50, 31) Source(4, 47) + SourceIndex(2) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(52, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(52, 2) Source(4, 52) + SourceIndex(2) +--- +>>>var firstfirst_part3_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > firstfirst_part3_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(53, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(53, 5) Source(5, 7) + SourceIndex(2) +3 >Emitted(53, 24) Source(5, 26) + SourceIndex(2) +4 >Emitted(53, 27) Source(5, 29) + SourceIndex(2) +5 >Emitted(53, 28) Source(5, 30) + SourceIndex(2) +6 >Emitted(53, 30) Source(5, 32) + SourceIndex(2) +7 >Emitted(53, 32) Source(5, 34) + SourceIndex(2) +8 >Emitted(53, 34) Source(5, 36) + SourceIndex(2) +9 >Emitted(53, 35) Source(5, 37) + SourceIndex(2) +10>Emitted(53, 36) Source(5, 38) + SourceIndex(2) +--- +>>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^^^^ +1-> + > +2 >firstfirst_part3Spread +3 > ( +4 > 10 +5 > , ... +6 > firstfirst_part3_ar +7 > ); +1->Emitted(54, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(54, 23) Source(6, 23) + SourceIndex(2) +3 >Emitted(54, 53) Source(6, 24) + SourceIndex(2) +4 >Emitted(54, 55) Source(6, 26) + SourceIndex(2) +5 >Emitted(54, 65) Source(6, 31) + SourceIndex(2) +6 >Emitted(54, 84) Source(6, 50) + SourceIndex(2) +7 >Emitted(54, 95) Source(6, 52) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":1924,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":318,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +emitHelpers: (502-1006):: 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: (1008-1396):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +---------------------------------------------------------------------- +text: (1398-1924) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-318) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +declare function firstfirst_part3Spread(...b: number[]): void; +declare const firstfirst_part3_ar: number[]; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 1006, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 1008, + "end": 1396, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 1398, + "end": 1924, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest", + "typescript:read", + "typescript:spreadArray" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 318, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 553 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +function secondsecond_part2Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var secondsecond_part2_ar = [20, 30]; +secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false)); +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +function thirdthird_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var thirdthird_part1_ar = [20, 30]; +thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false)); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { +>>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { +>>> if (ar || !(i in from)) { +>>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); +>>> ar[i] = from[i]; +>>> } +>>> } +>>> return to.concat(ar || Array.prototype.slice.call(from)); +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(37, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(37, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(37, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(37, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(37, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(37, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(38, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(38, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(38, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(38, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(38, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(38, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(38, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(38, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(39, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(39, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(39, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(40, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(40, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(40, 14) Source(13, 24) + SourceIndex(0) +4 >Emitted(40, 16) Source(13, 26) + SourceIndex(0) +5 >Emitted(40, 17) Source(13, 27) + SourceIndex(0) +6 >Emitted(40, 19) Source(13, 29) + SourceIndex(0) +7 >Emitted(40, 21) Source(13, 31) + SourceIndex(0) +8 >Emitted(40, 23) Source(13, 33) + SourceIndex(0) +9 >Emitted(40, 24) Source(13, 34) + SourceIndex(0) +10>Emitted(40, 26) Source(13, 36) + SourceIndex(0) +11>Emitted(40, 28) Source(13, 38) + SourceIndex(0) +12>Emitted(40, 30) Source(13, 40) + SourceIndex(0) +13>Emitted(40, 32) Source(13, 42) + SourceIndex(0) +14>Emitted(40, 34) Source(13, 44) + SourceIndex(0) +15>Emitted(40, 36) Source(13, 46) + SourceIndex(0) +16>Emitted(40, 38) Source(13, 48) + SourceIndex(0) +17>Emitted(40, 40) Source(13, 9) + SourceIndex(0) +18>Emitted(40, 41) Source(13, 10) + SourceIndex(0) +19>Emitted(40, 48) Source(13, 10) + SourceIndex(0) +20>Emitted(40, 50) Source(13, 15) + SourceIndex(0) +21>Emitted(40, 54) Source(13, 19) + SourceIndex(0) +22>Emitted(40, 68) Source(13, 7) + SourceIndex(0) +23>Emitted(40, 73) Source(13, 21) + SourceIndex(0) +24>Emitted(40, 74) Source(13, 48) + SourceIndex(0) +25>Emitted(40, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(41, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(41, 2) Source(14, 2) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(42, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(42, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(42, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(42, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(42, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(42, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(42, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(42, 16) Source(14, 17) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(43, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(43, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(43, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(43, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(43, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(43, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(43, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(43, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(43, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(44, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(44, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(44, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(45, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(45, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(45, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(45, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(46, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(46, 2) Source(3, 2) + SourceIndex(2) +--- +>>>function firstfirst_part3Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > firstfirst_part3Spread +1->Emitted(47, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(47, 10) Source(4, 10) + SourceIndex(2) +3 >Emitted(47, 32) Source(4, 32) + SourceIndex(2) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(48, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(48, 16) Source(4, 47) + SourceIndex(2) +--- +>>> 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(49, 10) Source(4, 33) + SourceIndex(2) +2 >Emitted(49, 20) Source(4, 47) + SourceIndex(2) +3 >Emitted(49, 22) Source(4, 33) + SourceIndex(2) +4 >Emitted(49, 43) Source(4, 47) + SourceIndex(2) +5 >Emitted(49, 45) Source(4, 33) + SourceIndex(2) +6 >Emitted(49, 49) Source(4, 47) + SourceIndex(2) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(50, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(50, 31) Source(4, 47) + SourceIndex(2) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(52, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(52, 2) Source(4, 52) + SourceIndex(2) +--- +>>>var firstfirst_part3_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > firstfirst_part3_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(53, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(53, 5) Source(5, 7) + SourceIndex(2) +3 >Emitted(53, 24) Source(5, 26) + SourceIndex(2) +4 >Emitted(53, 27) Source(5, 29) + SourceIndex(2) +5 >Emitted(53, 28) Source(5, 30) + SourceIndex(2) +6 >Emitted(53, 30) Source(5, 32) + SourceIndex(2) +7 >Emitted(53, 32) Source(5, 34) + SourceIndex(2) +8 >Emitted(53, 34) Source(5, 36) + SourceIndex(2) +9 >Emitted(53, 35) Source(5, 37) + SourceIndex(2) +10>Emitted(53, 36) Source(5, 38) + SourceIndex(2) +--- +>>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^^^^ +1-> + > +2 >firstfirst_part3Spread +3 > ( +4 > 10 +5 > , ... +6 > firstfirst_part3_ar +7 > ); +1->Emitted(54, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(54, 23) Source(6, 23) + SourceIndex(2) +3 >Emitted(54, 53) Source(6, 24) + SourceIndex(2) +4 >Emitted(54, 55) Source(6, 26) + SourceIndex(2) +5 >Emitted(54, 65) Source(6, 31) + SourceIndex(2) +6 >Emitted(54, 84) Source(6, 50) + SourceIndex(2) +7 >Emitted(54, 95) Source(6, 52) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(55, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(55, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(55, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(55, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(56, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(56, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(56, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(57, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(57, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(57, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(58, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(58, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(58, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(58, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(58, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(58, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(58, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(58, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(59, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(59, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(60, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(60, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(60, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(60, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(61, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(61, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(61, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(61, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(61, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(61, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(61, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(62, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(62, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(62, 35) Source(12, 35) + SourceIndex(3) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(63, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(63, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(63, 14) Source(13, 24) + SourceIndex(3) +4 >Emitted(63, 16) Source(13, 26) + SourceIndex(3) +5 >Emitted(63, 17) Source(13, 27) + SourceIndex(3) +6 >Emitted(63, 19) Source(13, 29) + SourceIndex(3) +7 >Emitted(63, 21) Source(13, 31) + SourceIndex(3) +8 >Emitted(63, 23) Source(13, 33) + SourceIndex(3) +9 >Emitted(63, 24) Source(13, 34) + SourceIndex(3) +10>Emitted(63, 26) Source(13, 36) + SourceIndex(3) +11>Emitted(63, 28) Source(13, 38) + SourceIndex(3) +12>Emitted(63, 30) Source(13, 40) + SourceIndex(3) +13>Emitted(63, 32) Source(13, 42) + SourceIndex(3) +14>Emitted(63, 34) Source(13, 44) + SourceIndex(3) +15>Emitted(63, 36) Source(13, 46) + SourceIndex(3) +16>Emitted(63, 38) Source(13, 48) + SourceIndex(3) +17>Emitted(63, 40) Source(13, 9) + SourceIndex(3) +18>Emitted(63, 41) Source(13, 10) + SourceIndex(3) +19>Emitted(63, 48) Source(13, 10) + SourceIndex(3) +20>Emitted(63, 50) Source(13, 15) + SourceIndex(3) +21>Emitted(63, 54) Source(13, 19) + SourceIndex(3) +22>Emitted(63, 68) Source(13, 7) + SourceIndex(3) +23>Emitted(63, 73) Source(13, 21) + SourceIndex(3) +24>Emitted(63, 74) Source(13, 48) + SourceIndex(3) +25>Emitted(63, 75) Source(13, 49) + SourceIndex(3) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(64, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(64, 2) Source(14, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(65, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(66, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(67, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(67, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(68, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(68, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(68, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(69, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(69, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(69, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(69, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(69, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(69, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(69, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(69, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(70, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(70, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(71, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(71, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(72, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(72, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(72, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(72, 6) Source(5, 2) + SourceIndex(4) +--- +>>>function secondsecond_part2Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part2Spread +1->Emitted(73, 1) Source(7, 1) + SourceIndex(4) +2 >Emitted(73, 10) Source(7, 10) + SourceIndex(4) +3 >Emitted(73, 34) Source(7, 34) + SourceIndex(4) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(74, 5) Source(7, 35) + SourceIndex(4) +2 >Emitted(74, 16) Source(7, 49) + SourceIndex(4) +--- +>>> 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(75, 10) Source(7, 35) + SourceIndex(4) +2 >Emitted(75, 20) Source(7, 49) + SourceIndex(4) +3 >Emitted(75, 22) Source(7, 35) + SourceIndex(4) +4 >Emitted(75, 43) Source(7, 49) + SourceIndex(4) +5 >Emitted(75, 45) Source(7, 35) + SourceIndex(4) +6 >Emitted(75, 49) Source(7, 49) + SourceIndex(4) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(76, 9) Source(7, 35) + SourceIndex(4) +2 >Emitted(76, 31) Source(7, 49) + SourceIndex(4) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(78, 1) Source(7, 53) + SourceIndex(4) +2 >Emitted(78, 2) Source(7, 54) + SourceIndex(4) +--- +>>>var secondsecond_part2_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > secondsecond_part2_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(79, 1) Source(8, 1) + SourceIndex(4) +2 >Emitted(79, 5) Source(8, 7) + SourceIndex(4) +3 >Emitted(79, 26) Source(8, 28) + SourceIndex(4) +4 >Emitted(79, 29) Source(8, 31) + SourceIndex(4) +5 >Emitted(79, 30) Source(8, 32) + SourceIndex(4) +6 >Emitted(79, 32) Source(8, 34) + SourceIndex(4) +7 >Emitted(79, 34) Source(8, 36) + SourceIndex(4) +8 >Emitted(79, 36) Source(8, 38) + SourceIndex(4) +9 >Emitted(79, 37) Source(8, 39) + SourceIndex(4) +10>Emitted(79, 38) Source(8, 40) + SourceIndex(4) +--- +>>>secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false)); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^^^^ +1-> + > +2 >secondsecond_part2Spread +3 > ( +4 > 10 +5 > , ... +6 > secondsecond_part2_ar +7 > ); +1->Emitted(80, 1) Source(9, 1) + SourceIndex(4) +2 >Emitted(80, 25) Source(9, 25) + SourceIndex(4) +3 >Emitted(80, 55) Source(9, 26) + SourceIndex(4) +4 >Emitted(80, 57) Source(9, 28) + SourceIndex(4) +5 >Emitted(80, 67) Source(9, 33) + SourceIndex(4) +6 >Emitted(80, 88) Source(9, 54) + SourceIndex(4) +7 >Emitted(80, 99) Source(9, 56) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1 > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1 >Emitted(81, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(81, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(81, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(81, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(81, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(81, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(81, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(81, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(82, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(82, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(82, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(82, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(82, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(82, 17) Source(2, 17) + SourceIndex(5) +--- +>>>function forthirdthird_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forthirdthird_part1Rest +1->Emitted(83, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(83, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(83, 33) Source(3, 33) + SourceIndex(5) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(84, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(84, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(84, 14) Source(4, 24) + SourceIndex(5) +4 >Emitted(84, 16) Source(4, 26) + SourceIndex(5) +5 >Emitted(84, 17) Source(4, 27) + SourceIndex(5) +6 >Emitted(84, 19) Source(4, 29) + SourceIndex(5) +7 >Emitted(84, 21) Source(4, 31) + SourceIndex(5) +8 >Emitted(84, 23) Source(4, 33) + SourceIndex(5) +9 >Emitted(84, 24) Source(4, 34) + SourceIndex(5) +10>Emitted(84, 26) Source(4, 36) + SourceIndex(5) +11>Emitted(84, 28) Source(4, 38) + SourceIndex(5) +12>Emitted(84, 30) Source(4, 40) + SourceIndex(5) +13>Emitted(84, 32) Source(4, 42) + SourceIndex(5) +14>Emitted(84, 34) Source(4, 44) + SourceIndex(5) +15>Emitted(84, 36) Source(4, 46) + SourceIndex(5) +16>Emitted(84, 38) Source(4, 48) + SourceIndex(5) +17>Emitted(84, 40) Source(4, 9) + SourceIndex(5) +18>Emitted(84, 41) Source(4, 10) + SourceIndex(5) +19>Emitted(84, 48) Source(4, 10) + SourceIndex(5) +20>Emitted(84, 50) Source(4, 15) + SourceIndex(5) +21>Emitted(84, 54) Source(4, 19) + SourceIndex(5) +22>Emitted(84, 68) Source(4, 7) + SourceIndex(5) +23>Emitted(84, 73) Source(4, 21) + SourceIndex(5) +24>Emitted(84, 74) Source(4, 48) + SourceIndex(5) +25>Emitted(84, 75) Source(4, 49) + SourceIndex(5) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(85, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(85, 2) Source(5, 2) + SourceIndex(5) +--- +>>>function thirdthird_part1Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > thirdthird_part1Spread +1->Emitted(86, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(86, 10) Source(6, 10) + SourceIndex(5) +3 >Emitted(86, 32) Source(6, 32) + SourceIndex(5) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(87, 5) Source(6, 33) + SourceIndex(5) +2 >Emitted(87, 16) Source(6, 47) + 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(88, 10) Source(6, 33) + SourceIndex(5) +2 >Emitted(88, 20) Source(6, 47) + SourceIndex(5) +3 >Emitted(88, 22) Source(6, 33) + SourceIndex(5) +4 >Emitted(88, 43) Source(6, 47) + SourceIndex(5) +5 >Emitted(88, 45) Source(6, 33) + SourceIndex(5) +6 >Emitted(88, 49) Source(6, 47) + SourceIndex(5) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(89, 9) Source(6, 33) + SourceIndex(5) +2 >Emitted(89, 31) Source(6, 47) + SourceIndex(5) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(91, 1) Source(6, 51) + SourceIndex(5) +2 >Emitted(91, 2) Source(6, 52) + SourceIndex(5) +--- +>>>var thirdthird_part1_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > thirdthird_part1_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(92, 1) Source(7, 1) + SourceIndex(5) +2 >Emitted(92, 5) Source(7, 7) + SourceIndex(5) +3 >Emitted(92, 24) Source(7, 26) + SourceIndex(5) +4 >Emitted(92, 27) Source(7, 29) + SourceIndex(5) +5 >Emitted(92, 28) Source(7, 30) + SourceIndex(5) +6 >Emitted(92, 30) Source(7, 32) + SourceIndex(5) +7 >Emitted(92, 32) Source(7, 34) + SourceIndex(5) +8 >Emitted(92, 34) Source(7, 36) + SourceIndex(5) +9 >Emitted(92, 35) Source(7, 37) + SourceIndex(5) +10>Emitted(92, 36) Source(7, 38) + SourceIndex(5) +--- +>>>thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false)); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^^^^ +1-> + > +2 >thirdthird_part1Spread +3 > ( +4 > 10 +5 > , ... +6 > thirdthird_part1_ar +7 > ); +1->Emitted(93, 1) Source(8, 1) + SourceIndex(5) +2 >Emitted(93, 23) Source(8, 23) + SourceIndex(5) +3 >Emitted(93, 53) Source(8, 24) + SourceIndex(5) +4 >Emitted(93, 55) Source(8, 26) + SourceIndex(5) +5 >Emitted(93, 65) Source(8, 31) + SourceIndex(5) +6 >Emitted(93, 84) Source(8, 50) + SourceIndex(5) +7 >Emitted(93, 95) Source(8, 52) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":1924,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1924,"kind":"text"}]},{"pos":1924,"end":2618,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1924,"end":2618,"kind":"text"}]},{"pos":2618,"end":3053,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":318,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":318,"kind":"text"}]},{"pos":318,"end":585,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":318,"end":585,"kind":"text"}]},{"pos":585,"end":765,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +emitHelpers: (502-1006):: 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: (1008-1396):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +---------------------------------------------------------------------- +prepend: (1398-1924):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1398-1924) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); + +---------------------------------------------------------------------- +prepend: (1924-2618):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1924-2618) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +function secondsecond_part2Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var secondsecond_part2_ar = [20, 30]; +secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false)); + +---------------------------------------------------------------------- +text: (2618-3053) +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +function thirdthird_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var thirdthird_part1_ar = [20, 30]; +thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false)); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-318):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-318) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +declare function firstfirst_part3Spread(...b: number[]): void; +declare const firstfirst_part3_ar: number[]; + +---------------------------------------------------------------------- +prepend: (318-585):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (318-585) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} +declare function secondsecond_part2Spread(...b: number[]): void; +declare const secondsecond_part2_ar: number[]; + +---------------------------------------------------------------------- +text: (585-765) +declare var c: C; +declare function forthirdthird_part1Rest(): void; +declare function thirdthird_part1Spread(...b: number[]): void; +declare const thirdthird_part1_ar: number[]; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 1006, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 1008, + "end": 1396, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 1398, + "end": 1924, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 1398, + "end": 1924, + "kind": "text" + } + ] + }, + { + "pos": 1924, + "end": 2618, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 1924, + "end": 2618, + "kind": "text" + } + ] + }, + { + "pos": 2618, + "end": 3053, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest", + "typescript:read", + "typescript:spreadArray" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 318, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 318, + "kind": "text" + } + ] + }, + { + "pos": 318, + "end": 585, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 318, + "end": 585, + "kind": "text" + } + ] + }, + { + "pos": 585, + "end": 765, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 1031 +} + + + +Change:: incremental-headers-change-without-dts-changes +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { }console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:07:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:07:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:07:00 AM] Building project '/src/first/tsconfig.json'... + +[12:07:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:07:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:07:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) +--- +>>>declare function firstfirst_part3Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > +2 >function +3 > firstfirst_part3Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(10, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(10, 18) Source(4, 10) + SourceIndex(2) +3 >Emitted(10, 40) Source(4, 32) + SourceIndex(2) +4 >Emitted(10, 41) Source(4, 33) + SourceIndex(2) +5 >Emitted(10, 44) Source(4, 36) + SourceIndex(2) +6 >Emitted(10, 47) Source(4, 39) + SourceIndex(2) +7 >Emitted(10, 53) Source(4, 45) + SourceIndex(2) +8 >Emitted(10, 55) Source(4, 47) + SourceIndex(2) +9 >Emitted(10, 63) Source(4, 52) + SourceIndex(2) +--- +>>>declare const firstfirst_part3_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > firstfirst_part3_ar +5 > = [20, 30] +6 > ; +1 >Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 9) Source(5, 1) + SourceIndex(2) +3 >Emitted(11, 15) Source(5, 7) + SourceIndex(2) +4 >Emitted(11, 34) Source(5, 26) + SourceIndex(2) +5 >Emitted(11, 44) Source(5, 37) + SourceIndex(2) +6 >Emitted(11, 45) Source(5, 38) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { +>>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { +>>> if (ar || !(i in from)) { +>>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); +>>> ar[i] = from[i]; +>>> } +>>> } +>>> return to.concat(ar || Array.prototype.slice.call(from)); +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(26, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(26, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(26, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(26, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(26, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(26, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(27, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(27, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(27, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(27, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(27, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(27, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(27, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(27, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { +5 > } +1->Emitted(28, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(28, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(28, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(28, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(28, 39) Source(12, 39) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(29, 1) Source(12, 39) + SourceIndex(0) +2 >Emitted(29, 8) Source(12, 46) + SourceIndex(0) +3 >Emitted(29, 9) Source(12, 47) + SourceIndex(0) +4 >Emitted(29, 12) Source(12, 50) + SourceIndex(0) +5 >Emitted(29, 13) Source(12, 51) + SourceIndex(0) +6 >Emitted(29, 14) Source(12, 52) + SourceIndex(0) +7 >Emitted(29, 15) Source(12, 53) + SourceIndex(0) +8 >Emitted(29, 16) Source(12, 54) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(30, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(30, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(30, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(30, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(30, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(30, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(30, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(30, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(30, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(31, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(31, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(31, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(32, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(32, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(32, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(32, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(33, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(33, 2) Source(3, 2) + SourceIndex(2) +--- +>>>function firstfirst_part3Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > firstfirst_part3Spread +1->Emitted(34, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(34, 10) Source(4, 10) + SourceIndex(2) +3 >Emitted(34, 32) Source(4, 32) + SourceIndex(2) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(35, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(35, 16) Source(4, 47) + SourceIndex(2) +--- +>>> 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(36, 10) Source(4, 33) + SourceIndex(2) +2 >Emitted(36, 20) Source(4, 47) + SourceIndex(2) +3 >Emitted(36, 22) Source(4, 33) + SourceIndex(2) +4 >Emitted(36, 43) Source(4, 47) + SourceIndex(2) +5 >Emitted(36, 45) Source(4, 33) + SourceIndex(2) +6 >Emitted(36, 49) Source(4, 47) + SourceIndex(2) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(37, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(37, 31) Source(4, 47) + SourceIndex(2) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(39, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(39, 2) Source(4, 52) + SourceIndex(2) +--- +>>>var firstfirst_part3_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > firstfirst_part3_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(40, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(40, 5) Source(5, 7) + SourceIndex(2) +3 >Emitted(40, 24) Source(5, 26) + SourceIndex(2) +4 >Emitted(40, 27) Source(5, 29) + SourceIndex(2) +5 >Emitted(40, 28) Source(5, 30) + SourceIndex(2) +6 >Emitted(40, 30) Source(5, 32) + SourceIndex(2) +7 >Emitted(40, 32) Source(5, 34) + SourceIndex(2) +8 >Emitted(40, 34) Source(5, 36) + SourceIndex(2) +9 >Emitted(40, 35) Source(5, 37) + SourceIndex(2) +10>Emitted(40, 36) Source(5, 38) + SourceIndex(2) +--- +>>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^^^^ +1-> + > +2 >firstfirst_part3Spread +3 > ( +4 > 10 +5 > , ... +6 > firstfirst_part3_ar +7 > ); +1->Emitted(41, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(41, 23) Source(6, 23) + SourceIndex(2) +3 >Emitted(41, 53) Source(6, 24) + SourceIndex(2) +4 >Emitted(41, 55) Source(6, 26) + SourceIndex(2) +5 >Emitted(41, 65) Source(6, 31) + SourceIndex(2) +6 >Emitted(41, 84) Source(6, 50) + SourceIndex(2) +7 >Emitted(41, 95) Source(6, 52) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1345,"kind":"text"}],"sources":{"helpers":["typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":318,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.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-894):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +---------------------------------------------------------------------- +text: (896-1345) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-318) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +declare function firstfirst_part3Spread(...b: number[]): void; +declare const firstfirst_part3_ar: number[]; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 894, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 896, + "end": 1345, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:read", + "typescript:spreadArray" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 318, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 463 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) +--- +>>>declare function firstfirst_part3Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > +2 >function +3 > firstfirst_part3Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(10, 1) Source(4, 1) + SourceIndex(1) +2 >Emitted(10, 18) Source(4, 10) + SourceIndex(1) +3 >Emitted(10, 40) Source(4, 32) + SourceIndex(1) +4 >Emitted(10, 41) Source(4, 33) + SourceIndex(1) +5 >Emitted(10, 44) Source(4, 36) + SourceIndex(1) +6 >Emitted(10, 47) Source(4, 39) + SourceIndex(1) +7 >Emitted(10, 53) Source(4, 45) + SourceIndex(1) +8 >Emitted(10, 55) Source(4, 47) + SourceIndex(1) +9 >Emitted(10, 63) Source(4, 52) + SourceIndex(1) +--- +>>>declare const firstfirst_part3_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > firstfirst_part3_ar +5 > = [20, 30] +6 > ; +1 >Emitted(11, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(11, 9) Source(5, 1) + SourceIndex(1) +3 >Emitted(11, 15) Source(5, 7) + SourceIndex(1) +4 >Emitted(11, 34) Source(5, 26) + SourceIndex(1) +5 >Emitted(11, 44) Source(5, 37) + SourceIndex(1) +6 >Emitted(11, 45) Source(5, 38) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(12, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(13, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(14, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(14, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(14, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(14, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(15, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare function forsecondsecond_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > +2 >function +3 > forsecondsecond_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(16, 1) Source(12, 1) + SourceIndex(2) +2 >Emitted(16, 18) Source(12, 10) + SourceIndex(2) +3 >Emitted(16, 43) Source(12, 35) + SourceIndex(2) +4 >Emitted(16, 52) Source(14, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(17, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) +--- +>>>declare function secondsecond_part2Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part2Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(20, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(20, 18) Source(7, 10) + SourceIndex(3) +3 >Emitted(20, 42) Source(7, 34) + SourceIndex(3) +4 >Emitted(20, 43) Source(7, 35) + SourceIndex(3) +5 >Emitted(20, 46) Source(7, 38) + SourceIndex(3) +6 >Emitted(20, 49) Source(7, 41) + SourceIndex(3) +7 >Emitted(20, 55) Source(7, 47) + SourceIndex(3) +8 >Emitted(20, 57) Source(7, 49) + SourceIndex(3) +9 >Emitted(20, 65) Source(7, 54) + SourceIndex(3) +--- +>>>declare const secondsecond_part2_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > secondsecond_part2_ar +5 > = [20, 30] +6 > ; +1 >Emitted(21, 1) Source(8, 1) + SourceIndex(3) +2 >Emitted(21, 9) Source(8, 1) + SourceIndex(3) +3 >Emitted(21, 15) Source(8, 7) + SourceIndex(3) +4 >Emitted(21, 36) Source(8, 28) + SourceIndex(3) +5 >Emitted(21, 46) Source(8, 39) + SourceIndex(3) +6 >Emitted(21, 47) Source(8, 40) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1 > +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1 >Emitted(22, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(22, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(22, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(22, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(22, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(22, 18) Source(1, 17) + SourceIndex(4) +--- +>>>declare function forthirdthird_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^^^^-> +1-> + >c.doSomething(); + > +2 >function +3 > forthirdthird_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(23, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(23, 18) Source(3, 10) + SourceIndex(4) +3 >Emitted(23, 41) Source(3, 33) + SourceIndex(4) +4 >Emitted(23, 50) Source(5, 2) + SourceIndex(4) +--- +>>>declare function thirdthird_part1Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > +2 >function +3 > thirdthird_part1Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(24, 1) Source(6, 1) + SourceIndex(4) +2 >Emitted(24, 18) Source(6, 10) + SourceIndex(4) +3 >Emitted(24, 40) Source(6, 32) + SourceIndex(4) +4 >Emitted(24, 41) Source(6, 33) + SourceIndex(4) +5 >Emitted(24, 44) Source(6, 36) + SourceIndex(4) +6 >Emitted(24, 47) Source(6, 39) + SourceIndex(4) +7 >Emitted(24, 53) Source(6, 45) + SourceIndex(4) +8 >Emitted(24, 55) Source(6, 47) + SourceIndex(4) +9 >Emitted(24, 63) Source(6, 52) + SourceIndex(4) +--- +>>>declare const thirdthird_part1_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > thirdthird_part1_ar +5 > = [20, 30] +6 > ; +1 >Emitted(25, 1) Source(7, 1) + SourceIndex(4) +2 >Emitted(25, 9) Source(7, 1) + SourceIndex(4) +3 >Emitted(25, 15) Source(7, 7) + SourceIndex(4) +4 >Emitted(25, 34) Source(7, 26) + SourceIndex(4) +5 >Emitted(25, 44) Source(7, 37) + SourceIndex(4) +6 >Emitted(25, 45) Source(7, 38) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +function secondsecond_part2Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var secondsecond_part2_ar = [20, 30]; +secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false)); +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +function thirdthird_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var thirdthird_part1_ar = [20, 30]; +thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false)); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,WAAE"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { +>>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { +>>> if (ar || !(i in from)) { +>>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); +>>> ar[i] = from[i]; +>>> } +>>> } +>>> return to.concat(ar || Array.prototype.slice.call(from)); +>>>}; +>>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(37, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(37, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(37, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(37, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(37, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(37, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(38, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(38, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(38, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(38, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(38, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(38, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(38, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(38, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { +5 > } +1->Emitted(39, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(39, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(39, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(39, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(39, 39) Source(12, 39) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(40, 1) Source(12, 39) + SourceIndex(0) +2 >Emitted(40, 8) Source(12, 46) + SourceIndex(0) +3 >Emitted(40, 9) Source(12, 47) + SourceIndex(0) +4 >Emitted(40, 12) Source(12, 50) + SourceIndex(0) +5 >Emitted(40, 13) Source(12, 51) + SourceIndex(0) +6 >Emitted(40, 14) Source(12, 52) + SourceIndex(0) +7 >Emitted(40, 15) Source(12, 53) + SourceIndex(0) +8 >Emitted(40, 16) Source(12, 54) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(41, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(41, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(41, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(41, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(41, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(41, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(41, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(41, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(41, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(42, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(42, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(42, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(43, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(43, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(43, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(43, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(44, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(44, 2) Source(3, 2) + SourceIndex(2) +--- +>>>function firstfirst_part3Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > firstfirst_part3Spread +1->Emitted(45, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(45, 10) Source(4, 10) + SourceIndex(2) +3 >Emitted(45, 32) Source(4, 32) + SourceIndex(2) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(46, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(46, 16) Source(4, 47) + SourceIndex(2) +--- +>>> 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(47, 10) Source(4, 33) + SourceIndex(2) +2 >Emitted(47, 20) Source(4, 47) + SourceIndex(2) +3 >Emitted(47, 22) Source(4, 33) + SourceIndex(2) +4 >Emitted(47, 43) Source(4, 47) + SourceIndex(2) +5 >Emitted(47, 45) Source(4, 33) + SourceIndex(2) +6 >Emitted(47, 49) Source(4, 47) + SourceIndex(2) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(48, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(48, 31) Source(4, 47) + SourceIndex(2) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(50, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(50, 2) Source(4, 52) + SourceIndex(2) +--- +>>>var firstfirst_part3_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > firstfirst_part3_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(51, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(51, 5) Source(5, 7) + SourceIndex(2) +3 >Emitted(51, 24) Source(5, 26) + SourceIndex(2) +4 >Emitted(51, 27) Source(5, 29) + SourceIndex(2) +5 >Emitted(51, 28) Source(5, 30) + SourceIndex(2) +6 >Emitted(51, 30) Source(5, 32) + SourceIndex(2) +7 >Emitted(51, 32) Source(5, 34) + SourceIndex(2) +8 >Emitted(51, 34) Source(5, 36) + SourceIndex(2) +9 >Emitted(51, 35) Source(5, 37) + SourceIndex(2) +10>Emitted(51, 36) Source(5, 38) + SourceIndex(2) +--- +>>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^^^^ +1-> + > +2 >firstfirst_part3Spread +3 > ( +4 > 10 +5 > , ... +6 > firstfirst_part3_ar +7 > ); +1->Emitted(52, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(52, 23) Source(6, 23) + SourceIndex(2) +3 >Emitted(52, 53) Source(6, 24) + SourceIndex(2) +4 >Emitted(52, 55) Source(6, 26) + SourceIndex(2) +5 >Emitted(52, 65) Source(6, 31) + SourceIndex(2) +6 >Emitted(52, 84) Source(6, 50) + SourceIndex(2) +7 >Emitted(52, 95) Source(6, 52) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(53, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(53, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(53, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(53, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(54, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(54, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(54, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(55, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(55, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(55, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(56, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(56, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(56, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(56, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(56, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(56, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(56, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(56, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(57, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(57, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(58, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(58, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(58, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(58, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(59, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(59, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(59, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(59, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(59, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(59, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(59, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function forsecondsecond_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forsecondsecond_part1Rest +1->Emitted(60, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(60, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(60, 35) Source(12, 35) + SourceIndex(3) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(61, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(61, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(61, 14) Source(13, 24) + SourceIndex(3) +4 >Emitted(61, 16) Source(13, 26) + SourceIndex(3) +5 >Emitted(61, 17) Source(13, 27) + SourceIndex(3) +6 >Emitted(61, 19) Source(13, 29) + SourceIndex(3) +7 >Emitted(61, 21) Source(13, 31) + SourceIndex(3) +8 >Emitted(61, 23) Source(13, 33) + SourceIndex(3) +9 >Emitted(61, 24) Source(13, 34) + SourceIndex(3) +10>Emitted(61, 26) Source(13, 36) + SourceIndex(3) +11>Emitted(61, 28) Source(13, 38) + SourceIndex(3) +12>Emitted(61, 30) Source(13, 40) + SourceIndex(3) +13>Emitted(61, 32) Source(13, 42) + SourceIndex(3) +14>Emitted(61, 34) Source(13, 44) + SourceIndex(3) +15>Emitted(61, 36) Source(13, 46) + SourceIndex(3) +16>Emitted(61, 38) Source(13, 48) + SourceIndex(3) +17>Emitted(61, 40) Source(13, 9) + SourceIndex(3) +18>Emitted(61, 41) Source(13, 10) + SourceIndex(3) +19>Emitted(61, 48) Source(13, 10) + SourceIndex(3) +20>Emitted(61, 50) Source(13, 15) + SourceIndex(3) +21>Emitted(61, 54) Source(13, 19) + SourceIndex(3) +22>Emitted(61, 68) Source(13, 7) + SourceIndex(3) +23>Emitted(61, 73) Source(13, 21) + SourceIndex(3) +24>Emitted(61, 74) Source(13, 48) + SourceIndex(3) +25>Emitted(61, 75) Source(13, 49) + SourceIndex(3) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(62, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(62, 2) Source(14, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(63, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(64, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(65, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(65, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(66, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(66, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(66, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(67, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(67, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(67, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(67, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(67, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(67, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(67, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(67, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(68, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(68, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(69, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(69, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(70, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(70, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(70, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(70, 6) Source(5, 2) + SourceIndex(4) +--- +>>>function secondsecond_part2Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part2Spread +1->Emitted(71, 1) Source(7, 1) + SourceIndex(4) +2 >Emitted(71, 10) Source(7, 10) + SourceIndex(4) +3 >Emitted(71, 34) Source(7, 34) + SourceIndex(4) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(72, 5) Source(7, 35) + SourceIndex(4) +2 >Emitted(72, 16) Source(7, 49) + SourceIndex(4) +--- +>>> 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(73, 10) Source(7, 35) + SourceIndex(4) +2 >Emitted(73, 20) Source(7, 49) + SourceIndex(4) +3 >Emitted(73, 22) Source(7, 35) + SourceIndex(4) +4 >Emitted(73, 43) Source(7, 49) + SourceIndex(4) +5 >Emitted(73, 45) Source(7, 35) + SourceIndex(4) +6 >Emitted(73, 49) Source(7, 49) + SourceIndex(4) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(74, 9) Source(7, 35) + SourceIndex(4) +2 >Emitted(74, 31) Source(7, 49) + SourceIndex(4) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(76, 1) Source(7, 53) + SourceIndex(4) +2 >Emitted(76, 2) Source(7, 54) + SourceIndex(4) +--- +>>>var secondsecond_part2_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > secondsecond_part2_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(77, 1) Source(8, 1) + SourceIndex(4) +2 >Emitted(77, 5) Source(8, 7) + SourceIndex(4) +3 >Emitted(77, 26) Source(8, 28) + SourceIndex(4) +4 >Emitted(77, 29) Source(8, 31) + SourceIndex(4) +5 >Emitted(77, 30) Source(8, 32) + SourceIndex(4) +6 >Emitted(77, 32) Source(8, 34) + SourceIndex(4) +7 >Emitted(77, 34) Source(8, 36) + SourceIndex(4) +8 >Emitted(77, 36) Source(8, 38) + SourceIndex(4) +9 >Emitted(77, 37) Source(8, 39) + SourceIndex(4) +10>Emitted(77, 38) Source(8, 40) + SourceIndex(4) +--- +>>>secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false)); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^^^^ +1-> + > +2 >secondsecond_part2Spread +3 > ( +4 > 10 +5 > , ... +6 > secondsecond_part2_ar +7 > ); +1->Emitted(78, 1) Source(9, 1) + SourceIndex(4) +2 >Emitted(78, 25) Source(9, 25) + SourceIndex(4) +3 >Emitted(78, 55) Source(9, 26) + SourceIndex(4) +4 >Emitted(78, 57) Source(9, 28) + SourceIndex(4) +5 >Emitted(78, 67) Source(9, 33) + SourceIndex(4) +6 >Emitted(78, 88) Source(9, 54) + SourceIndex(4) +7 >Emitted(78, 99) Source(9, 56) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1 > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1 >Emitted(79, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(79, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(79, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(79, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(79, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(79, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(79, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(79, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(80, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(80, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(80, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(80, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(80, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(80, 17) Source(2, 17) + SourceIndex(5) +--- +>>>function forthirdthird_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forthirdthird_part1Rest +1->Emitted(81, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(81, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(81, 33) Source(3, 33) + SourceIndex(5) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(82, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(82, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(82, 14) Source(4, 24) + SourceIndex(5) +4 >Emitted(82, 16) Source(4, 26) + SourceIndex(5) +5 >Emitted(82, 17) Source(4, 27) + SourceIndex(5) +6 >Emitted(82, 19) Source(4, 29) + SourceIndex(5) +7 >Emitted(82, 21) Source(4, 31) + SourceIndex(5) +8 >Emitted(82, 23) Source(4, 33) + SourceIndex(5) +9 >Emitted(82, 24) Source(4, 34) + SourceIndex(5) +10>Emitted(82, 26) Source(4, 36) + SourceIndex(5) +11>Emitted(82, 28) Source(4, 38) + SourceIndex(5) +12>Emitted(82, 30) Source(4, 40) + SourceIndex(5) +13>Emitted(82, 32) Source(4, 42) + SourceIndex(5) +14>Emitted(82, 34) Source(4, 44) + SourceIndex(5) +15>Emitted(82, 36) Source(4, 46) + SourceIndex(5) +16>Emitted(82, 38) Source(4, 48) + SourceIndex(5) +17>Emitted(82, 40) Source(4, 9) + SourceIndex(5) +18>Emitted(82, 41) Source(4, 10) + SourceIndex(5) +19>Emitted(82, 48) Source(4, 10) + SourceIndex(5) +20>Emitted(82, 50) Source(4, 15) + SourceIndex(5) +21>Emitted(82, 54) Source(4, 19) + SourceIndex(5) +22>Emitted(82, 68) Source(4, 7) + SourceIndex(5) +23>Emitted(82, 73) Source(4, 21) + SourceIndex(5) +24>Emitted(82, 74) Source(4, 48) + SourceIndex(5) +25>Emitted(82, 75) Source(4, 49) + SourceIndex(5) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(83, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(83, 2) Source(5, 2) + SourceIndex(5) +--- +>>>function thirdthird_part1Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > +2 >function +3 > thirdthird_part1Spread +1->Emitted(84, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(84, 10) Source(6, 10) + SourceIndex(5) +3 >Emitted(84, 32) Source(6, 32) + SourceIndex(5) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(85, 5) Source(6, 33) + SourceIndex(5) +2 >Emitted(85, 16) Source(6, 47) + 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(86, 10) Source(6, 33) + SourceIndex(5) +2 >Emitted(86, 20) Source(6, 47) + SourceIndex(5) +3 >Emitted(86, 22) Source(6, 33) + SourceIndex(5) +4 >Emitted(86, 43) Source(6, 47) + SourceIndex(5) +5 >Emitted(86, 45) Source(6, 33) + SourceIndex(5) +6 >Emitted(86, 49) Source(6, 47) + SourceIndex(5) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(87, 9) Source(6, 33) + SourceIndex(5) +2 >Emitted(87, 31) Source(6, 47) + SourceIndex(5) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(89, 1) Source(6, 51) + SourceIndex(5) +2 >Emitted(89, 2) Source(6, 52) + SourceIndex(5) +--- +>>>var thirdthird_part1_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > thirdthird_part1_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(90, 1) Source(7, 1) + SourceIndex(5) +2 >Emitted(90, 5) Source(7, 7) + SourceIndex(5) +3 >Emitted(90, 24) Source(7, 26) + SourceIndex(5) +4 >Emitted(90, 27) Source(7, 29) + SourceIndex(5) +5 >Emitted(90, 28) Source(7, 30) + SourceIndex(5) +6 >Emitted(90, 30) Source(7, 32) + SourceIndex(5) +7 >Emitted(90, 32) Source(7, 34) + SourceIndex(5) +8 >Emitted(90, 34) Source(7, 36) + SourceIndex(5) +9 >Emitted(90, 35) Source(7, 37) + SourceIndex(5) +10>Emitted(90, 36) Source(7, 38) + SourceIndex(5) +--- +>>>thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false)); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^^^^ +1-> + > +2 >thirdthird_part1Spread +3 > ( +4 > 10 +5 > , ... +6 > thirdthird_part1_ar +7 > ); +1->Emitted(91, 1) Source(8, 1) + SourceIndex(5) +2 >Emitted(91, 23) Source(8, 23) + SourceIndex(5) +3 >Emitted(91, 53) Source(8, 24) + SourceIndex(5) +4 >Emitted(91, 55) Source(8, 26) + SourceIndex(5) +5 >Emitted(91, 65) Source(8, 31) + SourceIndex(5) +6 >Emitted(91, 84) Source(8, 50) + SourceIndex(5) +7 >Emitted(91, 95) Source(8, 52) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":1847,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1847,"kind":"text"}]},{"pos":1847,"end":2541,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1847,"end":2541,"kind":"text"}]},{"pos":2541,"end":2976,"kind":"text"}],"sources":{"helpers":["typescript:rest","typescript:read","typescript:spreadArray"]}},"dts":{"sections":[{"pos":0,"end":318,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":318,"kind":"text"}]},{"pos":318,"end":585,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":318,"end":585,"kind":"text"}]},{"pos":585,"end":765,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.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-894):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +---------------------------------------------------------------------- +emitHelpers: (896-1396):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (1398-1847):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1398-1847) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +function firstfirst_part3Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar), false)); + +---------------------------------------------------------------------- +prepend: (1847-2541):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1847-2541) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function forsecondsecond_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +function secondsecond_part2Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var secondsecond_part2_ar = [20, 30]; +secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar), false)); + +---------------------------------------------------------------------- +text: (2541-2976) +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +function thirdthird_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var thirdthird_part1_ar = [20, 30]; +thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar), false)); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-318):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-318) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; +declare function firstfirst_part3Spread(...b: number[]): void; +declare const firstfirst_part3_ar: number[]; + +---------------------------------------------------------------------- +prepend: (318-585):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (318-585) +declare namespace N { +} +declare namespace N { +} +declare function forsecondsecond_part1Rest(): void; +declare class C { + doSomething(): void; +} +declare function secondsecond_part2Spread(...b: number[]): void; +declare const secondsecond_part2_ar: number[]; + +---------------------------------------------------------------------- +text: (585-765) +declare var c: C; +declare function forthirdthird_part1Rest(): void; +declare function thirdthird_part1Spread(...b: number[]): void; +declare const thirdthird_part1_ar: number[]; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 894, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 896, + "end": 1396, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 1398, + "end": 1847, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 1398, + "end": 1847, + "kind": "text" + } + ] + }, + { + "pos": 1847, + "end": 2541, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 1847, + "end": 2541, + "kind": "text" + } + ] + }, + { + "pos": 2541, + "end": 2976, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest", + "typescript:read", + "typescript:spreadArray" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 318, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 318, + "kind": "text" + } + ] + }, + { + "pos": 318, + "end": 585, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 318, + "end": 585, + "kind": "text" + } + ] + }, + { + "pos": 585, + "end": 765, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 1029 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-different-projects.js index e12b998275412..2ca865271cb8c 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-different-projects.js @@ -2913,3 +2913,3456 @@ declare function forthirdthird_part1Rest(): void; "size": 988 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { +const { b, ...rest } = { a: 10, b: 30, yy: 30 }; +}console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) +4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) +5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) +6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) +7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) +8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) +9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) +10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) +11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) +12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) +13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) +14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) +15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) +16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) +17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) +18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) +19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) +20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) +21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) +22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) +23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) +24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) +25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":746,"kind":"text"}],"sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +text: (502-746) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 746, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 362 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function secondsecond_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var secondsecond_part1_ar = [20, 30]; +secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false)); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { +>>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { +>>> if (ar || !(i in from)) { +>>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); +>>> ar[i] = from[i]; +>>> } +>>> } +>>> return to.concat(ar || Array.prototype.slice.call(from)); +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(37, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(37, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(37, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(37, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(37, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(37, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(38, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(38, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(38, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(38, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(38, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(38, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(38, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(38, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +1->Emitted(39, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(39, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(39, 33) Source(12, 33) + SourceIndex(0) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(40, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(40, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(40, 14) Source(13, 24) + SourceIndex(0) +4 >Emitted(40, 16) Source(13, 26) + SourceIndex(0) +5 >Emitted(40, 17) Source(13, 27) + SourceIndex(0) +6 >Emitted(40, 19) Source(13, 29) + SourceIndex(0) +7 >Emitted(40, 21) Source(13, 31) + SourceIndex(0) +8 >Emitted(40, 23) Source(13, 33) + SourceIndex(0) +9 >Emitted(40, 24) Source(13, 34) + SourceIndex(0) +10>Emitted(40, 26) Source(13, 36) + SourceIndex(0) +11>Emitted(40, 28) Source(13, 38) + SourceIndex(0) +12>Emitted(40, 30) Source(13, 40) + SourceIndex(0) +13>Emitted(40, 32) Source(13, 42) + SourceIndex(0) +14>Emitted(40, 34) Source(13, 44) + SourceIndex(0) +15>Emitted(40, 36) Source(13, 46) + SourceIndex(0) +16>Emitted(40, 38) Source(13, 48) + SourceIndex(0) +17>Emitted(40, 40) Source(13, 9) + SourceIndex(0) +18>Emitted(40, 41) Source(13, 10) + SourceIndex(0) +19>Emitted(40, 48) Source(13, 10) + SourceIndex(0) +20>Emitted(40, 50) Source(13, 15) + SourceIndex(0) +21>Emitted(40, 54) Source(13, 19) + SourceIndex(0) +22>Emitted(40, 68) Source(13, 7) + SourceIndex(0) +23>Emitted(40, 73) Source(13, 21) + SourceIndex(0) +24>Emitted(40, 74) Source(13, 48) + SourceIndex(0) +25>Emitted(40, 75) Source(13, 49) + SourceIndex(0) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(41, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(41, 2) Source(14, 2) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(42, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(42, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(42, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(42, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(42, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(42, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(42, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(42, 16) Source(14, 17) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(43, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(43, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(43, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(43, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(43, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(43, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(43, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(43, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(43, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(44, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(44, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(44, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(45, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(45, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(45, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(45, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(46, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(46, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(47, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(47, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(47, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(47, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(48, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(48, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(48, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(49, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(49, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(49, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(50, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(50, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(50, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(50, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(50, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(50, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(50, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(50, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(51, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(51, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(52, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(52, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(52, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(52, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(53, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(53, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(53, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(53, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(53, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(53, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(53, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function secondsecond_part1Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part1Spread +1->Emitted(54, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(54, 10) Source(13, 10) + SourceIndex(3) +3 >Emitted(54, 34) Source(13, 34) + SourceIndex(3) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(55, 5) Source(13, 35) + SourceIndex(3) +2 >Emitted(55, 16) Source(13, 49) + SourceIndex(3) +--- +>>> 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(56, 10) Source(13, 35) + SourceIndex(3) +2 >Emitted(56, 20) Source(13, 49) + SourceIndex(3) +3 >Emitted(56, 22) Source(13, 35) + SourceIndex(3) +4 >Emitted(56, 43) Source(13, 49) + SourceIndex(3) +5 >Emitted(56, 45) Source(13, 35) + SourceIndex(3) +6 >Emitted(56, 49) Source(13, 49) + SourceIndex(3) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(57, 9) Source(13, 35) + SourceIndex(3) +2 >Emitted(57, 31) Source(13, 49) + SourceIndex(3) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(59, 1) Source(13, 53) + SourceIndex(3) +2 >Emitted(59, 2) Source(13, 54) + SourceIndex(3) +--- +>>>var secondsecond_part1_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > secondsecond_part1_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(60, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(60, 5) Source(14, 7) + SourceIndex(3) +3 >Emitted(60, 26) Source(14, 28) + SourceIndex(3) +4 >Emitted(60, 29) Source(14, 31) + SourceIndex(3) +5 >Emitted(60, 30) Source(14, 32) + SourceIndex(3) +6 >Emitted(60, 32) Source(14, 34) + SourceIndex(3) +7 >Emitted(60, 34) Source(14, 36) + SourceIndex(3) +8 >Emitted(60, 36) Source(14, 38) + SourceIndex(3) +9 >Emitted(60, 37) Source(14, 39) + SourceIndex(3) +10>Emitted(60, 38) Source(14, 40) + SourceIndex(3) +--- +>>>secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false)); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^^^^ +1-> + > +2 >secondsecond_part1Spread +3 > ( +4 > 10 +5 > , ... +6 > secondsecond_part1_ar +7 > ); +1->Emitted(61, 1) Source(15, 1) + SourceIndex(3) +2 >Emitted(61, 25) Source(15, 25) + SourceIndex(3) +3 >Emitted(61, 55) Source(15, 26) + SourceIndex(3) +4 >Emitted(61, 57) Source(15, 28) + SourceIndex(3) +5 >Emitted(61, 67) Source(15, 33) + SourceIndex(3) +6 >Emitted(61, 88) Source(15, 54) + SourceIndex(3) +7 >Emitted(61, 99) Source(15, 56) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(62, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(63, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(64, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(64, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(65, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(65, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(65, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(66, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(66, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(66, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(66, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(66, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(66, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(66, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(66, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(67, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(67, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(68, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(68, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(69, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(69, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(69, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(69, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(70, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(70, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(70, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(70, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(70, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(70, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(70, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(70, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(71, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(71, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(71, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(71, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(71, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(71, 17) Source(2, 17) + SourceIndex(5) +--- +>>>function forthirdthird_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forthirdthird_part1Rest +1->Emitted(72, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(72, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(72, 33) Source(3, 33) + SourceIndex(5) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(73, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(73, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(73, 14) Source(4, 24) + SourceIndex(5) +4 >Emitted(73, 16) Source(4, 26) + SourceIndex(5) +5 >Emitted(73, 17) Source(4, 27) + SourceIndex(5) +6 >Emitted(73, 19) Source(4, 29) + SourceIndex(5) +7 >Emitted(73, 21) Source(4, 31) + SourceIndex(5) +8 >Emitted(73, 23) Source(4, 33) + SourceIndex(5) +9 >Emitted(73, 24) Source(4, 34) + SourceIndex(5) +10>Emitted(73, 26) Source(4, 36) + SourceIndex(5) +11>Emitted(73, 28) Source(4, 38) + SourceIndex(5) +12>Emitted(73, 30) Source(4, 40) + SourceIndex(5) +13>Emitted(73, 32) Source(4, 42) + SourceIndex(5) +14>Emitted(73, 34) Source(4, 44) + SourceIndex(5) +15>Emitted(73, 36) Source(4, 46) + SourceIndex(5) +16>Emitted(73, 38) Source(4, 48) + SourceIndex(5) +17>Emitted(73, 40) Source(4, 9) + SourceIndex(5) +18>Emitted(73, 41) Source(4, 10) + SourceIndex(5) +19>Emitted(73, 48) Source(4, 10) + SourceIndex(5) +20>Emitted(73, 50) Source(4, 15) + SourceIndex(5) +21>Emitted(73, 54) Source(4, 19) + SourceIndex(5) +22>Emitted(73, 68) Source(4, 7) + SourceIndex(5) +23>Emitted(73, 73) Source(4, 21) + SourceIndex(5) +24>Emitted(73, 74) Source(4, 48) + SourceIndex(5) +25>Emitted(73, 75) Source(4, 49) + SourceIndex(5) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(74, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(74, 2) Source(5, 2) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":500,"kind":"emitHelpers","data":"typescript:rest"},{"pos":502,"end":1006,"kind":"emitHelpers","data":"typescript:read"},{"pos":1008,"end":1396,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":1398,"end":1642,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1642,"kind":"text"}]},{"pos":1642,"end":2217,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1642,"end":2217,"kind":"text"}]},{"pos":2217,"end":2370,"kind":"text"}],"sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":422,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":422,"kind":"text"}]},{"pos":422,"end":492,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +emitHelpers: (0-500):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +emitHelpers: (502-1006):: 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: (1008-1396):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +---------------------------------------------------------------------- +prepend: (1398-1642):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1398-1642) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (1642-2217):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1642-2217) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function secondsecond_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var secondsecond_part1_ar = [20, 30]; +secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false)); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (2217-2370) +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (208-422):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (208-422) +declare namespace N { +} +declare namespace N { +} +declare function secondsecond_part1Spread(...b: number[]): void; +declare const secondsecond_part1_ar: number[]; +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (422-492) +declare var c: C; +declare function forthirdthird_part1Rest(): void; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 500, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 502, + "end": 1006, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 1008, + "end": 1396, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 1398, + "end": 1642, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 1398, + "end": 1642, + "kind": "text" + } + ] + }, + { + "pos": 1642, + "end": 2217, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 1642, + "end": 2217, + "kind": "text" + } + ] + }, + { + "pos": 2217, + "end": 2370, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + }, + { + "pos": 208, + "end": 422, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 208, + "end": 422, + "kind": "text" + } + ] + }, + { + "pos": 422, + "end": 492, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 988 +} + + + +Change:: incremental-headers-change-without-dts-changes +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +function forfirstfirst_PART1Rest() { }console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:07:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:07:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:07:00 AM] Building project '/src/first/tsconfig.json'... + +[12:07:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:07:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:07:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { +5 > } +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(4, 1) Source(12, 39) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 46) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 47) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 50) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 51) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 52) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 53) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 54) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":167,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":208,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-167) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 167, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 252 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +>>>declare function forfirstfirst_PART1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + > + >console.log(s); + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { } +1->Emitted(8, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(8, 18) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 41) Source(12, 33) + SourceIndex(0) +4 >Emitted(8, 50) Source(12, 39) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(10, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(10, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(12, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare function secondsecond_part1Spread(...b: number[]): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^ +6 > ^^^ +7 > ^^^^^^ +8 > ^^ +9 > ^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part1Spread +4 > ( +5 > ... +6 > b: +7 > number +8 > [] +9 > ) { } +1->Emitted(14, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(14, 18) Source(13, 10) + SourceIndex(2) +3 >Emitted(14, 42) Source(13, 34) + SourceIndex(2) +4 >Emitted(14, 43) Source(13, 35) + SourceIndex(2) +5 >Emitted(14, 46) Source(13, 38) + SourceIndex(2) +6 >Emitted(14, 49) Source(13, 41) + SourceIndex(2) +7 >Emitted(14, 55) Source(13, 47) + SourceIndex(2) +8 >Emitted(14, 57) Source(13, 49) + SourceIndex(2) +9 >Emitted(14, 65) Source(13, 54) + SourceIndex(2) +--- +>>>declare const secondsecond_part1_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > secondsecond_part1_ar +5 > = [20, 30] +6 > ; +1 >Emitted(15, 1) Source(14, 1) + SourceIndex(2) +2 >Emitted(15, 9) Source(14, 1) + SourceIndex(2) +3 >Emitted(15, 15) Source(14, 7) + SourceIndex(2) +4 >Emitted(15, 36) Source(14, 28) + SourceIndex(2) +5 >Emitted(15, 46) Source(14, 39) + SourceIndex(2) +6 >Emitted(15, 47) Source(14, 40) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >class +3 > C +1 >Emitted(16, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(16, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(16, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(17, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(17, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(18, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(19, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(19, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(19, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(19, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(19, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(19, 18) Source(1, 17) + SourceIndex(4) +--- +>>>declare function forthirdthird_part1Rest(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^ +1-> + >c.doSomething(); + > +2 >function +3 > forthirdthird_part1Rest +4 > () { + > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; + > } +1->Emitted(20, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(20, 18) Source(3, 10) + SourceIndex(4) +3 >Emitted(20, 41) Source(3, 33) + SourceIndex(4) +4 >Emitted(20, 50) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function secondsecond_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var secondsecond_part1_ar = [20, 30]; +secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false)); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,WAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { +>>> if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { +>>> if (ar || !(i in from)) { +>>> if (!ar) ar = Array.prototype.slice.call(from, 0, i); +>>> ar[i] = from[i]; +>>> } +>>> } +>>> return to.concat(ar || Array.prototype.slice.call(from)); +>>>}; +>>>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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) +>>> t[p[i]] = s[p[i]]; +>>> } +>>> return t; +>>>}; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(37, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(37, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(37, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(37, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(37, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(37, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(38, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(38, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(38, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(38, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(38, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(38, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(38, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(38, 16) Source(11, 16) + SourceIndex(0) +--- +>>>function forfirstfirst_PART1Rest() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + > +2 >function +3 > forfirstfirst_PART1Rest +4 > () { +5 > } +1->Emitted(39, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(39, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(39, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(39, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(39, 39) Source(12, 39) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(40, 1) Source(12, 39) + SourceIndex(0) +2 >Emitted(40, 8) Source(12, 46) + SourceIndex(0) +3 >Emitted(40, 9) Source(12, 47) + SourceIndex(0) +4 >Emitted(40, 12) Source(12, 50) + SourceIndex(0) +5 >Emitted(40, 13) Source(12, 51) + SourceIndex(0) +6 >Emitted(40, 14) Source(12, 52) + SourceIndex(0) +7 >Emitted(40, 15) Source(12, 53) + SourceIndex(0) +8 >Emitted(40, 16) Source(12, 54) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(41, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(41, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(41, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(41, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(41, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(41, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(41, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(41, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(41, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(42, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(42, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(42, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(43, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(43, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(43, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(43, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(44, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(44, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(45, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(45, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(45, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(45, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(46, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(46, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(46, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(47, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(47, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(47, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(48, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(48, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(48, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(48, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(48, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(48, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(48, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(48, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(49, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(49, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(50, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(50, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(50, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(50, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(51, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(51, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(51, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(51, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(51, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(51, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(51, 19) Source(11, 2) + SourceIndex(3) +--- +>>>function secondsecond_part1Spread() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > + > +2 >function +3 > secondsecond_part1Spread +1->Emitted(52, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(52, 10) Source(13, 10) + SourceIndex(3) +3 >Emitted(52, 34) Source(13, 34) + SourceIndex(3) +--- +>>> var b = []; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >( +2 > ...b: number[] +1 >Emitted(53, 5) Source(13, 35) + SourceIndex(3) +2 >Emitted(53, 16) Source(13, 49) + SourceIndex(3) +--- +>>> 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(54, 10) Source(13, 35) + SourceIndex(3) +2 >Emitted(54, 20) Source(13, 49) + SourceIndex(3) +3 >Emitted(54, 22) Source(13, 35) + SourceIndex(3) +4 >Emitted(54, 43) Source(13, 49) + SourceIndex(3) +5 >Emitted(54, 45) Source(13, 35) + SourceIndex(3) +6 >Emitted(54, 49) Source(13, 49) + SourceIndex(3) +--- +>>> b[_i] = arguments[_i]; +1 >^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 > ...b: number[] +1 >Emitted(55, 9) Source(13, 35) + SourceIndex(3) +2 >Emitted(55, 31) Source(13, 49) + SourceIndex(3) +--- +>>> } +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >) { +2 >} +1 >Emitted(57, 1) Source(13, 53) + SourceIndex(3) +2 >Emitted(57, 2) Source(13, 54) + SourceIndex(3) +--- +>>>var secondsecond_part1_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > secondsecond_part1_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(58, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(58, 5) Source(14, 7) + SourceIndex(3) +3 >Emitted(58, 26) Source(14, 28) + SourceIndex(3) +4 >Emitted(58, 29) Source(14, 31) + SourceIndex(3) +5 >Emitted(58, 30) Source(14, 32) + SourceIndex(3) +6 >Emitted(58, 32) Source(14, 34) + SourceIndex(3) +7 >Emitted(58, 34) Source(14, 36) + SourceIndex(3) +8 >Emitted(58, 36) Source(14, 38) + SourceIndex(3) +9 >Emitted(58, 37) Source(14, 39) + SourceIndex(3) +10>Emitted(58, 38) Source(14, 40) + SourceIndex(3) +--- +>>>secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false)); +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^^^^ +1-> + > +2 >secondsecond_part1Spread +3 > ( +4 > 10 +5 > , ... +6 > secondsecond_part1_ar +7 > ); +1->Emitted(59, 1) Source(15, 1) + SourceIndex(3) +2 >Emitted(59, 25) Source(15, 25) + SourceIndex(3) +3 >Emitted(59, 55) Source(15, 26) + SourceIndex(3) +4 >Emitted(59, 57) Source(15, 28) + SourceIndex(3) +5 >Emitted(59, 67) Source(15, 33) + SourceIndex(3) +6 >Emitted(59, 88) Source(15, 54) + SourceIndex(3) +7 >Emitted(59, 99) Source(15, 56) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(60, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(61, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(62, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(62, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(63, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(63, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(63, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(64, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(64, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(64, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(64, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(64, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(64, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(64, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(64, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(65, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(65, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(66, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(66, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(67, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(67, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(67, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(67, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(68, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(68, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(68, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(68, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(68, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(68, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(68, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(68, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(69, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(69, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(69, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(69, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(69, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(69, 17) Source(2, 17) + SourceIndex(5) +--- +>>>function forthirdthird_part1Rest() { +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >function +3 > forthirdthird_part1Rest +1->Emitted(70, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(70, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(70, 33) Source(3, 33) + SourceIndex(5) +--- +>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +1->^^^^ +2 > ^^^^ +3 > ^^^^^ +4 > ^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^^ +11> ^^ +12> ^^ +13> ^^ +14> ^^ +15> ^^ +16> ^^ +17> ^^ +18> ^ +19> ^^^^^^^ +20> ^^ +21> ^^^^ +22> ^^^^^^^^^^^^^^ +23> ^^^^^ +24> ^ +25> ^ +1->() { + > +2 > const +3 > { b, ...rest } = +4 > { +5 > a +6 > : +7 > 10 +8 > , +9 > b +10> : +11> 30 +12> , +13> yy +14> : +15> 30 +16> } +17> +18> b +19> +20> , ... +21> rest +22> +23> { b, ...rest } +24> = { a: 10, b: 30, yy: 30 } +25> ; +1->Emitted(71, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(71, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(71, 14) Source(4, 24) + SourceIndex(5) +4 >Emitted(71, 16) Source(4, 26) + SourceIndex(5) +5 >Emitted(71, 17) Source(4, 27) + SourceIndex(5) +6 >Emitted(71, 19) Source(4, 29) + SourceIndex(5) +7 >Emitted(71, 21) Source(4, 31) + SourceIndex(5) +8 >Emitted(71, 23) Source(4, 33) + SourceIndex(5) +9 >Emitted(71, 24) Source(4, 34) + SourceIndex(5) +10>Emitted(71, 26) Source(4, 36) + SourceIndex(5) +11>Emitted(71, 28) Source(4, 38) + SourceIndex(5) +12>Emitted(71, 30) Source(4, 40) + SourceIndex(5) +13>Emitted(71, 32) Source(4, 42) + SourceIndex(5) +14>Emitted(71, 34) Source(4, 44) + SourceIndex(5) +15>Emitted(71, 36) Source(4, 46) + SourceIndex(5) +16>Emitted(71, 38) Source(4, 48) + SourceIndex(5) +17>Emitted(71, 40) Source(4, 9) + SourceIndex(5) +18>Emitted(71, 41) Source(4, 10) + SourceIndex(5) +19>Emitted(71, 48) Source(4, 10) + SourceIndex(5) +20>Emitted(71, 50) Source(4, 15) + SourceIndex(5) +21>Emitted(71, 54) Source(4, 19) + SourceIndex(5) +22>Emitted(71, 68) Source(4, 7) + SourceIndex(5) +23>Emitted(71, 73) Source(4, 21) + SourceIndex(5) +24>Emitted(71, 74) Source(4, 48) + SourceIndex(5) +25>Emitted(71, 75) Source(4, 49) + SourceIndex(5) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(72, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(72, 2) Source(5, 2) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":504,"kind":"emitHelpers","data":"typescript:read"},{"pos":506,"end":894,"kind":"emitHelpers","data":"typescript:spreadArray"},{"pos":896,"end":1396,"kind":"emitHelpers","data":"typescript:rest"},{"pos":1398,"end":1565,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":1398,"end":1565,"kind":"text"}]},{"pos":1565,"end":2140,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":1565,"end":2140,"kind":"text"}]},{"pos":2140,"end":2293,"kind":"text"}],"sources":{"helpers":["typescript:rest"]}},"dts":{"sections":[{"pos":0,"end":208,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":208,"kind":"text"}]},{"pos":208,"end":422,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":208,"end":422,"kind":"text"}]},{"pos":422,"end":492,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.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-894):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); +}; +---------------------------------------------------------------------- +emitHelpers: (896-1396):: 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 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; +}; +---------------------------------------------------------------------- +prepend: (1398-1565):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1398-1565) +var s = "Hello, world"; +console.log(s); +function forfirstfirst_PART1Rest() { } +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (1565-2140):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (1565-2140) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +function secondsecond_part1Spread() { + var b = []; + for (var _i = 0; _i < arguments.length; _i++) { + b[_i] = arguments[_i]; + } +} +var secondsecond_part1_ar = [20, 30]; +secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar), false)); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (2140-2293) +var c = new C(); +c.doSomething(); +function forthirdthird_part1Rest() { + var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); +} + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-208):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-208) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function forfirstfirst_PART1Rest(): void; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (208-422):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (208-422) +declare namespace N { +} +declare namespace N { +} +declare function secondsecond_part1Spread(...b: number[]): void; +declare const secondsecond_part1_ar: number[]; +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (422-492) +declare var c: C; +declare function forthirdthird_part1Rest(): void; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 894, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 896, + "end": 1396, + "kind": "emitHelpers", + "data": "typescript:rest" + }, + { + "pos": 1398, + "end": 1565, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 1398, + "end": 1565, + "kind": "text" + } + ] + }, + { + "pos": 1565, + "end": 2140, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 1565, + "end": 2140, + "kind": "text" + } + ] + }, + { + "pos": 2140, + "end": 2293, + "kind": "text" + } + ], + "sources": { + "helpers": [ + "typescript:rest" + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 208, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 208, + "kind": "text" + } + ] + }, + { + "pos": 208, + "end": 422, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 208, + "end": 422, + "kind": "text" + } + ] + }, + { + "pos": 422, + "end": 492, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 986 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-all-projects.js index e6014ff26fe47..64c095e370448 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-all-projects.js @@ -2195,3 +2195,4298 @@ declare var c: C; "size": 1268 } + + +Change:: incremental-declaration-changes +Input:: +//// [/src/first/first_PART1.ts] +"myPrologue" +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +[12:04:00 AM] Building project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(6, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +"use strict"; +"myPrologue"; +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.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 s = "Hola, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(3, 22) Source(6, 24) + SourceIndex(0) +6 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":139,"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":156,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +text: (30-139) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 139, + "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": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 588 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(6, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 >"myPrologue" + > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(2, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(2, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(2, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(6, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(6, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(6, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1->"myPrologue2"; + > +2 >class +3 > C +1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(2, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(3, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue3"; + >"myPrologue"; + > +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(3, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(3, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(3, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(3, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(3, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +"myPrologue"; +"myPrologue2"; +"myPrologue3"; +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part2.ts","../../third_part1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../second/second_part2.ts,../../third_part1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.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/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>"myPrologue2"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> +2 >"myPrologue2" +3 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 15) Source(1, 15) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>"myPrologue3"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^-> +1-> +2 >"myPrologue3" +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/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1->"myPrologue" + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(5, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(5, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(5, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(5, 22) Source(6, 24) + SourceIndex(0) +6 >Emitted(5, 23) Source(6, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(6, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(6, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(6, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(6, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(6, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(6, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(6, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(6, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(7, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(7, 8) Source(1, 8) + SourceIndex(3) +3 >Emitted(7, 9) Source(1, 9) + SourceIndex(3) +4 >Emitted(7, 12) Source(1, 12) + SourceIndex(3) +5 >Emitted(7, 13) Source(1, 13) + SourceIndex(3) +6 >Emitted(7, 14) Source(1, 14) + SourceIndex(3) +7 >Emitted(7, 16) Source(1, 16) + SourceIndex(3) +8 >Emitted(7, 17) Source(1, 17) + SourceIndex(3) +9 >Emitted(7, 18) Source(1, 18) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(8, 10) Source(1, 10) + SourceIndex(4) +3 >Emitted(8, 11) Source(1, 11) + SourceIndex(4) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(9, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(9, 12) Source(2, 12) + SourceIndex(4) +3 >Emitted(9, 28) Source(2, 28) + SourceIndex(4) +4 >Emitted(9, 29) Source(2, 29) + SourceIndex(4) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(10, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(10, 2) Source(3, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->"myPrologue" + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(11, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(11, 5) Source(6, 11) + SourceIndex(5) +3 >Emitted(11, 6) Source(6, 12) + SourceIndex(5) +4 >Emitted(11, 7) Source(12, 2) + SourceIndex(5) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(12, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(12, 12) Source(6, 11) + SourceIndex(5) +3 >Emitted(12, 13) Source(6, 12) + SourceIndex(5) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(13, 5) Source(7, 5) + SourceIndex(5) +2 >Emitted(13, 14) Source(7, 14) + SourceIndex(5) +3 >Emitted(13, 15) Source(7, 15) + SourceIndex(5) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(14, 9) Source(8, 9) + SourceIndex(5) +2 >Emitted(14, 16) Source(8, 16) + SourceIndex(5) +3 >Emitted(14, 17) Source(8, 17) + SourceIndex(5) +4 >Emitted(14, 20) Source(8, 20) + SourceIndex(5) +5 >Emitted(14, 21) Source(8, 21) + SourceIndex(5) +6 >Emitted(14, 30) Source(8, 30) + SourceIndex(5) +7 >Emitted(14, 31) Source(8, 31) + SourceIndex(5) +8 >Emitted(14, 32) Source(8, 32) + SourceIndex(5) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(15, 5) Source(9, 5) + SourceIndex(5) +2 >Emitted(15, 6) Source(9, 6) + SourceIndex(5) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(16, 5) Source(11, 5) + SourceIndex(5) +2 >Emitted(16, 6) Source(11, 6) + SourceIndex(5) +3 >Emitted(16, 8) Source(11, 8) + SourceIndex(5) +4 >Emitted(16, 9) Source(11, 9) + SourceIndex(5) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(17, 1) Source(12, 1) + SourceIndex(5) +2 >Emitted(17, 2) Source(12, 2) + SourceIndex(5) +3 >Emitted(17, 4) Source(6, 11) + SourceIndex(5) +4 >Emitted(17, 5) Source(6, 12) + SourceIndex(5) +5 >Emitted(17, 10) Source(6, 11) + SourceIndex(5) +6 >Emitted(17, 11) Source(6, 12) + SourceIndex(5) +7 >Emitted(17, 19) Source(12, 2) + SourceIndex(5) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue2"; + > +1->Emitted(18, 1) Source(2, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(19, 5) Source(2, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(20, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(20, 6) Source(6, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(21, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(21, 28) Source(3, 16) + SourceIndex(1) +3 >Emitted(21, 31) Source(3, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(22, 9) Source(4, 9) + SourceIndex(1) +2 >Emitted(22, 16) Source(4, 16) + SourceIndex(1) +3 >Emitted(22, 17) Source(4, 17) + SourceIndex(1) +4 >Emitted(22, 20) Source(4, 20) + SourceIndex(1) +5 >Emitted(22, 21) Source(4, 21) + SourceIndex(1) +6 >Emitted(22, 41) Source(4, 41) + SourceIndex(1) +7 >Emitted(22, 42) Source(4, 42) + SourceIndex(1) +8 >Emitted(22, 43) Source(4, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(23, 5) Source(5, 5) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(24, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(24, 13) Source(6, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(25, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(25, 2) Source(6, 2) + SourceIndex(1) +3 >Emitted(25, 2) Source(2, 1) + SourceIndex(1) +4 >Emitted(25, 6) Source(6, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1->"myPrologue3"; + >"myPrologue"; + > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(26, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(26, 5) Source(3, 5) + SourceIndex(2) +3 >Emitted(26, 6) Source(3, 6) + SourceIndex(2) +4 >Emitted(26, 9) Source(3, 9) + SourceIndex(2) +5 >Emitted(26, 13) Source(3, 13) + SourceIndex(2) +6 >Emitted(26, 14) Source(3, 14) + SourceIndex(2) +7 >Emitted(26, 16) Source(3, 16) + SourceIndex(2) +8 >Emitted(26, 17) Source(3, 17) + SourceIndex(2) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(27, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(27, 2) Source(4, 2) + SourceIndex(2) +3 >Emitted(27, 3) Source(4, 3) + SourceIndex(2) +4 >Emitted(27, 14) Source(4, 14) + SourceIndex(2) +5 >Emitted(27, 16) Source(4, 16) + SourceIndex(2) +6 >Emitted(27, 17) Source(4, 17) + SourceIndex(2) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue2"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue3"},{"pos":62,"end":171,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":62,"end":171,"kind":"text"}]},{"pos":171,"end":456,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":171,"end":456,"kind":"text"}]},{"pos":456,"end":492,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-44):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prologue: (46-60):: myPrologue3 +"myPrologue3"; +---------------------------------------------------------------------- +prepend: (62-171):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (62-171) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (171-456):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (171-456) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (456-492) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (156-256) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (256-275) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 44, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 46, + "end": 60, + "kind": "prologue", + "data": "myPrologue3" + }, + { + "pos": 62, + "end": 171, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 62, + "end": 171, + "kind": "text" + } + ] + }, + { + "pos": 171, + "end": 456, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 171, + "end": 456, + "kind": "text" + } + ] + }, + { + "pos": 456, + "end": 492, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue3\";\n\"myPrologue\";", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 14, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue3" + } + }, + { + "pos": 14, + "end": 28, + "expression": { + "pos": 14, + "end": 27, + "text": "myPrologue" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 256, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 156, + "end": 256, + "kind": "text" + } + ] + }, + { + "pos": 256, + "end": 275, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 1268 +} + + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +"myPrologue" +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:07:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:07:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:07:00 AM] Building project '/src/first/tsconfig.json'... + +[12:07:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:07:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:07:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +"use strict"; +"myPrologue"; +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.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 s = "Hola, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(3, 22) Source(6, 24) + SourceIndex(0) +6 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(5, 8) Source(13, 8) + SourceIndex(0) +3 >Emitted(5, 9) Source(13, 9) + SourceIndex(0) +4 >Emitted(5, 12) Source(13, 12) + SourceIndex(0) +5 >Emitted(5, 13) Source(13, 13) + SourceIndex(0) +6 >Emitted(5, 14) Source(13, 14) + SourceIndex(0) +7 >Emitted(5, 15) Source(13, 15) + SourceIndex(0) +8 >Emitted(5, 16) Source(13, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(6, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(6, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(6, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(6, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(6, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(6, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(6, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(6, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(7, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(7, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(8, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(8, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(8, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(8, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(9, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":156,"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":156,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +text: (30-156) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 156, + "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": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 588 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +"myPrologue"; +"myPrologue2"; +"myPrologue3"; +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part2.ts","../../third_part1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../second/second_part2.ts,../../third_part1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.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/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>"myPrologue2"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> +2 >"myPrologue2" +3 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 15) Source(1, 15) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>"myPrologue3"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^-> +1-> +2 >"myPrologue3" +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/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1->"myPrologue" + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(5, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(5, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(5, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(5, 22) Source(6, 24) + SourceIndex(0) +6 >Emitted(5, 23) Source(6, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(6, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(6, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(6, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(6, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(6, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(6, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(6, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(6, 16) Source(12, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(7, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(7, 8) Source(13, 8) + SourceIndex(0) +3 >Emitted(7, 9) Source(13, 9) + SourceIndex(0) +4 >Emitted(7, 12) Source(13, 12) + SourceIndex(0) +5 >Emitted(7, 13) Source(13, 13) + SourceIndex(0) +6 >Emitted(7, 14) Source(13, 14) + SourceIndex(0) +7 >Emitted(7, 15) Source(13, 15) + SourceIndex(0) +8 >Emitted(7, 16) Source(13, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(8, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(8, 8) Source(1, 8) + SourceIndex(3) +3 >Emitted(8, 9) Source(1, 9) + SourceIndex(3) +4 >Emitted(8, 12) Source(1, 12) + SourceIndex(3) +5 >Emitted(8, 13) Source(1, 13) + SourceIndex(3) +6 >Emitted(8, 14) Source(1, 14) + SourceIndex(3) +7 >Emitted(8, 16) Source(1, 16) + SourceIndex(3) +8 >Emitted(8, 17) Source(1, 17) + SourceIndex(3) +9 >Emitted(8, 18) Source(1, 18) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(9, 10) Source(1, 10) + SourceIndex(4) +3 >Emitted(9, 11) Source(1, 11) + SourceIndex(4) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(10, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(10, 12) Source(2, 12) + SourceIndex(4) +3 >Emitted(10, 28) Source(2, 28) + SourceIndex(4) +4 >Emitted(10, 29) Source(2, 29) + SourceIndex(4) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(11, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(11, 2) Source(3, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->"myPrologue" + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(12, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(12, 5) Source(6, 11) + SourceIndex(5) +3 >Emitted(12, 6) Source(6, 12) + SourceIndex(5) +4 >Emitted(12, 7) Source(12, 2) + SourceIndex(5) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(13, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(13, 12) Source(6, 11) + SourceIndex(5) +3 >Emitted(13, 13) Source(6, 12) + SourceIndex(5) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(14, 5) Source(7, 5) + SourceIndex(5) +2 >Emitted(14, 14) Source(7, 14) + SourceIndex(5) +3 >Emitted(14, 15) Source(7, 15) + SourceIndex(5) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(15, 9) Source(8, 9) + SourceIndex(5) +2 >Emitted(15, 16) Source(8, 16) + SourceIndex(5) +3 >Emitted(15, 17) Source(8, 17) + SourceIndex(5) +4 >Emitted(15, 20) Source(8, 20) + SourceIndex(5) +5 >Emitted(15, 21) Source(8, 21) + SourceIndex(5) +6 >Emitted(15, 30) Source(8, 30) + SourceIndex(5) +7 >Emitted(15, 31) Source(8, 31) + SourceIndex(5) +8 >Emitted(15, 32) Source(8, 32) + SourceIndex(5) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(16, 5) Source(9, 5) + SourceIndex(5) +2 >Emitted(16, 6) Source(9, 6) + SourceIndex(5) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(17, 5) Source(11, 5) + SourceIndex(5) +2 >Emitted(17, 6) Source(11, 6) + SourceIndex(5) +3 >Emitted(17, 8) Source(11, 8) + SourceIndex(5) +4 >Emitted(17, 9) Source(11, 9) + SourceIndex(5) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(18, 1) Source(12, 1) + SourceIndex(5) +2 >Emitted(18, 2) Source(12, 2) + SourceIndex(5) +3 >Emitted(18, 4) Source(6, 11) + SourceIndex(5) +4 >Emitted(18, 5) Source(6, 12) + SourceIndex(5) +5 >Emitted(18, 10) Source(6, 11) + SourceIndex(5) +6 >Emitted(18, 11) Source(6, 12) + SourceIndex(5) +7 >Emitted(18, 19) Source(12, 2) + SourceIndex(5) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue2"; + > +1->Emitted(19, 1) Source(2, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(20, 5) Source(2, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(21, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(21, 6) Source(6, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(22, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(22, 28) Source(3, 16) + SourceIndex(1) +3 >Emitted(22, 31) Source(3, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(23, 9) Source(4, 9) + SourceIndex(1) +2 >Emitted(23, 16) Source(4, 16) + SourceIndex(1) +3 >Emitted(23, 17) Source(4, 17) + SourceIndex(1) +4 >Emitted(23, 20) Source(4, 20) + SourceIndex(1) +5 >Emitted(23, 21) Source(4, 21) + SourceIndex(1) +6 >Emitted(23, 41) Source(4, 41) + SourceIndex(1) +7 >Emitted(23, 42) Source(4, 42) + SourceIndex(1) +8 >Emitted(23, 43) Source(4, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(24, 5) Source(5, 5) + SourceIndex(1) +2 >Emitted(24, 6) Source(5, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(25, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(25, 13) Source(6, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(26, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(26, 2) Source(6, 2) + SourceIndex(1) +3 >Emitted(26, 2) Source(2, 1) + SourceIndex(1) +4 >Emitted(26, 6) Source(6, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1->"myPrologue3"; + >"myPrologue"; + > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(27, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(27, 5) Source(3, 5) + SourceIndex(2) +3 >Emitted(27, 6) Source(3, 6) + SourceIndex(2) +4 >Emitted(27, 9) Source(3, 9) + SourceIndex(2) +5 >Emitted(27, 13) Source(3, 13) + SourceIndex(2) +6 >Emitted(27, 14) Source(3, 14) + SourceIndex(2) +7 >Emitted(27, 16) Source(3, 16) + SourceIndex(2) +8 >Emitted(27, 17) Source(3, 17) + SourceIndex(2) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(28, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(4, 2) + SourceIndex(2) +3 >Emitted(28, 3) Source(4, 3) + SourceIndex(2) +4 >Emitted(28, 14) Source(4, 14) + SourceIndex(2) +5 >Emitted(28, 16) Source(4, 16) + SourceIndex(2) +6 >Emitted(28, 17) Source(4, 17) + SourceIndex(2) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue2"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue3"},{"pos":62,"end":188,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":62,"end":188,"kind":"text"}]},{"pos":188,"end":473,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":188,"end":473,"kind":"text"}]},{"pos":473,"end":509,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-44):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prologue: (46-60):: myPrologue3 +"myPrologue3"; +---------------------------------------------------------------------- +prepend: (62-188):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (62-188) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (188-473):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (188-473) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (473-509) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (156-256) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (256-275) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 44, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 46, + "end": 60, + "kind": "prologue", + "data": "myPrologue3" + }, + { + "pos": 62, + "end": 188, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 62, + "end": 188, + "kind": "text" + } + ] + }, + { + "pos": 188, + "end": 473, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 188, + "end": 473, + "kind": "text" + } + ] + }, + { + "pos": 473, + "end": 509, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue3\";\n\"myPrologue\";", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 14, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue3" + } + }, + { + "pos": 14, + "end": 28, + "expression": { + "pos": 14, + "end": 27, + "text": "myPrologue" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 256, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 156, + "end": 256, + "kind": "text" + } + ] + }, + { + "pos": 256, + "end": 275, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 1268 +} + + + +Change:: incremental-headers-change-without-dts-changes +Input:: +//// [/src/first/first_PART1.ts] +"myPrologue5" +"myPrologue" +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:10:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:10:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:10:00 AM] Building project '/src/first/tsconfig.json'... + +[12:10:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:10:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:10:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:10:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AEVD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue5" + >"myPrologue" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(3, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(3, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(4, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(4, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(4, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(4, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(5, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(7, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(7, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(7, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(7, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(7, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(9, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(10, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(10, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(10, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +"use strict"; +"myPrologue5"; +"myPrologue"; +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue5"; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +1 > +2 >"myPrologue5" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(2, 15) Source(1, 14) + SourceIndex(0) +--- +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > + > +2 >"myPrologue" +3 > +1 >Emitted(3, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 13) Source(2, 13) + SourceIndex(0) +3 >Emitted(3, 14) Source(2, 13) + SourceIndex(0) +--- +>>>var s = "Hola, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1->Emitted(4, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(4, 5) Source(7, 7) + SourceIndex(0) +3 >Emitted(4, 6) Source(7, 8) + SourceIndex(0) +4 >Emitted(4, 9) Source(7, 11) + SourceIndex(0) +5 >Emitted(4, 22) Source(7, 24) + SourceIndex(0) +6 >Emitted(4, 23) Source(7, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(5, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(5, 8) Source(13, 8) + SourceIndex(0) +3 >Emitted(5, 9) Source(13, 9) + SourceIndex(0) +4 >Emitted(5, 12) Source(13, 12) + SourceIndex(0) +5 >Emitted(5, 13) Source(13, 13) + SourceIndex(0) +6 >Emitted(5, 14) Source(13, 14) + SourceIndex(0) +7 >Emitted(5, 15) Source(13, 15) + SourceIndex(0) +8 >Emitted(5, 16) Source(13, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(6, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(6, 8) Source(14, 8) + SourceIndex(0) +3 >Emitted(6, 9) Source(14, 9) + SourceIndex(0) +4 >Emitted(6, 12) Source(14, 12) + SourceIndex(0) +5 >Emitted(6, 13) Source(14, 13) + SourceIndex(0) +6 >Emitted(6, 14) Source(14, 14) + SourceIndex(0) +7 >Emitted(6, 15) Source(14, 15) + SourceIndex(0) +8 >Emitted(6, 16) Source(14, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(7, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(7, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(7, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(7, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(7, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(7, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(7, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(7, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(7, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(9, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(9, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(9, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(9, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(10, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":29,"kind":"prologue","data":"myPrologue5"},{"pos":31,"end":44,"kind":"prologue","data":"myPrologue"},{"pos":46,"end":172,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue5\"\n\"myPrologue\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue5"}},{"pos":13,"end":26,"expression":{"pos":13,"end":26,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-29):: myPrologue5 +"myPrologue5"; +---------------------------------------------------------------------- +prologue: (31-44):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +text: (46-172) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 29, + "kind": "prologue", + "data": "myPrologue5" + }, + { + "pos": 31, + "end": 44, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 46, + "end": 172, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue5\"\n\"myPrologue\"", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 13, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue5" + } + }, + { + "pos": 13, + "end": 26, + "expression": { + "pos": 13, + "end": 26, + "text": "myPrologue" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 738 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAEA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACVD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue5" + >"myPrologue" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(3, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(3, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(4, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(4, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(4, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(4, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(5, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(7, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(7, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(7, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(7, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(7, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(9, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(9, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(10, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(10, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(10, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 >"myPrologue" + > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(2, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(2, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(2, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(6, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(6, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(6, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1->"myPrologue2"; + > +2 >class +3 > C +1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(2, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(3, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue3"; + >"myPrologue"; + > +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(3, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(3, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(3, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(3, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(3, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +"myPrologue5"; +"myPrologue"; +"myPrologue2"; +"myPrologue3"; +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part2.ts","../../third_part1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts"],"names":[],"mappings":";AAAA,aAAa,CAAA;AACb,YAAY,CAAA;ACDZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFMd,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGbf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../second/second_part2.ts,../../third_part1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue5"; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +1 > +2 >"myPrologue5" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(2, 15) Source(1, 14) + SourceIndex(0) +--- +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^-> +1 > + > +2 >"myPrologue" +3 > +1 >Emitted(3, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(3, 13) Source(2, 13) + SourceIndex(0) +3 >Emitted(3, 14) Source(2, 13) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>"myPrologue2"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> +2 >"myPrologue2" +3 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(4, 15) Source(1, 15) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>"myPrologue3"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^-> +1-> +2 >"myPrologue3" +3 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 14) Source(1, 14) + SourceIndex(2) +3 >Emitted(5, 15) Source(1, 15) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1->"myPrologue5" + >"myPrologue" + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1->Emitted(6, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(6, 5) Source(7, 7) + SourceIndex(0) +3 >Emitted(6, 6) Source(7, 8) + SourceIndex(0) +4 >Emitted(6, 9) Source(7, 11) + SourceIndex(0) +5 >Emitted(6, 22) Source(7, 24) + SourceIndex(0) +6 >Emitted(6, 23) Source(7, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(7, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(7, 8) Source(13, 8) + SourceIndex(0) +3 >Emitted(7, 9) Source(13, 9) + SourceIndex(0) +4 >Emitted(7, 12) Source(13, 12) + SourceIndex(0) +5 >Emitted(7, 13) Source(13, 13) + SourceIndex(0) +6 >Emitted(7, 14) Source(13, 14) + SourceIndex(0) +7 >Emitted(7, 15) Source(13, 15) + SourceIndex(0) +8 >Emitted(7, 16) Source(13, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(8, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(8, 8) Source(14, 8) + SourceIndex(0) +3 >Emitted(8, 9) Source(14, 9) + SourceIndex(0) +4 >Emitted(8, 12) Source(14, 12) + SourceIndex(0) +5 >Emitted(8, 13) Source(14, 13) + SourceIndex(0) +6 >Emitted(8, 14) Source(14, 14) + SourceIndex(0) +7 >Emitted(8, 15) Source(14, 15) + SourceIndex(0) +8 >Emitted(8, 16) Source(14, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(9, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(9, 8) Source(1, 8) + SourceIndex(3) +3 >Emitted(9, 9) Source(1, 9) + SourceIndex(3) +4 >Emitted(9, 12) Source(1, 12) + SourceIndex(3) +5 >Emitted(9, 13) Source(1, 13) + SourceIndex(3) +6 >Emitted(9, 14) Source(1, 14) + SourceIndex(3) +7 >Emitted(9, 16) Source(1, 16) + SourceIndex(3) +8 >Emitted(9, 17) Source(1, 17) + SourceIndex(3) +9 >Emitted(9, 18) Source(1, 18) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(10, 10) Source(1, 10) + SourceIndex(4) +3 >Emitted(10, 11) Source(1, 11) + SourceIndex(4) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(11, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(11, 12) Source(2, 12) + SourceIndex(4) +3 >Emitted(11, 28) Source(2, 28) + SourceIndex(4) +4 >Emitted(11, 29) Source(2, 29) + SourceIndex(4) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(12, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(12, 2) Source(3, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->"myPrologue" + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(13, 5) Source(6, 11) + SourceIndex(5) +3 >Emitted(13, 6) Source(6, 12) + SourceIndex(5) +4 >Emitted(13, 7) Source(12, 2) + SourceIndex(5) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(14, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(14, 12) Source(6, 11) + SourceIndex(5) +3 >Emitted(14, 13) Source(6, 12) + SourceIndex(5) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(15, 5) Source(7, 5) + SourceIndex(5) +2 >Emitted(15, 14) Source(7, 14) + SourceIndex(5) +3 >Emitted(15, 15) Source(7, 15) + SourceIndex(5) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(16, 9) Source(8, 9) + SourceIndex(5) +2 >Emitted(16, 16) Source(8, 16) + SourceIndex(5) +3 >Emitted(16, 17) Source(8, 17) + SourceIndex(5) +4 >Emitted(16, 20) Source(8, 20) + SourceIndex(5) +5 >Emitted(16, 21) Source(8, 21) + SourceIndex(5) +6 >Emitted(16, 30) Source(8, 30) + SourceIndex(5) +7 >Emitted(16, 31) Source(8, 31) + SourceIndex(5) +8 >Emitted(16, 32) Source(8, 32) + SourceIndex(5) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(17, 5) Source(9, 5) + SourceIndex(5) +2 >Emitted(17, 6) Source(9, 6) + SourceIndex(5) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(18, 5) Source(11, 5) + SourceIndex(5) +2 >Emitted(18, 6) Source(11, 6) + SourceIndex(5) +3 >Emitted(18, 8) Source(11, 8) + SourceIndex(5) +4 >Emitted(18, 9) Source(11, 9) + SourceIndex(5) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(19, 1) Source(12, 1) + SourceIndex(5) +2 >Emitted(19, 2) Source(12, 2) + SourceIndex(5) +3 >Emitted(19, 4) Source(6, 11) + SourceIndex(5) +4 >Emitted(19, 5) Source(6, 12) + SourceIndex(5) +5 >Emitted(19, 10) Source(6, 11) + SourceIndex(5) +6 >Emitted(19, 11) Source(6, 12) + SourceIndex(5) +7 >Emitted(19, 19) Source(12, 2) + SourceIndex(5) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue2"; + > +1->Emitted(20, 1) Source(2, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(21, 5) Source(2, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(22, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(22, 6) Source(6, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(23, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(23, 28) Source(3, 16) + SourceIndex(1) +3 >Emitted(23, 31) Source(3, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(24, 9) Source(4, 9) + SourceIndex(1) +2 >Emitted(24, 16) Source(4, 16) + SourceIndex(1) +3 >Emitted(24, 17) Source(4, 17) + SourceIndex(1) +4 >Emitted(24, 20) Source(4, 20) + SourceIndex(1) +5 >Emitted(24, 21) Source(4, 21) + SourceIndex(1) +6 >Emitted(24, 41) Source(4, 41) + SourceIndex(1) +7 >Emitted(24, 42) Source(4, 42) + SourceIndex(1) +8 >Emitted(24, 43) Source(4, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(25, 5) Source(5, 5) + SourceIndex(1) +2 >Emitted(25, 6) Source(5, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(26, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(26, 13) Source(6, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(27, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(27, 2) Source(6, 2) + SourceIndex(1) +3 >Emitted(27, 2) Source(2, 1) + SourceIndex(1) +4 >Emitted(27, 6) Source(6, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1->"myPrologue3"; + >"myPrologue"; + > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(28, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(28, 5) Source(3, 5) + SourceIndex(2) +3 >Emitted(28, 6) Source(3, 6) + SourceIndex(2) +4 >Emitted(28, 9) Source(3, 9) + SourceIndex(2) +5 >Emitted(28, 13) Source(3, 13) + SourceIndex(2) +6 >Emitted(28, 14) Source(3, 14) + SourceIndex(2) +7 >Emitted(28, 16) Source(3, 16) + SourceIndex(2) +8 >Emitted(28, 17) Source(3, 17) + SourceIndex(2) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(29, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(29, 2) Source(4, 2) + SourceIndex(2) +3 >Emitted(29, 3) Source(4, 3) + SourceIndex(2) +4 >Emitted(29, 14) Source(4, 14) + SourceIndex(2) +5 >Emitted(29, 16) Source(4, 16) + SourceIndex(2) +6 >Emitted(29, 17) Source(4, 17) + SourceIndex(2) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":29,"kind":"prologue","data":"myPrologue5"},{"pos":31,"end":44,"kind":"prologue","data":"myPrologue"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue2"},{"pos":62,"end":76,"kind":"prologue","data":"myPrologue3"},{"pos":78,"end":204,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":78,"end":204,"kind":"text"}]},{"pos":204,"end":489,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":204,"end":489,"kind":"text"}]},{"pos":489,"end":525,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue3\";\n\"myPrologue\";","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":14,"expression":{"pos":0,"end":13,"text":"myPrologue3"}},{"pos":14,"end":28,"expression":{"pos":14,"end":27,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-29):: myPrologue5 +"myPrologue5"; +---------------------------------------------------------------------- +prologue: (31-44):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (46-60):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prologue: (62-76):: myPrologue3 +"myPrologue3"; +---------------------------------------------------------------------- +prepend: (78-204):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (78-204) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (204-489):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (204-489) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (489-525) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (156-256) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (256-275) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 29, + "kind": "prologue", + "data": "myPrologue5" + }, + { + "pos": 31, + "end": 44, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 46, + "end": 60, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 62, + "end": 76, + "kind": "prologue", + "data": "myPrologue3" + }, + { + "pos": 78, + "end": 204, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 78, + "end": 204, + "kind": "text" + } + ] + }, + { + "pos": 204, + "end": 489, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 204, + "end": 489, + "kind": "text" + } + ] + }, + { + "pos": 489, + "end": 525, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue3\";\n\"myPrologue\";", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 14, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue3" + } + }, + { + "pos": 14, + "end": 28, + "expression": { + "pos": 14, + "end": 27, + "text": "myPrologue" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 256, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 156, + "end": 256, + "kind": "text" + } + ] + }, + { + "pos": 256, + "end": 275, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 1327 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-different-projects.js index 1c70a7b2af1db..b13279d62ca76 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-different-projects.js @@ -2069,3 +2069,2579 @@ declare var c: C; "size": 1031 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +"use strict"; +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":142,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +text: (15-142) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 142, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 445 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +"myPrologue"; +"myPrologue2"; +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../second/second_part1.ts","../../../second/second_part2.ts","../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../second/second_part1.ts,../../../second/second_part2.ts,../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.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/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>"myPrologue2"; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >"myPrologue2" +3 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +3 >Emitted(3, 15) Source(1, 15) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1->interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(4, 5) Source(5, 7) + SourceIndex(2) +3 >Emitted(4, 6) Source(5, 8) + SourceIndex(2) +4 >Emitted(4, 9) Source(5, 11) + SourceIndex(2) +5 >Emitted(4, 23) Source(5, 25) + SourceIndex(2) +6 >Emitted(4, 24) Source(5, 26) + SourceIndex(2) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(5, 1) Source(11, 1) + SourceIndex(2) +2 >Emitted(5, 8) Source(11, 8) + SourceIndex(2) +3 >Emitted(5, 9) Source(11, 9) + SourceIndex(2) +4 >Emitted(5, 12) Source(11, 12) + SourceIndex(2) +5 >Emitted(5, 13) Source(11, 13) + SourceIndex(2) +6 >Emitted(5, 14) Source(11, 14) + SourceIndex(2) +7 >Emitted(5, 15) Source(11, 15) + SourceIndex(2) +8 >Emitted(5, 16) Source(11, 16) + SourceIndex(2) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(6, 1) Source(12, 1) + SourceIndex(2) +2 >Emitted(6, 8) Source(12, 8) + SourceIndex(2) +3 >Emitted(6, 9) Source(12, 9) + SourceIndex(2) +4 >Emitted(6, 12) Source(12, 12) + SourceIndex(2) +5 >Emitted(6, 13) Source(12, 13) + SourceIndex(2) +6 >Emitted(6, 14) Source(12, 14) + SourceIndex(2) +7 >Emitted(6, 15) Source(12, 15) + SourceIndex(2) +8 >Emitted(6, 16) Source(12, 16) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(7, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(7, 8) Source(1, 8) + SourceIndex(3) +3 >Emitted(7, 9) Source(1, 9) + SourceIndex(3) +4 >Emitted(7, 12) Source(1, 12) + SourceIndex(3) +5 >Emitted(7, 13) Source(1, 13) + SourceIndex(3) +6 >Emitted(7, 14) Source(1, 14) + SourceIndex(3) +7 >Emitted(7, 16) Source(1, 16) + SourceIndex(3) +8 >Emitted(7, 17) Source(1, 17) + SourceIndex(3) +9 >Emitted(7, 18) Source(1, 18) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(8, 10) Source(1, 10) + SourceIndex(4) +3 >Emitted(8, 11) Source(1, 11) + SourceIndex(4) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(9, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(9, 12) Source(2, 12) + SourceIndex(4) +3 >Emitted(9, 28) Source(2, 28) + SourceIndex(4) +4 >Emitted(9, 29) Source(2, 29) + SourceIndex(4) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(10, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(10, 2) Source(3, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->"myPrologue" + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(11, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(11, 5) Source(6, 11) + SourceIndex(0) +3 >Emitted(11, 6) Source(6, 12) + SourceIndex(0) +4 >Emitted(11, 7) Source(12, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(12, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(12, 12) Source(6, 11) + SourceIndex(0) +3 >Emitted(12, 13) Source(6, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(13, 5) Source(7, 5) + SourceIndex(0) +2 >Emitted(13, 14) Source(7, 14) + SourceIndex(0) +3 >Emitted(13, 15) Source(7, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(14, 9) Source(8, 9) + SourceIndex(0) +2 >Emitted(14, 16) Source(8, 16) + SourceIndex(0) +3 >Emitted(14, 17) Source(8, 17) + SourceIndex(0) +4 >Emitted(14, 20) Source(8, 20) + SourceIndex(0) +5 >Emitted(14, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(14, 30) Source(8, 30) + SourceIndex(0) +7 >Emitted(14, 31) Source(8, 31) + SourceIndex(0) +8 >Emitted(14, 32) Source(8, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(15, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(15, 6) Source(9, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(16, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(16, 6) Source(11, 6) + SourceIndex(0) +3 >Emitted(16, 8) Source(11, 8) + SourceIndex(0) +4 >Emitted(16, 9) Source(11, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(17, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(17, 2) Source(12, 2) + SourceIndex(0) +3 >Emitted(17, 4) Source(6, 11) + SourceIndex(0) +4 >Emitted(17, 5) Source(6, 12) + SourceIndex(0) +5 >Emitted(17, 10) Source(6, 11) + SourceIndex(0) +6 >Emitted(17, 11) Source(6, 12) + SourceIndex(0) +7 >Emitted(17, 19) Source(12, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue2"; + > +1->Emitted(18, 1) Source(2, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(19, 5) Source(2, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(20, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(20, 6) Source(6, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(21, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(21, 28) Source(3, 16) + SourceIndex(1) +3 >Emitted(21, 31) Source(3, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(22, 9) Source(4, 9) + SourceIndex(1) +2 >Emitted(22, 16) Source(4, 16) + SourceIndex(1) +3 >Emitted(22, 17) Source(4, 17) + SourceIndex(1) +4 >Emitted(22, 20) Source(4, 20) + SourceIndex(1) +5 >Emitted(22, 21) Source(4, 21) + SourceIndex(1) +6 >Emitted(22, 41) Source(4, 41) + SourceIndex(1) +7 >Emitted(22, 42) Source(4, 42) + SourceIndex(1) +8 >Emitted(22, 43) Source(4, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(23, 5) Source(5, 5) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(24, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(24, 13) Source(6, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(25, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(25, 2) Source(6, 2) + SourceIndex(1) +3 >Emitted(25, 2) Source(2, 1) + SourceIndex(1) +4 >Emitted(25, 6) Source(6, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(26, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(26, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(26, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(26, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(26, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(26, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(26, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(26, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(27, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(27, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(27, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(27, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(27, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(27, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":44,"kind":"prologue","data":"myPrologue2"},{"pos":46,"end":173,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":46,"end":173,"kind":"text"}]},{"pos":173,"end":458,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":173,"end":458,"kind":"text"}]},{"pos":458,"end":494,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (30-44):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prepend: (46-173):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (46-173) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (173-458):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (173-458) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (458-494) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 44, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 46, + "end": 173, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 46, + "end": 173, + "kind": "text" + } + ] + }, + { + "pos": 173, + "end": 458, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 173, + "end": 458, + "kind": "text" + } + ] + }, + { + "pos": 458, + "end": 494, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 1031 +} + + + +Change:: incremental-headers-change-without-dts-changes +Input:: +//// [/src/first/first_PART1.ts] +"myPrologue5" +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:07:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:07:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:07:00 AM] Building project '/src/first/tsconfig.json'... + +[12:07:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:07:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:07:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue5" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +"use strict"; +"myPrologue5"; +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,aAAa,CAAA;AAKb,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue5"; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1 > +2 >"myPrologue5" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(2, 15) Source(1, 14) + SourceIndex(0) +--- +>>>var s = "Hello, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1-> + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) +6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(5, 8) Source(13, 8) + SourceIndex(0) +3 >Emitted(5, 9) Source(13, 9) + SourceIndex(0) +4 >Emitted(5, 12) Source(13, 12) + SourceIndex(0) +5 >Emitted(5, 13) Source(13, 13) + SourceIndex(0) +6 >Emitted(5, 14) Source(13, 14) + SourceIndex(0) +7 >Emitted(5, 15) Source(13, 15) + SourceIndex(0) +8 >Emitted(5, 16) Source(13, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(6, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(6, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(6, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(6, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(6, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(6, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(6, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(6, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(7, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(7, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(8, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(8, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(8, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(8, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(9, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":29,"kind":"prologue","data":"myPrologue5"},{"pos":31,"end":158,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue5\"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}},{"pos":0,"end":13,"expression":{"pos":0,"end":13,"text":"myPrologue5"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-29):: myPrologue5 +"myPrologue5"; +---------------------------------------------------------------------- +text: (31-158) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 29, + "kind": "prologue", + "data": "myPrologue5" + }, + { + "pos": 31, + "end": 158, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue5\"", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + }, + { + "pos": 0, + "end": 13, + "expression": { + "pos": 0, + "end": 13, + "text": "myPrologue5" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 591 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue5" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 >"myPrologue" + > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(2, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(2, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(2, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(6, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(6, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(6, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1->"myPrologue2"; + > +2 >class +3 > C +1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(2, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(3, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +"myPrologue5"; +"myPrologue"; +"myPrologue2"; +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,aAAa,CAAA;ACAb,YAAY,CAAA;ACAZ,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AHGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AGLD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>"myPrologue5"; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +1 > +2 >"myPrologue5" +3 > +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 14) Source(1, 14) + SourceIndex(0) +3 >Emitted(2, 15) Source(1, 14) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +3 >Emitted(3, 14) Source(1, 13) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.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/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1->"myPrologue5" + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(5, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(5, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(5, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(5, 23) Source(6, 25) + SourceIndex(0) +6 >Emitted(5, 24) Source(6, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(6, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(6, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(6, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(6, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(6, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(6, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(6, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(6, 16) Source(12, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(7, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(7, 8) Source(13, 8) + SourceIndex(0) +3 >Emitted(7, 9) Source(13, 9) + SourceIndex(0) +4 >Emitted(7, 12) Source(13, 12) + SourceIndex(0) +5 >Emitted(7, 13) Source(13, 13) + SourceIndex(0) +6 >Emitted(7, 14) Source(13, 14) + SourceIndex(0) +7 >Emitted(7, 15) Source(13, 15) + SourceIndex(0) +8 >Emitted(7, 16) Source(13, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(8, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(8, 8) Source(1, 8) + SourceIndex(3) +3 >Emitted(8, 9) Source(1, 9) + SourceIndex(3) +4 >Emitted(8, 12) Source(1, 12) + SourceIndex(3) +5 >Emitted(8, 13) Source(1, 13) + SourceIndex(3) +6 >Emitted(8, 14) Source(1, 14) + SourceIndex(3) +7 >Emitted(8, 16) Source(1, 16) + SourceIndex(3) +8 >Emitted(8, 17) Source(1, 17) + SourceIndex(3) +9 >Emitted(8, 18) Source(1, 18) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(9, 10) Source(1, 10) + SourceIndex(4) +3 >Emitted(9, 11) Source(1, 11) + SourceIndex(4) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(10, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(10, 12) Source(2, 12) + SourceIndex(4) +3 >Emitted(10, 28) Source(2, 28) + SourceIndex(4) +4 >Emitted(10, 29) Source(2, 29) + SourceIndex(4) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(11, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(11, 2) Source(3, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->"myPrologue" + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(12, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(12, 5) Source(6, 11) + SourceIndex(1) +3 >Emitted(12, 6) Source(6, 12) + SourceIndex(1) +4 >Emitted(12, 7) Source(12, 2) + SourceIndex(1) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(13, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(13, 12) Source(6, 11) + SourceIndex(1) +3 >Emitted(13, 13) Source(6, 12) + SourceIndex(1) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(14, 5) Source(7, 5) + SourceIndex(1) +2 >Emitted(14, 14) Source(7, 14) + SourceIndex(1) +3 >Emitted(14, 15) Source(7, 15) + SourceIndex(1) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(15, 9) Source(8, 9) + SourceIndex(1) +2 >Emitted(15, 16) Source(8, 16) + SourceIndex(1) +3 >Emitted(15, 17) Source(8, 17) + SourceIndex(1) +4 >Emitted(15, 20) Source(8, 20) + SourceIndex(1) +5 >Emitted(15, 21) Source(8, 21) + SourceIndex(1) +6 >Emitted(15, 30) Source(8, 30) + SourceIndex(1) +7 >Emitted(15, 31) Source(8, 31) + SourceIndex(1) +8 >Emitted(15, 32) Source(8, 32) + SourceIndex(1) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(16, 5) Source(9, 5) + SourceIndex(1) +2 >Emitted(16, 6) Source(9, 6) + SourceIndex(1) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(17, 5) Source(11, 5) + SourceIndex(1) +2 >Emitted(17, 6) Source(11, 6) + SourceIndex(1) +3 >Emitted(17, 8) Source(11, 8) + SourceIndex(1) +4 >Emitted(17, 9) Source(11, 9) + SourceIndex(1) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(18, 1) Source(12, 1) + SourceIndex(1) +2 >Emitted(18, 2) Source(12, 2) + SourceIndex(1) +3 >Emitted(18, 4) Source(6, 11) + SourceIndex(1) +4 >Emitted(18, 5) Source(6, 12) + SourceIndex(1) +5 >Emitted(18, 10) Source(6, 11) + SourceIndex(1) +6 >Emitted(18, 11) Source(6, 12) + SourceIndex(1) +7 >Emitted(18, 19) Source(12, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1->"myPrologue2"; + > +1->Emitted(19, 1) Source(2, 1) + SourceIndex(2) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(20, 5) Source(2, 1) + SourceIndex(2) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(21, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(21, 6) Source(6, 2) + SourceIndex(2) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(22, 5) Source(3, 5) + SourceIndex(2) +2 >Emitted(22, 28) Source(3, 16) + SourceIndex(2) +3 >Emitted(22, 31) Source(3, 5) + SourceIndex(2) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(23, 9) Source(4, 9) + SourceIndex(2) +2 >Emitted(23, 16) Source(4, 16) + SourceIndex(2) +3 >Emitted(23, 17) Source(4, 17) + SourceIndex(2) +4 >Emitted(23, 20) Source(4, 20) + SourceIndex(2) +5 >Emitted(23, 21) Source(4, 21) + SourceIndex(2) +6 >Emitted(23, 41) Source(4, 41) + SourceIndex(2) +7 >Emitted(23, 42) Source(4, 42) + SourceIndex(2) +8 >Emitted(23, 43) Source(4, 43) + SourceIndex(2) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(24, 5) Source(5, 5) + SourceIndex(2) +2 >Emitted(24, 6) Source(5, 6) + SourceIndex(2) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(25, 5) Source(6, 1) + SourceIndex(2) +2 >Emitted(25, 13) Source(6, 2) + SourceIndex(2) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(26, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(26, 2) Source(6, 2) + SourceIndex(2) +3 >Emitted(26, 2) Source(2, 1) + SourceIndex(2) +4 >Emitted(26, 6) Source(6, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(27, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(27, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(27, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(27, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(27, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(27, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(27, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(27, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(28, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(28, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(28, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(28, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(28, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(28, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":29,"kind":"prologue","data":"myPrologue5"},{"pos":31,"end":44,"kind":"prologue","data":"myPrologue"},{"pos":46,"end":60,"kind":"prologue","data":"myPrologue2"},{"pos":62,"end":189,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":62,"end":189,"kind":"text"}]},{"pos":189,"end":474,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":189,"end":474,"kind":"text"}]},{"pos":474,"end":510,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-29):: myPrologue5 +"myPrologue5"; +---------------------------------------------------------------------- +prologue: (31-44):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (46-60):: myPrologue2 +"myPrologue2"; +---------------------------------------------------------------------- +prepend: (62-189):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (62-189) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (189-474):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (189-474) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (474-510) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 29, + "kind": "prologue", + "data": "myPrologue5" + }, + { + "pos": 31, + "end": 44, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 46, + "end": 60, + "kind": "prologue", + "data": "myPrologue2" + }, + { + "pos": 62, + "end": 189, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 62, + "end": 189, + "kind": "text" + } + ] + }, + { + "pos": 189, + "end": 474, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 189, + "end": 474, + "kind": "text" + } + ] + }, + { + "pos": 474, + "end": 510, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 1090 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-all-projects.js index a1ce18e307681..d023836a57cd0 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-all-projects.js @@ -1910,3 +1910,2325 @@ declare var c: C; "size": 724 } + + +Change:: incremental-declaration-changes +Input:: +//// [/src/first/first_PART1.ts] +#!someshebang first first_PART1 +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +[12:04:00 AM] Building project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + +//// [/src/first/bin/first-output.d.ts] +#!someshebang first first_PART1 +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang first first_PART1 +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >#!someshebang first first_PART1 + > +2 >interface +3 > TheFirst +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(2, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(5, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(5, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(5, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(5, 32) Source(6, 24) + SourceIndex(0) +6 >Emitted(5, 33) Source(6, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(6, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(6, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(7, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(7, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(7, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(7, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(7, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +#!someshebang first first_PART1 +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang first first_PART1 +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >#!someshebang first first_PART1 + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(2, 22) Source(6, 24) + SourceIndex(0) +6 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1->#!someshebang first first_part2 + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(2, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(2, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(2, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(2, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(2, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(2, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(2, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":33,"end":142,"kind":"text"}]},"dts":{"sections":[{"pos":33,"end":189,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (33-142) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (33-189) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 33, + "end": 142, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 33, + "end": 189, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 254 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +#!someshebang first first_PART1 +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang first first_PART1 +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >#!someshebang first first_PART1 + > +2 >interface +3 > TheFirst +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(2, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(5, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(5, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(5, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(5, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(5, 32) Source(6, 24) + SourceIndex(0) +6 >Emitted(5, 33) Source(6, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(6, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(6, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(7, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(7, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(7, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(7, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(7, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(8, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(9, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(9, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(9, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(9, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 >#!someshebang second second_part1 + > +2 >namespace +3 > N +4 > +1 >Emitted(10, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(10, 19) Source(2, 11) + SourceIndex(2) +3 >Emitted(10, 20) Source(2, 12) + SourceIndex(2) +4 >Emitted(10, 21) Source(2, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(11, 2) Source(4, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(12, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(6, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(6, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(6, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(13, 2) Source(12, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1->#!someshebang third third_part1 + > +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(17, 1) Source(2, 1) + SourceIndex(4) +2 >Emitted(17, 9) Source(2, 1) + SourceIndex(4) +3 >Emitted(17, 13) Source(2, 5) + SourceIndex(4) +4 >Emitted(17, 14) Source(2, 6) + SourceIndex(4) +5 >Emitted(17, 17) Source(2, 16) + SourceIndex(4) +6 >Emitted(17, 18) Source(2, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +#!someshebang first first_PART1 +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang first first_PART1 +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >#!someshebang first first_PART1 + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(2, 22) Source(6, 24) + SourceIndex(0) +6 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1->#!someshebang first first_part2 + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(2, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(2, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(2, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(2, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(2, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(2, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(2, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->#!someshebang second second_part1 + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(6, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(6, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(12, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(6, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(6, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(7, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(7, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(7, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(8, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(8, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(8, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(8, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(8, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(8, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(8, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(8, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(9, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(9, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(11, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(11, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(11, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(11, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(12, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(6, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(6, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(6, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(6, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(12, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1->#!someshebang third third_part1 + > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(23, 5) Source(2, 5) + SourceIndex(5) +3 >Emitted(23, 6) Source(2, 6) + SourceIndex(5) +4 >Emitted(23, 9) Source(2, 9) + SourceIndex(5) +5 >Emitted(23, 13) Source(2, 13) + SourceIndex(5) +6 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) +7 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) +8 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(24, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(24, 2) Source(3, 2) + SourceIndex(5) +3 >Emitted(24, 3) Source(3, 3) + SourceIndex(5) +4 >Emitted(24, 14) Source(3, 14) + SourceIndex(5) +5 >Emitted(24, 16) Source(3, 16) + SourceIndex(5) +6 >Emitted(24, 17) Source(3, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":33,"end":142,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":33,"end":142,"kind":"text"}]},{"pos":142,"end":427,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":142,"end":427,"kind":"text"}]},{"pos":427,"end":463,"kind":"text"}]},"dts":{"sections":[{"pos":33,"end":189,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":33,"end":189,"kind":"text"}]},{"pos":189,"end":289,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":189,"end":289,"kind":"text"}]},{"pos":289,"end":308,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (33-142):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (33-142) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (142-427):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (142-427) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (427-463) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (33-189):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (33-189) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (189-289):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (189-289) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (289-308) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 33, + "end": 142, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 33, + "end": 142, + "kind": "text" + } + ] + }, + { + "pos": 142, + "end": 427, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 142, + "end": 427, + "kind": "text" + } + ] + }, + { + "pos": 427, + "end": 463, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 33, + "end": 189, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 33, + "end": 189, + "kind": "text" + } + ] + }, + { + "pos": 189, + "end": 289, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 189, + "end": 289, + "kind": "text" + } + ] + }, + { + "pos": 289, + "end": 308, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 724 +} + + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +#!someshebang first first_PART1 +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:07:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:07:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:07:00 AM] Building project '/src/first/tsconfig.json'... + +[12:07:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:07:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:07:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/2/second-output.d.ts": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +#!someshebang first first_PART1 +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang first first_PART1 +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >#!someshebang first first_PART1 + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(2, 22) Source(6, 24) + SourceIndex(0) +6 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(4, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(13, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(13, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(13, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(13, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(13, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(13, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(13, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1->#!someshebang first first_part2 + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(2, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(2, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(2, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(2, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(2, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(2, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(2, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":33,"end":159,"kind":"text"}]},"dts":{"sections":[{"pos":33,"end":189,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (33-159) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (33-189) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 33, + "end": 159, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 33, + "end": 189, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 254 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +#!someshebang first first_PART1 +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang first first_PART1 +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >#!someshebang first first_PART1 + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(2, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(2, 22) Source(6, 24) + SourceIndex(0) +6 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(4, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(13, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(13, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(13, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(13, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(13, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(13, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(13, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1->#!someshebang first first_part2 + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(2, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(2, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(2, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(2, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(2, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(2, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(2, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(2, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->#!someshebang second second_part1 + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(6, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(6, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(12, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(10, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(6, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(6, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(11, 5) Source(7, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(7, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(7, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(12, 9) Source(8, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(8, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(8, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(8, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(8, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(8, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(8, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(8, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(9, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(9, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(14, 5) Source(11, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(11, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(11, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(11, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(15, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(12, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(6, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(6, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(6, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(6, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(12, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1->#!someshebang third third_part1 + > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(24, 5) Source(2, 5) + SourceIndex(5) +3 >Emitted(24, 6) Source(2, 6) + SourceIndex(5) +4 >Emitted(24, 9) Source(2, 9) + SourceIndex(5) +5 >Emitted(24, 13) Source(2, 13) + SourceIndex(5) +6 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) +7 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) +8 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(25, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(25, 2) Source(3, 2) + SourceIndex(5) +3 >Emitted(25, 3) Source(3, 3) + SourceIndex(5) +4 >Emitted(25, 14) Source(3, 14) + SourceIndex(5) +5 >Emitted(25, 16) Source(3, 16) + SourceIndex(5) +6 >Emitted(25, 17) Source(3, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":33,"end":159,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":33,"end":159,"kind":"text"}]},{"pos":159,"end":444,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":159,"end":444,"kind":"text"}]},{"pos":444,"end":480,"kind":"text"}]},"dts":{"sections":[{"pos":33,"end":189,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":33,"end":189,"kind":"text"}]},{"pos":189,"end":289,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":189,"end":289,"kind":"text"}]},{"pos":289,"end":308,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (33-159):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (33-159) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (159-444):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (159-444) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (444-480) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (33-189):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (33-189) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (189-289):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (189-289) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (289-308) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 33, + "end": 159, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 33, + "end": 159, + "kind": "text" + } + ] + }, + { + "pos": 159, + "end": 444, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 159, + "end": 444, + "kind": "text" + } + ] + }, + { + "pos": 444, + "end": 480, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 33, + "end": 189, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 33, + "end": 189, + "kind": "text" + } + ] + }, + { + "pos": 189, + "end": 289, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 189, + "end": 289, + "kind": "text" + } + ] + }, + { + "pos": 289, + "end": 308, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 724 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-only-one-dependency-project.js index 46007efdfea17..ab0d71861ddd5 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-only-one-dependency-project.js @@ -1875,3 +1875,961 @@ declare var c: C; "size": 724 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 252 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +#!someshebang second second_part1 +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>#!someshebang second second_part1 +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->#!someshebang second second_part1 + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(6, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(6, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(12, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(10, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(6, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(6, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(11, 5) Source(7, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(7, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(7, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(12, 9) Source(8, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(8, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(8, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(8, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(8, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(8, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(8, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(8, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(9, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(9, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(14, 5) Source(11, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(11, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(11, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(11, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(15, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(12, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(6, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(6, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(6, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(6, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(12, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":35,"end":162,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":35,"end":162,"kind":"text"}]},{"pos":162,"end":447,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":162,"end":447,"kind":"text"}]},{"pos":447,"end":483,"kind":"text"}]},"dts":{"sections":[{"pos":35,"end":192,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":35,"end":192,"kind":"text"}]},{"pos":192,"end":292,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":192,"end":292,"kind":"text"}]},{"pos":292,"end":311,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (35-162):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (35-162) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (162-447):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (162-447) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (447-483) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (35-192):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (35-192) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (192-292):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (192-292) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (292-311) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 35, + "end": 162, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 35, + "end": 162, + "kind": "text" + } + ] + }, + { + "pos": 162, + "end": 447, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 162, + "end": 447, + "kind": "text" + } + ] + }, + { + "pos": 447, + "end": 483, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 35, + "end": 192, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 35, + "end": 192, + "kind": "text" + } + ] + }, + { + "pos": 192, + "end": 292, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 192, + "end": 292, + "kind": "text" + } + ] + }, + { + "pos": 292, + "end": 311, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 724 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-all-projects.js index a9d26b647aa98..b1a5cd9a00898 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-all-projects.js @@ -1972,3 +1972,3885 @@ declare var c: C; "size": 914 } + + +Change:: incremental-declaration-changes +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +[12:04:00 AM] Building project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +"use strict"; +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(2, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":124,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +text: (15-124) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 124, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 445 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(2, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":124,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":15,"end":124,"kind":"text"}]},{"pos":124,"end":409,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":124,"end":409,"kind":"text"}]},{"pos":409,"end":445,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prepend: (15-124):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (15-124) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (124-409):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (124-409) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (409-445) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (156-256) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (256-275) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 124, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 15, + "end": 124, + "kind": "text" + } + ] + }, + { + "pos": 124, + "end": 409, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 124, + "end": 409, + "kind": "text" + } + ] + }, + { + "pos": 409, + "end": 445, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 256, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 156, + "end": 256, + "kind": "text" + } + ] + }, + { + "pos": 256, + "end": 275, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 914 +} + + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:07:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:07:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:07:00 AM] Building project '/src/first/tsconfig.json'... + +[12:07:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:07:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:07:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +"use strict"; +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(2, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":141,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +text: (15-141) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 141, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 445 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(2, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(11, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(12, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(14, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":141,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":15,"end":141,"kind":"text"}]},{"pos":141,"end":426,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":141,"end":426,"kind":"text"}]},{"pos":426,"end":462,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prepend: (15-141):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (15-141) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (141-426):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (141-426) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (426-462) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (156-256) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (256-275) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 141, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 15, + "end": 141, + "kind": "text" + } + ] + }, + { + "pos": 141, + "end": 426, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 141, + "end": 426, + "kind": "text" + } + ] + }, + { + "pos": 426, + "end": 462, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 256, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 156, + "end": 256, + "kind": "text" + } + ] + }, + { + "pos": 256, + "end": 275, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 914 +} + + + +Change:: incremental-headers-change-without-dts-changes +Input:: +//// [/src/first/first_PART1.ts] +"myPrologue" +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:10:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:10:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:10:00 AM] Building project '/src/first/tsconfig.json'... + +[12:10:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:10:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:10:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:10:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(6, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +"use strict"; +"myPrologue"; +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.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 s = "Hola, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(3, 22) Source(6, 24) + SourceIndex(0) +6 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(5, 8) Source(13, 8) + SourceIndex(0) +3 >Emitted(5, 9) Source(13, 9) + SourceIndex(0) +4 >Emitted(5, 12) Source(13, 12) + SourceIndex(0) +5 >Emitted(5, 13) Source(13, 13) + SourceIndex(0) +6 >Emitted(5, 14) Source(13, 14) + SourceIndex(0) +7 >Emitted(5, 15) Source(13, 15) + SourceIndex(0) +8 >Emitted(5, 16) Source(13, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(6, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(6, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(6, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(6, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(6, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(6, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(6, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(6, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(7, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(7, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(8, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(8, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(8, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(8, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(9, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":156,"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":156,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +text: (30-156) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 156, + "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": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 588 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(6, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +"myPrologue"; +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.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 s = "Hola, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(3, 22) Source(6, 24) + SourceIndex(0) +6 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(5, 8) Source(13, 8) + SourceIndex(0) +3 >Emitted(5, 9) Source(13, 9) + SourceIndex(0) +4 >Emitted(5, 12) Source(13, 12) + SourceIndex(0) +5 >Emitted(5, 13) Source(13, 13) + SourceIndex(0) +6 >Emitted(5, 14) Source(13, 14) + SourceIndex(0) +7 >Emitted(5, 15) Source(13, 15) + SourceIndex(0) +8 >Emitted(5, 16) Source(13, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(6, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(6, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(6, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(6, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(6, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(6, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(6, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(6, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(7, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(7, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(8, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(8, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(8, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(8, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(9, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(10, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(10, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(10, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(11, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(11, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(11, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(12, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(12, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(12, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(13, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(13, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(13, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(13, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(13, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(13, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(13, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(13, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(14, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(15, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(15, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(15, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(15, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(16, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(16, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(16, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(16, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(16, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(16, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(16, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(18, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(19, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(19, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(20, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(20, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(20, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(21, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(21, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(21, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(21, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(21, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(21, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(21, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(21, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(22, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(22, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(23, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(24, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(24, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(24, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(24, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(25, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(25, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(25, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(25, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(25, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(25, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(25, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(25, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(26, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(26, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(26, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(26, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(26, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(26, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":28,"kind":"prologue","data":"myPrologue"},{"pos":30,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":30,"end":156,"kind":"text"}]},{"pos":156,"end":441,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":156,"end":441,"kind":"text"}]},{"pos":441,"end":477,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"","directives":[{"pos":-1,"end":-1,"expression":{"pos":-1,"end":-1,"text":"use strict"}}]}]}},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":256,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":256,"kind":"text"}]},{"pos":256,"end":275,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prologue: (15-28):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prepend: (30-156):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (30-156) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (156-441):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (156-441) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (441-477) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (156-256):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (156-256) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (256-275) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 30, + "end": 156, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 30, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 441, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 156, + "end": 441, + "kind": "text" + } + ] + }, + { + "pos": 441, + "end": 477, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "", + "directives": [ + { + "pos": -1, + "end": -1, + "expression": { + "pos": -1, + "end": -1, + "text": "use strict" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 256, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 156, + "end": 256, + "kind": "text" + } + ] + }, + { + "pos": 256, + "end": 275, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 972 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-one-dependency.js index 8629fcc2816fe..3541cd64a50c4 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-one-dependency.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-one-dependency.js @@ -1903,3 +1903,2378 @@ declare var c: C; "size": 779 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 252 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +"use strict"; +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>"use strict"; +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(2, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(2, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(11, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(12, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(14, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"use strict"},{"pos":15,"end":142,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":15,"end":142,"kind":"text"}]},{"pos":142,"end":427,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":142,"end":427,"kind":"text"}]},{"pos":427,"end":463,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: use strict +"use strict"; +---------------------------------------------------------------------- +prepend: (15-142):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (15-142) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (142-427):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (142-427) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (427-463) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 15, + "end": 142, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 15, + "end": 142, + "kind": "text" + } + ] + }, + { + "pos": 142, + "end": 427, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 142, + "end": 427, + "kind": "text" + } + ] + }, + { + "pos": 427, + "end": 463, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 779 +} + + + +Change:: incremental-headers-change-without-dts-changes +Input:: +//// [/src/first/first_PART1.ts] +"myPrologue" +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:07:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:07:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:07:00 AM] Building project '/src/first/tsconfig.json'... + +[12:07:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:07:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:07:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AETD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +"myPrologue"; +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(1, 14) Source(1, 13) + SourceIndex(0) +--- +>>>var s = "Hello, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1-> + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1->Emitted(2, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(2, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(2, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(2, 23) Source(6, 25) + SourceIndex(0) +6 >Emitted(2, 24) Source(6, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(4, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(13, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(13, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(13, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(13, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(13, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(13, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(13, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":15,"end":142,"kind":"text"}],"sources":{"prologues":[{"file":0,"text":"\"myPrologue\"","directives":[{"pos":0,"end":12,"expression":{"pos":0,"end":12,"text":"myPrologue"}}]}]}},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +prologue: (0-13):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +text: (15-142) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 15, + "end": 142, + "kind": "text" + } + ], + "sources": { + "prologues": [ + { + "file": 0, + "text": "\"myPrologue\"", + "directives": [ + { + "pos": 0, + "end": 12, + "expression": { + "pos": 0, + "end": 12, + "text": "myPrologue" + } + } + ] + } + ] + } + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 457 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >"myPrologue" + > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(2, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(2, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(3, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(3, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(3, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(3, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(3, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(4, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(6, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(6, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(6, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(6, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(6, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(8, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(8, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(8, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(9, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(9, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(9, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(10, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +"myPrologue"; +"use strict"; +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAKZ,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACZf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>"myPrologue"; +1 > +2 >^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1 > +2 >"myPrologue" +3 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 13) Source(1, 13) + SourceIndex(0) +3 >Emitted(1, 14) Source(1, 13) + SourceIndex(0) +--- +>>>"use strict"; +>>>var s = "Hello, world"; +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1-> + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1->Emitted(3, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(3, 5) Source(6, 7) + SourceIndex(0) +3 >Emitted(3, 6) Source(6, 8) + SourceIndex(0) +4 >Emitted(3, 9) Source(6, 11) + SourceIndex(0) +5 >Emitted(3, 23) Source(6, 25) + SourceIndex(0) +6 >Emitted(3, 24) Source(6, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(4, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(4, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(4, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(4, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(4, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(4, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(4, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(4, 16) Source(12, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(5, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(5, 8) Source(13, 8) + SourceIndex(0) +3 >Emitted(5, 9) Source(13, 9) + SourceIndex(0) +4 >Emitted(5, 12) Source(13, 12) + SourceIndex(0) +5 >Emitted(5, 13) Source(13, 13) + SourceIndex(0) +6 >Emitted(5, 14) Source(13, 14) + SourceIndex(0) +7 >Emitted(5, 15) Source(13, 15) + SourceIndex(0) +8 >Emitted(5, 16) Source(13, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(6, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(6, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(6, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(6, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(6, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(6, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(6, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(6, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(6, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(7, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(7, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(8, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(8, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(8, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(8, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(9, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(9, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(10, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(10, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(10, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(11, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(11, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(11, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(12, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(12, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(12, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(13, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(13, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(13, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(13, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(13, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(13, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(13, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(13, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(14, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(15, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(15, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(15, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(15, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(16, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(16, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(16, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(16, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(16, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(16, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(16, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(18, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(19, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(19, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(20, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(20, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(20, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(21, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(21, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(21, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(21, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(21, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(21, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(21, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(21, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(22, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(22, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(23, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(24, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(24, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(24, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(24, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(25, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(25, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(25, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(25, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(25, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(25, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(25, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(25, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(26, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(26, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(26, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(26, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(26, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(26, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":13,"kind":"prologue","data":"myPrologue"},{"pos":15,"end":28,"kind":"prologue","data":"use strict"},{"pos":30,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":30,"end":157,"kind":"text"}]},{"pos":157,"end":442,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":157,"end":442,"kind":"text"}]},{"pos":442,"end":478,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]},{"pos":257,"end":276,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prologue: (0-13):: myPrologue +"myPrologue"; +---------------------------------------------------------------------- +prologue: (15-28):: use strict +"use strict"; +---------------------------------------------------------------------- +prepend: (30-157):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (30-157) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (157-442):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (157-442) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (442-478) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (257-276) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 13, + "kind": "prologue", + "data": "myPrologue" + }, + { + "pos": 15, + "end": 28, + "kind": "prologue", + "data": "use strict" + }, + { + "pos": 30, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 30, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 442, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 157, + "end": 442, + "kind": "text" + } + ] + }, + { + "pos": 442, + "end": 478, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + }, + { + "pos": 257, + "end": 276, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 837 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index 154835b9eb8c6..f46fc4ab64a53 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -5671,3 +5671,6404 @@ declare var c: C; "size": 464 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:04:00 AM] Updating output of project '/src/second/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/2/second-output.d.ts] file changed its modified time +//// [/src/2/second-output.d.ts.map] file changed its modified time +//// [/src/2/second-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /**@internal*/ +1->Emitted(16, 5) Source(14, 20) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(17, 5) Source(14, 36) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /**@internal*/ prop: string; + > /**@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(18, 5) Source(16, 20) + SourceIndex(3) +2 >Emitted(18, 29) Source(16, 26) + SourceIndex(3) +3 >Emitted(18, 32) Source(16, 20) + SourceIndex(3) +4 >Emitted(18, 46) Source(16, 31) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 32) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /**@internal*/ +2 > get +3 > c +1->Emitted(19, 5) Source(17, 20) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(20, 14) Source(17, 20) + SourceIndex(3) +2 >Emitted(20, 28) Source(17, 30) + SourceIndex(3) +3 >Emitted(20, 35) Source(17, 37) + SourceIndex(3) +4 >Emitted(20, 37) Source(17, 39) + SourceIndex(3) +5 >Emitted(20, 38) Source(17, 40) + SourceIndex(3) +6 >Emitted(20, 39) Source(17, 41) + SourceIndex(3) +7 >Emitted(20, 40) Source(17, 42) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /**@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(21, 14) Source(18, 20) + SourceIndex(3) +2 >Emitted(21, 24) Source(18, 26) + SourceIndex(3) +3 >Emitted(21, 27) Source(18, 37) + SourceIndex(3) +4 >Emitted(21, 31) Source(18, 41) + SourceIndex(3) +5 >Emitted(21, 32) Source(18, 42) + SourceIndex(3) +--- +>>> enumerable: false, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >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(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /**@internal*/ +1->Emitted(29, 5) Source(21, 20) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /**@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(35, 5) Source(22, 20) + SourceIndex(3) +2 >Emitted(35, 14) Source(22, 36) + SourceIndex(3) +3 >Emitted(35, 17) Source(22, 39) + SourceIndex(3) +4 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) +5 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(36, 5) Source(22, 36) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /**@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(37, 9) Source(23, 37) + SourceIndex(3) +3 >Emitted(37, 22) Source(23, 50) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 72) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(38, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) +--- +>>> })(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(45, 5) Source(23, 71) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(46, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(46, 9) Source(24, 37) + SourceIndex(3) +3 >Emitted(46, 18) Source(24, 46) + SourceIndex(3) +4 >Emitted(46, 19) Source(24, 86) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(47, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) +--- +>>> })(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(56, 9) Source(24, 85) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) +--- +>>> })(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(57, 5) Source(24, 85) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /**@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(58, 5) Source(25, 34) + SourceIndex(3) +2 >Emitted(58, 23) Source(25, 44) + SourceIndex(3) +3 >Emitted(58, 26) Source(25, 47) + SourceIndex(3) +4 >Emitted(58, 39) Source(25, 60) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 61) + SourceIndex(3) +6 >Emitted(58, 41) Source(25, 62) + SourceIndex(3) +7 >Emitted(58, 42) Source(25, 63) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(59, 5) Source(27, 33) + SourceIndex(3) +2 >Emitted(59, 26) Source(27, 46) + SourceIndex(3) +3 >Emitted(59, 29) Source(27, 49) + SourceIndex(3) +4 >Emitted(59, 31) Source(27, 51) + SourceIndex(3) +5 >Emitted(59, 32) Source(27, 52) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(60, 9) Source(28, 32) + SourceIndex(3) +3 >Emitted(60, 21) Source(28, 56) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(61, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) +--- +>>> })(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(65, 5) Source(28, 55) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@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(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/**@internal*/ +1->Emitted(67, 1) Source(30, 16) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/**@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(72, 1) Source(31, 16) + SourceIndex(3) +2 >Emitted(72, 10) Source(31, 25) + SourceIndex(3) +3 >Emitted(72, 21) Source(31, 36) + SourceIndex(3) +4 >Emitted(72, 26) Source(31, 40) + SourceIndex(3) +5 >Emitted(72, 27) Source(31, 41) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(73, 5) Source(32, 26) + SourceIndex(3) +3 >Emitted(73, 22) Source(32, 43) + SourceIndex(3) +4 >Emitted(73, 23) Source(32, 73) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(74, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(82, 5) Source(33, 26) + SourceIndex(3) +3 >Emitted(82, 18) Source(33, 39) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 79) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(83, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) +--- +>>> })(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(92, 5) Source(33, 78) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/**@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(94, 1) Source(34, 16) + SourceIndex(3) +2 >Emitted(94, 5) Source(34, 23) + SourceIndex(3) +3 >Emitted(94, 19) Source(34, 37) + SourceIndex(3) +4 >Emitted(94, 22) Source(34, 40) + SourceIndex(3) +5 >Emitted(94, 39) Source(34, 57) + SourceIndex(3) +6 >Emitted(94, 40) Source(34, 58) + SourceIndex(3) +7 >Emitted(94, 49) Source(34, 67) + SourceIndex(3) +8 >Emitted(94, 50) Source(34, 68) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/**@internal*/ type internalType = internalC; + >/**@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(95, 1) Source(36, 16) + SourceIndex(3) +2 >Emitted(95, 5) Source(36, 22) + SourceIndex(3) +3 >Emitted(95, 18) Source(36, 35) + SourceIndex(3) +4 >Emitted(95, 21) Source(36, 38) + SourceIndex(3) +5 >Emitted(95, 23) Source(36, 40) + SourceIndex(3) +6 >Emitted(95, 24) Source(36, 41) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(96, 5) Source(37, 21) + SourceIndex(3) +3 >Emitted(96, 17) Source(37, 45) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(97, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3180,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1183,"kind":"internal"},{"pos":1185,"end":1233,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (127-3180) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +>>-------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (157-234) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (234-339) + constructor(); + prop: string; + method(): void; + get c(): number; + set c(val: number); +---------------------------------------------------------------------- +text: (341-373) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (373-765) + 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: (767-770) +} + +---------------------------------------------------------------------- +internal: (770-1183) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1185-1233) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 3180, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 234, + "kind": "text" + }, + { + "pos": 234, + "end": 339, + "kind": "internal" + }, + { + "pos": 341, + "end": 373, + "kind": "text" + }, + { + "pos": 373, + "end": 765, + "kind": "internal" + }, + { + "pos": 767, + "end": 770, + "kind": "text" + }, + { + "pos": 770, + "end": 1183, + "kind": "internal" + }, + { + "pos": 1185, + "end": 1233, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 769 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 290 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /**@internal*/ +1->Emitted(16, 5) Source(14, 20) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(17, 5) Source(14, 36) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /**@internal*/ prop: string; + > /**@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(18, 5) Source(16, 20) + SourceIndex(3) +2 >Emitted(18, 29) Source(16, 26) + SourceIndex(3) +3 >Emitted(18, 32) Source(16, 20) + SourceIndex(3) +4 >Emitted(18, 46) Source(16, 31) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 32) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /**@internal*/ +2 > get +3 > c +1->Emitted(19, 5) Source(17, 20) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(20, 14) Source(17, 20) + SourceIndex(3) +2 >Emitted(20, 28) Source(17, 30) + SourceIndex(3) +3 >Emitted(20, 35) Source(17, 37) + SourceIndex(3) +4 >Emitted(20, 37) Source(17, 39) + SourceIndex(3) +5 >Emitted(20, 38) Source(17, 40) + SourceIndex(3) +6 >Emitted(20, 39) Source(17, 41) + SourceIndex(3) +7 >Emitted(20, 40) Source(17, 42) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /**@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(21, 14) Source(18, 20) + SourceIndex(3) +2 >Emitted(21, 24) Source(18, 26) + SourceIndex(3) +3 >Emitted(21, 27) Source(18, 37) + SourceIndex(3) +4 >Emitted(21, 31) Source(18, 41) + SourceIndex(3) +5 >Emitted(21, 32) Source(18, 42) + SourceIndex(3) +--- +>>> enumerable: false, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >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(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /**@internal*/ +1->Emitted(29, 5) Source(21, 20) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /**@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(35, 5) Source(22, 20) + SourceIndex(3) +2 >Emitted(35, 14) Source(22, 36) + SourceIndex(3) +3 >Emitted(35, 17) Source(22, 39) + SourceIndex(3) +4 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) +5 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(36, 5) Source(22, 36) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /**@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(37, 9) Source(23, 37) + SourceIndex(3) +3 >Emitted(37, 22) Source(23, 50) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 72) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(38, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) +--- +>>> })(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(45, 5) Source(23, 71) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(46, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(46, 9) Source(24, 37) + SourceIndex(3) +3 >Emitted(46, 18) Source(24, 46) + SourceIndex(3) +4 >Emitted(46, 19) Source(24, 86) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(47, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) +--- +>>> })(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(56, 9) Source(24, 85) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) +--- +>>> })(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(57, 5) Source(24, 85) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /**@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(58, 5) Source(25, 34) + SourceIndex(3) +2 >Emitted(58, 23) Source(25, 44) + SourceIndex(3) +3 >Emitted(58, 26) Source(25, 47) + SourceIndex(3) +4 >Emitted(58, 39) Source(25, 60) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 61) + SourceIndex(3) +6 >Emitted(58, 41) Source(25, 62) + SourceIndex(3) +7 >Emitted(58, 42) Source(25, 63) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(59, 5) Source(27, 33) + SourceIndex(3) +2 >Emitted(59, 26) Source(27, 46) + SourceIndex(3) +3 >Emitted(59, 29) Source(27, 49) + SourceIndex(3) +4 >Emitted(59, 31) Source(27, 51) + SourceIndex(3) +5 >Emitted(59, 32) Source(27, 52) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(60, 9) Source(28, 32) + SourceIndex(3) +3 >Emitted(60, 21) Source(28, 56) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(61, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) +--- +>>> })(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(65, 5) Source(28, 55) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@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(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/**@internal*/ +1->Emitted(67, 1) Source(30, 16) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/**@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(72, 1) Source(31, 16) + SourceIndex(3) +2 >Emitted(72, 10) Source(31, 25) + SourceIndex(3) +3 >Emitted(72, 21) Source(31, 36) + SourceIndex(3) +4 >Emitted(72, 26) Source(31, 40) + SourceIndex(3) +5 >Emitted(72, 27) Source(31, 41) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(73, 5) Source(32, 26) + SourceIndex(3) +3 >Emitted(73, 22) Source(32, 43) + SourceIndex(3) +4 >Emitted(73, 23) Source(32, 73) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(74, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(82, 5) Source(33, 26) + SourceIndex(3) +3 >Emitted(82, 18) Source(33, 39) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 79) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(83, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) +--- +>>> })(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(92, 5) Source(33, 78) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/**@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(94, 1) Source(34, 16) + SourceIndex(3) +2 >Emitted(94, 5) Source(34, 23) + SourceIndex(3) +3 >Emitted(94, 19) Source(34, 37) + SourceIndex(3) +4 >Emitted(94, 22) Source(34, 40) + SourceIndex(3) +5 >Emitted(94, 39) Source(34, 57) + SourceIndex(3) +6 >Emitted(94, 40) Source(34, 58) + SourceIndex(3) +7 >Emitted(94, 49) Source(34, 67) + SourceIndex(3) +8 >Emitted(94, 50) Source(34, 68) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/**@internal*/ type internalType = internalC; + >/**@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(95, 1) Source(36, 16) + SourceIndex(3) +2 >Emitted(95, 5) Source(36, 22) + SourceIndex(3) +3 >Emitted(95, 18) Source(36, 35) + SourceIndex(3) +4 >Emitted(95, 21) Source(36, 38) + SourceIndex(3) +5 >Emitted(95, 23) Source(36, 40) + SourceIndex(3) +6 >Emitted(95, 24) Source(36, 41) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(96, 5) Source(37, 21) + SourceIndex(3) +3 >Emitted(96, 17) Source(37, 45) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(97, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3180,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3180,"kind":"text"}]},{"pos":3180,"end":3216,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3180):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3180) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3180-3216) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-276) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3180, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3180, + "kind": "text" + } + ] + }, + { + "pos": 3180, + "end": 3216, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 464 +} + + + +Change:: incremental-headers-change-without-dts-changes +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:07:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:07:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:07:00 AM] Building project '/src/first/tsconfig.json'... + +[12:07:00 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:07:00 AM] Updating output of project '/src/second/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +[12:07:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +[12:07:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/2/second-output.d.ts] file changed its modified time +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACxC;AACD,kBAAU,OAAO,CAAC;IACC,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACc,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>> constructor(); +>>> prop: string; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +6 > ^^^-> +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ +2 > prop +3 > : +4 > string +5 > ; +1 >Emitted(15, 5) Source(15, 20) + SourceIndex(2) +2 >Emitted(15, 9) Source(15, 24) + SourceIndex(2) +3 >Emitted(15, 11) Source(15, 26) + SourceIndex(2) +4 >Emitted(15, 17) Source(15, 32) + SourceIndex(2) +5 >Emitted(15, 18) Source(15, 33) + SourceIndex(2) +--- +>>> method(): void; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^-> +1-> + > /**@internal*/ +2 > method +1->Emitted(16, 5) Source(16, 20) + SourceIndex(2) +2 >Emitted(16, 11) Source(16, 26) + SourceIndex(2) +--- +>>> get c(): number; +1->^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^ +7 > ^^^^-> +1->() { } + > /**@internal*/ +2 > get +3 > c +4 > () { return 10; } + > /**@internal*/ set c(val: +5 > number +6 > +1->Emitted(17, 5) Source(17, 20) + SourceIndex(2) +2 >Emitted(17, 9) Source(17, 24) + SourceIndex(2) +3 >Emitted(17, 10) Source(17, 25) + SourceIndex(2) +4 >Emitted(17, 14) Source(18, 31) + SourceIndex(2) +5 >Emitted(17, 20) Source(18, 37) + SourceIndex(2) +6 >Emitted(17, 21) Source(17, 42) + SourceIndex(2) +--- +>>> set c(val: number); +1->^^^^ +2 > ^^^^ +3 > ^ +4 > ^ +5 > ^^^^^ +6 > ^^^^^^ +7 > ^^ +1-> + > /**@internal*/ +2 > set +3 > c +4 > ( +5 > val: +6 > number +7 > ) { } +1->Emitted(18, 5) Source(18, 20) + SourceIndex(2) +2 >Emitted(18, 9) Source(18, 24) + SourceIndex(2) +3 >Emitted(18, 10) Source(18, 25) + SourceIndex(2) +4 >Emitted(18, 11) Source(18, 26) + SourceIndex(2) +5 >Emitted(18, 16) Source(18, 31) + SourceIndex(2) +6 >Emitted(18, 22) Source(18, 37) + SourceIndex(2) +7 >Emitted(18, 24) Source(18, 42) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(20, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(20, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(20, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(20, 27) Source(20, 19) + SourceIndex(2) +--- +>>> class C { +1 >^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ + > /**@internal*/ +2 > export class +3 > C +1 >Emitted(21, 5) Source(21, 20) + SourceIndex(2) +2 >Emitted(21, 11) Source(21, 33) + SourceIndex(2) +3 >Emitted(21, 12) Source(21, 34) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(22, 6) Source(21, 38) + SourceIndex(2) +--- +>>> function foo(): void; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^ +5 > ^^^^^-> +1-> + > /**@internal*/ +2 > export function +3 > foo +4 > () {} +1->Emitted(23, 5) Source(22, 20) + SourceIndex(2) +2 >Emitted(23, 14) Source(22, 36) + SourceIndex(2) +3 >Emitted(23, 17) Source(22, 39) + SourceIndex(2) +4 >Emitted(23, 26) Source(22, 44) + SourceIndex(2) +--- +>>> namespace someNamespace { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +1-> + > /**@internal*/ +2 > export namespace +3 > someNamespace +4 > +1->Emitted(24, 5) Source(23, 20) + SourceIndex(2) +2 >Emitted(24, 15) Source(23, 37) + SourceIndex(2) +3 >Emitted(24, 28) Source(23, 50) + SourceIndex(2) +4 >Emitted(24, 29) Source(23, 51) + SourceIndex(2) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(25, 9) Source(23, 53) + SourceIndex(2) +2 >Emitted(25, 15) Source(23, 66) + SourceIndex(2) +3 >Emitted(25, 16) Source(23, 67) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(26, 10) Source(23, 70) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(27, 6) Source(23, 72) + SourceIndex(2) +--- +>>> namespace someOther.something { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + > /**@internal*/ +2 > export namespace +3 > someOther +4 > . +5 > something +6 > +1->Emitted(28, 5) Source(24, 20) + SourceIndex(2) +2 >Emitted(28, 15) Source(24, 37) + SourceIndex(2) +3 >Emitted(28, 24) Source(24, 46) + SourceIndex(2) +4 >Emitted(28, 25) Source(24, 47) + SourceIndex(2) +5 >Emitted(28, 34) Source(24, 56) + SourceIndex(2) +6 >Emitted(28, 35) Source(24, 57) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(29, 9) Source(24, 59) + SourceIndex(2) +2 >Emitted(29, 15) Source(24, 72) + SourceIndex(2) +3 >Emitted(29, 24) Source(24, 81) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(30, 10) Source(24, 84) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(31, 6) Source(24, 86) + SourceIndex(2) +--- +>>> 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(32, 5) Source(25, 20) + SourceIndex(2) +2 >Emitted(32, 11) Source(25, 26) + SourceIndex(2) +3 >Emitted(32, 19) Source(25, 34) + SourceIndex(2) +4 >Emitted(32, 29) Source(25, 44) + SourceIndex(2) +5 >Emitted(32, 32) Source(25, 47) + SourceIndex(2) +6 >Emitted(32, 45) Source(25, 60) + SourceIndex(2) +7 >Emitted(32, 46) Source(25, 61) + SourceIndex(2) +8 >Emitted(32, 47) Source(25, 62) + SourceIndex(2) +9 >Emitted(32, 48) Source(25, 63) + SourceIndex(2) +--- +>>> type internalType = internalC; +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > /**@internal*/ +2 > export type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(33, 5) Source(26, 20) + SourceIndex(2) +2 >Emitted(33, 10) Source(26, 32) + SourceIndex(2) +3 >Emitted(33, 22) Source(26, 44) + SourceIndex(2) +4 >Emitted(33, 25) Source(26, 47) + SourceIndex(2) +5 >Emitted(33, 34) Source(26, 56) + SourceIndex(2) +6 >Emitted(33, 35) Source(26, 57) + SourceIndex(2) +--- +>>> const internalConst = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1 > + > /**@internal*/ export +2 > const +3 > internalConst +4 > = 10 +5 > ; +1 >Emitted(34, 5) Source(27, 27) + SourceIndex(2) +2 >Emitted(34, 11) Source(27, 33) + SourceIndex(2) +3 >Emitted(34, 24) Source(27, 46) + SourceIndex(2) +4 >Emitted(34, 29) Source(27, 51) + SourceIndex(2) +5 >Emitted(34, 30) Source(27, 52) + SourceIndex(2) +--- +>>> enum internalEnum { +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +1 > + > /**@internal*/ +2 > export enum +3 > internalEnum +1 >Emitted(35, 5) Source(28, 20) + SourceIndex(2) +2 >Emitted(35, 10) Source(28, 32) + SourceIndex(2) +3 >Emitted(35, 22) Source(28, 44) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(36, 9) Source(28, 47) + SourceIndex(2) +2 >Emitted(36, 10) Source(28, 48) + SourceIndex(2) +3 >Emitted(36, 14) Source(28, 48) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(37, 9) Source(28, 50) + SourceIndex(2) +2 >Emitted(37, 10) Source(28, 51) + SourceIndex(2) +3 >Emitted(37, 14) Source(28, 51) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(38, 9) Source(28, 53) + SourceIndex(2) +2 >Emitted(38, 10) Source(28, 54) + SourceIndex(2) +3 >Emitted(38, 14) Source(28, 54) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(39, 6) Source(28, 56) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(40, 2) Source(29, 2) + SourceIndex(2) +--- +>>>declare class internalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> + >/**@internal*/ +2 >class +3 > internalC +1->Emitted(41, 1) Source(30, 16) + SourceIndex(2) +2 >Emitted(41, 15) Source(30, 22) + SourceIndex(2) +3 >Emitted(41, 24) Source(30, 31) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(42, 2) Source(30, 34) + SourceIndex(2) +--- +>>>declare function internalfoo(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^ +5 > ^-> +1-> + >/**@internal*/ +2 >function +3 > internalfoo +4 > () {} +1->Emitted(43, 1) Source(31, 16) + SourceIndex(2) +2 >Emitted(43, 18) Source(31, 25) + SourceIndex(2) +3 >Emitted(43, 29) Source(31, 36) + SourceIndex(2) +4 >Emitted(43, 38) Source(31, 41) + SourceIndex(2) +--- +>>>declare namespace internalNamespace { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +1-> + >/**@internal*/ +2 >namespace +3 > internalNamespace +4 > +1->Emitted(44, 1) Source(32, 16) + SourceIndex(2) +2 >Emitted(44, 19) Source(32, 26) + SourceIndex(2) +3 >Emitted(44, 36) Source(32, 43) + SourceIndex(2) +4 >Emitted(44, 37) Source(32, 44) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(45, 5) Source(32, 46) + SourceIndex(2) +2 >Emitted(45, 11) Source(32, 59) + SourceIndex(2) +3 >Emitted(45, 20) Source(32, 68) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(46, 6) Source(32, 71) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(47, 2) Source(32, 73) + SourceIndex(2) +--- +>>>declare namespace internalOther.something { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + >/**@internal*/ +2 >namespace +3 > internalOther +4 > . +5 > something +6 > +1->Emitted(48, 1) Source(33, 16) + SourceIndex(2) +2 >Emitted(48, 19) Source(33, 26) + SourceIndex(2) +3 >Emitted(48, 32) Source(33, 39) + SourceIndex(2) +4 >Emitted(48, 33) Source(33, 40) + SourceIndex(2) +5 >Emitted(48, 42) Source(33, 49) + SourceIndex(2) +6 >Emitted(48, 43) Source(33, 50) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(49, 5) Source(33, 52) + SourceIndex(2) +2 >Emitted(49, 11) Source(33, 65) + SourceIndex(2) +3 >Emitted(49, 20) Source(33, 74) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(50, 6) Source(33, 77) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(51, 2) Source(33, 79) + SourceIndex(2) +--- +>>>import internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/**@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(52, 1) Source(34, 16) + SourceIndex(2) +2 >Emitted(52, 8) Source(34, 23) + SourceIndex(2) +3 >Emitted(52, 22) Source(34, 37) + SourceIndex(2) +4 >Emitted(52, 25) Source(34, 40) + SourceIndex(2) +5 >Emitted(52, 42) Source(34, 57) + SourceIndex(2) +6 >Emitted(52, 43) Source(34, 58) + SourceIndex(2) +7 >Emitted(52, 52) Source(34, 67) + SourceIndex(2) +8 >Emitted(52, 53) Source(34, 68) + SourceIndex(2) +--- +>>>declare type internalType = internalC; +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + >/**@internal*/ +2 >type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(53, 1) Source(35, 16) + SourceIndex(2) +2 >Emitted(53, 14) Source(35, 21) + SourceIndex(2) +3 >Emitted(53, 26) Source(35, 33) + SourceIndex(2) +4 >Emitted(53, 29) Source(35, 36) + SourceIndex(2) +5 >Emitted(53, 38) Source(35, 45) + SourceIndex(2) +6 >Emitted(53, 39) Source(35, 46) + SourceIndex(2) +--- +>>>declare const internalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > + >/**@internal*/ +2 > +3 > const +4 > internalConst +5 > = 10 +6 > ; +1 >Emitted(54, 1) Source(36, 16) + SourceIndex(2) +2 >Emitted(54, 9) Source(36, 16) + SourceIndex(2) +3 >Emitted(54, 15) Source(36, 22) + SourceIndex(2) +4 >Emitted(54, 28) Source(36, 35) + SourceIndex(2) +5 >Emitted(54, 33) Source(36, 40) + SourceIndex(2) +6 >Emitted(54, 34) Source(36, 41) + SourceIndex(2) +--- +>>>declare enum internalEnum { +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +1 > + >/**@internal*/ +2 >enum +3 > internalEnum +1 >Emitted(55, 1) Source(37, 16) + SourceIndex(2) +2 >Emitted(55, 14) Source(37, 21) + SourceIndex(2) +3 >Emitted(55, 26) Source(37, 33) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(56, 5) Source(37, 36) + SourceIndex(2) +2 >Emitted(56, 6) Source(37, 37) + SourceIndex(2) +3 >Emitted(56, 10) Source(37, 37) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(57, 5) Source(37, 39) + SourceIndex(2) +2 >Emitted(57, 6) Source(37, 40) + SourceIndex(2) +3 >Emitted(57, 10) Source(37, 40) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(58, 5) Source(37, 42) + SourceIndex(2) +2 >Emitted(58, 6) Source(37, 43) + SourceIndex(2) +3 >Emitted(58, 10) Source(37, 43) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(59, 2) Source(37, 45) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(60, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(60, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(60, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] file changed its modified time +//// [/src/2/second-output.js.map] file changed its modified time +//// [/src/2/second-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3180,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1183,"kind":"internal"},{"pos":1185,"end":1233,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (127-3180) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (157-234) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (234-339) + constructor(); + prop: string; + method(): void; + get c(): number; + set c(val: number); +---------------------------------------------------------------------- +text: (341-373) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (373-765) + 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: (767-770) +} + +---------------------------------------------------------------------- +internal: (770-1183) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1185-1233) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 3180, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 234, + "kind": "text" + }, + { + "pos": 234, + "end": 339, + "kind": "internal" + }, + { + "pos": 341, + "end": 373, + "kind": "text" + }, + { + "pos": 373, + "end": 765, + "kind": "internal" + }, + { + "pos": 767, + "end": 770, + "kind": "text" + }, + { + "pos": 770, + "end": 1183, + "kind": "internal" + }, + { + "pos": 1185, + "end": 1233, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 731 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] file written with same contents +//// [/src/first/bin/first-output.js.map] file written with same contents +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 252 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + >} +1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +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(16, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3180,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3180,"kind":"text"}]},{"pos":3180,"end":3216,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":317,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":317,"kind":"text"}]},{"pos":317,"end":336,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3180):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3180) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3180-3216) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-317):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-317) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (317-336) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3180, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3180, + "kind": "text" + } + ] + }, + { + "pos": 3180, + "end": 3216, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 317, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 317, + "kind": "text" + } + ] + }, + { + "pos": 317, + "end": 336, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 464 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment.js index 2d2aaea9dac89..ffa75e13c6d2c 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment.js @@ -5380,3 +5380,3321 @@ declare var c: C; "size": 724 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 290 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACmB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACE;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACc;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /**@internal*/ +1->Emitted(16, 5) Source(14, 20) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(17, 5) Source(14, 36) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /**@internal*/ prop: string; + > /**@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(18, 5) Source(16, 20) + SourceIndex(3) +2 >Emitted(18, 29) Source(16, 26) + SourceIndex(3) +3 >Emitted(18, 32) Source(16, 20) + SourceIndex(3) +4 >Emitted(18, 46) Source(16, 31) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 32) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /**@internal*/ +2 > get +3 > c +1->Emitted(19, 5) Source(17, 20) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(20, 14) Source(17, 20) + SourceIndex(3) +2 >Emitted(20, 28) Source(17, 30) + SourceIndex(3) +3 >Emitted(20, 35) Source(17, 37) + SourceIndex(3) +4 >Emitted(20, 37) Source(17, 39) + SourceIndex(3) +5 >Emitted(20, 38) Source(17, 40) + SourceIndex(3) +6 >Emitted(20, 39) Source(17, 41) + SourceIndex(3) +7 >Emitted(20, 40) Source(17, 42) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /**@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(21, 14) Source(18, 20) + SourceIndex(3) +2 >Emitted(21, 24) Source(18, 26) + SourceIndex(3) +3 >Emitted(21, 27) Source(18, 37) + SourceIndex(3) +4 >Emitted(21, 31) Source(18, 41) + SourceIndex(3) +5 >Emitted(21, 32) Source(18, 42) + SourceIndex(3) +--- +>>> enumerable: false, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >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(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /**@internal*/ +1->Emitted(29, 5) Source(21, 20) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /**@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(35, 5) Source(22, 20) + SourceIndex(3) +2 >Emitted(35, 14) Source(22, 36) + SourceIndex(3) +3 >Emitted(35, 17) Source(22, 39) + SourceIndex(3) +4 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) +5 >Emitted(35, 23) Source(22, 44) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(36, 5) Source(22, 36) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /**@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(37, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(37, 9) Source(23, 37) + SourceIndex(3) +3 >Emitted(37, 22) Source(23, 50) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 72) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(38, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) +--- +>>> })(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(45, 5) Source(23, 71) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(46, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(46, 9) Source(24, 37) + SourceIndex(3) +3 >Emitted(46, 18) Source(24, 46) + SourceIndex(3) +4 >Emitted(46, 19) Source(24, 86) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(47, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) +--- +>>> })(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(56, 9) Source(24, 85) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) +--- +>>> })(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(57, 5) Source(24, 85) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /**@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(58, 5) Source(25, 34) + SourceIndex(3) +2 >Emitted(58, 23) Source(25, 44) + SourceIndex(3) +3 >Emitted(58, 26) Source(25, 47) + SourceIndex(3) +4 >Emitted(58, 39) Source(25, 60) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 61) + SourceIndex(3) +6 >Emitted(58, 41) Source(25, 62) + SourceIndex(3) +7 >Emitted(58, 42) Source(25, 63) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /**@internal*/ export type internalType = internalC; + > /**@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(59, 5) Source(27, 33) + SourceIndex(3) +2 >Emitted(59, 26) Source(27, 46) + SourceIndex(3) +3 >Emitted(59, 29) Source(27, 49) + SourceIndex(3) +4 >Emitted(59, 31) Source(27, 51) + SourceIndex(3) +5 >Emitted(59, 32) Source(27, 52) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /**@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(60, 9) Source(28, 32) + SourceIndex(3) +3 >Emitted(60, 21) Source(28, 56) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(61, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) +--- +>>> })(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(65, 5) Source(28, 55) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@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(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/**@internal*/ +1->Emitted(67, 1) Source(30, 16) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/**@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(72, 1) Source(31, 16) + SourceIndex(3) +2 >Emitted(72, 10) Source(31, 25) + SourceIndex(3) +3 >Emitted(72, 21) Source(31, 36) + SourceIndex(3) +4 >Emitted(72, 26) Source(31, 40) + SourceIndex(3) +5 >Emitted(72, 27) Source(31, 41) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(73, 5) Source(32, 26) + SourceIndex(3) +3 >Emitted(73, 22) Source(32, 43) + SourceIndex(3) +4 >Emitted(73, 23) Source(32, 73) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(74, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(82, 5) Source(33, 26) + SourceIndex(3) +3 >Emitted(82, 18) Source(33, 39) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 79) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(83, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) +--- +>>> })(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(92, 5) Source(33, 78) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/**@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(94, 1) Source(34, 16) + SourceIndex(3) +2 >Emitted(94, 5) Source(34, 23) + SourceIndex(3) +3 >Emitted(94, 19) Source(34, 37) + SourceIndex(3) +4 >Emitted(94, 22) Source(34, 40) + SourceIndex(3) +5 >Emitted(94, 39) Source(34, 57) + SourceIndex(3) +6 >Emitted(94, 40) Source(34, 58) + SourceIndex(3) +7 >Emitted(94, 49) Source(34, 67) + SourceIndex(3) +8 >Emitted(94, 50) Source(34, 68) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/**@internal*/ type internalType = internalC; + >/**@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(95, 1) Source(36, 16) + SourceIndex(3) +2 >Emitted(95, 5) Source(36, 22) + SourceIndex(3) +3 >Emitted(95, 18) Source(36, 35) + SourceIndex(3) +4 >Emitted(95, 21) Source(36, 38) + SourceIndex(3) +5 >Emitted(95, 23) Source(36, 40) + SourceIndex(3) +6 >Emitted(95, 24) Source(36, 41) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/**@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(96, 5) Source(37, 21) + SourceIndex(3) +3 >Emitted(96, 17) Source(37, 45) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(97, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3180,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":3180,"kind":"text"}]},{"pos":3180,"end":3216,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (127-3180):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (127-3180) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3180-3216) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-116) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (116-276) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 3180, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 127, + "end": 3180, + "kind": "text" + } + ] + }, + { + "pos": 3180, + "end": 3216, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 116, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 116, + "kind": "text" + } + ] + }, + { + "pos": 116, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 116, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 724 +} + + + +Change:: incremental-headers-change-without-dts-changes +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:07:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:07:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:07:00 AM] Building project '/src/first/tsconfig.json'... + +[12:07:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:07:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:07:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] file written with same contents +//// [/src/first/bin/first-output.js.map] file written with same contents +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 252 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + >} +1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +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(16, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3180,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":3180,"kind":"text"}]},{"pos":3180,"end":3216,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":317,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":317,"kind":"text"}]},{"pos":317,"end":336,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (127-3180):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (127-3180) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3180-3216) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-317):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-317) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (317-336) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 3180, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 127, + "end": 3180, + "kind": "text" + } + ] + }, + { + "pos": 3180, + "end": 3216, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 317, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 317, + "kind": "text" + } + ] + }, + { + "pos": 317, + "end": 336, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 724 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index caa5a879d8e10..76d4e39c8c2af 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -6013,3 +6013,4533 @@ declare var c: C; "size": 464 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:04:00 AM] Updating output of project '/src/second/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/2/second-output.d.ts] file changed its modified time +//// [/src/2/second-output.d.ts.map] file changed its modified time +//// [/src/2/second-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +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: false, + configurable: true + }); + return 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 || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (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 || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> /**@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /**@internal*/ +3 > +1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) +2 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) +3 >Emitted(16, 20) Source(14, 20) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(17, 5) Source(14, 36) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) +--- +>>> /**@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(18, 5) Source(16, 5) + SourceIndex(3) +2 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) +3 >Emitted(18, 20) Source(16, 20) + SourceIndex(3) +4 >Emitted(18, 44) Source(16, 26) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 20) + SourceIndex(3) +6 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) +7 >Emitted(18, 62) Source(16, 32) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^-> +1 > + > /**@internal*/ +2 > get +3 > c +1 >Emitted(19, 5) Source(17, 20) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) +--- +>>> /**@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(20, 9) Source(17, 5) + SourceIndex(3) +2 >Emitted(20, 23) Source(17, 19) + SourceIndex(3) +3 >Emitted(20, 29) Source(17, 20) + SourceIndex(3) +4 >Emitted(20, 43) Source(17, 30) + SourceIndex(3) +5 >Emitted(20, 50) Source(17, 37) + SourceIndex(3) +6 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) +7 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) +8 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) +9 >Emitted(20, 55) Source(17, 42) + SourceIndex(3) +--- +>>> /**@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(21, 9) Source(18, 5) + SourceIndex(3) +2 >Emitted(21, 23) Source(18, 19) + SourceIndex(3) +3 >Emitted(21, 29) Source(18, 20) + SourceIndex(3) +4 >Emitted(21, 39) Source(18, 26) + SourceIndex(3) +5 >Emitted(21, 42) Source(18, 37) + SourceIndex(3) +6 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) +7 >Emitted(21, 47) Source(18, 42) + SourceIndex(3) +--- +>>> enumerable: false, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >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(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> /**@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^-> +1-> { + > +2 > /**@internal*/ +3 > +1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) +2 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) +3 >Emitted(29, 20) Source(21, 20) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) +--- +>>> /**@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) +2 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) +3 >Emitted(35, 20) Source(22, 20) + SourceIndex(3) +4 >Emitted(35, 29) Source(22, 36) + SourceIndex(3) +5 >Emitted(35, 32) Source(22, 39) + SourceIndex(3) +6 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) +7 >Emitted(35, 38) Source(22, 44) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(36, 5) Source(22, 36) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) +--- +>>> /**@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) +2 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) +3 >Emitted(37, 20) Source(23, 20) + SourceIndex(3) +4 >Emitted(37, 24) Source(23, 37) + SourceIndex(3) +5 >Emitted(37, 37) Source(23, 50) + SourceIndex(3) +6 >Emitted(37, 38) Source(23, 72) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(38, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) +--- +>>> })(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(45, 5) Source(23, 71) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) +--- +>>> /**@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(46, 5) Source(24, 5) + SourceIndex(3) +2 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) +3 >Emitted(46, 20) Source(24, 20) + SourceIndex(3) +4 >Emitted(46, 24) Source(24, 37) + SourceIndex(3) +5 >Emitted(46, 33) Source(24, 46) + SourceIndex(3) +6 >Emitted(46, 34) Source(24, 86) + SourceIndex(3) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(47, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) +--- +>>> })(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(56, 9) Source(24, 85) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) +--- +>>> })(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(57, 5) Source(24, 85) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) +--- +>>> /**@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(58, 5) Source(25, 5) + SourceIndex(3) +2 >Emitted(58, 19) Source(25, 19) + SourceIndex(3) +3 >Emitted(58, 20) Source(25, 34) + SourceIndex(3) +4 >Emitted(58, 38) Source(25, 44) + SourceIndex(3) +5 >Emitted(58, 41) Source(25, 47) + SourceIndex(3) +6 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) +7 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) +8 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) +9 >Emitted(58, 57) Source(25, 63) + SourceIndex(3) +--- +>>> /**@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(59, 5) Source(27, 5) + SourceIndex(3) +2 >Emitted(59, 19) Source(27, 19) + SourceIndex(3) +3 >Emitted(59, 20) Source(27, 33) + SourceIndex(3) +4 >Emitted(59, 41) Source(27, 46) + SourceIndex(3) +5 >Emitted(59, 44) Source(27, 49) + SourceIndex(3) +6 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) +7 >Emitted(59, 47) Source(27, 52) + SourceIndex(3) +--- +>>> /**@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /**@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) +2 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) +3 >Emitted(60, 20) Source(28, 20) + SourceIndex(3) +4 >Emitted(60, 24) Source(28, 32) + SourceIndex(3) +5 >Emitted(60, 36) Source(28, 56) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(61, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) +--- +>>> })(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(65, 5) Source(28, 55) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@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(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>/**@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^-> +1-> + > +2 >/**@internal*/ +3 > +1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) +2 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) +3 >Emitted(67, 16) Source(30, 16) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) +--- +>>>/**@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/**@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) +2 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) +3 >Emitted(72, 16) Source(31, 16) + SourceIndex(3) +4 >Emitted(72, 25) Source(31, 25) + SourceIndex(3) +5 >Emitted(72, 36) Source(31, 36) + SourceIndex(3) +6 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) +7 >Emitted(72, 42) Source(31, 41) + SourceIndex(3) +--- +>>>/**@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) +2 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) +3 >Emitted(73, 16) Source(32, 16) + SourceIndex(3) +4 >Emitted(73, 20) Source(32, 26) + SourceIndex(3) +5 >Emitted(73, 37) Source(32, 43) + SourceIndex(3) +6 >Emitted(73, 38) Source(32, 73) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(74, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) +--- +>>>/**@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) +2 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) +3 >Emitted(82, 16) Source(33, 16) + SourceIndex(3) +4 >Emitted(82, 20) Source(33, 26) + SourceIndex(3) +5 >Emitted(82, 33) Source(33, 39) + SourceIndex(3) +6 >Emitted(82, 34) Source(33, 79) + SourceIndex(3) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(83, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) +--- +>>> })(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(92, 5) Source(33, 78) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) +--- +>>>/**@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/**@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) +2 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) +3 >Emitted(94, 16) Source(34, 16) + SourceIndex(3) +4 >Emitted(94, 20) Source(34, 23) + SourceIndex(3) +5 >Emitted(94, 34) Source(34, 37) + SourceIndex(3) +6 >Emitted(94, 37) Source(34, 40) + SourceIndex(3) +7 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) +8 >Emitted(94, 55) Source(34, 58) + SourceIndex(3) +9 >Emitted(94, 64) Source(34, 67) + SourceIndex(3) +10>Emitted(94, 65) Source(34, 68) + SourceIndex(3) +--- +>>>/**@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/**@internal*/ type internalType = internalC; + > +2 >/**@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) +2 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) +3 >Emitted(95, 16) Source(36, 16) + SourceIndex(3) +4 >Emitted(95, 20) Source(36, 22) + SourceIndex(3) +5 >Emitted(95, 33) Source(36, 35) + SourceIndex(3) +6 >Emitted(95, 36) Source(36, 38) + SourceIndex(3) +7 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) +8 >Emitted(95, 39) Source(36, 41) + SourceIndex(3) +--- +>>>/**@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/**@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) +2 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) +3 >Emitted(96, 16) Source(37, 16) + SourceIndex(3) +4 >Emitted(96, 20) Source(37, 21) + SourceIndex(3) +5 >Emitted(96, 32) Source(37, 45) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(97, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3562,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":172,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":54,"kind":"internal"},{"pos":56,"end":172,"kind":"text"}]},{"pos":172,"end":249,"kind":"text"},{"pos":249,"end":429,"kind":"internal"},{"pos":431,"end":463,"kind":"text"},{"pos":463,"end":975,"kind":"internal"},{"pos":977,"end":980,"kind":"text"},{"pos":980,"end":1513,"kind":"internal"},{"pos":1515,"end":1563,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (127-3562) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +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: false, + configurable: true + }); + return 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 || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (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 || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-172):: ../first/bin/first-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +internal: (0-54) +/**@internal*/ interface TheFirst { + none: any; +} +>>-------------------------------------------------------------------- +text: (56-172) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (172-249) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (249-429) + /**@internal*/ constructor(); + /**@internal*/ prop: string; + /**@internal*/ method(): void; + /**@internal*/ get c(): number; + /**@internal*/ set c(val: number); +---------------------------------------------------------------------- +text: (431-463) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (463-975) + /**@internal*/ class C { + } + /**@internal*/ function foo(): void; + /**@internal*/ namespace someNamespace { + class C { + } + } + /**@internal*/ namespace someOther.something { + class someClass { + } + } + /**@internal*/ export import someImport = someNamespace.C; + /**@internal*/ type internalType = internalC; + /**@internal*/ const internalConst = 10; + /**@internal*/ enum internalEnum { + a = 0, + b = 1, + c = 2 + } +---------------------------------------------------------------------- +text: (977-980) +} + +---------------------------------------------------------------------- +internal: (980-1513) +/**@internal*/ declare class internalC { +} +/**@internal*/ declare function internalfoo(): void; +/**@internal*/ declare namespace internalNamespace { + class someClass { + } +} +/**@internal*/ declare namespace internalOther.something { + class someClass { + } +} +/**@internal*/ import internalImport = internalNamespace.someClass; +/**@internal*/ declare type internalType = internalC; +/**@internal*/ declare const internalConst = 10; +/**@internal*/ declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1515-1563) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 3562, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 172, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, + "end": 172, + "kind": "text" + } + ] + }, + { + "pos": 172, + "end": 249, + "kind": "text" + }, + { + "pos": 249, + "end": 429, + "kind": "internal" + }, + { + "pos": 431, + "end": 463, + "kind": "text" + }, + { + "pos": 463, + "end": 975, + "kind": "internal" + }, + { + "pos": 977, + "end": 980, + "kind": "text" + }, + { + "pos": 980, + "end": 1513, + "kind": "internal" + }, + { + "pos": 1515, + "end": 1563, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 769 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":54,"kind":"internal"},{"pos":56,"end":172,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-54) +/**@internal*/ interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (56-172) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, + "end": 172, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 290 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +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: false, + configurable: true + }); + return 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 || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (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 || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> /**@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /**@internal*/ +3 > +1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) +2 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) +3 >Emitted(16, 20) Source(14, 20) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(17, 5) Source(14, 36) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) +--- +>>> /**@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(18, 5) Source(16, 5) + SourceIndex(3) +2 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) +3 >Emitted(18, 20) Source(16, 20) + SourceIndex(3) +4 >Emitted(18, 44) Source(16, 26) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 20) + SourceIndex(3) +6 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) +7 >Emitted(18, 62) Source(16, 32) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^-> +1 > + > /**@internal*/ +2 > get +3 > c +1 >Emitted(19, 5) Source(17, 20) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) +--- +>>> /**@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(20, 9) Source(17, 5) + SourceIndex(3) +2 >Emitted(20, 23) Source(17, 19) + SourceIndex(3) +3 >Emitted(20, 29) Source(17, 20) + SourceIndex(3) +4 >Emitted(20, 43) Source(17, 30) + SourceIndex(3) +5 >Emitted(20, 50) Source(17, 37) + SourceIndex(3) +6 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) +7 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) +8 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) +9 >Emitted(20, 55) Source(17, 42) + SourceIndex(3) +--- +>>> /**@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(21, 9) Source(18, 5) + SourceIndex(3) +2 >Emitted(21, 23) Source(18, 19) + SourceIndex(3) +3 >Emitted(21, 29) Source(18, 20) + SourceIndex(3) +4 >Emitted(21, 39) Source(18, 26) + SourceIndex(3) +5 >Emitted(21, 42) Source(18, 37) + SourceIndex(3) +6 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) +7 >Emitted(21, 47) Source(18, 42) + SourceIndex(3) +--- +>>> enumerable: false, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >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(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> /**@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^-> +1-> { + > +2 > /**@internal*/ +3 > +1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) +2 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) +3 >Emitted(29, 20) Source(21, 20) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) +--- +>>> /**@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) +2 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) +3 >Emitted(35, 20) Source(22, 20) + SourceIndex(3) +4 >Emitted(35, 29) Source(22, 36) + SourceIndex(3) +5 >Emitted(35, 32) Source(22, 39) + SourceIndex(3) +6 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) +7 >Emitted(35, 38) Source(22, 44) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(36, 5) Source(22, 36) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) +--- +>>> /**@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) +2 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) +3 >Emitted(37, 20) Source(23, 20) + SourceIndex(3) +4 >Emitted(37, 24) Source(23, 37) + SourceIndex(3) +5 >Emitted(37, 37) Source(23, 50) + SourceIndex(3) +6 >Emitted(37, 38) Source(23, 72) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(38, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) +--- +>>> })(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(45, 5) Source(23, 71) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) +--- +>>> /**@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(46, 5) Source(24, 5) + SourceIndex(3) +2 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) +3 >Emitted(46, 20) Source(24, 20) + SourceIndex(3) +4 >Emitted(46, 24) Source(24, 37) + SourceIndex(3) +5 >Emitted(46, 33) Source(24, 46) + SourceIndex(3) +6 >Emitted(46, 34) Source(24, 86) + SourceIndex(3) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(47, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) +--- +>>> })(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(56, 9) Source(24, 85) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) +--- +>>> })(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(57, 5) Source(24, 85) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) +--- +>>> /**@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(58, 5) Source(25, 5) + SourceIndex(3) +2 >Emitted(58, 19) Source(25, 19) + SourceIndex(3) +3 >Emitted(58, 20) Source(25, 34) + SourceIndex(3) +4 >Emitted(58, 38) Source(25, 44) + SourceIndex(3) +5 >Emitted(58, 41) Source(25, 47) + SourceIndex(3) +6 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) +7 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) +8 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) +9 >Emitted(58, 57) Source(25, 63) + SourceIndex(3) +--- +>>> /**@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(59, 5) Source(27, 5) + SourceIndex(3) +2 >Emitted(59, 19) Source(27, 19) + SourceIndex(3) +3 >Emitted(59, 20) Source(27, 33) + SourceIndex(3) +4 >Emitted(59, 41) Source(27, 46) + SourceIndex(3) +5 >Emitted(59, 44) Source(27, 49) + SourceIndex(3) +6 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) +7 >Emitted(59, 47) Source(27, 52) + SourceIndex(3) +--- +>>> /**@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /**@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) +2 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) +3 >Emitted(60, 20) Source(28, 20) + SourceIndex(3) +4 >Emitted(60, 24) Source(28, 32) + SourceIndex(3) +5 >Emitted(60, 36) Source(28, 56) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(61, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) +--- +>>> })(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(65, 5) Source(28, 55) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@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(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>/**@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^-> +1-> + > +2 >/**@internal*/ +3 > +1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) +2 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) +3 >Emitted(67, 16) Source(30, 16) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) +--- +>>>/**@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/**@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) +2 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) +3 >Emitted(72, 16) Source(31, 16) + SourceIndex(3) +4 >Emitted(72, 25) Source(31, 25) + SourceIndex(3) +5 >Emitted(72, 36) Source(31, 36) + SourceIndex(3) +6 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) +7 >Emitted(72, 42) Source(31, 41) + SourceIndex(3) +--- +>>>/**@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) +2 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) +3 >Emitted(73, 16) Source(32, 16) + SourceIndex(3) +4 >Emitted(73, 20) Source(32, 26) + SourceIndex(3) +5 >Emitted(73, 37) Source(32, 43) + SourceIndex(3) +6 >Emitted(73, 38) Source(32, 73) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(74, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) +--- +>>>/**@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) +2 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) +3 >Emitted(82, 16) Source(33, 16) + SourceIndex(3) +4 >Emitted(82, 20) Source(33, 26) + SourceIndex(3) +5 >Emitted(82, 33) Source(33, 39) + SourceIndex(3) +6 >Emitted(82, 34) Source(33, 79) + SourceIndex(3) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(83, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) +--- +>>> })(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(92, 5) Source(33, 78) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) +--- +>>>/**@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/**@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) +2 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) +3 >Emitted(94, 16) Source(34, 16) + SourceIndex(3) +4 >Emitted(94, 20) Source(34, 23) + SourceIndex(3) +5 >Emitted(94, 34) Source(34, 37) + SourceIndex(3) +6 >Emitted(94, 37) Source(34, 40) + SourceIndex(3) +7 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) +8 >Emitted(94, 55) Source(34, 58) + SourceIndex(3) +9 >Emitted(94, 64) Source(34, 67) + SourceIndex(3) +10>Emitted(94, 65) Source(34, 68) + SourceIndex(3) +--- +>>>/**@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/**@internal*/ type internalType = internalC; + > +2 >/**@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) +2 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) +3 >Emitted(95, 16) Source(36, 16) + SourceIndex(3) +4 >Emitted(95, 20) Source(36, 22) + SourceIndex(3) +5 >Emitted(95, 33) Source(36, 35) + SourceIndex(3) +6 >Emitted(95, 36) Source(36, 38) + SourceIndex(3) +7 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) +8 >Emitted(95, 39) Source(36, 41) + SourceIndex(3) +--- +>>>/**@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/**@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) +2 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) +3 >Emitted(96, 16) Source(37, 16) + SourceIndex(3) +4 >Emitted(96, 20) Source(37, 21) + SourceIndex(3) +5 >Emitted(96, 32) Source(37, 45) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(97, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3562,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3562,"kind":"text"}]},{"pos":3562,"end":3598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3562):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3562) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +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: false, + configurable: true + }); + return 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 || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (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 || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3562-3598) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-276) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3562, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3562, + "kind": "text" + } + ] + }, + { + "pos": 3562, + "end": 3598, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 464 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled.js index 43b895018138a..10d0ef05d263d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled.js @@ -5716,3 +5716,2432 @@ declare var c: C; "size": 724 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +/**@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":54,"kind":"internal"},{"pos":56,"end":172,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-54) +/**@internal*/ interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (56-172) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, + "end": 172, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 290 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +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: false, + configurable: true + }); + return 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 || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (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 || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,cAAc,CAAC;IAAgB,CAAC;IAEhC,cAAc,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAApB,cAAc,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACrC,cAAc,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAEzC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,cAAc,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IACjC,cAAc,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACvC,cAAc,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACnE,cAAc,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACjF,cAAc,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE1D,cAAc,CAAc,qBAAa,GAAG,EAAE,CAAC;IAC/C,cAAc,CAAC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACvD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,cAAc,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AACjC,cAAc,CAAC,SAAS,WAAW,KAAI,CAAC;AACxC,cAAc,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACxE,cAAc,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC9E,cAAc,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEnE,cAAc,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACxC,cAAc,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC5C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/**@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> /**@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /**@internal*/ +3 > +1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) +2 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) +3 >Emitted(16, 20) Source(14, 20) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(17, 5) Source(14, 36) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 37) + SourceIndex(3) +--- +>>> /**@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(18, 5) Source(16, 5) + SourceIndex(3) +2 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) +3 >Emitted(18, 20) Source(16, 20) + SourceIndex(3) +4 >Emitted(18, 44) Source(16, 26) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 20) + SourceIndex(3) +6 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) +7 >Emitted(18, 62) Source(16, 32) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^-> +1 > + > /**@internal*/ +2 > get +3 > c +1 >Emitted(19, 5) Source(17, 20) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 24) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 25) + SourceIndex(3) +--- +>>> /**@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(20, 9) Source(17, 5) + SourceIndex(3) +2 >Emitted(20, 23) Source(17, 19) + SourceIndex(3) +3 >Emitted(20, 29) Source(17, 20) + SourceIndex(3) +4 >Emitted(20, 43) Source(17, 30) + SourceIndex(3) +5 >Emitted(20, 50) Source(17, 37) + SourceIndex(3) +6 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) +7 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) +8 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) +9 >Emitted(20, 55) Source(17, 42) + SourceIndex(3) +--- +>>> /**@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(21, 9) Source(18, 5) + SourceIndex(3) +2 >Emitted(21, 23) Source(18, 19) + SourceIndex(3) +3 >Emitted(21, 29) Source(18, 20) + SourceIndex(3) +4 >Emitted(21, 39) Source(18, 26) + SourceIndex(3) +5 >Emitted(21, 42) Source(18, 37) + SourceIndex(3) +6 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) +7 >Emitted(21, 47) Source(18, 42) + SourceIndex(3) +--- +>>> enumerable: false, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 42) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /**@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >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(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> /**@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^-> +1-> { + > +2 > /**@internal*/ +3 > +1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) +2 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) +3 >Emitted(29, 20) Source(21, 20) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 20) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 38) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 37) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 38) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 37) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 38) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 20) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 38) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 33) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 34) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 38) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 38) + SourceIndex(3) +--- +>>> /**@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) +2 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) +3 >Emitted(35, 20) Source(22, 20) + SourceIndex(3) +4 >Emitted(35, 29) Source(22, 36) + SourceIndex(3) +5 >Emitted(35, 32) Source(22, 39) + SourceIndex(3) +6 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) +7 >Emitted(35, 38) Source(22, 44) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(36, 5) Source(22, 36) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 39) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 44) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 44) + SourceIndex(3) +--- +>>> /**@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /**@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) +2 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) +3 >Emitted(37, 20) Source(23, 20) + SourceIndex(3) +4 >Emitted(37, 24) Source(23, 37) + SourceIndex(3) +5 >Emitted(37, 37) Source(23, 50) + SourceIndex(3) +6 >Emitted(37, 38) Source(23, 72) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(38, 5) Source(23, 20) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 37) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 50) + SourceIndex(3) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 53) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 53) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 70) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 69) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 69) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 70) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 53) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 70) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 66) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 67) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 70) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 70) + SourceIndex(3) +--- +>>> })(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(45, 5) Source(23, 71) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 72) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 37) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 50) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 37) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 50) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 37) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 50) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 72) + SourceIndex(3) +--- +>>> /**@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(46, 5) Source(24, 5) + SourceIndex(3) +2 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) +3 >Emitted(46, 20) Source(24, 20) + SourceIndex(3) +4 >Emitted(46, 24) Source(24, 37) + SourceIndex(3) +5 >Emitted(46, 33) Source(24, 46) + SourceIndex(3) +6 >Emitted(46, 34) Source(24, 86) + SourceIndex(3) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(47, 5) Source(24, 20) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 37) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 46) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 47) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 56) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 86) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 47) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 47) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 56) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 59) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 59) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 84) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 83) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 84) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 83) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 84) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 59) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 84) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 72) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 81) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 84) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 84) + SourceIndex(3) +--- +>>> })(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(56, 9) Source(24, 85) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 86) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 47) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 56) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 47) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 56) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 47) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 56) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 86) + SourceIndex(3) +--- +>>> })(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(57, 5) Source(24, 85) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 86) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 37) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 46) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 37) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 46) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 37) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 46) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 86) + SourceIndex(3) +--- +>>> /**@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(58, 5) Source(25, 5) + SourceIndex(3) +2 >Emitted(58, 19) Source(25, 19) + SourceIndex(3) +3 >Emitted(58, 20) Source(25, 34) + SourceIndex(3) +4 >Emitted(58, 38) Source(25, 44) + SourceIndex(3) +5 >Emitted(58, 41) Source(25, 47) + SourceIndex(3) +6 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) +7 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) +8 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) +9 >Emitted(58, 57) Source(25, 63) + SourceIndex(3) +--- +>>> /**@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(59, 5) Source(27, 5) + SourceIndex(3) +2 >Emitted(59, 19) Source(27, 19) + SourceIndex(3) +3 >Emitted(59, 20) Source(27, 33) + SourceIndex(3) +4 >Emitted(59, 41) Source(27, 46) + SourceIndex(3) +5 >Emitted(59, 44) Source(27, 49) + SourceIndex(3) +6 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) +7 >Emitted(59, 47) Source(27, 52) + SourceIndex(3) +--- +>>> /**@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /**@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) +2 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) +3 >Emitted(60, 20) Source(28, 20) + SourceIndex(3) +4 >Emitted(60, 24) Source(28, 32) + SourceIndex(3) +5 >Emitted(60, 36) Source(28, 56) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(61, 5) Source(28, 20) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 32) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 44) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 47) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 48) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 48) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 50) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 51) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 51) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 53) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 54) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 54) + SourceIndex(3) +--- +>>> })(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(65, 5) Source(28, 55) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 56) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 32) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 44) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 32) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 44) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 32) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 44) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 56) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /**@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(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>/**@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^-> +1-> + > +2 >/**@internal*/ +3 > +1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) +2 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) +3 >Emitted(67, 16) Source(30, 16) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 16) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 34) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 33) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 34) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 33) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 34) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 16) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 34) + SourceIndex(3) +--- +>>>/**@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/**@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) +2 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) +3 >Emitted(72, 16) Source(31, 16) + SourceIndex(3) +4 >Emitted(72, 25) Source(31, 25) + SourceIndex(3) +5 >Emitted(72, 36) Source(31, 36) + SourceIndex(3) +6 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) +7 >Emitted(72, 42) Source(31, 41) + SourceIndex(3) +--- +>>>/**@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) +2 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) +3 >Emitted(73, 16) Source(32, 16) + SourceIndex(3) +4 >Emitted(73, 20) Source(32, 26) + SourceIndex(3) +5 >Emitted(73, 37) Source(32, 43) + SourceIndex(3) +6 >Emitted(73, 38) Source(32, 73) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(74, 1) Source(32, 16) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 26) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 43) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 46) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 46) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 71) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 70) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 71) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 70) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 71) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 46) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 71) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 59) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 68) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 71) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 71) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 72) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 73) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 26) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 43) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 26) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 43) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 73) + SourceIndex(3) +--- +>>>/**@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/**@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) +2 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) +3 >Emitted(82, 16) Source(33, 16) + SourceIndex(3) +4 >Emitted(82, 20) Source(33, 26) + SourceIndex(3) +5 >Emitted(82, 33) Source(33, 39) + SourceIndex(3) +6 >Emitted(82, 34) Source(33, 79) + SourceIndex(3) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(83, 1) Source(33, 16) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 26) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 39) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 40) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 49) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 79) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 40) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 40) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 49) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 52) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 77) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 76) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 77) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 76) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 77) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 52) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 77) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 65) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 74) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 77) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 77) + SourceIndex(3) +--- +>>> })(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(92, 5) Source(33, 78) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 79) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 40) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 49) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 40) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 49) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 40) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 49) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 79) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 78) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 79) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 26) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 39) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 26) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 39) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 79) + SourceIndex(3) +--- +>>>/**@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/**@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) +2 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) +3 >Emitted(94, 16) Source(34, 16) + SourceIndex(3) +4 >Emitted(94, 20) Source(34, 23) + SourceIndex(3) +5 >Emitted(94, 34) Source(34, 37) + SourceIndex(3) +6 >Emitted(94, 37) Source(34, 40) + SourceIndex(3) +7 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) +8 >Emitted(94, 55) Source(34, 58) + SourceIndex(3) +9 >Emitted(94, 64) Source(34, 67) + SourceIndex(3) +10>Emitted(94, 65) Source(34, 68) + SourceIndex(3) +--- +>>>/**@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/**@internal*/ type internalType = internalC; + > +2 >/**@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) +2 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) +3 >Emitted(95, 16) Source(36, 16) + SourceIndex(3) +4 >Emitted(95, 20) Source(36, 22) + SourceIndex(3) +5 >Emitted(95, 33) Source(36, 35) + SourceIndex(3) +6 >Emitted(95, 36) Source(36, 38) + SourceIndex(3) +7 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) +8 >Emitted(95, 39) Source(36, 41) + SourceIndex(3) +--- +>>>/**@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/**@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) +2 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) +3 >Emitted(96, 16) Source(37, 16) + SourceIndex(3) +4 >Emitted(96, 20) Source(37, 21) + SourceIndex(3) +5 >Emitted(96, 32) Source(37, 45) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(97, 1) Source(37, 16) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 21) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 33) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 36) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 37) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 37) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 39) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 40) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 40) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 42) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 43) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 43) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 44) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 45) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 21) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 33) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 21) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 33) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 45) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3562,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":3562,"kind":"text"}]},{"pos":3562,"end":3598,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (127-3562):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (127-3562) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +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: false, + configurable: true + }); + return 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 || (normalN = {})); +/**@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/**@internal*/ function internalfoo() { } +/**@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (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 || (internalOther = {})); +/**@internal*/ var internalImport = internalNamespace.someClass; +/**@internal*/ var internalConst = 10; +/**@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3562-3598) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-116) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (116-276) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 3562, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 127, + "end": 3562, + "kind": "text" + } + ] + }, + { + "pos": 3562, + "end": 3598, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 116, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 116, + "kind": "text" + } + ] + }, + { + "pos": 116, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 116, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 724 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-one-two-three-are-prepended-in-order.js index 2c48fe208b3a1..9819ba0b5f405 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -5691,3 +5691,12004 @@ declare var c: C; "size": 464 } + + +Change:: incremental-declaration-changes +Input:: +//// [/src/first/first_PART1.ts] +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is out of date because oldest output 'src/2/second-output.js' is older than newest input 'src/first' + +[12:04:00 AM] Building project '/src/second/tsconfig.json'... + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/second' + +[12:04:00 AM] Building project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/second/second_part1.ts": 1, + "/src/second/second_part2.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts": 2, + "/src/third/third_part1.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.js": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + +//// [/src/2/second-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { + constructor(); + prop: string; + method(): void; + get c(): number; + set c(val: number); +} +declare 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 + } +} +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >/*@internal*/ +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>> constructor(); +>>> prop: string; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +6 > ^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ +2 > prop +3 > : +4 > string +5 > ; +1 >Emitted(15, 5) Source(15, 19) + SourceIndex(2) +2 >Emitted(15, 9) Source(15, 23) + SourceIndex(2) +3 >Emitted(15, 11) Source(15, 25) + SourceIndex(2) +4 >Emitted(15, 17) Source(15, 31) + SourceIndex(2) +5 >Emitted(15, 18) Source(15, 32) + SourceIndex(2) +--- +>>> method(): void; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > method +1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) +2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) +--- +>>> get c(): number; +1->^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^ +7 > ^^^^-> +1->() { } + > /*@internal*/ +2 > get +3 > c +4 > () { return 10; } + > /*@internal*/ set c(val: +5 > number +6 > +1->Emitted(17, 5) Source(17, 19) + SourceIndex(2) +2 >Emitted(17, 9) Source(17, 23) + SourceIndex(2) +3 >Emitted(17, 10) Source(17, 24) + SourceIndex(2) +4 >Emitted(17, 14) Source(18, 30) + SourceIndex(2) +5 >Emitted(17, 20) Source(18, 36) + SourceIndex(2) +6 >Emitted(17, 21) Source(17, 41) + SourceIndex(2) +--- +>>> set c(val: number); +1->^^^^ +2 > ^^^^ +3 > ^ +4 > ^ +5 > ^^^^^ +6 > ^^^^^^ +7 > ^^ +1-> + > /*@internal*/ +2 > set +3 > c +4 > ( +5 > val: +6 > number +7 > ) { } +1->Emitted(18, 5) Source(18, 19) + SourceIndex(2) +2 >Emitted(18, 9) Source(18, 23) + SourceIndex(2) +3 >Emitted(18, 10) Source(18, 24) + SourceIndex(2) +4 >Emitted(18, 11) Source(18, 25) + SourceIndex(2) +5 >Emitted(18, 16) Source(18, 30) + SourceIndex(2) +6 >Emitted(18, 22) Source(18, 36) + SourceIndex(2) +7 >Emitted(18, 24) Source(18, 41) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(20, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(20, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(20, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(20, 27) Source(20, 19) + SourceIndex(2) +--- +>>> class C { +1 >^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ + > /*@internal*/ +2 > export class +3 > C +1 >Emitted(21, 5) Source(21, 19) + SourceIndex(2) +2 >Emitted(21, 11) Source(21, 32) + SourceIndex(2) +3 >Emitted(21, 12) Source(21, 33) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(22, 6) Source(21, 37) + SourceIndex(2) +--- +>>> function foo(): void; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^ +5 > ^^^^^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () {} +1->Emitted(23, 5) Source(22, 19) + SourceIndex(2) +2 >Emitted(23, 14) Source(22, 35) + SourceIndex(2) +3 >Emitted(23, 17) Source(22, 38) + SourceIndex(2) +4 >Emitted(23, 26) Source(22, 43) + SourceIndex(2) +--- +>>> namespace someNamespace { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > +1->Emitted(24, 5) Source(23, 19) + SourceIndex(2) +2 >Emitted(24, 15) Source(23, 36) + SourceIndex(2) +3 >Emitted(24, 28) Source(23, 49) + SourceIndex(2) +4 >Emitted(24, 29) Source(23, 50) + SourceIndex(2) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(25, 9) Source(23, 52) + SourceIndex(2) +2 >Emitted(25, 15) Source(23, 65) + SourceIndex(2) +3 >Emitted(25, 16) Source(23, 66) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(26, 10) Source(23, 69) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(27, 6) Source(23, 71) + SourceIndex(2) +--- +>>> namespace someOther.something { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someOther +4 > . +5 > something +6 > +1->Emitted(28, 5) Source(24, 19) + SourceIndex(2) +2 >Emitted(28, 15) Source(24, 36) + SourceIndex(2) +3 >Emitted(28, 24) Source(24, 45) + SourceIndex(2) +4 >Emitted(28, 25) Source(24, 46) + SourceIndex(2) +5 >Emitted(28, 34) Source(24, 55) + SourceIndex(2) +6 >Emitted(28, 35) Source(24, 56) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(29, 9) Source(24, 58) + SourceIndex(2) +2 >Emitted(29, 15) Source(24, 71) + SourceIndex(2) +3 >Emitted(29, 24) Source(24, 80) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(30, 10) Source(24, 83) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(31, 6) Source(24, 85) + SourceIndex(2) +--- +>>> 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(32, 5) Source(25, 19) + SourceIndex(2) +2 >Emitted(32, 11) Source(25, 25) + SourceIndex(2) +3 >Emitted(32, 19) Source(25, 33) + SourceIndex(2) +4 >Emitted(32, 29) Source(25, 43) + SourceIndex(2) +5 >Emitted(32, 32) Source(25, 46) + SourceIndex(2) +6 >Emitted(32, 45) Source(25, 59) + SourceIndex(2) +7 >Emitted(32, 46) Source(25, 60) + SourceIndex(2) +8 >Emitted(32, 47) Source(25, 61) + SourceIndex(2) +9 >Emitted(32, 48) Source(25, 62) + SourceIndex(2) +--- +>>> type internalType = internalC; +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > /*@internal*/ +2 > export type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(33, 5) Source(26, 19) + SourceIndex(2) +2 >Emitted(33, 10) Source(26, 31) + SourceIndex(2) +3 >Emitted(33, 22) Source(26, 43) + SourceIndex(2) +4 >Emitted(33, 25) Source(26, 46) + SourceIndex(2) +5 >Emitted(33, 34) Source(26, 55) + SourceIndex(2) +6 >Emitted(33, 35) Source(26, 56) + SourceIndex(2) +--- +>>> const internalConst = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1 > + > /*@internal*/ export +2 > const +3 > internalConst +4 > = 10 +5 > ; +1 >Emitted(34, 5) Source(27, 26) + SourceIndex(2) +2 >Emitted(34, 11) Source(27, 32) + SourceIndex(2) +3 >Emitted(34, 24) Source(27, 45) + SourceIndex(2) +4 >Emitted(34, 29) Source(27, 50) + SourceIndex(2) +5 >Emitted(34, 30) Source(27, 51) + SourceIndex(2) +--- +>>> enum internalEnum { +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum +1 >Emitted(35, 5) Source(28, 19) + SourceIndex(2) +2 >Emitted(35, 10) Source(28, 31) + SourceIndex(2) +3 >Emitted(35, 22) Source(28, 43) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(36, 9) Source(28, 46) + SourceIndex(2) +2 >Emitted(36, 10) Source(28, 47) + SourceIndex(2) +3 >Emitted(36, 14) Source(28, 47) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(37, 9) Source(28, 49) + SourceIndex(2) +2 >Emitted(37, 10) Source(28, 50) + SourceIndex(2) +3 >Emitted(37, 14) Source(28, 50) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(38, 9) Source(28, 52) + SourceIndex(2) +2 >Emitted(38, 10) Source(28, 53) + SourceIndex(2) +3 >Emitted(38, 14) Source(28, 53) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(39, 6) Source(28, 55) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(40, 2) Source(29, 2) + SourceIndex(2) +--- +>>>declare class internalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> + >/*@internal*/ +2 >class +3 > internalC +1->Emitted(41, 1) Source(30, 15) + SourceIndex(2) +2 >Emitted(41, 15) Source(30, 21) + SourceIndex(2) +3 >Emitted(41, 24) Source(30, 30) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(42, 2) Source(30, 33) + SourceIndex(2) +--- +>>>declare function internalfoo(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^ +5 > ^-> +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () {} +1->Emitted(43, 1) Source(31, 15) + SourceIndex(2) +2 >Emitted(43, 18) Source(31, 24) + SourceIndex(2) +3 >Emitted(43, 29) Source(31, 35) + SourceIndex(2) +4 >Emitted(43, 38) Source(31, 40) + SourceIndex(2) +--- +>>>declare namespace internalNamespace { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > +1->Emitted(44, 1) Source(32, 15) + SourceIndex(2) +2 >Emitted(44, 19) Source(32, 25) + SourceIndex(2) +3 >Emitted(44, 36) Source(32, 42) + SourceIndex(2) +4 >Emitted(44, 37) Source(32, 43) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(45, 5) Source(32, 45) + SourceIndex(2) +2 >Emitted(45, 11) Source(32, 58) + SourceIndex(2) +3 >Emitted(45, 20) Source(32, 67) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(46, 6) Source(32, 70) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(47, 2) Source(32, 72) + SourceIndex(2) +--- +>>>declare namespace internalOther.something { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalOther +4 > . +5 > something +6 > +1->Emitted(48, 1) Source(33, 15) + SourceIndex(2) +2 >Emitted(48, 19) Source(33, 25) + SourceIndex(2) +3 >Emitted(48, 32) Source(33, 38) + SourceIndex(2) +4 >Emitted(48, 33) Source(33, 39) + SourceIndex(2) +5 >Emitted(48, 42) Source(33, 48) + SourceIndex(2) +6 >Emitted(48, 43) Source(33, 49) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(49, 5) Source(33, 51) + SourceIndex(2) +2 >Emitted(49, 11) Source(33, 64) + SourceIndex(2) +3 >Emitted(49, 20) Source(33, 73) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(50, 6) Source(33, 76) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(51, 2) Source(33, 78) + SourceIndex(2) +--- +>>>import internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(52, 1) Source(34, 15) + SourceIndex(2) +2 >Emitted(52, 8) Source(34, 22) + SourceIndex(2) +3 >Emitted(52, 22) Source(34, 36) + SourceIndex(2) +4 >Emitted(52, 25) Source(34, 39) + SourceIndex(2) +5 >Emitted(52, 42) Source(34, 56) + SourceIndex(2) +6 >Emitted(52, 43) Source(34, 57) + SourceIndex(2) +7 >Emitted(52, 52) Source(34, 66) + SourceIndex(2) +8 >Emitted(52, 53) Source(34, 67) + SourceIndex(2) +--- +>>>declare type internalType = internalC; +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 >type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(53, 1) Source(35, 15) + SourceIndex(2) +2 >Emitted(53, 14) Source(35, 20) + SourceIndex(2) +3 >Emitted(53, 26) Source(35, 32) + SourceIndex(2) +4 >Emitted(53, 29) Source(35, 35) + SourceIndex(2) +5 >Emitted(53, 38) Source(35, 44) + SourceIndex(2) +6 >Emitted(53, 39) Source(35, 45) + SourceIndex(2) +--- +>>>declare const internalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 > +3 > const +4 > internalConst +5 > = 10 +6 > ; +1 >Emitted(54, 1) Source(36, 15) + SourceIndex(2) +2 >Emitted(54, 9) Source(36, 15) + SourceIndex(2) +3 >Emitted(54, 15) Source(36, 21) + SourceIndex(2) +4 >Emitted(54, 28) Source(36, 34) + SourceIndex(2) +5 >Emitted(54, 33) Source(36, 39) + SourceIndex(2) +6 >Emitted(54, 34) Source(36, 40) + SourceIndex(2) +--- +>>>declare enum internalEnum { +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +1 > + >/*@internal*/ +2 >enum +3 > internalEnum +1 >Emitted(55, 1) Source(37, 15) + SourceIndex(2) +2 >Emitted(55, 14) Source(37, 20) + SourceIndex(2) +3 >Emitted(55, 26) Source(37, 32) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(56, 5) Source(37, 35) + SourceIndex(2) +2 >Emitted(56, 6) Source(37, 36) + SourceIndex(2) +3 >Emitted(56, 10) Source(37, 36) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(57, 5) Source(37, 38) + SourceIndex(2) +2 >Emitted(57, 6) Source(37, 39) + SourceIndex(2) +3 >Emitted(57, 10) Source(37, 39) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(58, 5) Source(37, 41) + SourceIndex(2) +2 >Emitted(58, 6) Source(37, 42) + SourceIndex(2) +3 >Emitted(58, 10) Source(37, 42) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(59, 2) Source(37, 44) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(60, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(60, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(60, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /*@internal*/ +1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /*@internal*/ prop: string; + > /*@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /*@internal*/ +2 > get +3 > c +1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /*@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: false, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >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(26, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /*@internal*/ +1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(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(44, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(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(55, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(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(56, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /*@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(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(64, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@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(65, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/*@internal*/ +1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(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(91, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/*@internal*/ type internalType = internalC; + >/*@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":109,"kind":"text"}]},{"pos":109,"end":3162,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}]},{"pos":156,"end":233,"kind":"text"},{"pos":233,"end":338,"kind":"internal"},{"pos":340,"end":372,"kind":"text"},{"pos":372,"end":764,"kind":"internal"},{"pos":766,"end":769,"kind":"text"},{"pos":769,"end":1182,"kind":"internal"},{"pos":1184,"end":1232,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-109):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-109) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (109-3162) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-156):: ../first/bin/first-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +>>-------------------------------------------------------------------- +text: (41-156) +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (156-233) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (233-338) + constructor(); + prop: string; + method(): void; + get c(): number; + set c(val: number); +---------------------------------------------------------------------- +text: (340-372) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (372-764) + 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: (766-769) +} + +---------------------------------------------------------------------- +internal: (769-1182) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1184-1232) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 109, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 109, + "kind": "text" + } + ] + }, + { + "pos": 109, + "end": 3162, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 233, + "kind": "text" + }, + { + "pos": 233, + "end": 338, + "kind": "internal" + }, + { + "pos": 340, + "end": 372, + "kind": "text" + }, + { + "pos": 372, + "end": 764, + "kind": "internal" + }, + { + "pos": 766, + "end": 769, + "kind": "text" + }, + { + "pos": 769, + "end": 1182, + "kind": "internal" + }, + { + "pos": 1184, + "end": 1232, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 769 +} + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >/*@internal*/ +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-109) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-156) +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 109, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 290 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>declare const s = "Hola, world"; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(1, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +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(13, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /*@internal*/ +1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /*@internal*/ prop: string; + > /*@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /*@internal*/ +2 > get +3 > c +1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /*@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: false, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >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(26, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /*@internal*/ +1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(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(44, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(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(55, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(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(56, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /*@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(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(64, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@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(65, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/*@internal*/ +1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(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(91, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/*@internal*/ type internalType = internalC; + >/*@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3162,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3162,"kind":"text"}]},{"pos":3162,"end":3198,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":275,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":275,"kind":"text"}]},{"pos":275,"end":294,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3162):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3162) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3162-3198) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-275):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-275) +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (275-294) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3162, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3162, + "kind": "text" + } + ] + }, + { + "pos": 3162, + "end": 3198, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 275, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 275, + "kind": "text" + } + ] + }, + { + "pos": 275, + "end": 294, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 464 +} + + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:07:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:07:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:07:00 AM] Building project '/src/first/tsconfig.json'... + +[12:07:00 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:07:00 AM] Updating output of project '/src/second/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +[12:07:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +[12:07:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 2, + "/src/2/second-output.js": 2, + "/src/2/second-output.js.map": 2, + "/src/2/second-output.d.ts": 2, + "/src/2/second-output.d.ts.map": 2, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1 +} + +//// [/src/2/second-output.d.ts] file changed its modified time +//// [/src/2/second-output.d.ts.map] file changed its modified time +//// [/src/2/second-output.js] +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /*@internal*/ +1->Emitted(16, 5) Source(14, 19) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(17, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /*@internal*/ prop: string; + > /*@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(18, 5) Source(16, 19) + SourceIndex(3) +2 >Emitted(18, 29) Source(16, 25) + SourceIndex(3) +3 >Emitted(18, 32) Source(16, 19) + SourceIndex(3) +4 >Emitted(18, 46) Source(16, 30) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /*@internal*/ +2 > get +3 > c +1->Emitted(19, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(20, 14) Source(17, 19) + SourceIndex(3) +2 >Emitted(20, 28) Source(17, 29) + SourceIndex(3) +3 >Emitted(20, 35) Source(17, 36) + SourceIndex(3) +4 >Emitted(20, 37) Source(17, 38) + SourceIndex(3) +5 >Emitted(20, 38) Source(17, 39) + SourceIndex(3) +6 >Emitted(20, 39) Source(17, 40) + SourceIndex(3) +7 >Emitted(20, 40) Source(17, 41) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /*@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(21, 14) Source(18, 19) + SourceIndex(3) +2 >Emitted(21, 24) Source(18, 25) + SourceIndex(3) +3 >Emitted(21, 27) Source(18, 36) + SourceIndex(3) +4 >Emitted(21, 31) Source(18, 40) + SourceIndex(3) +5 >Emitted(21, 32) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: false, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >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(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /*@internal*/ +1->Emitted(29, 5) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(35, 5) Source(22, 19) + SourceIndex(3) +2 >Emitted(35, 14) Source(22, 35) + SourceIndex(3) +3 >Emitted(35, 17) Source(22, 38) + SourceIndex(3) +4 >Emitted(35, 22) Source(22, 42) + SourceIndex(3) +5 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(36, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(37, 9) Source(23, 36) + SourceIndex(3) +3 >Emitted(37, 22) Source(23, 49) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(38, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(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(45, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(46, 9) Source(24, 36) + SourceIndex(3) +3 >Emitted(46, 18) Source(24, 45) + SourceIndex(3) +4 >Emitted(46, 19) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(47, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(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(56, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(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(57, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /*@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(58, 5) Source(25, 33) + SourceIndex(3) +2 >Emitted(58, 23) Source(25, 43) + SourceIndex(3) +3 >Emitted(58, 26) Source(25, 46) + SourceIndex(3) +4 >Emitted(58, 39) Source(25, 59) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 60) + SourceIndex(3) +6 >Emitted(58, 41) Source(25, 61) + SourceIndex(3) +7 >Emitted(58, 42) Source(25, 62) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(59, 5) Source(27, 32) + SourceIndex(3) +2 >Emitted(59, 26) Source(27, 45) + SourceIndex(3) +3 >Emitted(59, 29) Source(27, 48) + SourceIndex(3) +4 >Emitted(59, 31) Source(27, 50) + SourceIndex(3) +5 >Emitted(59, 32) Source(27, 51) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(60, 9) Source(28, 31) + SourceIndex(3) +3 >Emitted(60, 21) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(61, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(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(65, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@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(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/*@internal*/ +1->Emitted(67, 1) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(72, 1) Source(31, 15) + SourceIndex(3) +2 >Emitted(72, 10) Source(31, 24) + SourceIndex(3) +3 >Emitted(72, 21) Source(31, 35) + SourceIndex(3) +4 >Emitted(72, 26) Source(31, 39) + SourceIndex(3) +5 >Emitted(72, 27) Source(31, 40) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(73, 5) Source(32, 25) + SourceIndex(3) +3 >Emitted(73, 22) Source(32, 42) + SourceIndex(3) +4 >Emitted(73, 23) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(74, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(82, 5) Source(33, 25) + SourceIndex(3) +3 >Emitted(82, 18) Source(33, 38) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(83, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(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(92, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(94, 1) Source(34, 15) + SourceIndex(3) +2 >Emitted(94, 5) Source(34, 22) + SourceIndex(3) +3 >Emitted(94, 19) Source(34, 36) + SourceIndex(3) +4 >Emitted(94, 22) Source(34, 39) + SourceIndex(3) +5 >Emitted(94, 39) Source(34, 56) + SourceIndex(3) +6 >Emitted(94, 40) Source(34, 57) + SourceIndex(3) +7 >Emitted(94, 49) Source(34, 66) + SourceIndex(3) +8 >Emitted(94, 50) Source(34, 67) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/*@internal*/ type internalType = internalC; + >/*@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(95, 1) Source(36, 15) + SourceIndex(3) +2 >Emitted(95, 5) Source(36, 21) + SourceIndex(3) +3 >Emitted(95, 18) Source(36, 34) + SourceIndex(3) +4 >Emitted(95, 21) Source(36, 37) + SourceIndex(3) +5 >Emitted(95, 23) Source(36, 39) + SourceIndex(3) +6 >Emitted(95, 24) Source(36, 40) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(96, 5) Source(37, 20) + SourceIndex(3) +3 >Emitted(96, 17) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(97, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":126,"kind":"text"}]},{"pos":126,"end":3179,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}]},{"pos":156,"end":233,"kind":"text"},{"pos":233,"end":338,"kind":"internal"},{"pos":340,"end":372,"kind":"text"},{"pos":372,"end":764,"kind":"internal"},{"pos":766,"end":769,"kind":"text"},{"pos":769,"end":1182,"kind":"internal"},{"pos":1184,"end":1232,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-126):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-126) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (126-3179) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-156):: ../first/bin/first-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +>>-------------------------------------------------------------------- +text: (41-156) +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (156-233) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (233-338) + constructor(); + prop: string; + method(): void; + get c(): number; + set c(val: number); +---------------------------------------------------------------------- +text: (340-372) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (372-764) + 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: (766-769) +} + +---------------------------------------------------------------------- +internal: (769-1182) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1184-1232) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 126, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 126, + "kind": "text" + } + ] + }, + { + "pos": 126, + "end": 3179, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 233, + "kind": "text" + }, + { + "pos": 233, + "end": 338, + "kind": "internal" + }, + { + "pos": 340, + "end": 372, + "kind": "text" + }, + { + "pos": 372, + "end": 764, + "kind": "internal" + }, + { + "pos": 766, + "end": 769, + "kind": "text" + }, + { + "pos": 769, + "end": 1182, + "kind": "internal" + }, + { + "pos": 1184, + "end": 1232, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 769 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-126) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-156) +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 126, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 290 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /*@internal*/ +1->Emitted(16, 5) Source(14, 19) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(17, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /*@internal*/ prop: string; + > /*@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(18, 5) Source(16, 19) + SourceIndex(3) +2 >Emitted(18, 29) Source(16, 25) + SourceIndex(3) +3 >Emitted(18, 32) Source(16, 19) + SourceIndex(3) +4 >Emitted(18, 46) Source(16, 30) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /*@internal*/ +2 > get +3 > c +1->Emitted(19, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(20, 14) Source(17, 19) + SourceIndex(3) +2 >Emitted(20, 28) Source(17, 29) + SourceIndex(3) +3 >Emitted(20, 35) Source(17, 36) + SourceIndex(3) +4 >Emitted(20, 37) Source(17, 38) + SourceIndex(3) +5 >Emitted(20, 38) Source(17, 39) + SourceIndex(3) +6 >Emitted(20, 39) Source(17, 40) + SourceIndex(3) +7 >Emitted(20, 40) Source(17, 41) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /*@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(21, 14) Source(18, 19) + SourceIndex(3) +2 >Emitted(21, 24) Source(18, 25) + SourceIndex(3) +3 >Emitted(21, 27) Source(18, 36) + SourceIndex(3) +4 >Emitted(21, 31) Source(18, 40) + SourceIndex(3) +5 >Emitted(21, 32) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: false, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >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(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /*@internal*/ +1->Emitted(29, 5) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(35, 5) Source(22, 19) + SourceIndex(3) +2 >Emitted(35, 14) Source(22, 35) + SourceIndex(3) +3 >Emitted(35, 17) Source(22, 38) + SourceIndex(3) +4 >Emitted(35, 22) Source(22, 42) + SourceIndex(3) +5 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(36, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(37, 9) Source(23, 36) + SourceIndex(3) +3 >Emitted(37, 22) Source(23, 49) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(38, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(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(45, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(46, 9) Source(24, 36) + SourceIndex(3) +3 >Emitted(46, 18) Source(24, 45) + SourceIndex(3) +4 >Emitted(46, 19) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(47, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(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(56, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(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(57, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /*@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(58, 5) Source(25, 33) + SourceIndex(3) +2 >Emitted(58, 23) Source(25, 43) + SourceIndex(3) +3 >Emitted(58, 26) Source(25, 46) + SourceIndex(3) +4 >Emitted(58, 39) Source(25, 59) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 60) + SourceIndex(3) +6 >Emitted(58, 41) Source(25, 61) + SourceIndex(3) +7 >Emitted(58, 42) Source(25, 62) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(59, 5) Source(27, 32) + SourceIndex(3) +2 >Emitted(59, 26) Source(27, 45) + SourceIndex(3) +3 >Emitted(59, 29) Source(27, 48) + SourceIndex(3) +4 >Emitted(59, 31) Source(27, 50) + SourceIndex(3) +5 >Emitted(59, 32) Source(27, 51) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(60, 9) Source(28, 31) + SourceIndex(3) +3 >Emitted(60, 21) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(61, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(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(65, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@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(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/*@internal*/ +1->Emitted(67, 1) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(72, 1) Source(31, 15) + SourceIndex(3) +2 >Emitted(72, 10) Source(31, 24) + SourceIndex(3) +3 >Emitted(72, 21) Source(31, 35) + SourceIndex(3) +4 >Emitted(72, 26) Source(31, 39) + SourceIndex(3) +5 >Emitted(72, 27) Source(31, 40) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(73, 5) Source(32, 25) + SourceIndex(3) +3 >Emitted(73, 22) Source(32, 42) + SourceIndex(3) +4 >Emitted(73, 23) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(74, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(82, 5) Source(33, 25) + SourceIndex(3) +3 >Emitted(82, 18) Source(33, 38) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(83, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(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(92, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(94, 1) Source(34, 15) + SourceIndex(3) +2 >Emitted(94, 5) Source(34, 22) + SourceIndex(3) +3 >Emitted(94, 19) Source(34, 36) + SourceIndex(3) +4 >Emitted(94, 22) Source(34, 39) + SourceIndex(3) +5 >Emitted(94, 39) Source(34, 56) + SourceIndex(3) +6 >Emitted(94, 40) Source(34, 57) + SourceIndex(3) +7 >Emitted(94, 49) Source(34, 66) + SourceIndex(3) +8 >Emitted(94, 50) Source(34, 67) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/*@internal*/ type internalType = internalC; + >/*@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(95, 1) Source(36, 15) + SourceIndex(3) +2 >Emitted(95, 5) Source(36, 21) + SourceIndex(3) +3 >Emitted(95, 18) Source(36, 34) + SourceIndex(3) +4 >Emitted(95, 21) Source(36, 37) + SourceIndex(3) +5 >Emitted(95, 23) Source(36, 39) + SourceIndex(3) +6 >Emitted(95, 24) Source(36, 40) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(96, 5) Source(37, 20) + SourceIndex(3) +3 >Emitted(96, 17) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(97, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3179,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3179,"kind":"text"}]},{"pos":3179,"end":3215,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":275,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":275,"kind":"text"}]},{"pos":275,"end":294,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3179):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3179) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3179-3215) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-275):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-275) +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (275-294) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3179, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3179, + "kind": "text" + } + ] + }, + { + "pos": 3179, + "end": 3215, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 275, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 275, + "kind": "text" + } + ] + }, + { + "pos": 275, + "end": 294, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 464 +} + + + +Change:: incremental-headers-change-without-dts-changes +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:10:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:10:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:10:00 AM] Building project '/src/first/tsconfig.json'... + +[12:10:00 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:10:00 AM] Updating output of project '/src/second/tsconfig.json'... + +[12:10:00 AM] Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +[12:10:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +[12:10:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:10:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 2, + "/src/2/second-output.js": 2, + "/src/2/second-output.js.map": 2, + "/src/2/second-output.d.ts": 2, + "/src/2/second-output.d.ts.map": 2, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1 +} + +//// [/src/2/second-output.d.ts] file changed its modified time +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>> constructor(); +>>> prop: string; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +6 > ^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ +2 > prop +3 > : +4 > string +5 > ; +1 >Emitted(15, 5) Source(15, 19) + SourceIndex(2) +2 >Emitted(15, 9) Source(15, 23) + SourceIndex(2) +3 >Emitted(15, 11) Source(15, 25) + SourceIndex(2) +4 >Emitted(15, 17) Source(15, 31) + SourceIndex(2) +5 >Emitted(15, 18) Source(15, 32) + SourceIndex(2) +--- +>>> method(): void; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > method +1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) +2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) +--- +>>> get c(): number; +1->^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^ +7 > ^^^^-> +1->() { } + > /*@internal*/ +2 > get +3 > c +4 > () { return 10; } + > /*@internal*/ set c(val: +5 > number +6 > +1->Emitted(17, 5) Source(17, 19) + SourceIndex(2) +2 >Emitted(17, 9) Source(17, 23) + SourceIndex(2) +3 >Emitted(17, 10) Source(17, 24) + SourceIndex(2) +4 >Emitted(17, 14) Source(18, 30) + SourceIndex(2) +5 >Emitted(17, 20) Source(18, 36) + SourceIndex(2) +6 >Emitted(17, 21) Source(17, 41) + SourceIndex(2) +--- +>>> set c(val: number); +1->^^^^ +2 > ^^^^ +3 > ^ +4 > ^ +5 > ^^^^^ +6 > ^^^^^^ +7 > ^^ +1-> + > /*@internal*/ +2 > set +3 > c +4 > ( +5 > val: +6 > number +7 > ) { } +1->Emitted(18, 5) Source(18, 19) + SourceIndex(2) +2 >Emitted(18, 9) Source(18, 23) + SourceIndex(2) +3 >Emitted(18, 10) Source(18, 24) + SourceIndex(2) +4 >Emitted(18, 11) Source(18, 25) + SourceIndex(2) +5 >Emitted(18, 16) Source(18, 30) + SourceIndex(2) +6 >Emitted(18, 22) Source(18, 36) + SourceIndex(2) +7 >Emitted(18, 24) Source(18, 41) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(20, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(20, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(20, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(20, 27) Source(20, 19) + SourceIndex(2) +--- +>>> class C { +1 >^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ + > /*@internal*/ +2 > export class +3 > C +1 >Emitted(21, 5) Source(21, 19) + SourceIndex(2) +2 >Emitted(21, 11) Source(21, 32) + SourceIndex(2) +3 >Emitted(21, 12) Source(21, 33) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(22, 6) Source(21, 37) + SourceIndex(2) +--- +>>> function foo(): void; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^ +5 > ^^^^^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () {} +1->Emitted(23, 5) Source(22, 19) + SourceIndex(2) +2 >Emitted(23, 14) Source(22, 35) + SourceIndex(2) +3 >Emitted(23, 17) Source(22, 38) + SourceIndex(2) +4 >Emitted(23, 26) Source(22, 43) + SourceIndex(2) +--- +>>> namespace someNamespace { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > +1->Emitted(24, 5) Source(23, 19) + SourceIndex(2) +2 >Emitted(24, 15) Source(23, 36) + SourceIndex(2) +3 >Emitted(24, 28) Source(23, 49) + SourceIndex(2) +4 >Emitted(24, 29) Source(23, 50) + SourceIndex(2) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(25, 9) Source(23, 52) + SourceIndex(2) +2 >Emitted(25, 15) Source(23, 65) + SourceIndex(2) +3 >Emitted(25, 16) Source(23, 66) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(26, 10) Source(23, 69) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(27, 6) Source(23, 71) + SourceIndex(2) +--- +>>> namespace someOther.something { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someOther +4 > . +5 > something +6 > +1->Emitted(28, 5) Source(24, 19) + SourceIndex(2) +2 >Emitted(28, 15) Source(24, 36) + SourceIndex(2) +3 >Emitted(28, 24) Source(24, 45) + SourceIndex(2) +4 >Emitted(28, 25) Source(24, 46) + SourceIndex(2) +5 >Emitted(28, 34) Source(24, 55) + SourceIndex(2) +6 >Emitted(28, 35) Source(24, 56) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(29, 9) Source(24, 58) + SourceIndex(2) +2 >Emitted(29, 15) Source(24, 71) + SourceIndex(2) +3 >Emitted(29, 24) Source(24, 80) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(30, 10) Source(24, 83) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(31, 6) Source(24, 85) + SourceIndex(2) +--- +>>> 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(32, 5) Source(25, 19) + SourceIndex(2) +2 >Emitted(32, 11) Source(25, 25) + SourceIndex(2) +3 >Emitted(32, 19) Source(25, 33) + SourceIndex(2) +4 >Emitted(32, 29) Source(25, 43) + SourceIndex(2) +5 >Emitted(32, 32) Source(25, 46) + SourceIndex(2) +6 >Emitted(32, 45) Source(25, 59) + SourceIndex(2) +7 >Emitted(32, 46) Source(25, 60) + SourceIndex(2) +8 >Emitted(32, 47) Source(25, 61) + SourceIndex(2) +9 >Emitted(32, 48) Source(25, 62) + SourceIndex(2) +--- +>>> type internalType = internalC; +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > /*@internal*/ +2 > export type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(33, 5) Source(26, 19) + SourceIndex(2) +2 >Emitted(33, 10) Source(26, 31) + SourceIndex(2) +3 >Emitted(33, 22) Source(26, 43) + SourceIndex(2) +4 >Emitted(33, 25) Source(26, 46) + SourceIndex(2) +5 >Emitted(33, 34) Source(26, 55) + SourceIndex(2) +6 >Emitted(33, 35) Source(26, 56) + SourceIndex(2) +--- +>>> const internalConst = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1 > + > /*@internal*/ export +2 > const +3 > internalConst +4 > = 10 +5 > ; +1 >Emitted(34, 5) Source(27, 26) + SourceIndex(2) +2 >Emitted(34, 11) Source(27, 32) + SourceIndex(2) +3 >Emitted(34, 24) Source(27, 45) + SourceIndex(2) +4 >Emitted(34, 29) Source(27, 50) + SourceIndex(2) +5 >Emitted(34, 30) Source(27, 51) + SourceIndex(2) +--- +>>> enum internalEnum { +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum +1 >Emitted(35, 5) Source(28, 19) + SourceIndex(2) +2 >Emitted(35, 10) Source(28, 31) + SourceIndex(2) +3 >Emitted(35, 22) Source(28, 43) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(36, 9) Source(28, 46) + SourceIndex(2) +2 >Emitted(36, 10) Source(28, 47) + SourceIndex(2) +3 >Emitted(36, 14) Source(28, 47) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(37, 9) Source(28, 49) + SourceIndex(2) +2 >Emitted(37, 10) Source(28, 50) + SourceIndex(2) +3 >Emitted(37, 14) Source(28, 50) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(38, 9) Source(28, 52) + SourceIndex(2) +2 >Emitted(38, 10) Source(28, 53) + SourceIndex(2) +3 >Emitted(38, 14) Source(28, 53) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(39, 6) Source(28, 55) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(40, 2) Source(29, 2) + SourceIndex(2) +--- +>>>declare class internalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> + >/*@internal*/ +2 >class +3 > internalC +1->Emitted(41, 1) Source(30, 15) + SourceIndex(2) +2 >Emitted(41, 15) Source(30, 21) + SourceIndex(2) +3 >Emitted(41, 24) Source(30, 30) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(42, 2) Source(30, 33) + SourceIndex(2) +--- +>>>declare function internalfoo(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^ +5 > ^-> +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () {} +1->Emitted(43, 1) Source(31, 15) + SourceIndex(2) +2 >Emitted(43, 18) Source(31, 24) + SourceIndex(2) +3 >Emitted(43, 29) Source(31, 35) + SourceIndex(2) +4 >Emitted(43, 38) Source(31, 40) + SourceIndex(2) +--- +>>>declare namespace internalNamespace { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > +1->Emitted(44, 1) Source(32, 15) + SourceIndex(2) +2 >Emitted(44, 19) Source(32, 25) + SourceIndex(2) +3 >Emitted(44, 36) Source(32, 42) + SourceIndex(2) +4 >Emitted(44, 37) Source(32, 43) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(45, 5) Source(32, 45) + SourceIndex(2) +2 >Emitted(45, 11) Source(32, 58) + SourceIndex(2) +3 >Emitted(45, 20) Source(32, 67) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(46, 6) Source(32, 70) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(47, 2) Source(32, 72) + SourceIndex(2) +--- +>>>declare namespace internalOther.something { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalOther +4 > . +5 > something +6 > +1->Emitted(48, 1) Source(33, 15) + SourceIndex(2) +2 >Emitted(48, 19) Source(33, 25) + SourceIndex(2) +3 >Emitted(48, 32) Source(33, 38) + SourceIndex(2) +4 >Emitted(48, 33) Source(33, 39) + SourceIndex(2) +5 >Emitted(48, 42) Source(33, 48) + SourceIndex(2) +6 >Emitted(48, 43) Source(33, 49) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(49, 5) Source(33, 51) + SourceIndex(2) +2 >Emitted(49, 11) Source(33, 64) + SourceIndex(2) +3 >Emitted(49, 20) Source(33, 73) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(50, 6) Source(33, 76) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(51, 2) Source(33, 78) + SourceIndex(2) +--- +>>>import internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(52, 1) Source(34, 15) + SourceIndex(2) +2 >Emitted(52, 8) Source(34, 22) + SourceIndex(2) +3 >Emitted(52, 22) Source(34, 36) + SourceIndex(2) +4 >Emitted(52, 25) Source(34, 39) + SourceIndex(2) +5 >Emitted(52, 42) Source(34, 56) + SourceIndex(2) +6 >Emitted(52, 43) Source(34, 57) + SourceIndex(2) +7 >Emitted(52, 52) Source(34, 66) + SourceIndex(2) +8 >Emitted(52, 53) Source(34, 67) + SourceIndex(2) +--- +>>>declare type internalType = internalC; +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 >type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(53, 1) Source(35, 15) + SourceIndex(2) +2 >Emitted(53, 14) Source(35, 20) + SourceIndex(2) +3 >Emitted(53, 26) Source(35, 32) + SourceIndex(2) +4 >Emitted(53, 29) Source(35, 35) + SourceIndex(2) +5 >Emitted(53, 38) Source(35, 44) + SourceIndex(2) +6 >Emitted(53, 39) Source(35, 45) + SourceIndex(2) +--- +>>>declare const internalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 > +3 > const +4 > internalConst +5 > = 10 +6 > ; +1 >Emitted(54, 1) Source(36, 15) + SourceIndex(2) +2 >Emitted(54, 9) Source(36, 15) + SourceIndex(2) +3 >Emitted(54, 15) Source(36, 21) + SourceIndex(2) +4 >Emitted(54, 28) Source(36, 34) + SourceIndex(2) +5 >Emitted(54, 33) Source(36, 39) + SourceIndex(2) +6 >Emitted(54, 34) Source(36, 40) + SourceIndex(2) +--- +>>>declare enum internalEnum { +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +1 > + >/*@internal*/ +2 >enum +3 > internalEnum +1 >Emitted(55, 1) Source(37, 15) + SourceIndex(2) +2 >Emitted(55, 14) Source(37, 20) + SourceIndex(2) +3 >Emitted(55, 26) Source(37, 32) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(56, 5) Source(37, 35) + SourceIndex(2) +2 >Emitted(56, 6) Source(37, 36) + SourceIndex(2) +3 >Emitted(56, 10) Source(37, 36) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(57, 5) Source(37, 38) + SourceIndex(2) +2 >Emitted(57, 6) Source(37, 39) + SourceIndex(2) +3 >Emitted(57, 10) Source(37, 39) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(58, 5) Source(37, 41) + SourceIndex(2) +2 >Emitted(58, 6) Source(37, 42) + SourceIndex(2) +3 >Emitted(58, 10) Source(37, 42) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(59, 2) Source(37, 44) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(60, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(60, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(60, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] file changed its modified time +//// [/src/2/second-output.js.map] file changed its modified time +//// [/src/2/second-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":126,"kind":"text"}]},{"pos":126,"end":3179,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":233,"kind":"text"},{"pos":233,"end":338,"kind":"internal"},{"pos":340,"end":372,"kind":"text"},{"pos":372,"end":764,"kind":"internal"},{"pos":766,"end":769,"kind":"text"},{"pos":769,"end":1182,"kind":"internal"},{"pos":1184,"end":1232,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-126):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-126) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (126-3179) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-156):: ../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (156-233) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (233-338) + constructor(); + prop: string; + method(): void; + get c(): number; + set c(val: number); +---------------------------------------------------------------------- +text: (340-372) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (372-764) + 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: (766-769) +} + +---------------------------------------------------------------------- +internal: (769-1182) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1184-1232) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 126, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 126, + "kind": "text" + } + ] + }, + { + "pos": 126, + "end": 3179, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 233, + "kind": "text" + }, + { + "pos": 233, + "end": 338, + "kind": "internal" + }, + { + "pos": 340, + "end": 372, + "kind": "text" + }, + { + "pos": 372, + "end": 764, + "kind": "internal" + }, + { + "pos": 766, + "end": 769, + "kind": "text" + }, + { + "pos": 769, + "end": 1182, + "kind": "internal" + }, + { + "pos": 1184, + "end": 1232, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 731 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] file written with same contents +//// [/src/first/bin/first-output.js.map] file written with same contents +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-126) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 126, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 252 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +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(16, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3179,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3179,"kind":"text"}]},{"pos":3179,"end":3215,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":316,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":316,"kind":"text"}]},{"pos":316,"end":335,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3179):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3179) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3179-3215) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-316):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-316) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (316-335) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3179, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3179, + "kind": "text" + } + ] + }, + { + "pos": 3179, + "end": 3215, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 316, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 316, + "kind": "text" + } + ] + }, + { + "pos": 316, + "end": 335, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 464 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 0d35325bbaac7..eea9d3edb7dac 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -5871,3 +5871,6604 @@ declare var c: C; "size": 464 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:04:00 AM] Updating output of project '/src/second/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/2/second-output.d.ts] file changed its modified time +//// [/src/2/second-output.d.ts.map] file changed its modified time +//// [/src/2/second-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +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: false, + configurable: true + }); + return 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 || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (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 || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part2.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,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;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part2.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> /*@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) +2 >Emitted(16, 18) Source(14, 18) + SourceIndex(3) +3 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(17, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) +--- +>>> /*@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(18, 5) Source(16, 5) + SourceIndex(3) +2 >Emitted(18, 18) Source(16, 18) + SourceIndex(3) +3 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) +4 >Emitted(18, 43) Source(16, 25) + SourceIndex(3) +5 >Emitted(18, 46) Source(16, 19) + SourceIndex(3) +6 >Emitted(18, 60) Source(16, 30) + SourceIndex(3) +7 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(19, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) +--- +>>> /*@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(20, 9) Source(17, 5) + SourceIndex(3) +2 >Emitted(20, 22) Source(17, 18) + SourceIndex(3) +3 >Emitted(20, 28) Source(17, 19) + SourceIndex(3) +4 >Emitted(20, 42) Source(17, 29) + SourceIndex(3) +5 >Emitted(20, 49) Source(17, 36) + SourceIndex(3) +6 >Emitted(20, 51) Source(17, 38) + SourceIndex(3) +7 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) +8 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) +9 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) +--- +>>> /*@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(21, 9) Source(18, 5) + SourceIndex(3) +2 >Emitted(21, 22) Source(18, 18) + SourceIndex(3) +3 >Emitted(21, 28) Source(18, 19) + SourceIndex(3) +4 >Emitted(21, 38) Source(18, 25) + SourceIndex(3) +5 >Emitted(21, 41) Source(18, 36) + SourceIndex(3) +6 >Emitted(21, 45) Source(18, 40) + SourceIndex(3) +7 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: false, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >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(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) +2 >Emitted(29, 18) Source(21, 18) + SourceIndex(3) +3 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) +--- +>>> /*@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) +2 >Emitted(35, 18) Source(22, 18) + SourceIndex(3) +3 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) +4 >Emitted(35, 28) Source(22, 35) + SourceIndex(3) +5 >Emitted(35, 31) Source(22, 38) + SourceIndex(3) +6 >Emitted(35, 36) Source(22, 42) + SourceIndex(3) +7 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(36, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) +2 >Emitted(37, 18) Source(23, 18) + SourceIndex(3) +3 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 36) + SourceIndex(3) +5 >Emitted(37, 36) Source(23, 49) + SourceIndex(3) +6 >Emitted(37, 37) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(38, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(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(45, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) +--- +>>> /*@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(46, 5) Source(24, 5) + SourceIndex(3) +2 >Emitted(46, 18) Source(24, 18) + SourceIndex(3) +3 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) +4 >Emitted(46, 23) Source(24, 36) + SourceIndex(3) +5 >Emitted(46, 32) Source(24, 45) + SourceIndex(3) +6 >Emitted(46, 33) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(47, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(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(56, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(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(57, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) +--- +>>> /*@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(58, 5) Source(25, 5) + SourceIndex(3) +2 >Emitted(58, 18) Source(25, 18) + SourceIndex(3) +3 >Emitted(58, 19) Source(25, 33) + SourceIndex(3) +4 >Emitted(58, 37) Source(25, 43) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 46) + SourceIndex(3) +6 >Emitted(58, 53) Source(25, 59) + SourceIndex(3) +7 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) +8 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) +9 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) +--- +>>> /*@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(59, 5) Source(27, 5) + SourceIndex(3) +2 >Emitted(59, 18) Source(27, 18) + SourceIndex(3) +3 >Emitted(59, 19) Source(27, 32) + SourceIndex(3) +4 >Emitted(59, 40) Source(27, 45) + SourceIndex(3) +5 >Emitted(59, 43) Source(27, 48) + SourceIndex(3) +6 >Emitted(59, 45) Source(27, 50) + SourceIndex(3) +7 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) +2 >Emitted(60, 18) Source(28, 18) + SourceIndex(3) +3 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) +4 >Emitted(60, 23) Source(28, 31) + SourceIndex(3) +5 >Emitted(60, 35) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(61, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(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(65, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@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(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>/*@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 >/*@internal*/ +3 > +1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) +2 >Emitted(67, 14) Source(30, 14) + SourceIndex(3) +3 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) +--- +>>>/*@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/*@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) +2 >Emitted(72, 14) Source(31, 14) + SourceIndex(3) +3 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) +4 >Emitted(72, 24) Source(31, 24) + SourceIndex(3) +5 >Emitted(72, 35) Source(31, 35) + SourceIndex(3) +6 >Emitted(72, 40) Source(31, 39) + SourceIndex(3) +7 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) +--- +>>>/*@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) +2 >Emitted(73, 14) Source(32, 14) + SourceIndex(3) +3 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) +4 >Emitted(73, 19) Source(32, 25) + SourceIndex(3) +5 >Emitted(73, 36) Source(32, 42) + SourceIndex(3) +6 >Emitted(73, 37) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(74, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) +--- +>>>/*@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) +2 >Emitted(82, 14) Source(33, 14) + SourceIndex(3) +3 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 25) + SourceIndex(3) +5 >Emitted(82, 32) Source(33, 38) + SourceIndex(3) +6 >Emitted(82, 33) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(83, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(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(92, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) +--- +>>>/*@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/*@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) +2 >Emitted(94, 14) Source(34, 14) + SourceIndex(3) +3 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) +4 >Emitted(94, 19) Source(34, 22) + SourceIndex(3) +5 >Emitted(94, 33) Source(34, 36) + SourceIndex(3) +6 >Emitted(94, 36) Source(34, 39) + SourceIndex(3) +7 >Emitted(94, 53) Source(34, 56) + SourceIndex(3) +8 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) +9 >Emitted(94, 63) Source(34, 66) + SourceIndex(3) +10>Emitted(94, 64) Source(34, 67) + SourceIndex(3) +--- +>>>/*@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ type internalType = internalC; + > +2 >/*@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) +2 >Emitted(95, 14) Source(36, 14) + SourceIndex(3) +3 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) +4 >Emitted(95, 19) Source(36, 21) + SourceIndex(3) +5 >Emitted(95, 32) Source(36, 34) + SourceIndex(3) +6 >Emitted(95, 35) Source(36, 37) + SourceIndex(3) +7 >Emitted(95, 37) Source(36, 39) + SourceIndex(3) +8 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) +--- +>>>/*@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/*@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) +2 >Emitted(96, 14) Source(37, 14) + SourceIndex(3) +3 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) +4 >Emitted(96, 19) Source(37, 20) + SourceIndex(3) +5 >Emitted(96, 31) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(97, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3544,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1183,"kind":"internal"},{"pos":1185,"end":1233,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (127-3544) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +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: false, + configurable: true + }); + return 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 || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (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 || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +>>-------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (157-234) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (234-339) + constructor(); + prop: string; + method(): void; + get c(): number; + set c(val: number); +---------------------------------------------------------------------- +text: (341-373) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (373-765) + 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: (767-770) +} + +---------------------------------------------------------------------- +internal: (770-1183) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1185-1233) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 3544, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 234, + "kind": "text" + }, + { + "pos": 234, + "end": 339, + "kind": "internal" + }, + { + "pos": 341, + "end": 373, + "kind": "text" + }, + { + "pos": 373, + "end": 765, + "kind": "internal" + }, + { + "pos": 767, + "end": 770, + "kind": "text" + }, + { + "pos": 770, + "end": 1183, + "kind": "internal" + }, + { + "pos": 1185, + "end": 1233, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 769 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 290 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +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: false, + configurable: true + }); + return 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 || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (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 || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,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;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> /*@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) +2 >Emitted(16, 18) Source(14, 18) + SourceIndex(3) +3 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(17, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) +--- +>>> /*@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(18, 5) Source(16, 5) + SourceIndex(3) +2 >Emitted(18, 18) Source(16, 18) + SourceIndex(3) +3 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) +4 >Emitted(18, 43) Source(16, 25) + SourceIndex(3) +5 >Emitted(18, 46) Source(16, 19) + SourceIndex(3) +6 >Emitted(18, 60) Source(16, 30) + SourceIndex(3) +7 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(19, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) +--- +>>> /*@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(20, 9) Source(17, 5) + SourceIndex(3) +2 >Emitted(20, 22) Source(17, 18) + SourceIndex(3) +3 >Emitted(20, 28) Source(17, 19) + SourceIndex(3) +4 >Emitted(20, 42) Source(17, 29) + SourceIndex(3) +5 >Emitted(20, 49) Source(17, 36) + SourceIndex(3) +6 >Emitted(20, 51) Source(17, 38) + SourceIndex(3) +7 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) +8 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) +9 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) +--- +>>> /*@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(21, 9) Source(18, 5) + SourceIndex(3) +2 >Emitted(21, 22) Source(18, 18) + SourceIndex(3) +3 >Emitted(21, 28) Source(18, 19) + SourceIndex(3) +4 >Emitted(21, 38) Source(18, 25) + SourceIndex(3) +5 >Emitted(21, 41) Source(18, 36) + SourceIndex(3) +6 >Emitted(21, 45) Source(18, 40) + SourceIndex(3) +7 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: false, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >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(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) +2 >Emitted(29, 18) Source(21, 18) + SourceIndex(3) +3 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) +--- +>>> /*@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) +2 >Emitted(35, 18) Source(22, 18) + SourceIndex(3) +3 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) +4 >Emitted(35, 28) Source(22, 35) + SourceIndex(3) +5 >Emitted(35, 31) Source(22, 38) + SourceIndex(3) +6 >Emitted(35, 36) Source(22, 42) + SourceIndex(3) +7 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(36, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) +2 >Emitted(37, 18) Source(23, 18) + SourceIndex(3) +3 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 36) + SourceIndex(3) +5 >Emitted(37, 36) Source(23, 49) + SourceIndex(3) +6 >Emitted(37, 37) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(38, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(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(45, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) +--- +>>> /*@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(46, 5) Source(24, 5) + SourceIndex(3) +2 >Emitted(46, 18) Source(24, 18) + SourceIndex(3) +3 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) +4 >Emitted(46, 23) Source(24, 36) + SourceIndex(3) +5 >Emitted(46, 32) Source(24, 45) + SourceIndex(3) +6 >Emitted(46, 33) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(47, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(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(56, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(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(57, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) +--- +>>> /*@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(58, 5) Source(25, 5) + SourceIndex(3) +2 >Emitted(58, 18) Source(25, 18) + SourceIndex(3) +3 >Emitted(58, 19) Source(25, 33) + SourceIndex(3) +4 >Emitted(58, 37) Source(25, 43) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 46) + SourceIndex(3) +6 >Emitted(58, 53) Source(25, 59) + SourceIndex(3) +7 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) +8 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) +9 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) +--- +>>> /*@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(59, 5) Source(27, 5) + SourceIndex(3) +2 >Emitted(59, 18) Source(27, 18) + SourceIndex(3) +3 >Emitted(59, 19) Source(27, 32) + SourceIndex(3) +4 >Emitted(59, 40) Source(27, 45) + SourceIndex(3) +5 >Emitted(59, 43) Source(27, 48) + SourceIndex(3) +6 >Emitted(59, 45) Source(27, 50) + SourceIndex(3) +7 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) +2 >Emitted(60, 18) Source(28, 18) + SourceIndex(3) +3 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) +4 >Emitted(60, 23) Source(28, 31) + SourceIndex(3) +5 >Emitted(60, 35) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(61, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(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(65, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@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(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>/*@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 >/*@internal*/ +3 > +1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) +2 >Emitted(67, 14) Source(30, 14) + SourceIndex(3) +3 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) +--- +>>>/*@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/*@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) +2 >Emitted(72, 14) Source(31, 14) + SourceIndex(3) +3 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) +4 >Emitted(72, 24) Source(31, 24) + SourceIndex(3) +5 >Emitted(72, 35) Source(31, 35) + SourceIndex(3) +6 >Emitted(72, 40) Source(31, 39) + SourceIndex(3) +7 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) +--- +>>>/*@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) +2 >Emitted(73, 14) Source(32, 14) + SourceIndex(3) +3 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) +4 >Emitted(73, 19) Source(32, 25) + SourceIndex(3) +5 >Emitted(73, 36) Source(32, 42) + SourceIndex(3) +6 >Emitted(73, 37) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(74, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) +--- +>>>/*@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) +2 >Emitted(82, 14) Source(33, 14) + SourceIndex(3) +3 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 25) + SourceIndex(3) +5 >Emitted(82, 32) Source(33, 38) + SourceIndex(3) +6 >Emitted(82, 33) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(83, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(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(92, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) +--- +>>>/*@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/*@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) +2 >Emitted(94, 14) Source(34, 14) + SourceIndex(3) +3 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) +4 >Emitted(94, 19) Source(34, 22) + SourceIndex(3) +5 >Emitted(94, 33) Source(34, 36) + SourceIndex(3) +6 >Emitted(94, 36) Source(34, 39) + SourceIndex(3) +7 >Emitted(94, 53) Source(34, 56) + SourceIndex(3) +8 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) +9 >Emitted(94, 63) Source(34, 66) + SourceIndex(3) +10>Emitted(94, 64) Source(34, 67) + SourceIndex(3) +--- +>>>/*@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ type internalType = internalC; + > +2 >/*@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) +2 >Emitted(95, 14) Source(36, 14) + SourceIndex(3) +3 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) +4 >Emitted(95, 19) Source(36, 21) + SourceIndex(3) +5 >Emitted(95, 32) Source(36, 34) + SourceIndex(3) +6 >Emitted(95, 35) Source(36, 37) + SourceIndex(3) +7 >Emitted(95, 37) Source(36, 39) + SourceIndex(3) +8 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) +--- +>>>/*@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/*@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) +2 >Emitted(96, 14) Source(37, 14) + SourceIndex(3) +3 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) +4 >Emitted(96, 19) Source(37, 20) + SourceIndex(3) +5 >Emitted(96, 31) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(97, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3544,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3544,"kind":"text"}]},{"pos":3544,"end":3580,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3544):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3544) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +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: false, + configurable: true + }); + return 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 || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (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 || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3544-3580) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-276) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3544, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3544, + "kind": "text" + } + ] + }, + { + "pos": 3544, + "end": 3580, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 464 +} + + + +Change:: incremental-headers-change-without-dts-changes +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:07:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:07:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:07:00 AM] Building project '/src/first/tsconfig.json'... + +[12:07:00 AM] Project 'src/second/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:07:00 AM] Updating output of project '/src/second/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/second/tsconfig.json'... + +[12:07:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/second' has changed + +[12:07:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/2/second-output.d.ts] file changed its modified time +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../first/first_PART1.ts","../first/first_part3.ts","../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACN,IAAI,CAAC,IACM,MAAM,CADK;IACtB,IAAI,CAAC,CAAC,KAAK,MAAM,EAAK;CACvC;AACD,kBAAU,OAAO,CAAC;IACA,MAAa,CAAC;KAAI;IAClB,SAAgB,GAAG,SAAK;IACxB,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACpD,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IAClE,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC3C,KAAY,YAAY,GAAG,SAAS,CAAC;IAC9B,MAAM,aAAa,KAAK,CAAC;IAChC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACrD;AACa,cAAM,SAAS;CAAG;AAClB,iBAAS,WAAW,SAAK;AACzB,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACzD,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC/D,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACpD,aAAK,YAAY,GAAG,SAAS,CAAC;AAC9B,QAAA,MAAM,aAAa,KAAK,CAAC;AACzB,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC3C,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../first/first_PART1.ts,../first/first_part3.ts,../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>> constructor(); +>>> prop: string; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^^^^ +5 > ^ +6 > ^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ +2 > prop +3 > : +4 > string +5 > ; +1 >Emitted(15, 5) Source(15, 19) + SourceIndex(2) +2 >Emitted(15, 9) Source(15, 23) + SourceIndex(2) +3 >Emitted(15, 11) Source(15, 25) + SourceIndex(2) +4 >Emitted(15, 17) Source(15, 31) + SourceIndex(2) +5 >Emitted(15, 18) Source(15, 32) + SourceIndex(2) +--- +>>> method(): void; +1->^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > method +1->Emitted(16, 5) Source(16, 19) + SourceIndex(2) +2 >Emitted(16, 11) Source(16, 25) + SourceIndex(2) +--- +>>> get c(): number; +1->^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^ +7 > ^^^^-> +1->() { } + > /*@internal*/ +2 > get +3 > c +4 > () { return 10; } + > /*@internal*/ set c(val: +5 > number +6 > +1->Emitted(17, 5) Source(17, 19) + SourceIndex(2) +2 >Emitted(17, 9) Source(17, 23) + SourceIndex(2) +3 >Emitted(17, 10) Source(17, 24) + SourceIndex(2) +4 >Emitted(17, 14) Source(18, 30) + SourceIndex(2) +5 >Emitted(17, 20) Source(18, 36) + SourceIndex(2) +6 >Emitted(17, 21) Source(17, 41) + SourceIndex(2) +--- +>>> set c(val: number); +1->^^^^ +2 > ^^^^ +3 > ^ +4 > ^ +5 > ^^^^^ +6 > ^^^^^^ +7 > ^^ +1-> + > /*@internal*/ +2 > set +3 > c +4 > ( +5 > val: +6 > number +7 > ) { } +1->Emitted(18, 5) Source(18, 19) + SourceIndex(2) +2 >Emitted(18, 9) Source(18, 23) + SourceIndex(2) +3 >Emitted(18, 10) Source(18, 24) + SourceIndex(2) +4 >Emitted(18, 11) Source(18, 25) + SourceIndex(2) +5 >Emitted(18, 16) Source(18, 30) + SourceIndex(2) +6 >Emitted(18, 22) Source(18, 36) + SourceIndex(2) +7 >Emitted(18, 24) Source(18, 41) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(20, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(20, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(20, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(20, 27) Source(20, 19) + SourceIndex(2) +--- +>>> class C { +1 >^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ + > /*@internal*/ +2 > export class +3 > C +1 >Emitted(21, 5) Source(21, 19) + SourceIndex(2) +2 >Emitted(21, 11) Source(21, 32) + SourceIndex(2) +3 >Emitted(21, 12) Source(21, 33) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > { } +1 >Emitted(22, 6) Source(21, 37) + SourceIndex(2) +--- +>>> function foo(): void; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^ +5 > ^^^^^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () {} +1->Emitted(23, 5) Source(22, 19) + SourceIndex(2) +2 >Emitted(23, 14) Source(22, 35) + SourceIndex(2) +3 >Emitted(23, 17) Source(22, 38) + SourceIndex(2) +4 >Emitted(23, 26) Source(22, 43) + SourceIndex(2) +--- +>>> namespace someNamespace { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > +1->Emitted(24, 5) Source(23, 19) + SourceIndex(2) +2 >Emitted(24, 15) Source(23, 36) + SourceIndex(2) +3 >Emitted(24, 28) Source(23, 49) + SourceIndex(2) +4 >Emitted(24, 29) Source(23, 50) + SourceIndex(2) +--- +>>> class C { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^ +1 >{ +2 > export class +3 > C +1 >Emitted(25, 9) Source(23, 52) + SourceIndex(2) +2 >Emitted(25, 15) Source(23, 65) + SourceIndex(2) +3 >Emitted(25, 16) Source(23, 66) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(26, 10) Source(23, 69) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(27, 6) Source(23, 71) + SourceIndex(2) +--- +>>> namespace someOther.something { +1->^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + > /*@internal*/ +2 > export namespace +3 > someOther +4 > . +5 > something +6 > +1->Emitted(28, 5) Source(24, 19) + SourceIndex(2) +2 >Emitted(28, 15) Source(24, 36) + SourceIndex(2) +3 >Emitted(28, 24) Source(24, 45) + SourceIndex(2) +4 >Emitted(28, 25) Source(24, 46) + SourceIndex(2) +5 >Emitted(28, 34) Source(24, 55) + SourceIndex(2) +6 >Emitted(28, 35) Source(24, 56) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(29, 9) Source(24, 58) + SourceIndex(2) +2 >Emitted(29, 15) Source(24, 71) + SourceIndex(2) +3 >Emitted(29, 24) Source(24, 80) + SourceIndex(2) +--- +>>> } +1 >^^^^^^^^^ +1 > {} +1 >Emitted(30, 10) Source(24, 83) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(31, 6) Source(24, 85) + SourceIndex(2) +--- +>>> 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(32, 5) Source(25, 19) + SourceIndex(2) +2 >Emitted(32, 11) Source(25, 25) + SourceIndex(2) +3 >Emitted(32, 19) Source(25, 33) + SourceIndex(2) +4 >Emitted(32, 29) Source(25, 43) + SourceIndex(2) +5 >Emitted(32, 32) Source(25, 46) + SourceIndex(2) +6 >Emitted(32, 45) Source(25, 59) + SourceIndex(2) +7 >Emitted(32, 46) Source(25, 60) + SourceIndex(2) +8 >Emitted(32, 47) Source(25, 61) + SourceIndex(2) +9 >Emitted(32, 48) Source(25, 62) + SourceIndex(2) +--- +>>> type internalType = internalC; +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + > /*@internal*/ +2 > export type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(33, 5) Source(26, 19) + SourceIndex(2) +2 >Emitted(33, 10) Source(26, 31) + SourceIndex(2) +3 >Emitted(33, 22) Source(26, 43) + SourceIndex(2) +4 >Emitted(33, 25) Source(26, 46) + SourceIndex(2) +5 >Emitted(33, 34) Source(26, 55) + SourceIndex(2) +6 >Emitted(33, 35) Source(26, 56) + SourceIndex(2) +--- +>>> const internalConst = 10; +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1 > + > /*@internal*/ export +2 > const +3 > internalConst +4 > = 10 +5 > ; +1 >Emitted(34, 5) Source(27, 26) + SourceIndex(2) +2 >Emitted(34, 11) Source(27, 32) + SourceIndex(2) +3 >Emitted(34, 24) Source(27, 45) + SourceIndex(2) +4 >Emitted(34, 29) Source(27, 50) + SourceIndex(2) +5 >Emitted(34, 30) Source(27, 51) + SourceIndex(2) +--- +>>> enum internalEnum { +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^^^^^^^^ +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum +1 >Emitted(35, 5) Source(28, 19) + SourceIndex(2) +2 >Emitted(35, 10) Source(28, 31) + SourceIndex(2) +3 >Emitted(35, 22) Source(28, 43) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(36, 9) Source(28, 46) + SourceIndex(2) +2 >Emitted(36, 10) Source(28, 47) + SourceIndex(2) +3 >Emitted(36, 14) Source(28, 47) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(37, 9) Source(28, 49) + SourceIndex(2) +2 >Emitted(37, 10) Source(28, 50) + SourceIndex(2) +3 >Emitted(37, 14) Source(28, 50) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(38, 9) Source(28, 52) + SourceIndex(2) +2 >Emitted(38, 10) Source(28, 53) + SourceIndex(2) +3 >Emitted(38, 14) Source(28, 53) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > } +1 >Emitted(39, 6) Source(28, 55) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(40, 2) Source(29, 2) + SourceIndex(2) +--- +>>>declare class internalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> + >/*@internal*/ +2 >class +3 > internalC +1->Emitted(41, 1) Source(30, 15) + SourceIndex(2) +2 >Emitted(41, 15) Source(30, 21) + SourceIndex(2) +3 >Emitted(41, 24) Source(30, 30) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > {} +1 >Emitted(42, 2) Source(30, 33) + SourceIndex(2) +--- +>>>declare function internalfoo(): void; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^^^^^ +5 > ^-> +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () {} +1->Emitted(43, 1) Source(31, 15) + SourceIndex(2) +2 >Emitted(43, 18) Source(31, 24) + SourceIndex(2) +3 >Emitted(43, 29) Source(31, 35) + SourceIndex(2) +4 >Emitted(43, 38) Source(31, 40) + SourceIndex(2) +--- +>>>declare namespace internalNamespace { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > +1->Emitted(44, 1) Source(32, 15) + SourceIndex(2) +2 >Emitted(44, 19) Source(32, 25) + SourceIndex(2) +3 >Emitted(44, 36) Source(32, 42) + SourceIndex(2) +4 >Emitted(44, 37) Source(32, 43) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(45, 5) Source(32, 45) + SourceIndex(2) +2 >Emitted(45, 11) Source(32, 58) + SourceIndex(2) +3 >Emitted(45, 20) Source(32, 67) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(46, 6) Source(32, 70) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(47, 2) Source(32, 72) + SourceIndex(2) +--- +>>>declare namespace internalOther.something { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^ +6 > ^ +1-> + >/*@internal*/ +2 >namespace +3 > internalOther +4 > . +5 > something +6 > +1->Emitted(48, 1) Source(33, 15) + SourceIndex(2) +2 >Emitted(48, 19) Source(33, 25) + SourceIndex(2) +3 >Emitted(48, 32) Source(33, 38) + SourceIndex(2) +4 >Emitted(48, 33) Source(33, 39) + SourceIndex(2) +5 >Emitted(48, 42) Source(33, 48) + SourceIndex(2) +6 >Emitted(48, 43) Source(33, 49) + SourceIndex(2) +--- +>>> class someClass { +1 >^^^^ +2 > ^^^^^^ +3 > ^^^^^^^^^ +1 >{ +2 > export class +3 > someClass +1 >Emitted(49, 5) Source(33, 51) + SourceIndex(2) +2 >Emitted(49, 11) Source(33, 64) + SourceIndex(2) +3 >Emitted(49, 20) Source(33, 73) + SourceIndex(2) +--- +>>> } +1 >^^^^^ +1 > {} +1 >Emitted(50, 6) Source(33, 76) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(51, 2) Source(33, 78) + SourceIndex(2) +--- +>>>import internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(52, 1) Source(34, 15) + SourceIndex(2) +2 >Emitted(52, 8) Source(34, 22) + SourceIndex(2) +3 >Emitted(52, 22) Source(34, 36) + SourceIndex(2) +4 >Emitted(52, 25) Source(34, 39) + SourceIndex(2) +5 >Emitted(52, 42) Source(34, 56) + SourceIndex(2) +6 >Emitted(52, 43) Source(34, 57) + SourceIndex(2) +7 >Emitted(52, 52) Source(34, 66) + SourceIndex(2) +8 >Emitted(52, 53) Source(34, 67) + SourceIndex(2) +--- +>>>declare type internalType = internalC; +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 >type +3 > internalType +4 > = +5 > internalC +6 > ; +1 >Emitted(53, 1) Source(35, 15) + SourceIndex(2) +2 >Emitted(53, 14) Source(35, 20) + SourceIndex(2) +3 >Emitted(53, 26) Source(35, 32) + SourceIndex(2) +4 >Emitted(53, 29) Source(35, 35) + SourceIndex(2) +5 >Emitted(53, 38) Source(35, 44) + SourceIndex(2) +6 >Emitted(53, 39) Source(35, 45) + SourceIndex(2) +--- +>>>declare const internalConst = 10; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^ +1 > + >/*@internal*/ +2 > +3 > const +4 > internalConst +5 > = 10 +6 > ; +1 >Emitted(54, 1) Source(36, 15) + SourceIndex(2) +2 >Emitted(54, 9) Source(36, 15) + SourceIndex(2) +3 >Emitted(54, 15) Source(36, 21) + SourceIndex(2) +4 >Emitted(54, 28) Source(36, 34) + SourceIndex(2) +5 >Emitted(54, 33) Source(36, 39) + SourceIndex(2) +6 >Emitted(54, 34) Source(36, 40) + SourceIndex(2) +--- +>>>declare enum internalEnum { +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +1 > + >/*@internal*/ +2 >enum +3 > internalEnum +1 >Emitted(55, 1) Source(37, 15) + SourceIndex(2) +2 >Emitted(55, 14) Source(37, 20) + SourceIndex(2) +3 >Emitted(55, 26) Source(37, 32) + SourceIndex(2) +--- +>>> a = 0, +1 >^^^^ +2 > ^ +3 > ^^^^ +4 > ^^-> +1 > { +2 > a +3 > +1 >Emitted(56, 5) Source(37, 35) + SourceIndex(2) +2 >Emitted(56, 6) Source(37, 36) + SourceIndex(2) +3 >Emitted(56, 10) Source(37, 36) + SourceIndex(2) +--- +>>> b = 1, +1->^^^^ +2 > ^ +3 > ^^^^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(57, 5) Source(37, 38) + SourceIndex(2) +2 >Emitted(57, 6) Source(37, 39) + SourceIndex(2) +3 >Emitted(57, 10) Source(37, 39) + SourceIndex(2) +--- +>>> c = 2 +1->^^^^ +2 > ^ +3 > ^^^^ +1->, +2 > c +3 > +1->Emitted(58, 5) Source(37, 41) + SourceIndex(2) +2 >Emitted(58, 6) Source(37, 42) + SourceIndex(2) +3 >Emitted(58, 10) Source(37, 42) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 > } +1 >Emitted(59, 2) Source(37, 44) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(60, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(60, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(60, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] file changed its modified time +//// [/src/2/second-output.js.map] file changed its modified time +//// [/src/2/second-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../second","sourceFiles":["../second/second_part1.ts","../second/second_part2.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3544,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":234,"kind":"text"},{"pos":234,"end":339,"kind":"internal"},{"pos":341,"end":373,"kind":"text"},{"pos":373,"end":765,"kind":"internal"},{"pos":767,"end":770,"kind":"text"},{"pos":770,"end":1183,"kind":"internal"},{"pos":1185,"end":1233,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/2/second-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +text: (127-3544) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +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: false, + configurable: true + }); + return 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 || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (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 || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +text: (157-234) +declare namespace N { +} +declare namespace N { +} +declare class normalC { + +---------------------------------------------------------------------- +internal: (234-339) + constructor(); + prop: string; + method(): void; + get c(): number; + set c(val: number); +---------------------------------------------------------------------- +text: (341-373) +} +declare namespace normalN { + +---------------------------------------------------------------------- +internal: (373-765) + 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: (767-770) +} + +---------------------------------------------------------------------- +internal: (770-1183) +declare class internalC { +} +declare function internalfoo(): void; +declare namespace internalNamespace { + class someClass { + } +} +declare namespace internalOther.something { + class someClass { + } +} +import internalImport = internalNamespace.someClass; +declare type internalType = internalC; +declare const internalConst = 10; +declare enum internalEnum { + a = 0, + b = 1, + c = 2 +} +---------------------------------------------------------------------- +text: (1185-1233) +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/2/second-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../second", + "sourceFiles": [ + "../second/second_part1.ts", + "../second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 3544, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 234, + "kind": "text" + }, + { + "pos": 234, + "end": 339, + "kind": "internal" + }, + { + "pos": 341, + "end": 373, + "kind": "text" + }, + { + "pos": 373, + "end": 765, + "kind": "internal" + }, + { + "pos": 767, + "end": 770, + "kind": "text" + }, + { + "pos": 770, + "end": 1183, + "kind": "internal" + }, + { + "pos": 1185, + "end": 1233, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 731 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] file written with same contents +//// [/src/first/bin/first-output.js.map] file written with same contents +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 252 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +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(16, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":3544,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":0,"end":3544,"kind":"text"}]},{"pos":3544,"end":3580,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":317,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":0,"end":317,"kind":"text"}]},{"pos":317,"end":336,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-3544):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-3544) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +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: false, + configurable: true + }); + return 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 || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (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 || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3544-3580) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-317):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-317) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (317-336) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 3544, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 0, + "end": 3544, + "kind": "text" + } + ] + }, + { + "pos": 3544, + "end": 3580, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 317, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 317, + "kind": "text" + } + ] + }, + { + "pos": 317, + "end": 336, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 464 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled.js index 2765ba6660bb0..2a870290c8c60 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled.js @@ -5580,3 +5580,3421 @@ declare var c: C; "size": 724 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-157) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 290 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +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: false, + configurable: true + }); + return 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 || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (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 || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACI,aAAa,CAAC;IAAgB,CAAC;IAE/B,aAAa,CAAC,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;QAAnB,aAAa,MAAC,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;QACpC,aAAa,MAAC,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACb,aAAa,CAAC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAChC,aAAa,CAAC,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACtC,aAAa,CAAC,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IAClE,aAAa,CAAC,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IAChF,aAAa,CAAe,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAEzD,aAAa,CAAc,qBAAa,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;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACD,aAAa,CAAC;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAChC,aAAa,CAAC,SAAS,WAAW,KAAI,CAAC;AACvC,aAAa,CAAC,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACvE,aAAa,CAAC,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC7E,aAAa,CAAC,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAElE,aAAa,CAAC,IAAM,aAAa,GAAG,EAAE,CAAC;AACvC,aAAa,CAAC,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> /*@internal*/ function normalC() { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +1->class normalC { + > +2 > /*@internal*/ +3 > +1->Emitted(16, 5) Source(14, 5) + SourceIndex(3) +2 >Emitted(16, 18) Source(14, 18) + SourceIndex(3) +3 >Emitted(16, 19) Source(14, 19) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >constructor() { +2 > } +1 >Emitted(17, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) +--- +>>> /*@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(18, 5) Source(16, 5) + SourceIndex(3) +2 >Emitted(18, 18) Source(16, 18) + SourceIndex(3) +3 >Emitted(18, 19) Source(16, 19) + SourceIndex(3) +4 >Emitted(18, 43) Source(16, 25) + SourceIndex(3) +5 >Emitted(18, 46) Source(16, 19) + SourceIndex(3) +6 >Emitted(18, 60) Source(16, 30) + SourceIndex(3) +7 >Emitted(18, 61) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1 > + > /*@internal*/ +2 > get +3 > c +1 >Emitted(19, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) +--- +>>> /*@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(20, 9) Source(17, 5) + SourceIndex(3) +2 >Emitted(20, 22) Source(17, 18) + SourceIndex(3) +3 >Emitted(20, 28) Source(17, 19) + SourceIndex(3) +4 >Emitted(20, 42) Source(17, 29) + SourceIndex(3) +5 >Emitted(20, 49) Source(17, 36) + SourceIndex(3) +6 >Emitted(20, 51) Source(17, 38) + SourceIndex(3) +7 >Emitted(20, 52) Source(17, 39) + SourceIndex(3) +8 >Emitted(20, 53) Source(17, 40) + SourceIndex(3) +9 >Emitted(20, 54) Source(17, 41) + SourceIndex(3) +--- +>>> /*@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(21, 9) Source(18, 5) + SourceIndex(3) +2 >Emitted(21, 22) Source(18, 18) + SourceIndex(3) +3 >Emitted(21, 28) Source(18, 19) + SourceIndex(3) +4 >Emitted(21, 38) Source(18, 25) + SourceIndex(3) +5 >Emitted(21, 41) Source(18, 36) + SourceIndex(3) +6 >Emitted(21, 45) Source(18, 40) + SourceIndex(3) +7 >Emitted(21, 46) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: false, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >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(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> /*@internal*/ var C = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^-> +1-> { + > +2 > /*@internal*/ +3 > +1->Emitted(29, 5) Source(21, 5) + SourceIndex(3) +2 >Emitted(29, 18) Source(21, 18) + SourceIndex(3) +3 >Emitted(29, 19) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) +--- +>>> /*@internal*/ function foo() { } +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export function +5 > foo +6 > () { +7 > } +1->Emitted(35, 5) Source(22, 5) + SourceIndex(3) +2 >Emitted(35, 18) Source(22, 18) + SourceIndex(3) +3 >Emitted(35, 19) Source(22, 19) + SourceIndex(3) +4 >Emitted(35, 28) Source(22, 35) + SourceIndex(3) +5 >Emitted(35, 31) Source(22, 38) + SourceIndex(3) +6 >Emitted(35, 36) Source(22, 42) + SourceIndex(3) +7 >Emitted(35, 37) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^-> +1 > +2 > foo +3 > () {} +4 > +1 >Emitted(36, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) +--- +>>> /*@internal*/ var someNamespace; +1->^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1-> + > +2 > /*@internal*/ +3 > +4 > export namespace +5 > someNamespace +6 > { export class C {} } +1->Emitted(37, 5) Source(23, 5) + SourceIndex(3) +2 >Emitted(37, 18) Source(23, 18) + SourceIndex(3) +3 >Emitted(37, 19) Source(23, 19) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 36) + SourceIndex(3) +5 >Emitted(37, 36) Source(23, 49) + SourceIndex(3) +6 >Emitted(37, 37) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^-> +1 > +2 > export namespace +3 > someNamespace +1 >Emitted(38, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(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(45, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) +--- +>>> /*@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(46, 5) Source(24, 5) + SourceIndex(3) +2 >Emitted(46, 18) Source(24, 18) + SourceIndex(3) +3 >Emitted(46, 19) Source(24, 19) + SourceIndex(3) +4 >Emitted(46, 23) Source(24, 36) + SourceIndex(3) +5 >Emitted(46, 32) Source(24, 45) + SourceIndex(3) +6 >Emitted(46, 33) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1 > +2 > export namespace +3 > someOther +1 >Emitted(47, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(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(56, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(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(57, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) +--- +>>> /*@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(58, 5) Source(25, 5) + SourceIndex(3) +2 >Emitted(58, 18) Source(25, 18) + SourceIndex(3) +3 >Emitted(58, 19) Source(25, 33) + SourceIndex(3) +4 >Emitted(58, 37) Source(25, 43) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 46) + SourceIndex(3) +6 >Emitted(58, 53) Source(25, 59) + SourceIndex(3) +7 >Emitted(58, 54) Source(25, 60) + SourceIndex(3) +8 >Emitted(58, 55) Source(25, 61) + SourceIndex(3) +9 >Emitted(58, 56) Source(25, 62) + SourceIndex(3) +--- +>>> /*@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(59, 5) Source(27, 5) + SourceIndex(3) +2 >Emitted(59, 18) Source(27, 18) + SourceIndex(3) +3 >Emitted(59, 19) Source(27, 32) + SourceIndex(3) +4 >Emitted(59, 40) Source(27, 45) + SourceIndex(3) +5 >Emitted(59, 43) Source(27, 48) + SourceIndex(3) +6 >Emitted(59, 45) Source(27, 50) + SourceIndex(3) +7 >Emitted(59, 46) Source(27, 51) + SourceIndex(3) +--- +>>> /*@internal*/ var internalEnum; +1 >^^^^ +2 > ^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 > /*@internal*/ +3 > +4 > export enum +5 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 5) + SourceIndex(3) +2 >Emitted(60, 18) Source(28, 18) + SourceIndex(3) +3 >Emitted(60, 19) Source(28, 19) + SourceIndex(3) +4 >Emitted(60, 23) Source(28, 31) + SourceIndex(3) +5 >Emitted(60, 35) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > export enum +3 > internalEnum +1 >Emitted(61, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(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(65, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@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(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>/*@internal*/ var internalC = /** @class */ (function () { +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^-> +1-> + > +2 >/*@internal*/ +3 > +1->Emitted(67, 1) Source(30, 1) + SourceIndex(3) +2 >Emitted(67, 14) Source(30, 14) + SourceIndex(3) +3 >Emitted(67, 15) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) +--- +>>>/*@internal*/ function internalfoo() { } +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^ +5 > ^^^^^^^^^^^ +6 > ^^^^^ +7 > ^ +1-> + > +2 >/*@internal*/ +3 > +4 > function +5 > internalfoo +6 > () { +7 > } +1->Emitted(72, 1) Source(31, 1) + SourceIndex(3) +2 >Emitted(72, 14) Source(31, 14) + SourceIndex(3) +3 >Emitted(72, 15) Source(31, 15) + SourceIndex(3) +4 >Emitted(72, 24) Source(31, 24) + SourceIndex(3) +5 >Emitted(72, 35) Source(31, 35) + SourceIndex(3) +6 >Emitted(72, 40) Source(31, 39) + SourceIndex(3) +7 >Emitted(72, 41) Source(31, 40) + SourceIndex(3) +--- +>>>/*@internal*/ var internalNamespace; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalNamespace +6 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 1) + SourceIndex(3) +2 >Emitted(73, 14) Source(32, 14) + SourceIndex(3) +3 >Emitted(73, 15) Source(32, 15) + SourceIndex(3) +4 >Emitted(73, 19) Source(32, 25) + SourceIndex(3) +5 >Emitted(73, 36) Source(32, 42) + SourceIndex(3) +6 >Emitted(73, 37) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >namespace +3 > internalNamespace +1 >Emitted(74, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) +--- +>>>/*@internal*/ var internalOther; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 > + > +2 >/*@internal*/ +3 > +4 > namespace +5 > internalOther +6 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 1) + SourceIndex(3) +2 >Emitted(82, 14) Source(33, 14) + SourceIndex(3) +3 >Emitted(82, 15) Source(33, 15) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 25) + SourceIndex(3) +5 >Emitted(82, 32) Source(33, 38) + SourceIndex(3) +6 >Emitted(82, 33) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1 > +2 >namespace +3 > internalOther +1 >Emitted(83, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = /** @class */ (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(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(92, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) +--- +>>>/*@internal*/ var internalImport = internalNamespace.someClass; +1-> +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^^^^^^^^^^^^^^^^ +8 > ^ +9 > ^^^^^^^^^ +10> ^ +1-> + > +2 >/*@internal*/ +3 > +4 > import +5 > internalImport +6 > = +7 > internalNamespace +8 > . +9 > someClass +10> ; +1->Emitted(94, 1) Source(34, 1) + SourceIndex(3) +2 >Emitted(94, 14) Source(34, 14) + SourceIndex(3) +3 >Emitted(94, 15) Source(34, 15) + SourceIndex(3) +4 >Emitted(94, 19) Source(34, 22) + SourceIndex(3) +5 >Emitted(94, 33) Source(34, 36) + SourceIndex(3) +6 >Emitted(94, 36) Source(34, 39) + SourceIndex(3) +7 >Emitted(94, 53) Source(34, 56) + SourceIndex(3) +8 >Emitted(94, 54) Source(34, 57) + SourceIndex(3) +9 >Emitted(94, 63) Source(34, 66) + SourceIndex(3) +10>Emitted(94, 64) Source(34, 67) + SourceIndex(3) +--- +>>>/*@internal*/ var internalConst = 10; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > + >/*@internal*/ type internalType = internalC; + > +2 >/*@internal*/ +3 > +4 > const +5 > internalConst +6 > = +7 > 10 +8 > ; +1 >Emitted(95, 1) Source(36, 1) + SourceIndex(3) +2 >Emitted(95, 14) Source(36, 14) + SourceIndex(3) +3 >Emitted(95, 15) Source(36, 15) + SourceIndex(3) +4 >Emitted(95, 19) Source(36, 21) + SourceIndex(3) +5 >Emitted(95, 32) Source(36, 34) + SourceIndex(3) +6 >Emitted(95, 35) Source(36, 37) + SourceIndex(3) +7 >Emitted(95, 37) Source(36, 39) + SourceIndex(3) +8 >Emitted(95, 38) Source(36, 40) + SourceIndex(3) +--- +>>>/*@internal*/ var internalEnum; +1 > +2 >^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^ +1 > + > +2 >/*@internal*/ +3 > +4 > enum +5 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 1) + SourceIndex(3) +2 >Emitted(96, 14) Source(37, 14) + SourceIndex(3) +3 >Emitted(96, 15) Source(37, 15) + SourceIndex(3) +4 >Emitted(96, 19) Source(37, 20) + SourceIndex(3) +5 >Emitted(96, 31) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1 > +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >enum +3 > internalEnum +1 >Emitted(97, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = /** @class */ (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3544,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":3544,"kind":"text"}]},{"pos":3544,"end":3580,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":116,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":116,"kind":"text"}]},{"pos":116,"end":276,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":116,"end":276,"kind":"text"}]},{"pos":276,"end":295,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (127-3544):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (127-3544) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +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: false, + configurable: true + }); + return 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 || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (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 || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3544-3580) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-116):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-116) +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (116-276):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (116-276) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (276-295) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 3544, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 127, + "end": 3544, + "kind": "text" + } + ] + }, + { + "pos": 3544, + "end": 3580, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 116, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 116, + "kind": "text" + } + ] + }, + { + "pos": 116, + "end": 276, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 116, + "end": 276, + "kind": "text" + } + ] + }, + { + "pos": 276, + "end": 295, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 724 +} + + + +Change:: incremental-headers-change-without-dts-changes +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:07:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:07:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:07:00 AM] Building project '/src/first/tsconfig.json'... + +[12:07:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:07:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:07:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] file written with same contents +//// [/src/first/bin/first-output.js.map] file written with same contents +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 252 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +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(16, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":3544,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":3544,"kind":"text"}]},{"pos":3544,"end":3580,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":317,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":317,"kind":"text"}]},{"pos":317,"end":336,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (127-3544):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (127-3544) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +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: false, + configurable: true + }); + return 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 || (normalN = {})); +/*@internal*/ var internalC = /** @class */ (function () { + function internalC() { + } + return internalC; +}()); +/*@internal*/ function internalfoo() { } +/*@internal*/ var internalNamespace; +(function (internalNamespace) { + var someClass = /** @class */ (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (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 || (internalOther = {})); +/*@internal*/ var internalImport = internalNamespace.someClass; +/*@internal*/ var internalConst = 10; +/*@internal*/ var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = /** @class */ (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3544-3580) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-317):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-317) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (317-336) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 3544, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 127, + "end": 3544, + "kind": "text" + } + ] + }, + { + "pos": 3544, + "end": 3580, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 317, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 317, + "kind": "text" + } + ] + }, + { + "pos": 317, + "end": 336, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 724 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal.js index 2215d9da3eb92..2edf0a4ecba38 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal.js @@ -5400,3 +5400,6076 @@ declare var c: C; "size": 724 } + + +Change:: incremental-declaration-changes +Input:: +//// [/src/first/first_PART1.ts] +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +[12:04:00 AM] Building project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + +//// [/src/first/bin/first-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAc,UAAU,QAAQ;IAC5B,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 >/*@internal*/ +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 15) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 25) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 33) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-109) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-156) +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 109, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 290 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>declare const s = "Hola, world"; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(1, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(1, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(1, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(2, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(2, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(5, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(5, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(6, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(6, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(8, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(8, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(8, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(8, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(9, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(10, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(10, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(10, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(11, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(12, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(12, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(12, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +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(13, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(3, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(3, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(3, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(3, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(3, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(3, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(3, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(3, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(3, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(4, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(4, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(5, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(5, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(5, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(5, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(6, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(6, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /*@internal*/ +1->Emitted(15, 5) Source(14, 19) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(16, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(16, 6) Source(14, 36) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /*@internal*/ prop: string; + > /*@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(17, 5) Source(16, 19) + SourceIndex(3) +2 >Emitted(17, 29) Source(16, 25) + SourceIndex(3) +3 >Emitted(17, 32) Source(16, 19) + SourceIndex(3) +4 >Emitted(17, 46) Source(16, 30) + SourceIndex(3) +5 >Emitted(17, 47) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /*@internal*/ +2 > get +3 > c +1->Emitted(18, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(18, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(18, 49) Source(17, 24) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(19, 14) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 28) Source(17, 29) + SourceIndex(3) +3 >Emitted(19, 35) Source(17, 36) + SourceIndex(3) +4 >Emitted(19, 37) Source(17, 38) + SourceIndex(3) +5 >Emitted(19, 38) Source(17, 39) + SourceIndex(3) +6 >Emitted(19, 39) Source(17, 40) + SourceIndex(3) +7 >Emitted(19, 40) Source(17, 41) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /*@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(20, 14) Source(18, 19) + SourceIndex(3) +2 >Emitted(20, 24) Source(18, 25) + SourceIndex(3) +3 >Emitted(20, 27) Source(18, 36) + SourceIndex(3) +4 >Emitted(20, 31) Source(18, 40) + SourceIndex(3) +5 >Emitted(20, 32) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: false, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(23, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(24, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(24, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(25, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(25, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(25, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >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(26, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(26, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(26, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(26, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /*@internal*/ +1->Emitted(28, 5) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(29, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(30, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(30, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(32, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(32, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(32, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(33, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(33, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(33, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(33, 19) Source(21, 37) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(34, 5) Source(22, 19) + SourceIndex(3) +2 >Emitted(34, 14) Source(22, 35) + SourceIndex(3) +3 >Emitted(34, 17) Source(22, 38) + SourceIndex(3) +4 >Emitted(34, 22) Source(22, 42) + SourceIndex(3) +5 >Emitted(34, 23) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(35, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(35, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(35, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(36, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(36, 9) Source(23, 36) + SourceIndex(3) +3 >Emitted(36, 22) Source(23, 49) + SourceIndex(3) +4 >Emitted(36, 23) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(37, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(37, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(38, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(39, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(40, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(40, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(42, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(42, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(42, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(43, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(43, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(43, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(43, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(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(44, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(44, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(44, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(44, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(44, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(44, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(44, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(44, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(44, 79) Source(23, 71) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(45, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(45, 9) Source(24, 36) + SourceIndex(3) +3 >Emitted(45, 18) Source(24, 45) + SourceIndex(3) +4 >Emitted(45, 19) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(46, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(46, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(46, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(47, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(47, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(47, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(47, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(49, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(50, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(51, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(51, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(53, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(53, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(53, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(54, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(54, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(54, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(54, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(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(55, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(55, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(55, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(55, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(55, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(55, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(55, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(55, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(55, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(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(56, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(56, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(56, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(56, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(56, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(56, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(56, 67) Source(24, 85) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /*@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(57, 5) Source(25, 33) + SourceIndex(3) +2 >Emitted(57, 23) Source(25, 43) + SourceIndex(3) +3 >Emitted(57, 26) Source(25, 46) + SourceIndex(3) +4 >Emitted(57, 39) Source(25, 59) + SourceIndex(3) +5 >Emitted(57, 40) Source(25, 60) + SourceIndex(3) +6 >Emitted(57, 41) Source(25, 61) + SourceIndex(3) +7 >Emitted(57, 42) Source(25, 62) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(58, 5) Source(27, 32) + SourceIndex(3) +2 >Emitted(58, 26) Source(27, 45) + SourceIndex(3) +3 >Emitted(58, 29) Source(27, 48) + SourceIndex(3) +4 >Emitted(58, 31) Source(27, 50) + SourceIndex(3) +5 >Emitted(58, 32) Source(27, 51) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(59, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(59, 9) Source(28, 31) + SourceIndex(3) +3 >Emitted(59, 21) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(60, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(60, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(60, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(61, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(61, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(61, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(62, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(63, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(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(64, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(64, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(64, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(64, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(64, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(64, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(64, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(64, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(64, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@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(65, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(65, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(65, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(65, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(65, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(65, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(65, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/*@internal*/ +1->Emitted(66, 1) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(67, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(68, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(68, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(70, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(70, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(70, 6) Source(30, 33) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(71, 1) Source(31, 15) + SourceIndex(3) +2 >Emitted(71, 10) Source(31, 24) + SourceIndex(3) +3 >Emitted(71, 21) Source(31, 35) + SourceIndex(3) +4 >Emitted(71, 26) Source(31, 39) + SourceIndex(3) +5 >Emitted(71, 27) Source(31, 40) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(72, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(72, 5) Source(32, 25) + SourceIndex(3) +3 >Emitted(72, 22) Source(32, 42) + SourceIndex(3) +4 >Emitted(72, 23) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(73, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(73, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(73, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(74, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(75, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(76, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(76, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(78, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(78, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(78, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(79, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(79, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(79, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(79, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(80, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(80, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(80, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(80, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(80, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(80, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(80, 51) Source(32, 72) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(81, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(81, 5) Source(33, 25) + SourceIndex(3) +3 >Emitted(81, 18) Source(33, 38) + SourceIndex(3) +4 >Emitted(81, 19) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(82, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(82, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(82, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(83, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(83, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(83, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(83, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(85, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(86, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(87, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(87, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(89, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(89, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(89, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(90, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(90, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(90, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(90, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(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(91, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(91, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(91, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(91, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(91, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(91, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(91, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(91, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(91, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(92, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(92, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(92, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(92, 43) Source(33, 78) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(93, 1) Source(34, 15) + SourceIndex(3) +2 >Emitted(93, 5) Source(34, 22) + SourceIndex(3) +3 >Emitted(93, 19) Source(34, 36) + SourceIndex(3) +4 >Emitted(93, 22) Source(34, 39) + SourceIndex(3) +5 >Emitted(93, 39) Source(34, 56) + SourceIndex(3) +6 >Emitted(93, 40) Source(34, 57) + SourceIndex(3) +7 >Emitted(93, 49) Source(34, 66) + SourceIndex(3) +8 >Emitted(93, 50) Source(34, 67) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/*@internal*/ type internalType = internalC; + >/*@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(94, 1) Source(36, 15) + SourceIndex(3) +2 >Emitted(94, 5) Source(36, 21) + SourceIndex(3) +3 >Emitted(94, 18) Source(36, 34) + SourceIndex(3) +4 >Emitted(94, 21) Source(36, 37) + SourceIndex(3) +5 >Emitted(94, 23) Source(36, 39) + SourceIndex(3) +6 >Emitted(94, 24) Source(36, 40) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(95, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(95, 5) Source(37, 20) + SourceIndex(3) +3 >Emitted(95, 17) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(96, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(96, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(96, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(97, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(97, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(97, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(98, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(99, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(100, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(100, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(100, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(100, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(100, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(100, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(100, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(101, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(102, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(103, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(103, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(104, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(104, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(104, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(105, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(105, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(105, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(105, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(105, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(105, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(105, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(105, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(106, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(106, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(107, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(107, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(108, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(108, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(108, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(109, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(109, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(109, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(109, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(109, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(109, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(109, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(109, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(110, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(110, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(110, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(110, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(110, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(110, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":109,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":109,"kind":"text"}]},{"pos":109,"end":3162,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":109,"end":3162,"kind":"text"}]},{"pos":3162,"end":3198,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":115,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":115,"kind":"text"}]},{"pos":115,"end":275,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":115,"end":275,"kind":"text"}]},{"pos":275,"end":294,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-109):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-109) +var s = "Hola, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (109-3162):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (109-3162) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3162-3198) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-115):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-115) +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (115-275):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (115-275) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (275-294) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 109, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 109, + "kind": "text" + } + ] + }, + { + "pos": 109, + "end": 3162, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 109, + "end": 3162, + "kind": "text" + } + ] + }, + { + "pos": 3162, + "end": 3198, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 115, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 115, + "kind": "text" + } + ] + }, + { + "pos": 115, + "end": 275, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 115, + "end": 275, + "kind": "text" + } + ] + }, + { + "pos": 275, + "end": 294, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 724 +} + + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +/*@internal*/ interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:07:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:07:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:07:00 AM] Building project '/src/first/tsconfig.json'... + +[12:07:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:07:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:07:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":39,"kind":"internal"},{"pos":41,"end":156,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-126) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +internal: (0-39) +interface TheFirst { + none: any; +} +---------------------------------------------------------------------- +text: (41-156) +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 126, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, + "end": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 290 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IACkB;IAAgB,CAAC;IAEjB,wBAAM,GAAN,cAAW,CAAC;IACZ,sBAAI,sBAAC;aAAL,cAAU,OAAO,EAAE,CAAC,CAAC,CAAC;aACtB,UAAM,GAAW,IAAI,CAAC;;;OADA;IAExC,cAAC;AAAD,CAAC,AAND,IAMC;AACD,IAAU,OAAO,CAShB;AATD,WAAU,OAAO;IACC;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,SAAC,IAAI,CAAA;IAClB,SAAgB,GAAG,KAAI,CAAC;IAAR,WAAG,MAAK,CAAA;IACxB,IAAiB,aAAa,CAAsB;IAApD,WAAiB,aAAa;QAAG;YAAA;YAAgB,CAAC;YAAD,QAAC;QAAD,CAAC,AAAjB,IAAiB;QAAJ,eAAC,IAAG,CAAA;IAAC,CAAC,EAAnC,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAAsB;IACpD,IAAiB,SAAS,CAAwC;IAAlE,WAAiB,SAAS;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,mBAAS,KAAT,mBAAS,QAA8B;IAAD,CAAC,EAAjD,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAAwC;IACpD,kBAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAE9B,qBAAa,GAAG,EAAE,CAAC;IAChC,IAAY,YAAwB;IAApC,WAAY,YAAY;QAAG,yCAAC,CAAA;QAAE,yCAAC,CAAA;QAAE,yCAAC,CAAA;IAAC,CAAC,EAAxB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAAY;AACtD,CAAC,EATS,OAAO,KAAP,OAAO,QAShB;AACa;IAAA;IAAiB,CAAC;IAAD,gBAAC;AAAD,CAAC,AAAlB,IAAkB;AAClB,SAAS,WAAW,KAAI,CAAC;AACzB,IAAU,iBAAiB,CAA8B;AAAzD,WAAU,iBAAiB;IAAG;QAAA;QAAwB,CAAC;QAAD,gBAAC;IAAD,CAAC,AAAzB,IAAyB;IAAZ,2BAAS,YAAG,CAAA;AAAC,CAAC,EAA/C,iBAAiB,KAAjB,iBAAiB,QAA8B;AACzD,IAAU,aAAa,CAAwC;AAA/D,WAAU,aAAa;IAAC,IAAA,SAAS,CAA8B;IAAvC,WAAA,SAAS;QAAG;YAAA;YAAwB,CAAC;YAAD,gBAAC;QAAD,CAAC,AAAzB,IAAyB;QAAZ,mBAAS,YAAG,CAAA;IAAC,CAAC,EAAvC,SAAS,GAAT,uBAAS,KAAT,uBAAS,QAA8B;AAAD,CAAC,EAArD,aAAa,KAAb,aAAa,QAAwC;AAC/D,IAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AAEpD,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAK,YAAwB;AAA7B,WAAK,YAAY;IAAG,yCAAC,CAAA;IAAE,yCAAC,CAAA;IAAE,yCAAC,CAAA;AAAC,CAAC,EAAxB,YAAY,KAAZ,YAAY,QAAY;ACpC3C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >/*@internal*/ interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^^^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +>>>var normalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +--- +>>> function normalC() { +1->^^^^ +2 > ^^-> +1->class normalC { + > /*@internal*/ +1->Emitted(16, 5) Source(14, 19) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->constructor() { +2 > } +1->Emitted(17, 5) Source(14, 35) + SourceIndex(3) +2 >Emitted(17, 6) Source(14, 36) + SourceIndex(3) +--- +>>> normalC.prototype.method = function () { }; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^-> +1-> + > /*@internal*/ prop: string; + > /*@internal*/ +2 > method +3 > +4 > method() { +5 > } +1->Emitted(18, 5) Source(16, 19) + SourceIndex(3) +2 >Emitted(18, 29) Source(16, 25) + SourceIndex(3) +3 >Emitted(18, 32) Source(16, 19) + SourceIndex(3) +4 >Emitted(18, 46) Source(16, 30) + SourceIndex(3) +5 >Emitted(18, 47) Source(16, 31) + SourceIndex(3) +--- +>>> Object.defineProperty(normalC.prototype, "c", { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^ +1-> + > /*@internal*/ +2 > get +3 > c +1->Emitted(19, 5) Source(17, 19) + SourceIndex(3) +2 >Emitted(19, 27) Source(17, 23) + SourceIndex(3) +3 >Emitted(19, 49) Source(17, 24) + SourceIndex(3) +--- +>>> get: function () { return 10; }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^ +5 > ^ +6 > ^ +7 > ^ +1 > +2 > get c() { +3 > return +4 > 10 +5 > ; +6 > +7 > } +1 >Emitted(20, 14) Source(17, 19) + SourceIndex(3) +2 >Emitted(20, 28) Source(17, 29) + SourceIndex(3) +3 >Emitted(20, 35) Source(17, 36) + SourceIndex(3) +4 >Emitted(20, 37) Source(17, 38) + SourceIndex(3) +5 >Emitted(20, 38) Source(17, 39) + SourceIndex(3) +6 >Emitted(20, 39) Source(17, 40) + SourceIndex(3) +7 >Emitted(20, 40) Source(17, 41) + SourceIndex(3) +--- +>>> set: function (val) { }, +1 >^^^^^^^^^^^^^ +2 > ^^^^^^^^^^ +3 > ^^^ +4 > ^^^^ +5 > ^ +1 > + > /*@internal*/ +2 > set c( +3 > val: number +4 > ) { +5 > } +1 >Emitted(21, 14) Source(18, 19) + SourceIndex(3) +2 >Emitted(21, 24) Source(18, 25) + SourceIndex(3) +3 >Emitted(21, 27) Source(18, 36) + SourceIndex(3) +4 >Emitted(21, 31) Source(18, 40) + SourceIndex(3) +5 >Emitted(21, 32) Source(18, 41) + SourceIndex(3) +--- +>>> enumerable: false, +>>> configurable: true +>>> }); +1 >^^^^^^^ +2 > ^^^^^^^^^^^^^-> +1 > +1 >Emitted(24, 8) Source(17, 41) + SourceIndex(3) +--- +>>> return normalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^ +1-> + > /*@internal*/ set c(val: number) { } + > +2 > } +1->Emitted(25, 5) Source(19, 1) + SourceIndex(3) +2 >Emitted(25, 19) Source(19, 2) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > class normalC { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + > } +1 >Emitted(26, 1) Source(19, 1) + SourceIndex(3) +2 >Emitted(26, 2) Source(19, 2) + SourceIndex(3) +3 >Emitted(26, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(26, 6) Source(19, 2) + SourceIndex(3) +--- +>>>var normalN; +1-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > +2 >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(27, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(27, 5) Source(20, 11) + SourceIndex(3) +3 >Emitted(27, 12) Source(20, 18) + SourceIndex(3) +4 >Emitted(27, 13) Source(29, 2) + SourceIndex(3) +--- +>>>(function (normalN) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^-> +1-> +2 >namespace +3 > normalN +1->Emitted(28, 1) Source(20, 1) + SourceIndex(3) +2 >Emitted(28, 12) Source(20, 11) + SourceIndex(3) +3 >Emitted(28, 19) Source(20, 18) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { + > /*@internal*/ +1->Emitted(29, 5) Source(21, 19) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(30, 9) Source(21, 19) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(31, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(31, 10) Source(21, 37) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(32, 9) Source(21, 36) + SourceIndex(3) +2 >Emitted(32, 17) Source(21, 37) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C { } +1 >Emitted(33, 5) Source(21, 36) + SourceIndex(3) +2 >Emitted(33, 6) Source(21, 37) + SourceIndex(3) +3 >Emitted(33, 6) Source(21, 19) + SourceIndex(3) +4 >Emitted(33, 10) Source(21, 37) + SourceIndex(3) +--- +>>> normalN.C = C; +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^-> +1-> +2 > C +3 > { } +4 > +1->Emitted(34, 5) Source(21, 32) + SourceIndex(3) +2 >Emitted(34, 14) Source(21, 33) + SourceIndex(3) +3 >Emitted(34, 18) Source(21, 37) + SourceIndex(3) +4 >Emitted(34, 19) Source(21, 37) + SourceIndex(3) +--- +>>> function foo() { } +1->^^^^ +2 > ^^^^^^^^^ +3 > ^^^ +4 > ^^^^^ +5 > ^ +6 > ^-> +1-> + > /*@internal*/ +2 > export function +3 > foo +4 > () { +5 > } +1->Emitted(35, 5) Source(22, 19) + SourceIndex(3) +2 >Emitted(35, 14) Source(22, 35) + SourceIndex(3) +3 >Emitted(35, 17) Source(22, 38) + SourceIndex(3) +4 >Emitted(35, 22) Source(22, 42) + SourceIndex(3) +5 >Emitted(35, 23) Source(22, 43) + SourceIndex(3) +--- +>>> normalN.foo = foo; +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^-> +1-> +2 > foo +3 > () {} +4 > +1->Emitted(36, 5) Source(22, 35) + SourceIndex(3) +2 >Emitted(36, 16) Source(22, 38) + SourceIndex(3) +3 >Emitted(36, 22) Source(22, 43) + SourceIndex(3) +4 >Emitted(36, 23) Source(22, 43) + SourceIndex(3) +--- +>>> var someNamespace; +1->^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1-> + > /*@internal*/ +2 > export namespace +3 > someNamespace +4 > { export class C {} } +1->Emitted(37, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(37, 9) Source(23, 36) + SourceIndex(3) +3 >Emitted(37, 22) Source(23, 49) + SourceIndex(3) +4 >Emitted(37, 23) Source(23, 71) + SourceIndex(3) +--- +>>> (function (someNamespace) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^-> +1-> +2 > export namespace +3 > someNamespace +1->Emitted(38, 5) Source(23, 19) + SourceIndex(3) +2 >Emitted(38, 16) Source(23, 36) + SourceIndex(3) +3 >Emitted(38, 29) Source(23, 49) + SourceIndex(3) +--- +>>> var C = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(39, 9) Source(23, 52) + SourceIndex(3) +--- +>>> function C() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(40, 13) Source(23, 52) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1->export class C { +2 > } +1->Emitted(41, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(41, 14) Source(23, 69) + SourceIndex(3) +--- +>>> return C; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^ +1-> +2 > } +1->Emitted(42, 13) Source(23, 68) + SourceIndex(3) +2 >Emitted(42, 21) Source(23, 69) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class C {} +1 >Emitted(43, 9) Source(23, 68) + SourceIndex(3) +2 >Emitted(43, 10) Source(23, 69) + SourceIndex(3) +3 >Emitted(43, 10) Source(23, 52) + SourceIndex(3) +4 >Emitted(43, 14) Source(23, 69) + SourceIndex(3) +--- +>>> someNamespace.C = C; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > C +3 > {} +4 > +1->Emitted(44, 9) Source(23, 65) + SourceIndex(3) +2 >Emitted(44, 24) Source(23, 66) + SourceIndex(3) +3 >Emitted(44, 28) Source(23, 69) + SourceIndex(3) +4 >Emitted(44, 29) Source(23, 69) + SourceIndex(3) +--- +>>> })(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(45, 5) Source(23, 70) + SourceIndex(3) +2 >Emitted(45, 6) Source(23, 71) + SourceIndex(3) +3 >Emitted(45, 8) Source(23, 36) + SourceIndex(3) +4 >Emitted(45, 21) Source(23, 49) + SourceIndex(3) +5 >Emitted(45, 24) Source(23, 36) + SourceIndex(3) +6 >Emitted(45, 45) Source(23, 49) + SourceIndex(3) +7 >Emitted(45, 50) Source(23, 36) + SourceIndex(3) +8 >Emitted(45, 71) Source(23, 49) + SourceIndex(3) +9 >Emitted(45, 79) Source(23, 71) + SourceIndex(3) +--- +>>> var someOther; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export namespace +3 > someOther +4 > .something { export class someClass {} } +1 >Emitted(46, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(46, 9) Source(24, 36) + SourceIndex(3) +3 >Emitted(46, 18) Source(24, 45) + SourceIndex(3) +4 >Emitted(46, 19) Source(24, 85) + SourceIndex(3) +--- +>>> (function (someOther) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +1-> +2 > export namespace +3 > someOther +1->Emitted(47, 5) Source(24, 19) + SourceIndex(3) +2 >Emitted(47, 16) Source(24, 36) + SourceIndex(3) +3 >Emitted(47, 25) Source(24, 45) + SourceIndex(3) +--- +>>> var something; +1 >^^^^^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(48, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(48, 13) Source(24, 46) + SourceIndex(3) +3 >Emitted(48, 22) Source(24, 55) + SourceIndex(3) +4 >Emitted(48, 23) Source(24, 85) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(49, 9) Source(24, 46) + SourceIndex(3) +2 >Emitted(49, 20) Source(24, 46) + SourceIndex(3) +3 >Emitted(49, 29) Source(24, 55) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(50, 13) Source(24, 58) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(51, 17) Source(24, 58) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(52, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(52, 18) Source(24, 83) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(53, 17) Source(24, 82) + SourceIndex(3) +2 >Emitted(53, 33) Source(24, 83) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(54, 13) Source(24, 82) + SourceIndex(3) +2 >Emitted(54, 14) Source(24, 83) + SourceIndex(3) +3 >Emitted(54, 14) Source(24, 58) + SourceIndex(3) +4 >Emitted(54, 18) Source(24, 83) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(55, 13) Source(24, 71) + SourceIndex(3) +2 >Emitted(55, 32) Source(24, 80) + SourceIndex(3) +3 >Emitted(55, 44) Source(24, 83) + SourceIndex(3) +4 >Emitted(55, 45) Source(24, 83) + SourceIndex(3) +--- +>>> })(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(56, 9) Source(24, 84) + SourceIndex(3) +2 >Emitted(56, 10) Source(24, 85) + SourceIndex(3) +3 >Emitted(56, 12) Source(24, 46) + SourceIndex(3) +4 >Emitted(56, 21) Source(24, 55) + SourceIndex(3) +5 >Emitted(56, 24) Source(24, 46) + SourceIndex(3) +6 >Emitted(56, 43) Source(24, 55) + SourceIndex(3) +7 >Emitted(56, 48) Source(24, 46) + SourceIndex(3) +8 >Emitted(56, 67) Source(24, 55) + SourceIndex(3) +9 >Emitted(56, 75) Source(24, 85) + SourceIndex(3) +--- +>>> })(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(57, 5) Source(24, 84) + SourceIndex(3) +2 >Emitted(57, 6) Source(24, 85) + SourceIndex(3) +3 >Emitted(57, 8) Source(24, 36) + SourceIndex(3) +4 >Emitted(57, 17) Source(24, 45) + SourceIndex(3) +5 >Emitted(57, 20) Source(24, 36) + SourceIndex(3) +6 >Emitted(57, 37) Source(24, 45) + SourceIndex(3) +7 >Emitted(57, 42) Source(24, 36) + SourceIndex(3) +8 >Emitted(57, 59) Source(24, 45) + SourceIndex(3) +9 >Emitted(57, 67) Source(24, 85) + SourceIndex(3) +--- +>>> normalN.someImport = someNamespace.C; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^ +5 > ^ +6 > ^ +7 > ^ +1 > + > /*@internal*/ export import +2 > someImport +3 > = +4 > someNamespace +5 > . +6 > C +7 > ; +1 >Emitted(58, 5) Source(25, 33) + SourceIndex(3) +2 >Emitted(58, 23) Source(25, 43) + SourceIndex(3) +3 >Emitted(58, 26) Source(25, 46) + SourceIndex(3) +4 >Emitted(58, 39) Source(25, 59) + SourceIndex(3) +5 >Emitted(58, 40) Source(25, 60) + SourceIndex(3) +6 >Emitted(58, 41) Source(25, 61) + SourceIndex(3) +7 >Emitted(58, 42) Source(25, 62) + SourceIndex(3) +--- +>>> normalN.internalConst = 10; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^ +5 > ^ +1 > + > /*@internal*/ export type internalType = internalC; + > /*@internal*/ export const +2 > internalConst +3 > = +4 > 10 +5 > ; +1 >Emitted(59, 5) Source(27, 32) + SourceIndex(3) +2 >Emitted(59, 26) Source(27, 45) + SourceIndex(3) +3 >Emitted(59, 29) Source(27, 48) + SourceIndex(3) +4 >Emitted(59, 31) Source(27, 50) + SourceIndex(3) +5 >Emitted(59, 32) Source(27, 51) + SourceIndex(3) +--- +>>> var internalEnum; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + > /*@internal*/ +2 > export enum +3 > internalEnum { a, b, c } +1 >Emitted(60, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(60, 9) Source(28, 31) + SourceIndex(3) +3 >Emitted(60, 21) Source(28, 55) + SourceIndex(3) +--- +>>> (function (internalEnum) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > export enum +3 > internalEnum +1->Emitted(61, 5) Source(28, 19) + SourceIndex(3) +2 >Emitted(61, 16) Source(28, 31) + SourceIndex(3) +3 >Emitted(61, 28) Source(28, 43) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(62, 9) Source(28, 46) + SourceIndex(3) +2 >Emitted(62, 50) Source(28, 47) + SourceIndex(3) +3 >Emitted(62, 51) Source(28, 47) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(63, 9) Source(28, 49) + SourceIndex(3) +2 >Emitted(63, 50) Source(28, 50) + SourceIndex(3) +3 >Emitted(63, 51) Source(28, 50) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->, +2 > c +3 > +1->Emitted(64, 9) Source(28, 52) + SourceIndex(3) +2 >Emitted(64, 50) Source(28, 53) + SourceIndex(3) +3 >Emitted(64, 51) Source(28, 53) + SourceIndex(3) +--- +>>> })(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(65, 5) Source(28, 54) + SourceIndex(3) +2 >Emitted(65, 6) Source(28, 55) + SourceIndex(3) +3 >Emitted(65, 8) Source(28, 31) + SourceIndex(3) +4 >Emitted(65, 20) Source(28, 43) + SourceIndex(3) +5 >Emitted(65, 23) Source(28, 31) + SourceIndex(3) +6 >Emitted(65, 43) Source(28, 43) + SourceIndex(3) +7 >Emitted(65, 48) Source(28, 31) + SourceIndex(3) +8 >Emitted(65, 68) Source(28, 43) + SourceIndex(3) +9 >Emitted(65, 76) Source(28, 55) + SourceIndex(3) +--- +>>>})(normalN || (normalN = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^ +7 > ^^^^^^^^ +8 > ^-> +1 > + > +2 >} +3 > +4 > normalN +5 > +6 > normalN +7 > { + > /*@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(66, 1) Source(29, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(29, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(20, 11) + SourceIndex(3) +4 >Emitted(66, 11) Source(20, 18) + SourceIndex(3) +5 >Emitted(66, 16) Source(20, 11) + SourceIndex(3) +6 >Emitted(66, 23) Source(20, 18) + SourceIndex(3) +7 >Emitted(66, 31) Source(29, 2) + SourceIndex(3) +--- +>>>var internalC = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + >/*@internal*/ +1->Emitted(67, 1) Source(30, 15) + SourceIndex(3) +--- +>>> function internalC() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(68, 5) Source(30, 15) + SourceIndex(3) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->class internalC { +2 > } +1->Emitted(69, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(69, 6) Source(30, 33) + SourceIndex(3) +--- +>>> return internalC; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(70, 5) Source(30, 32) + SourceIndex(3) +2 >Emitted(70, 21) Source(30, 33) + SourceIndex(3) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class internalC {} +1 >Emitted(71, 1) Source(30, 32) + SourceIndex(3) +2 >Emitted(71, 2) Source(30, 33) + SourceIndex(3) +3 >Emitted(71, 2) Source(30, 15) + SourceIndex(3) +4 >Emitted(71, 6) Source(30, 33) + SourceIndex(3) +--- +>>>function internalfoo() { } +1-> +2 >^^^^^^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^^^ +5 > ^ +1-> + >/*@internal*/ +2 >function +3 > internalfoo +4 > () { +5 > } +1->Emitted(72, 1) Source(31, 15) + SourceIndex(3) +2 >Emitted(72, 10) Source(31, 24) + SourceIndex(3) +3 >Emitted(72, 21) Source(31, 35) + SourceIndex(3) +4 >Emitted(72, 26) Source(31, 39) + SourceIndex(3) +5 >Emitted(72, 27) Source(31, 40) + SourceIndex(3) +--- +>>>var internalNamespace; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalNamespace +4 > { export class someClass {} } +1 >Emitted(73, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(73, 5) Source(32, 25) + SourceIndex(3) +3 >Emitted(73, 22) Source(32, 42) + SourceIndex(3) +4 >Emitted(73, 23) Source(32, 72) + SourceIndex(3) +--- +>>>(function (internalNamespace) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > internalNamespace +1->Emitted(74, 1) Source(32, 15) + SourceIndex(3) +2 >Emitted(74, 12) Source(32, 25) + SourceIndex(3) +3 >Emitted(74, 29) Source(32, 42) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(75, 5) Source(32, 45) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(76, 9) Source(32, 45) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(77, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(77, 10) Source(32, 70) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(78, 9) Source(32, 69) + SourceIndex(3) +2 >Emitted(78, 25) Source(32, 70) + SourceIndex(3) +--- +>>> }()); +1 >^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(79, 5) Source(32, 69) + SourceIndex(3) +2 >Emitted(79, 6) Source(32, 70) + SourceIndex(3) +3 >Emitted(79, 6) Source(32, 45) + SourceIndex(3) +4 >Emitted(79, 10) Source(32, 70) + SourceIndex(3) +--- +>>> internalNamespace.someClass = someClass; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(80, 5) Source(32, 58) + SourceIndex(3) +2 >Emitted(80, 32) Source(32, 67) + SourceIndex(3) +3 >Emitted(80, 44) Source(32, 70) + SourceIndex(3) +4 >Emitted(80, 45) Source(32, 70) + SourceIndex(3) +--- +>>>})(internalNamespace || (internalNamespace = {})); +1-> +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^^^^^ +7 > ^^^^^^^^ +1-> +2 >} +3 > +4 > internalNamespace +5 > +6 > internalNamespace +7 > { export class someClass {} } +1->Emitted(81, 1) Source(32, 71) + SourceIndex(3) +2 >Emitted(81, 2) Source(32, 72) + SourceIndex(3) +3 >Emitted(81, 4) Source(32, 25) + SourceIndex(3) +4 >Emitted(81, 21) Source(32, 42) + SourceIndex(3) +5 >Emitted(81, 26) Source(32, 25) + SourceIndex(3) +6 >Emitted(81, 43) Source(32, 42) + SourceIndex(3) +7 >Emitted(81, 51) Source(32, 72) + SourceIndex(3) +--- +>>>var internalOther; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >namespace +3 > internalOther +4 > .something { export class someClass {} } +1 >Emitted(82, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(82, 5) Source(33, 25) + SourceIndex(3) +3 >Emitted(82, 18) Source(33, 38) + SourceIndex(3) +4 >Emitted(82, 19) Source(33, 78) + SourceIndex(3) +--- +>>>(function (internalOther) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^ +1-> +2 >namespace +3 > internalOther +1->Emitted(83, 1) Source(33, 15) + SourceIndex(3) +2 >Emitted(83, 12) Source(33, 25) + SourceIndex(3) +3 >Emitted(83, 25) Source(33, 38) + SourceIndex(3) +--- +>>> var something; +1 >^^^^ +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >. +2 > +3 > something +4 > { export class someClass {} } +1 >Emitted(84, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(84, 9) Source(33, 39) + SourceIndex(3) +3 >Emitted(84, 18) Source(33, 48) + SourceIndex(3) +4 >Emitted(84, 19) Source(33, 78) + SourceIndex(3) +--- +>>> (function (something) { +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^-> +1-> +2 > +3 > something +1->Emitted(85, 5) Source(33, 39) + SourceIndex(3) +2 >Emitted(85, 16) Source(33, 39) + SourceIndex(3) +3 >Emitted(85, 25) Source(33, 48) + SourceIndex(3) +--- +>>> var someClass = (function () { +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { +1->Emitted(86, 9) Source(33, 51) + SourceIndex(3) +--- +>>> function someClass() { +1->^^^^^^^^^^^^ +2 > ^^-> +1-> +1->Emitted(87, 13) Source(33, 51) + SourceIndex(3) +--- +>>> } +1->^^^^^^^^^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^-> +1->export class someClass { +2 > } +1->Emitted(88, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(88, 14) Source(33, 76) + SourceIndex(3) +--- +>>> return someClass; +1->^^^^^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^ +1-> +2 > } +1->Emitted(89, 13) Source(33, 75) + SourceIndex(3) +2 >Emitted(89, 29) Source(33, 76) + SourceIndex(3) +--- +>>> }()); +1 >^^^^^^^^ +2 > ^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > } +3 > +4 > export class someClass {} +1 >Emitted(90, 9) Source(33, 75) + SourceIndex(3) +2 >Emitted(90, 10) Source(33, 76) + SourceIndex(3) +3 >Emitted(90, 10) Source(33, 51) + SourceIndex(3) +4 >Emitted(90, 14) Source(33, 76) + SourceIndex(3) +--- +>>> something.someClass = someClass; +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > someClass +3 > {} +4 > +1->Emitted(91, 9) Source(33, 64) + SourceIndex(3) +2 >Emitted(91, 28) Source(33, 73) + SourceIndex(3) +3 >Emitted(91, 40) Source(33, 76) + SourceIndex(3) +4 >Emitted(91, 41) Source(33, 76) + SourceIndex(3) +--- +>>> })(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(92, 5) Source(33, 77) + SourceIndex(3) +2 >Emitted(92, 6) Source(33, 78) + SourceIndex(3) +3 >Emitted(92, 8) Source(33, 39) + SourceIndex(3) +4 >Emitted(92, 17) Source(33, 48) + SourceIndex(3) +5 >Emitted(92, 20) Source(33, 39) + SourceIndex(3) +6 >Emitted(92, 43) Source(33, 48) + SourceIndex(3) +7 >Emitted(92, 48) Source(33, 39) + SourceIndex(3) +8 >Emitted(92, 71) Source(33, 48) + SourceIndex(3) +9 >Emitted(92, 79) Source(33, 78) + SourceIndex(3) +--- +>>>})(internalOther || (internalOther = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^^ +7 > ^^^^^^^^ +8 > ^^^^^^^^-> +1 > +2 >} +3 > +4 > internalOther +5 > +6 > internalOther +7 > .something { export class someClass {} } +1 >Emitted(93, 1) Source(33, 77) + SourceIndex(3) +2 >Emitted(93, 2) Source(33, 78) + SourceIndex(3) +3 >Emitted(93, 4) Source(33, 25) + SourceIndex(3) +4 >Emitted(93, 17) Source(33, 38) + SourceIndex(3) +5 >Emitted(93, 22) Source(33, 25) + SourceIndex(3) +6 >Emitted(93, 35) Source(33, 38) + SourceIndex(3) +7 >Emitted(93, 43) Source(33, 78) + SourceIndex(3) +--- +>>>var internalImport = internalNamespace.someClass; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +7 > ^^^^^^^^^ +8 > ^ +1-> + >/*@internal*/ +2 >import +3 > internalImport +4 > = +5 > internalNamespace +6 > . +7 > someClass +8 > ; +1->Emitted(94, 1) Source(34, 15) + SourceIndex(3) +2 >Emitted(94, 5) Source(34, 22) + SourceIndex(3) +3 >Emitted(94, 19) Source(34, 36) + SourceIndex(3) +4 >Emitted(94, 22) Source(34, 39) + SourceIndex(3) +5 >Emitted(94, 39) Source(34, 56) + SourceIndex(3) +6 >Emitted(94, 40) Source(34, 57) + SourceIndex(3) +7 >Emitted(94, 49) Source(34, 66) + SourceIndex(3) +8 >Emitted(94, 50) Source(34, 67) + SourceIndex(3) +--- +>>>var internalConst = 10; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^ +6 > ^ +1 > + >/*@internal*/ type internalType = internalC; + >/*@internal*/ +2 >const +3 > internalConst +4 > = +5 > 10 +6 > ; +1 >Emitted(95, 1) Source(36, 15) + SourceIndex(3) +2 >Emitted(95, 5) Source(36, 21) + SourceIndex(3) +3 >Emitted(95, 18) Source(36, 34) + SourceIndex(3) +4 >Emitted(95, 21) Source(36, 37) + SourceIndex(3) +5 >Emitted(95, 23) Source(36, 39) + SourceIndex(3) +6 >Emitted(95, 24) Source(36, 40) + SourceIndex(3) +--- +>>>var internalEnum; +1 > +2 >^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > + >/*@internal*/ +2 >enum +3 > internalEnum { a, b, c } +1 >Emitted(96, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(96, 5) Source(37, 20) + SourceIndex(3) +3 >Emitted(96, 17) Source(37, 44) + SourceIndex(3) +--- +>>>(function (internalEnum) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > internalEnum +1->Emitted(97, 1) Source(37, 15) + SourceIndex(3) +2 >Emitted(97, 12) Source(37, 20) + SourceIndex(3) +3 >Emitted(97, 24) Source(37, 32) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["a"] = 0] = "a"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1-> { +2 > a +3 > +1->Emitted(98, 5) Source(37, 35) + SourceIndex(3) +2 >Emitted(98, 46) Source(37, 36) + SourceIndex(3) +3 >Emitted(98, 47) Source(37, 36) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["b"] = 1] = "b"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^-> +1->, +2 > b +3 > +1->Emitted(99, 5) Source(37, 38) + SourceIndex(3) +2 >Emitted(99, 46) Source(37, 39) + SourceIndex(3) +3 >Emitted(99, 47) Source(37, 39) + SourceIndex(3) +--- +>>> internalEnum[internalEnum["c"] = 2] = "c"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, +2 > c +3 > +1->Emitted(100, 5) Source(37, 41) + SourceIndex(3) +2 >Emitted(100, 46) Source(37, 42) + SourceIndex(3) +3 >Emitted(100, 47) Source(37, 42) + SourceIndex(3) +--- +>>>})(internalEnum || (internalEnum = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^^^ +7 > ^^^^^^^^ +1 > +2 >} +3 > +4 > internalEnum +5 > +6 > internalEnum +7 > { a, b, c } +1 >Emitted(101, 1) Source(37, 43) + SourceIndex(3) +2 >Emitted(101, 2) Source(37, 44) + SourceIndex(3) +3 >Emitted(101, 4) Source(37, 20) + SourceIndex(3) +4 >Emitted(101, 16) Source(37, 32) + SourceIndex(3) +5 >Emitted(101, 21) Source(37, 20) + SourceIndex(3) +6 >Emitted(101, 33) Source(37, 32) + SourceIndex(3) +7 >Emitted(101, 41) Source(37, 44) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1 > +2 >^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(102, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(103, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(104, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(104, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(105, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(105, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(105, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(106, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(106, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(106, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(106, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(106, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(106, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(106, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(106, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(107, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(107, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(108, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(108, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(109, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(109, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(109, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(109, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(110, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(110, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(110, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(110, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(110, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(110, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(110, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(110, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(111, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(111, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(111, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(111, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(111, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(111, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":126,"kind":"text"}]},{"pos":126,"end":3179,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":126,"end":3179,"kind":"text"}]},{"pos":3179,"end":3215,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":115,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":115,"kind":"text"}]},{"pos":115,"end":275,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":115,"end":275,"kind":"text"}]},{"pos":275,"end":294,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-126):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-126) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (126-3179):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (126-3179) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3179-3215) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-115):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-115) +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (115-275):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (115-275) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (275-294) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 126, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 126, + "kind": "text" + } + ] + }, + { + "pos": 126, + "end": 3179, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 126, + "end": 3179, + "kind": "text" + } + ] + }, + { + "pos": 3179, + "end": 3215, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 115, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 115, + "kind": "text" + } + ] + }, + { + "pos": 115, + "end": 275, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 115, + "end": 275, + "kind": "text" + } + ] + }, + { + "pos": 275, + "end": 294, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 724 +} + + + +Change:: incremental-headers-change-without-dts-changes +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:10:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:10:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:10:00 AM] Building project '/src/first/tsconfig.json'... + +[12:10:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:10:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:10:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:10:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] file written with same contents +//// [/src/first/bin/first-output.js.map] file written with same contents +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":156,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-126) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 126, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 252 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAMZ;AACD,kBAAU,OAAO,CAAC;CASjB;AC5BD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(3, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(4, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(4, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(5, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(5, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(5, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(6, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(6, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(6, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(7, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(8, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(8, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(8, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +--- +>>>declare class normalC { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1-> + > + > +2 >class +3 > normalC +1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } + >} +1 >Emitted(14, 2) Source(19, 2) + SourceIndex(2) +--- +>>>declare namespace normalN { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +4 > ^ +1-> + > +2 >namespace +3 > normalN +4 > +1->Emitted(15, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(15, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(15, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(15, 27) Source(20, 19) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +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(16, 2) Source(29, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare var c: C; +1-> +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":126,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":126,"kind":"text"}]},{"pos":126,"end":3179,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":126,"end":3179,"kind":"text"}]},{"pos":3179,"end":3215,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":156,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":156,"kind":"text"}]},{"pos":156,"end":316,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":156,"end":316,"kind":"text"}]},{"pos":316,"end":335,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-126):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-126) +var s = "Hola, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (126-3179):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (126-3179) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var normalC = (function () { + function normalC() { + } + normalC.prototype.method = function () { }; + Object.defineProperty(normalC.prototype, "c", { + get: function () { return 10; }, + set: function (val) { }, + enumerable: false, + configurable: true + }); + return normalC; +}()); +var normalN; +(function (normalN) { + var C = (function () { + function C() { + } + return C; + }()); + normalN.C = C; + function foo() { } + normalN.foo = foo; + var someNamespace; + (function (someNamespace) { + var C = (function () { + function C() { + } + return C; + }()); + someNamespace.C = C; + })(someNamespace = normalN.someNamespace || (normalN.someNamespace = {})); + var someOther; + (function (someOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = someOther.something || (someOther.something = {})); + })(someOther = normalN.someOther || (normalN.someOther = {})); + normalN.someImport = someNamespace.C; + normalN.internalConst = 10; + 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 || (normalN = {})); +var internalC = (function () { + function internalC() { + } + return internalC; +}()); +function internalfoo() { } +var internalNamespace; +(function (internalNamespace) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + internalNamespace.someClass = someClass; +})(internalNamespace || (internalNamespace = {})); +var internalOther; +(function (internalOther) { + var something; + (function (something) { + var someClass = (function () { + function someClass() { + } + return someClass; + }()); + something.someClass = someClass; + })(something = internalOther.something || (internalOther.something = {})); +})(internalOther || (internalOther = {})); +var internalImport = internalNamespace.someClass; +var internalConst = 10; +var internalEnum; +(function (internalEnum) { + internalEnum[internalEnum["a"] = 0] = "a"; + internalEnum[internalEnum["b"] = 1] = "b"; + internalEnum[internalEnum["c"] = 2] = "c"; +})(internalEnum || (internalEnum = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (3179-3215) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-156):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-156) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (156-316):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (156-316) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (316-335) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 126, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 126, + "kind": "text" + } + ] + }, + { + "pos": 126, + "end": 3179, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 126, + "end": 3179, + "kind": "text" + } + ] + }, + { + "pos": 3179, + "end": 3215, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 156, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 156, + "kind": "text" + } + ] + }, + { + "pos": 156, + "end": 316, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 156, + "end": 316, + "kind": "text" + } + ] + }, + { + "pos": 316, + "end": 335, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 724 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-all-projects.js index 0c262ef7b2e51..b85568947a14b 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-all-projects.js @@ -2232,3 +2232,2726 @@ declare var c: C; "size": 952 } + + +Change:: incremental-declaration-changes +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because oldest output 'src/third/thirdjs/output/third-output.js' is older than newest input 'src/first' + +[12:04:00 AM] Building project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/tripleRef.d.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 2, + "/src/2/second-output.tsbuildinfo": 1, + "/src/2/second-output.d.ts": 1, + "/src/second/tripleRef.d.ts": 1, + "/src/third/third_part1.ts": 1, + "/src/third/tripleRef.d.ts": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1 +} + +//// [/src/first/bin/first-output.d.ts] +/// +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare const first_part2Const: firstfirst_part2; +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>/// +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(2, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(3, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(3, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(3, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(3, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(3, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(4, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(5, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(5, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(5, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(5, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(5, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(5, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(6, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(6, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(6, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(7, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(7, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(7, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(7, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(7, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(8, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>declare const first_part2Const: firstfirst_part2; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^ +6 > ^ +1->/// + > +2 > +3 > const +4 > first_part2Const +5 > = new firstfirst_part2() +6 > ; +1->Emitted(9, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(9, 9) Source(2, 1) + SourceIndex(1) +3 >Emitted(9, 15) Source(2, 7) + SourceIndex(1) +4 >Emitted(9, 31) Source(2, 23) + SourceIndex(1) +5 >Emitted(9, 49) Source(2, 48) + SourceIndex(1) +6 >Emitted(9, 50) Source(2, 49) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(10, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(10, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(10, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var s = "Hola, world"; +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>var first_part2Const = new firstfirst_part2(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > first_part2Const +4 > = +5 > new +6 > firstfirst_part2 +7 > () +8 > ; +1->Emitted(3, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(3, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(3, 21) Source(2, 23) + SourceIndex(1) +4 >Emitted(3, 24) Source(2, 26) + SourceIndex(1) +5 >Emitted(3, 28) Source(2, 30) + SourceIndex(1) +6 >Emitted(3, 44) Source(2, 46) + SourceIndex(1) +7 >Emitted(3, 46) Source(2, 48) + SourceIndex(1) +8 >Emitted(3, 47) Source(2, 49) + SourceIndex(1) +--- +>>>console.log(f()); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1 > + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1 >Emitted(4, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(3, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(3, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(3, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(3, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(3, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(3, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(3, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":157,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":44,"end":251,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-157) +var s = "Hola, world"; +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +reference: (0-42):: ../tripleRef.d.ts +/// +---------------------------------------------------------------------- +text: (44-251) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare const first_part2Const: firstfirst_part2; +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 42, + "kind": "reference", + "data": "../tripleRef.d.ts" + }, + { + "pos": 44, + "end": 251, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 318 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] +/// +/// +/// +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare const first_part2Const: firstfirst_part2; +declare function f(): string; +declare const second_part1Const: secondsecond_part1; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +declare const third_part1Const: thirdthird_part1; +declare var c: C; +//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.d.ts.map] +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC;AAExB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>/// +>>>/// +>>>/// +>>>interface TheFirst { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1 > +2 >interface +3 > TheFirst +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(4, 11) Source(1, 11) + SourceIndex(0) +3 >Emitted(4, 19) Source(1, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(5, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(5, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(5, 11) Source(2, 11) + SourceIndex(0) +4 >Emitted(5, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(5, 15) Source(2, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(6, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare const s = "Hola, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hola, world" +6 > ; +1->Emitted(7, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(7, 9) Source(5, 1) + SourceIndex(0) +3 >Emitted(7, 15) Source(5, 7) + SourceIndex(0) +4 >Emitted(7, 16) Source(5, 8) + SourceIndex(0) +5 >Emitted(7, 32) Source(5, 24) + SourceIndex(0) +6 >Emitted(7, 33) Source(5, 25) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(8, 1) Source(7, 1) + SourceIndex(0) +2 >Emitted(8, 11) Source(7, 11) + SourceIndex(0) +3 >Emitted(8, 28) Source(7, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(9, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(9, 9) Source(8, 9) + SourceIndex(0) +3 >Emitted(9, 11) Source(8, 11) + SourceIndex(0) +4 >Emitted(9, 14) Source(8, 14) + SourceIndex(0) +5 >Emitted(9, 15) Source(8, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(10, 2) Source(9, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>declare const first_part2Const: firstfirst_part2; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^ +6 > ^ +1->/// + > +2 > +3 > const +4 > first_part2Const +5 > = new firstfirst_part2() +6 > ; +1->Emitted(11, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(11, 9) Source(2, 1) + SourceIndex(1) +3 >Emitted(11, 15) Source(2, 7) + SourceIndex(1) +4 >Emitted(11, 31) Source(2, 23) + SourceIndex(1) +5 >Emitted(11, 49) Source(2, 48) + SourceIndex(1) +6 >Emitted(11, 50) Source(2, 49) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1 > +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1 >Emitted(12, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(12, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(12, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(12, 30) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>declare const second_part1Const: secondsecond_part1; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^ +6 > ^ +1->/// + > +2 > +3 > const +4 > second_part1Const +5 > = new secondsecond_part1() +6 > ; +1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(13, 9) Source(2, 1) + SourceIndex(3) +3 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) +4 >Emitted(13, 32) Source(2, 24) + SourceIndex(3) +5 >Emitted(13, 52) Source(2, 51) + SourceIndex(3) +6 >Emitted(13, 53) Source(2, 52) + SourceIndex(3) +--- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > + > +2 >namespace +3 > N +4 > +1 >Emitted(14, 1) Source(3, 1) + SourceIndex(3) +2 >Emitted(14, 19) Source(3, 11) + SourceIndex(3) +3 >Emitted(14, 20) Source(3, 12) + SourceIndex(3) +4 >Emitted(14, 21) Source(3, 13) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(16, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(16, 19) Source(7, 11) + SourceIndex(3) +3 >Emitted(16, 20) Source(7, 12) + SourceIndex(3) +4 >Emitted(16, 21) Source(7, 13) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(17, 2) Source(13, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 15) Source(1, 7) + SourceIndex(4) +3 >Emitted(18, 16) Source(1, 8) + SourceIndex(4) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 16) Source(2, 16) + SourceIndex(4) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(20, 2) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>declare const third_part1Const: thirdthird_part1; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^^^^^ +6 > ^ +1->/// + > +2 > +3 > const +4 > third_part1Const +5 > = new thirdthird_part1() +6 > ; +1->Emitted(21, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(21, 9) Source(2, 1) + SourceIndex(5) +3 >Emitted(21, 15) Source(2, 7) + SourceIndex(5) +4 >Emitted(21, 31) Source(2, 23) + SourceIndex(5) +5 >Emitted(21, 49) Source(2, 48) + SourceIndex(5) +6 >Emitted(21, 50) Source(2, 49) + SourceIndex(5) +--- +>>>declare var c: C; +1 > +2 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1 >Emitted(22, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(22, 9) Source(3, 1) + SourceIndex(5) +3 >Emitted(22, 13) Source(3, 5) + SourceIndex(5) +4 >Emitted(22, 14) Source(3, 6) + SourceIndex(5) +5 >Emitted(22, 17) Source(3, 16) + SourceIndex(5) +6 >Emitted(22, 18) Source(3, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hola, world"; +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var third_part1Const = new thirdthird_part1(); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>var first_part2Const = new firstfirst_part2(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > first_part2Const +4 > = +5 > new +6 > firstfirst_part2 +7 > () +8 > ; +1->Emitted(3, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(3, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(3, 21) Source(2, 23) + SourceIndex(1) +4 >Emitted(3, 24) Source(2, 26) + SourceIndex(1) +5 >Emitted(3, 28) Source(2, 30) + SourceIndex(1) +6 >Emitted(3, 44) Source(2, 46) + SourceIndex(1) +7 >Emitted(3, 46) Source(2, 48) + SourceIndex(1) +8 >Emitted(3, 47) Source(2, 49) + SourceIndex(1) +--- +>>>console.log(f()); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1 > + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1 >Emitted(4, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(3, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(3, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(3, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(3, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(3, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(3, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(3, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var second_part1Const = new secondsecond_part1(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > second_part1Const +4 > = +5 > new +6 > secondsecond_part1 +7 > () +8 > ; +1->Emitted(8, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(2, 7) + SourceIndex(3) +3 >Emitted(8, 22) Source(2, 24) + SourceIndex(3) +4 >Emitted(8, 25) Source(2, 27) + SourceIndex(3) +5 >Emitted(8, 29) Source(2, 31) + SourceIndex(3) +6 >Emitted(8, 47) Source(2, 49) + SourceIndex(3) +7 >Emitted(8, 49) Source(2, 51) + SourceIndex(3) +8 >Emitted(8, 50) Source(2, 52) + SourceIndex(3) +--- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(9, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(7, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(7, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(13, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(10, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(7, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(7, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(8, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(8, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(12, 9) Source(9, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(9, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(9, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(9, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(9, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(9, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(9, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(9, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(14, 5) Source(12, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(12, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(12, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(12, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(13, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(7, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(7, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(7, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(7, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(13, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var third_part1Const = new thirdthird_part1(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > third_part1Const +4 > = +5 > new +6 > thirdthird_part1 +7 > () +8 > ; +1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(24, 5) Source(2, 7) + SourceIndex(5) +3 >Emitted(24, 21) Source(2, 23) + SourceIndex(5) +4 >Emitted(24, 24) Source(2, 26) + SourceIndex(5) +5 >Emitted(24, 28) Source(2, 30) + SourceIndex(5) +6 >Emitted(24, 44) Source(2, 46) + SourceIndex(5) +7 >Emitted(24, 46) Source(2, 48) + SourceIndex(5) +8 >Emitted(24, 47) Source(2, 49) + SourceIndex(5) +--- +>>>var c = new C(); +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1 > + > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1 >Emitted(25, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(25, 5) Source(3, 5) + SourceIndex(5) +3 >Emitted(25, 6) Source(3, 6) + SourceIndex(5) +4 >Emitted(25, 9) Source(3, 9) + SourceIndex(5) +5 >Emitted(25, 13) Source(3, 13) + SourceIndex(5) +6 >Emitted(25, 14) Source(3, 14) + SourceIndex(5) +7 >Emitted(25, 16) Source(3, 16) + SourceIndex(5) +8 >Emitted(25, 17) Source(3, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(26, 1) Source(4, 1) + SourceIndex(5) +2 >Emitted(26, 2) Source(4, 2) + SourceIndex(5) +3 >Emitted(26, 3) Source(4, 3) + SourceIndex(5) +4 >Emitted(26, 14) Source(4, 14) + SourceIndex(5) +5 >Emitted(26, 16) Source(4, 16) + SourceIndex(5) +6 >Emitted(26, 17) Source(4, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":493,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":157,"end":493,"kind":"text"}]},{"pos":493,"end":577,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":47,"end":101,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":103,"end":158,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":160,"end":367,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":160,"end":367,"kind":"text"}]},{"pos":367,"end":521,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":367,"end":521,"kind":"text"}]},{"pos":521,"end":591,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +var s = "Hola, world"; +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (157-493):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (157-493) +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (493-577) +var third_part1Const = new thirdthird_part1(); +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +reference: (0-45):: ../../tripleRef.d.ts +/// +---------------------------------------------------------------------- +reference: (47-101):: ../../../first/tripleRef.d.ts +/// +---------------------------------------------------------------------- +reference: (103-158):: ../../../second/tripleRef.d.ts +/// +---------------------------------------------------------------------- +prepend: (160-367):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (160-367) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare const first_part2Const: firstfirst_part2; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (367-521):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (367-521) +declare const second_part1Const: secondsecond_part1; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (521-591) +declare const third_part1Const: thirdthird_part1; +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 493, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 157, + "end": 493, + "kind": "text" + } + ] + }, + { + "pos": 493, + "end": 577, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 45, + "kind": "reference", + "data": "../../tripleRef.d.ts" + }, + { + "pos": 47, + "end": 101, + "kind": "reference", + "data": "../../../first/tripleRef.d.ts" + }, + { + "pos": 103, + "end": 158, + "kind": "reference", + "data": "../../../second/tripleRef.d.ts" + }, + { + "pos": 160, + "end": 367, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 160, + "end": 367, + "kind": "text" + } + ] + }, + { + "pos": 367, + "end": 521, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 367, + "end": 521, + "kind": "text" + } + ] + }, + { + "pos": 521, + "end": 591, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 952 +} + + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hola, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:07:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:07:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:07:00 AM] Building project '/src/first/tsconfig.json'... + +[12:07:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:07:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:07:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success +readFiles:: { + "/src/third/tsconfig.json": 1, + "/src/first/tsconfig.json": 1, + "/src/second/tsconfig.json": 1, + "/src/first/first_PART1.ts": 1, + "/src/first/first_part2.ts": 1, + "/src/first/tripleRef.d.ts": 1, + "/src/first/first_part3.ts": 1, + "/src/first/bin/first-output.d.ts": 1, + "/src/2/second-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.tsbuildinfo": 1, + "/src/third/thirdjs/output/third-output.js": 1, + "/src/third/thirdjs/output/third-output.js.map": 1, + "/src/third/thirdjs/output/third-output.d.ts": 1, + "/src/third/thirdjs/output/third-output.d.ts.map": 1, + "/src/first/bin/first-output.tsbuildinfo": 1, + "/src/first/bin/first-output.js": 1, + "/src/2/second-output.js": 1, + "/src/first/bin/first-output.js.map": 1, + "/src/2/second-output.js.map": 1, + "/src/2/second-output.d.ts": 1, + "/src/first/bin/first-output.d.ts.map": 1, + "/src/2/second-output.d.ts.map": 1 +} + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hola, world"; +console.log(s); +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>var first_part2Const = new firstfirst_part2(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > first_part2Const +4 > = +5 > new +6 > firstfirst_part2 +7 > () +8 > ; +1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(4, 21) Source(2, 23) + SourceIndex(1) +4 >Emitted(4, 24) Source(2, 26) + SourceIndex(1) +5 >Emitted(4, 28) Source(2, 30) + SourceIndex(1) +6 >Emitted(4, 44) Source(2, 46) + SourceIndex(1) +7 >Emitted(4, 46) Source(2, 48) + SourceIndex(1) +8 >Emitted(4, 47) Source(2, 49) + SourceIndex(1) +--- +>>>console.log(f()); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1 > + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1 >Emitted(5, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(3, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(3, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(3, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(3, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(3, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(3, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(3, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":174,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":42,"kind":"reference","data":"../tripleRef.d.ts"},{"pos":44,"end":251,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-174) +var s = "Hola, world"; +console.log(s); +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +reference: (0-42):: ../tripleRef.d.ts +/// +---------------------------------------------------------------------- +text: (44-251) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare const first_part2Const: firstfirst_part2; +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 174, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 42, + "kind": "reference", + "data": "../tripleRef.d.ts" + }, + { + "pos": 44, + "end": 251, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 318 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hola, world"; +console.log(s); +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var third_part1Const = new thirdthird_part1(); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hola, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hola, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 22) Source(5, 24) + SourceIndex(0) +6 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>var first_part2Const = new firstfirst_part2(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > first_part2Const +4 > = +5 > new +6 > firstfirst_part2 +7 > () +8 > ; +1->Emitted(4, 1) Source(2, 1) + SourceIndex(1) +2 >Emitted(4, 5) Source(2, 7) + SourceIndex(1) +3 >Emitted(4, 21) Source(2, 23) + SourceIndex(1) +4 >Emitted(4, 24) Source(2, 26) + SourceIndex(1) +5 >Emitted(4, 28) Source(2, 30) + SourceIndex(1) +6 >Emitted(4, 44) Source(2, 46) + SourceIndex(1) +7 >Emitted(4, 46) Source(2, 48) + SourceIndex(1) +8 >Emitted(4, 47) Source(2, 49) + SourceIndex(1) +--- +>>>console.log(f()); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1 > + > +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1 >Emitted(5, 1) Source(3, 1) + SourceIndex(1) +2 >Emitted(5, 8) Source(3, 8) + SourceIndex(1) +3 >Emitted(5, 9) Source(3, 9) + SourceIndex(1) +4 >Emitted(5, 12) Source(3, 12) + SourceIndex(1) +5 >Emitted(5, 13) Source(3, 13) + SourceIndex(1) +6 >Emitted(5, 14) Source(3, 14) + SourceIndex(1) +7 >Emitted(5, 16) Source(3, 16) + SourceIndex(1) +8 >Emitted(5, 17) Source(3, 17) + SourceIndex(1) +9 >Emitted(5, 18) Source(3, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(6, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(6, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(6, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(7, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(7, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(7, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(7, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(8, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var second_part1Const = new secondsecond_part1(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > second_part1Const +4 > = +5 > new +6 > secondsecond_part1 +7 > () +8 > ; +1->Emitted(9, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(2, 7) + SourceIndex(3) +3 >Emitted(9, 22) Source(2, 24) + SourceIndex(3) +4 >Emitted(9, 25) Source(2, 27) + SourceIndex(3) +5 >Emitted(9, 29) Source(2, 31) + SourceIndex(3) +6 >Emitted(9, 47) Source(2, 49) + SourceIndex(3) +7 >Emitted(9, 49) Source(2, 51) + SourceIndex(3) +8 >Emitted(9, 50) Source(2, 52) + SourceIndex(3) +--- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(10, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(10, 5) Source(7, 11) + SourceIndex(3) +3 >Emitted(10, 6) Source(7, 12) + SourceIndex(3) +4 >Emitted(10, 7) Source(13, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(11, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(11, 12) Source(7, 11) + SourceIndex(3) +3 >Emitted(11, 13) Source(7, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 14) Source(8, 14) + SourceIndex(3) +3 >Emitted(12, 15) Source(8, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(13, 9) Source(9, 9) + SourceIndex(3) +2 >Emitted(13, 16) Source(9, 16) + SourceIndex(3) +3 >Emitted(13, 17) Source(9, 17) + SourceIndex(3) +4 >Emitted(13, 20) Source(9, 20) + SourceIndex(3) +5 >Emitted(13, 21) Source(9, 21) + SourceIndex(3) +6 >Emitted(13, 30) Source(9, 30) + SourceIndex(3) +7 >Emitted(13, 31) Source(9, 31) + SourceIndex(3) +8 >Emitted(13, 32) Source(9, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(14, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(15, 5) Source(12, 5) + SourceIndex(3) +2 >Emitted(15, 6) Source(12, 6) + SourceIndex(3) +3 >Emitted(15, 8) Source(12, 8) + SourceIndex(3) +4 >Emitted(15, 9) Source(12, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(16, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(16, 2) Source(13, 2) + SourceIndex(3) +3 >Emitted(16, 4) Source(7, 11) + SourceIndex(3) +4 >Emitted(16, 5) Source(7, 12) + SourceIndex(3) +5 >Emitted(16, 10) Source(7, 11) + SourceIndex(3) +6 >Emitted(16, 11) Source(7, 12) + SourceIndex(3) +7 >Emitted(16, 19) Source(13, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(18, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(19, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(19, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(20, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(20, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(20, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(21, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(21, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(21, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(21, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(21, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(21, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(21, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(21, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(22, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(22, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(23, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(24, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(24, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(24, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(24, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var third_part1Const = new thirdthird_part1(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > third_part1Const +4 > = +5 > new +6 > thirdthird_part1 +7 > () +8 > ; +1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(25, 5) Source(2, 7) + SourceIndex(5) +3 >Emitted(25, 21) Source(2, 23) + SourceIndex(5) +4 >Emitted(25, 24) Source(2, 26) + SourceIndex(5) +5 >Emitted(25, 28) Source(2, 30) + SourceIndex(5) +6 >Emitted(25, 44) Source(2, 46) + SourceIndex(5) +7 >Emitted(25, 46) Source(2, 48) + SourceIndex(5) +8 >Emitted(25, 47) Source(2, 49) + SourceIndex(5) +--- +>>>var c = new C(); +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1 > + > +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1 >Emitted(26, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(26, 5) Source(3, 5) + SourceIndex(5) +3 >Emitted(26, 6) Source(3, 6) + SourceIndex(5) +4 >Emitted(26, 9) Source(3, 9) + SourceIndex(5) +5 >Emitted(26, 13) Source(3, 13) + SourceIndex(5) +6 >Emitted(26, 14) Source(3, 14) + SourceIndex(5) +7 >Emitted(26, 16) Source(3, 16) + SourceIndex(5) +8 >Emitted(26, 17) Source(3, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(27, 1) Source(4, 1) + SourceIndex(5) +2 >Emitted(27, 2) Source(4, 2) + SourceIndex(5) +3 >Emitted(27, 3) Source(4, 3) + SourceIndex(5) +4 >Emitted(27, 14) Source(4, 14) + SourceIndex(5) +5 >Emitted(27, 16) Source(4, 16) + SourceIndex(5) +6 >Emitted(27, 17) Source(4, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":174,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":174,"kind":"text"}]},{"pos":174,"end":510,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":174,"end":510,"kind":"text"}]},{"pos":510,"end":594,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":45,"kind":"reference","data":"../../tripleRef.d.ts"},{"pos":47,"end":101,"kind":"reference","data":"../../../first/tripleRef.d.ts"},{"pos":103,"end":158,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":160,"end":367,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":160,"end":367,"kind":"text"}]},{"pos":367,"end":521,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":367,"end":521,"kind":"text"}]},{"pos":521,"end":591,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-174):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-174) +var s = "Hola, world"; +console.log(s); +console.log(s); +var first_part2Const = new firstfirst_part2(); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (174-510):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (174-510) +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (510-594) +var third_part1Const = new thirdthird_part1(); +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +reference: (0-45):: ../../tripleRef.d.ts +/// +---------------------------------------------------------------------- +reference: (47-101):: ../../../first/tripleRef.d.ts +/// +---------------------------------------------------------------------- +reference: (103-158):: ../../../second/tripleRef.d.ts +/// +---------------------------------------------------------------------- +prepend: (160-367):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (160-367) +interface TheFirst { + none: any; +} +declare const s = "Hola, world"; +interface NoJsForHereEither { + none: any; +} +declare const first_part2Const: firstfirst_part2; +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (367-521):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (367-521) +declare const second_part1Const: secondsecond_part1; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (521-591) +declare const third_part1Const: thirdthird_part1; +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 174, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 174, + "kind": "text" + } + ] + }, + { + "pos": 174, + "end": 510, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 174, + "end": 510, + "kind": "text" + } + ] + }, + { + "pos": 510, + "end": 594, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 45, + "kind": "reference", + "data": "../../tripleRef.d.ts" + }, + { + "pos": 47, + "end": 101, + "kind": "reference", + "data": "../../../first/tripleRef.d.ts" + }, + { + "pos": 103, + "end": 158, + "kind": "reference", + "data": "../../../second/tripleRef.d.ts" + }, + { + "pos": 160, + "end": 367, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 160, + "end": 367, + "kind": "text" + } + ] + }, + { + "pos": 367, + "end": 521, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 367, + "end": 521, + "kind": "text" + } + ] + }, + { + "pos": 521, + "end": 591, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 952 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-one-project.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-one-project.js index 39a01830d5229..4b349e58efd95 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-one-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-one-project.js @@ -1998,3 +1998,998 @@ declare var c: C; "size": 800 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 252 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var second_part1Const = new secondsecond_part1(); +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^^^^ +6 > ^^^^^^^^^^^^^^^^^^ +7 > ^^ +8 > ^ +1->/// + > +2 >const +3 > second_part1Const +4 > = +5 > new +6 > secondsecond_part1 +7 > () +8 > ; +1->Emitted(8, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(2, 7) + SourceIndex(3) +3 >Emitted(8, 22) Source(2, 24) + SourceIndex(3) +4 >Emitted(8, 25) Source(2, 27) + SourceIndex(3) +5 >Emitted(8, 29) Source(2, 31) + SourceIndex(3) +6 >Emitted(8, 47) Source(2, 49) + SourceIndex(3) +7 >Emitted(8, 49) Source(2, 51) + SourceIndex(3) +8 >Emitted(8, 50) Source(2, 52) + SourceIndex(3) +--- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 > + >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(9, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(7, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(7, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(13, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(10, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(7, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(7, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(8, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(8, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(12, 9) Source(9, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(9, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(9, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(9, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(9, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(9, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(9, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(9, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(14, 5) Source(12, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(12, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(12, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(12, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(13, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(7, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(7, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(7, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(7, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(13, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":463,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":463,"kind":"text"}]},{"pos":463,"end":499,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":55,"kind":"reference","data":"../../../second/tripleRef.d.ts"},{"pos":57,"end":214,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":57,"end":214,"kind":"text"}]},{"pos":214,"end":368,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":214,"end":368,"kind":"text"}]},{"pos":368,"end":387,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (127-463):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (127-463) +var second_part1Const = new secondsecond_part1(); +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +text: (463-499) +var c = new C(); +c.doSomething(); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +reference: (0-55):: ../../../second/tripleRef.d.ts +/// +---------------------------------------------------------------------- +prepend: (57-214):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (57-214) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (214-368):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (214-368) +declare const second_part1Const: secondsecond_part1; +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +text: (368-387) +declare var c: C; + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 463, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 127, + "end": 463, + "kind": "text" + } + ] + }, + { + "pos": 463, + "end": 499, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 55, + "kind": "reference", + "data": "../../../second/tripleRef.d.ts" + }, + { + "pos": 57, + "end": 214, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 57, + "end": 214, + "kind": "text" + } + ] + }, + { + "pos": 214, + "end": 368, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 214, + "end": 368, + "kind": "text" + } + ] + }, + { + "pos": 368, + "end": 387, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 800 +} + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-uses-project-references.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-uses-project-references.js index 65847e2c3ff3c..c249e307de60f 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-uses-project-references.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-uses-project-references.js @@ -1704,3 +1704,798 @@ sourceFile:../../third_part1.ts --- >>>//# sourceMappingURL=third-output.js.map + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:04:00 AM] Building project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 252 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file written with same contents +//// [/src/third/thirdjs/output/third-output.d.ts.map] file written with same contents +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +var c = new C(); +c.doSomething(); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-source-files-are-empty-in-the-own-file.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-source-files-are-empty-in-the-own-file.js index 97207bdd2a7a7..f7272bccaf8cd 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-source-files-are-empty-in-the-own-file.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-source-files-are-empty-in-the-own-file.js @@ -1760,3 +1760,884 @@ declare class C { "size": 648 } + + +Change:: incremental-declaration-doesnt-change +Input:: +//// [/src/first/first_PART1.ts] +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); +console.log(s); + + + +Output:: +/lib/tsc --b /src/third --verbose +[12:04:00 AM] Projects in this build: + * src/first/tsconfig.json + * src/second/tsconfig.json + * src/third/tsconfig.json + +[12:04:00 AM] Project 'src/first/tsconfig.json' is out of date because oldest output 'src/first/bin/first-output.js' is older than newest input 'src/first/first_PART1.ts' + +[12:04:00 AM] Building project '/src/first/tsconfig.json'... + +[12:04:00 AM] Project 'src/second/tsconfig.json' is up to date because newest input 'src/second/second_part1.ts' is older than oldest output 'src/2/second-output.js' + +[12:04:00 AM] Project 'src/third/tsconfig.json' is out of date because output of its dependency 'src/first' has changed + +[12:04:00 AM] Updating output of project '/src/third/tsconfig.json'... + +[12:04:00 AM] Updating unchanged output timestamps of project '/src/third/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/first/bin/first-output.d.ts] file written with same contents +//// [/src/first/bin/first-output.d.ts.map] file written with same contents +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] file written with same contents +//// [/src/first/bin/first-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"..","sourceFiles":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"text"}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"text"}]}},"version":"FakeTSVersion"} + +//// [/src/first/bin/first-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +====================================================================== + +//// [/src/first/bin/first-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "..", + "sourceFiles": [ + "../first_PART1.ts", + "../first_part2.ts", + "../first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + } + }, + "version": "FakeTSVersion", + "size": 252 +} + +//// [/src/third/thirdjs/output/third-output.d.ts] file changed its modified time +//// [/src/third/thirdjs/output/third-output.d.ts.map] file changed its modified time +//// [/src/third/thirdjs/output/third-output.js] +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.js.map] +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +--- +>>>console.log(s); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1-> + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 8) Source(12, 8) + SourceIndex(0) +3 >Emitted(3, 9) Source(12, 9) + SourceIndex(0) +4 >Emitted(3, 12) Source(12, 12) + SourceIndex(0) +5 >Emitted(3, 13) Source(12, 13) + SourceIndex(0) +6 >Emitted(3, 14) Source(12, 14) + SourceIndex(0) +7 >Emitted(3, 15) Source(12, 15) + SourceIndex(0) +8 >Emitted(3, 16) Source(12, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^-> +1 > + > +2 >} +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo] +{"bundle":{"commonSourceDirectory":"../..","sourceFiles":["../../third_part1.ts"],"js":{"sections":[{"pos":0,"end":127,"kind":"prepend","data":"../../../first/bin/first-output.js","texts":[{"pos":0,"end":127,"kind":"text"}]},{"pos":127,"end":412,"kind":"prepend","data":"../../../2/second-output.js","texts":[{"pos":127,"end":412,"kind":"text"}]}]},"dts":{"sections":[{"pos":0,"end":157,"kind":"prepend","data":"../../../first/bin/first-output.d.ts","texts":[{"pos":0,"end":157,"kind":"text"}]},{"pos":157,"end":257,"kind":"prepend","data":"../../../2/second-output.d.ts","texts":[{"pos":157,"end":257,"kind":"text"}]}]}},"version":"FakeTSVersion"} + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-127):: ../../../first/bin/first-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (0-127) +var s = "Hello, world"; +console.log(s); +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +prepend: (127-412):: ../../../2/second-output.js texts:: 1 +>>-------------------------------------------------------------------- +text: (127-412) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-157):: ../../../first/bin/first-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +prepend: (157-257):: ../../../2/second-output.d.ts texts:: 1 +>>-------------------------------------------------------------------- +text: (157-257) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +====================================================================== + +//// [/src/third/thirdjs/output/third-output.tsbuildinfo.readable.baseline.txt] +{ + "bundle": { + "commonSourceDirectory": "../..", + "sourceFiles": [ + "../../third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 127, + "kind": "prepend", + "data": "../../../first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 127, + "kind": "text" + } + ] + }, + { + "pos": 127, + "end": 412, + "kind": "prepend", + "data": "../../../2/second-output.js", + "texts": [ + { + "pos": 127, + "end": 412, + "kind": "text" + } + ] + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "prepend", + "data": "../../../first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + } + ] + }, + { + "pos": 157, + "end": 257, + "kind": "prepend", + "data": "../../../2/second-output.d.ts", + "texts": [ + { + "pos": 157, + "end": 257, + "kind": "text" + } + ] + } + ] + } + }, + "version": "FakeTSVersion", + "size": 648 +} + diff --git a/tests/baselines/reference/tsbuild/$publicAPI/initial-build/build-with-custom-transformers.js b/tests/baselines/reference/tsbuild/publicAPI/build-with-custom-transformers.js similarity index 100% rename from tests/baselines/reference/tsbuild/$publicAPI/initial-build/build-with-custom-transformers.js rename to tests/baselines/reference/tsbuild/publicAPI/build-with-custom-transformers.js diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/Detects-type-only-changes-in-upstream-projects.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/Detects-type-only-changes-in-upstream-projects.js deleted file mode 100644 index e26841631a1e6..0000000000000 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/Detects-type-only-changes-in-upstream-projects.js +++ /dev/null @@ -1,101 +0,0 @@ -Input:: -//// [/src/core/index.ts] -export const someString: string = "WELCOME PLANET"; -export function leftPad(s: string, n: number) { return s + n; } -export function multiply(a: number, b: number) { return a * b; } - - - - -Output:: -/lib/tsc --b /src/tests --verbose -[12:08:00 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json - -[12:08:00 AM] Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/index.ts' - -[12:08:00 AM] Building project '/src/core/tsconfig.json'... - -[12:08:00 AM] Updating unchanged output timestamps of project '/src/core/tsconfig.json'... - -[12:08:00 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies - -[12:08:00 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... - -[12:08:00 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies - -[12:08:00 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/core/index.d.ts] file written with same contents -//// [/src/core/index.d.ts.map] -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAyB,CAAC;AACnD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} - -//// [/src/core/index.js] -"use strict"; -exports.__esModule = true; -exports.multiply = exports.leftPad = exports.someString = void 0; -exports.someString = "WELCOME PLANET"; -function leftPad(s, n) { return s + n; } -exports.leftPad = leftPad; -function multiply(a, b) { return a * b; } -exports.multiply = multiply; - - -//// [/src/core/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-2157245566-export const someString: string = \"WELCOME PLANET\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} - -//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./anothermodule.ts", - "./index.ts", - "./some_decl.d.ts" - ], - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "./anothermodule.ts": { - "version": "-2676574883-export const World = \"hello\";\r\n", - "signature": "-2676574883-export const World = \"hello\";\r\n" - }, - "./index.ts": { - "version": "-2157245566-export const someString: string = \"WELCOME PLANET\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", - "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" - }, - "./some_decl.d.ts": { - "version": "-9253692965-declare const dts: any;\r\n", - "signature": "-9253692965-declare const dts: any;\r\n", - "affectsGlobalScope": true - } - }, - "options": { - "composite": true, - "declaration": true, - "declarationMap": true, - "skipDefaultLibCheck": true - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./anothermodule.ts", - "./index.ts", - "./some_decl.d.ts" - ] - }, - "version": "FakeTSVersion", - "size": 1351 -} - -//// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time -//// [/src/tests/tsconfig.tsbuildinfo] file changed its modified time diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/rebuilds-when-tsconfig-changes.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/rebuilds-when-tsconfig-changes.js deleted file mode 100644 index f3f589c230510..0000000000000 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/rebuilds-when-tsconfig-changes.js +++ /dev/null @@ -1,122 +0,0 @@ -Input:: -//// [/src/tests/tsconfig.json] -{ - "references": [ - { "path": "../core" }, - { "path": "../logic" } - ], - "files": ["index.ts"], - "compilerOptions": { - "composite": true, "target": "es3", - "declaration": true, - "forceConsistentCasingInFileNames": true, - "skipDefaultLibCheck": true - } -} - - - -Output:: -/lib/tsc --b /src/tests --verbose -[12:20:00 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json - -[12:20:00 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than oldest output 'src/core/anotherModule.js' - -[12:20:00 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than oldest output 'src/logic/index.js' - -[12:20:00 AM] Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/tests/tsconfig.json' - -[12:20:00 AM] Building project '/src/tests/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/tests/index.d.ts] file written with same contents -//// [/src/tests/index.js] file written with same contents -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":0},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5]},"version":"FakeTSVersion"} - -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "../core/index.d.ts", - "../core/anothermodule.d.ts", - "../logic/index.d.ts", - "./index.ts" - ], - "fileNamesList": [ - [ - "../core/anothermodule.d.ts" - ], - [ - "../core/index.d.ts", - "../core/anothermodule.d.ts", - "../logic/index.d.ts" - ] - ], - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "../core/index.d.ts": { - "version": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map", - "signature": "-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map" - }, - "../core/anothermodule.d.ts": { - "version": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map", - "signature": "7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map" - }, - "../logic/index.d.ts": { - "version": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n", - "signature": "-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n" - }, - "./index.ts": { - "version": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n", - "signature": "12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n" - } - }, - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true, - "target": 0 - }, - "referencedMap": { - "../logic/index.d.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anothermodule.d.ts", - "../logic/index.d.ts" - ] - }, - "exportedModulesMap": { - "../logic/index.d.ts": [ - "../core/anothermodule.d.ts" - ], - "./index.ts": [ - "../core/index.d.ts", - "../core/anothermodule.d.ts", - "../logic/index.d.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "../core/anothermodule.d.ts", - "../core/index.d.ts", - "../logic/index.d.ts", - "./index.ts" - ] - }, - "version": "FakeTSVersion", - "size": 1589 -} - diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/Only-builds-the-leaf-node-project.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/Only-builds-the-leaf-node-project.js deleted file mode 100644 index 1557b5a1f8422..0000000000000 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/Only-builds-the-leaf-node-project.js +++ /dev/null @@ -1,70 +0,0 @@ -Input:: -//// [/src/tests/index.ts] -const m = 10; - - - -Output:: -/lib/tsc --b /src/tests --verbose -[12:04:00 AM] Projects in this build: - * src/core/tsconfig.json - * src/logic/tsconfig.json - * src/tests/tsconfig.json - -[12:04:00 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than oldest output 'src/core/anotherModule.js' - -[12:04:00 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than oldest output 'src/logic/index.js' - -[12:04:00 AM] Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/tests/index.ts' - -[12:04:00 AM] Building project '/src/tests/tsconfig.json'... - -exitCode:: ExitStatus.Success - - -//// [/src/tests/index.d.ts] -declare const m = 10; - - -//// [/src/tests/index.js] -var m = 10; - - -//// [/src/tests/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3708260210-const m = 10;","signature":"1073907769-declare const m = 10;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} - -//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] -{ - "program": { - "fileNames": [ - "../../lib/lib.d.ts", - "./index.ts" - ], - "fileInfos": { - "../../lib/lib.d.ts": { - "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true - }, - "./index.ts": { - "version": "3708260210-const m = 10;", - "signature": "1073907769-declare const m = 10;\r\n", - "affectsGlobalScope": true - } - }, - "options": { - "composite": true, - "declaration": true, - "skipDefaultLibCheck": true - }, - "referencedMap": {}, - "exportedModulesMap": {}, - "semanticDiagnosticsPerFile": [ - "../../lib/lib.d.ts", - "./index.ts" - ] - }, - "version": "FakeTSVersion", - "size": 849 -} - diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/indicates-that-it-would-skip-builds-during-a-dry-build.js b/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/indicates-that-it-would-skip-builds-during-a-dry-build.js deleted file mode 100644 index 74292ffd7a679..0000000000000 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-doesnt-change/indicates-that-it-would-skip-builds-during-a-dry-build.js +++ /dev/null @@ -1,14 +0,0 @@ -Input:: - - -Output:: -/lib/tsc --b /src/tests --dry -[12:12:00 AM] Project '/src/core/tsconfig.json' is up to date - -[12:12:00 AM] Project '/src/logic/tsconfig.json' is up to date - -[12:12:00 AM] Project '/src/tests/tsconfig.json' is up to date - -exitCode:: ExitStatus.Success - - diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/can-detect-when-and-what-to-rebuild.js b/tests/baselines/reference/tsbuild/sample1/initial-build/can-detect-when-and-what-to-rebuild.js index 344ccb3357982..aeb065309af62 100644 --- a/tests/baselines/reference/tsbuild/sample1/initial-build/can-detect-when-and-what-to-rebuild.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/can-detect-when-and-what-to-rebuild.js @@ -1,6 +1,18 @@ Input:: //// [/lib/lib.d.ts] - +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; //// [/src/core/anotherModule.d.ts] @@ -12,10 +24,14 @@ Input:: //// [/src/core/anotherModule.ts] +export const World = "hello"; //// [/src/core/index.d.ts] - +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map //// [/src/core/index.d.ts.map] @@ -24,9 +40,13 @@ Input:: //// [/src/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } //// [/src/core/some_decl.d.ts] +declare const dts: any; //// [/src/core/tsconfig.json] @@ -73,6 +93,8 @@ Input:: {"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4]},"version":"FakeTSVersion"} //// [/src/tests/index.d.ts] +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; //// [/src/tests/index.js] @@ -123,3 +145,261 @@ Output:: exitCode:: ExitStatus.Success + + +Change:: Only builds the leaf node project +Input:: +//// [/src/tests/index.ts] +const m = 10; + + + +Output:: +/lib/tsc --b /src/tests --verbose +[12:04:00 AM] Projects in this build: + * src/core/tsconfig.json + * src/logic/tsconfig.json + * src/tests/tsconfig.json + +[12:04:00 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/anotherModule.ts' is older than oldest output 'src/core/anotherModule.js' + +[12:04:00 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than oldest output 'src/logic/index.js' + +[12:04:00 AM] Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/tests/index.ts' + +[12:04:00 AM] Building project '/src/tests/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/tests/index.d.ts] +declare const m = 10; + + +//// [/src/tests/index.js] +var m = 10; + + +//// [/src/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3708260210-const m = 10;","signature":"1073907769-declare const m = 10;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} + +//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./index.ts" + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "3708260210-const m = 10;", + "signature": "1073907769-declare const m = 10;\r\n", + "affectsGlobalScope": true + } + }, + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./index.ts" + ] + }, + "version": "FakeTSVersion", + "size": 849 +} + + + +Change:: Detects type-only changes in upstream projects +Input:: +//// [/src/core/index.ts] +export const someString: string = "WELCOME PLANET"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + + + + +Output:: +/lib/tsc --b /src/tests --verbose +[12:07:00 AM] Projects in this build: + * src/core/tsconfig.json + * src/logic/tsconfig.json + * src/tests/tsconfig.json + +[12:07:00 AM] Project 'src/core/tsconfig.json' is out of date because oldest output 'src/core/anotherModule.js' is older than newest input 'src/core/index.ts' + +[12:07:00 AM] Building project '/src/core/tsconfig.json'... + +[12:07:00 AM] Updating unchanged output timestamps of project '/src/core/tsconfig.json'... + +[12:07:00 AM] Project 'src/logic/tsconfig.json' is up to date with .d.ts files from its dependencies + +[12:07:00 AM] Updating output timestamps of project '/src/logic/tsconfig.json'... + +[12:07:00 AM] Project 'src/tests/tsconfig.json' is up to date with .d.ts files from its dependencies + +[12:07:00 AM] Updating output timestamps of project '/src/tests/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/core/index.d.ts] file written with same contents +//// [/src/core/index.d.ts.map] +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAyB,CAAC;AACnD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"} + +//// [/src/core/index.js] +"use strict"; +exports.__esModule = true; +exports.multiply = exports.leftPad = exports.someString = void 0; +exports.someString = "WELCOME PLANET"; +function leftPad(s, n) { return s + n; } +exports.leftPad = leftPad; +function multiply(a, b) { return a * b; } +exports.multiply = multiply; + + +//// [/src/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n",{"version":"-2157245566-export const someString: string = \"WELCOME PLANET\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n","signature":"1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n"},{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} + +//// [/src/core/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./anothermodule.ts": { + "version": "-2676574883-export const World = \"hello\";\r\n", + "signature": "-2676574883-export const World = \"hello\";\r\n" + }, + "./index.ts": { + "version": "-2157245566-export const someString: string = \"WELCOME PLANET\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n", + "signature": "1874987148-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n" + }, + "./some_decl.d.ts": { + "version": "-9253692965-declare const dts: any;\r\n", + "signature": "-9253692965-declare const dts: any;\r\n", + "affectsGlobalScope": true + } + }, + "options": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./anothermodule.ts", + "./index.ts", + "./some_decl.d.ts" + ] + }, + "version": "FakeTSVersion", + "size": 1351 +} + +//// [/src/logic/tsconfig.tsbuildinfo] file changed its modified time +//// [/src/tests/index.d.ts] file changed its modified time +//// [/src/tests/tsconfig.tsbuildinfo] file changed its modified time + + +Change:: rebuilds when tsconfig changes +Input:: +//// [/src/tests/tsconfig.json] +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" } + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, "target": "es3", + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } +} + + + +Output:: +/lib/tsc --b /src/tests --verbose +[12:10:00 AM] Projects in this build: + * src/core/tsconfig.json + * src/logic/tsconfig.json + * src/tests/tsconfig.json + +[12:10:00 AM] Project 'src/core/tsconfig.json' is up to date because newest input 'src/core/index.ts' is older than oldest output 'src/core/anotherModule.js' + +[12:10:00 AM] Project 'src/logic/tsconfig.json' is up to date because newest input 'src/logic/index.ts' is older than oldest output 'src/logic/index.js' + +[12:10:00 AM] Project 'src/tests/tsconfig.json' is out of date because oldest output 'src/tests/index.js' is older than newest input 'src/tests/tsconfig.json' + +[12:10:00 AM] Building project '/src/tests/tsconfig.json'... + +exitCode:: ExitStatus.Success + + +//// [/src/tests/index.d.ts] file written with same contents +//// [/src/tests/index.js] file written with same contents +//// [/src/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},{"version":"3708260210-const m = 10;","signature":"1073907769-declare const m = 10;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"target":0},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2]},"version":"FakeTSVersion"} + +//// [/src/tests/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../lib/lib.d.ts", + "./index.ts" + ], + "fileInfos": { + "../../lib/lib.d.ts": { + "version": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "signature": "3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "3708260210-const m = 10;", + "signature": "1073907769-declare const m = 10;\r\n", + "affectsGlobalScope": true + } + }, + "options": { + "composite": true, + "declaration": true, + "skipDefaultLibCheck": true, + "target": 0 + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../lib/lib.d.ts", + "./index.ts" + ] + }, + "version": "FakeTSVersion", + "size": 860 +} + diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/indicates-that-it-would-skip-builds-during-a-dry-build.js b/tests/baselines/reference/tsbuild/sample1/initial-build/indicates-that-it-would-skip-builds-during-a-dry-build.js new file mode 100644 index 0000000000000..84b2e0f83ac79 --- /dev/null +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/indicates-that-it-would-skip-builds-during-a-dry-build.js @@ -0,0 +1,120 @@ +Input:: +//// [/lib/lib.d.ts] + + +//// [/src/core/anotherModule.d.ts] + + +//// [/src/core/anotherModule.d.ts.map] + + +//// [/src/core/anotherModule.js] + + +//// [/src/core/anotherModule.ts] + + +//// [/src/core/index.d.ts] + + +//// [/src/core/index.d.ts.map] + + +//// [/src/core/index.js] + + +//// [/src/core/index.ts] + + +//// [/src/core/some_decl.d.ts] + + +//// [/src/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } +} + +//// [/src/core/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","./anothermodule.ts","./index.ts","./some_decl.d.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-2676574883-export const World = \"hello\";\r\n","-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",{"version":"-9253692965-declare const dts: any;\r\n","affectsGlobalScope":true}],"options":{"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3,4]},"version":"FakeTSVersion"} + +//// [/src/logic/index.d.ts] + + +//// [/src/logic/index.js] + + +//// [/src/logic/index.js.map] + + +//// [/src/logic/index.ts] + + +//// [/src/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { "path": "../core" } + ] +} + + +//// [/src/logic/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-5786964698-import * as c from '../core/index';\r\nexport function getSecondsInDay() {\r\n return c.multiply(10, 15);\r\n}\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true,"sourceMap":true},"fileIdsList":[[2,3]],"referencedMap":[[4,1]],"exportedModulesMap":[[4,1]],"semanticDiagnosticsPerFile":[1,3,2,4]},"version":"FakeTSVersion"} + +//// [/src/tests/index.d.ts] + + +//// [/src/tests/index.js] + + +//// [/src/tests/index.ts] + + +//// [/src/tests/tsconfig.json] +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" } + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } +} + +//// [/src/tests/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../lib/lib.d.ts","../core/index.d.ts","../core/anothermodule.d.ts","../logic/index.d.ts","./index.ts"],"fileInfos":[{"version":"3858781397-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true},"-13851440507-export declare const someString: string;\r\nexport declare function leftPad(s: string, n: number): string;\r\nexport declare function multiply(a: number, b: number): number;\r\n//# sourceMappingURL=index.d.ts.map","7652028357-export declare const World = \"hello\";\r\n//# sourceMappingURL=anotherModule.d.ts.map","-6548680073-export declare function getSecondsInDay(): number;\r\nimport * as mod from '../core/anotherModule';\r\nexport declare const m: typeof mod;\r\n","12336236525-import * as c from '../core/index';\r\nimport * as logic from '../logic/index';\r\n\r\nc.leftPad(\"\", 10);\r\nlogic.getSecondsInDay();\r\n\r\nimport * as mod from '../core/anotherModule';\r\nexport const m = mod;\r\n"],"options":{"composite":true,"declaration":true,"skipDefaultLibCheck":true},"fileIdsList":[[3],[2,3,4]],"referencedMap":[[4,1],[5,2]],"exportedModulesMap":[[4,1],[5,2]],"semanticDiagnosticsPerFile":[1,3,2,4,5]},"version":"FakeTSVersion"} + +//// [/src/ui/index.ts] + + +//// [/src/ui/tsconfig.json] + + + + +Output:: +/lib/tsc --b /src/tests --dry +[12:00:00 AM] Project '/src/core/tsconfig.json' is up to date + +[12:00:00 AM] Project '/src/logic/tsconfig.json' is up to date + +[12:00:00 AM] Project '/src/tests/tsconfig.json' is up to date + +exitCode:: ExitStatus.Success + + diff --git a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/rebuilds-from-start-if-force-option-is-set.js b/tests/baselines/reference/tsbuild/sample1/initial-build/rebuilds-from-start-if-force-option-is-set.js similarity index 75% rename from tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/rebuilds-from-start-if-force-option-is-set.js rename to tests/baselines/reference/tsbuild/sample1/initial-build/rebuilds-from-start-if-force-option-is-set.js index 579d799c310bf..da09fdfc308a5 100644 --- a/tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/rebuilds-from-start-if-force-option-is-set.js +++ b/tests/baselines/reference/tsbuild/sample1/initial-build/rebuilds-from-start-if-force-option-is-set.js @@ -1,24 +1,170 @@ Input:: +//// [/lib/lib.d.ts] +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +declare const console: { log(msg: any): void; }; + +//// [/src/core/anotherModule.d.ts] +export declare const World = "hello"; +//# sourceMappingURL=anotherModule.d.ts.map + +//// [/src/core/anotherModule.d.ts.map] + + +//// [/src/core/anotherModule.js] + + +//// [/src/core/anotherModule.ts] +export const World = "hello"; + + +//// [/src/core/index.d.ts] +export declare const someString: string; +export declare function leftPad(s: string, n: number): string; +export declare function multiply(a: number, b: number): number; +//# sourceMappingURL=index.d.ts.map + +//// [/src/core/index.d.ts.map] + + +//// [/src/core/index.js] + + +//// [/src/core/index.ts] +export const someString: string = "HELLO WORLD"; +export function leftPad(s: string, n: number) { return s + n; } +export function multiply(a: number, b: number) { return a * b; } + + +//// [/src/core/some_decl.d.ts] +declare const dts: any; + + +//// [/src/core/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "declarationMap": true, + "skipDefaultLibCheck": true + } +} + +//// [/src/core/tsconfig.tsbuildinfo] + + +//// [/src/logic/index.d.ts] +export declare function getSecondsInDay(): number; +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + + +//// [/src/logic/index.js] + + +//// [/src/logic/index.js.map] + + +//// [/src/logic/index.ts] +import * as c from '../core/index'; +export function getSecondsInDay() { + return c.multiply(10, 15); +} +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/src/logic/tsconfig.json] +{ + "compilerOptions": { + "composite": true, + "declaration": true, + "sourceMap": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + }, + "references": [ + { "path": "../core" } + ] +} + + +//// [/src/logic/tsconfig.tsbuildinfo] + + +//// [/src/tests/index.d.ts] +import * as mod from '../core/anotherModule'; +export declare const m: typeof mod; + + +//// [/src/tests/index.js] + + +//// [/src/tests/index.ts] +import * as c from '../core/index'; +import * as logic from '../logic/index'; + +c.leftPad("", 10); +logic.getSecondsInDay(); + +import * as mod from '../core/anotherModule'; +export const m = mod; + + +//// [/src/tests/tsconfig.json] +{ + "references": [ + { "path": "../core" }, + { "path": "../logic" } + ], + "files": ["index.ts"], + "compilerOptions": { + "composite": true, + "declaration": true, + "forceConsistentCasingInFileNames": true, + "skipDefaultLibCheck": true + } +} + +//// [/src/tests/tsconfig.tsbuildinfo] + + +//// [/src/ui/index.ts] + + +//// [/src/ui/tsconfig.json] + + Output:: /lib/tsc --b /src/tests --verbose --force -[12:16:00 AM] Projects in this build: +[12:00:00 AM] Projects in this build: * src/core/tsconfig.json * src/logic/tsconfig.json * src/tests/tsconfig.json -[12:16:00 AM] Project 'src/core/tsconfig.json' is being forcibly rebuilt +[12:00:00 AM] Project 'src/core/tsconfig.json' is being forcibly rebuilt -[12:16:00 AM] Building project '/src/core/tsconfig.json'... +[12:00:00 AM] Building project '/src/core/tsconfig.json'... -[12:16:00 AM] Project 'src/logic/tsconfig.json' is being forcibly rebuilt +[12:00:00 AM] Project 'src/logic/tsconfig.json' is being forcibly rebuilt -[12:16:00 AM] Building project '/src/logic/tsconfig.json'... +[12:00:00 AM] Building project '/src/logic/tsconfig.json'... -[12:16:00 AM] Project 'src/tests/tsconfig.json' is being forcibly rebuilt +[12:00:00 AM] Project 'src/tests/tsconfig.json' is being forcibly rebuilt -[12:16:00 AM] Building project '/src/tests/tsconfig.json'... +[12:00:00 AM] Building project '/src/tests/tsconfig.json'... exitCode:: ExitStatus.Success From f63f0afa61966b93989cd4fd47d4fc3154e06ed2 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 5 Apr 2022 13:00:19 -0700 Subject: [PATCH 2/2] Some refactoring of baselines --- .../unittests/tsbuild/amdModulesWithOut.ts | 8 +- .../unittests/tsbuild/configFileErrors.ts | 7 +- .../tsbuild/containerOnlyReferenced.ts | 4 +- .../unittests/tsbuild/emitDeclarationOnly.ts | 15 +- src/testRunner/unittests/tsbuild/helpers.ts | 178 +++++------------- .../inferredTypeFromTransitiveModule.ts | 27 ++- .../tsbuild/javascriptProjectEmit.ts | 6 +- .../unittests/tsbuild/lateBoundSymbol.ts | 8 +- .../unittests/tsbuild/noEmitOnError.ts | 7 +- src/testRunner/unittests/tsbuild/outFile.ts | 32 ++-- .../unittests/tsbuild/outputPaths.ts | 19 +- .../unittests/tsbuild/resolveJsonModule.ts | 12 +- src/testRunner/unittests/tsbuild/sample.ts | 68 ++++--- src/testRunner/unittests/tsc/helpers.ts | 25 +-- src/testRunner/unittests/tsc/incremental.ts | 74 +++----- src/testRunner/unittests/tscWatch/helpers.ts | 4 +- .../modules-and-globals-mixed-in-amd.js | 0 .../multiple-emitHelpers-in-all-projects.js | 0 .../multiple-prologues-in-all-projects.js | 0 .../shebang-in-all-projects.js | 0 .../{initial-build => }/stripInternal.js | 0 .../triple-slash-refs-in-all-projects.js | 0 ...e-resolution-finds-original-source-file.js | 0 .../file-name-and-output-name-clashing.js | 0 .../reports-syntax-errors-in-config-file.js | 0 .../when-tsconfig-extends-the-missing-file.js | 0 ...nce-and-both-extend-config-with-include.js | 0 ...th-projects-extends-config-with-include.js | 0 ...ter-initial-build-doesnt-build-anything.js | 0 ...ugh-triple-slash-but-uses-no-references.js | 0 ...file-is-referenced-through-triple-slash.js | 0 ...d-inferred-type-from-referenced-project.js | 0 ...s-not-in-rootDir-at-the-import-location.js | 0 ...ts-the-error-about-it-by-stopping-build.js | 0 ...ng-setup-correctly-and-reports-no-error.js | 0 ...-emitDeclarationOnly-and-declarationMap.js | 0 ...import-project-with-emitDeclarationOnly.js | 0 ...mports-project-with-emitDeclarationOnly.js | 0 ...es-is-empty-and-references-are-provided.js | 0 ...is-empty-and-no-references-are-provided.js | 0 .../{initial-build => }/test-exit-code.js | 0 ...-transitive-module-with-isolatedModules.js | 0 .../inferred-type-from-transitive-module.js | 0 ...hange-in-signature-with-isolatedModules.js | 0 ...based-projects-and-emits-them-correctly.js | 0 ...ved-json-files-and-emits-them-correctly.js | 0 ...rojects-and-concatenates-them-correctly.js | 0 ...s-merged-and-contains-late-bound-member.js | 0 ...t-resolution-options-referenced-project.js | 0 ...fiers-across-projects-resolve-correctly.js | 0 ...zed-module-specifiers-resolve-correctly.js | 0 .../semantic-errors-with-incremental.js | 0 .../{initial-build => }/semantic-errors.js | 0 .../syntax-errors-with-incremental.js | 0 .../{initial-build => }/syntax-errors.js | 0 .../builds-till-project-specified.js | 0 .../{initial-build => }/clean-projects.js | 0 .../cleans-till-project-specified.js | 0 .../non-module-projects-without-prepend.js | 0 ...al-flag-changes-between-non-dts-changes.js | 0 ...-in-tsbuildinfo-doesnt-match-ts-version.js | 0 ...erated-when-incremental-is-set-to-false.js | 0 ...-buildInfo-absence-results-in-new-build.js | 0 .../baseline-sectioned-sourcemaps.js | 0 .../declarationMap-and-sourceMap-disabled.js | 0 .../emitHelpers-in-all-projects.js | 0 ...tHelpers-in-only-one-dependency-project.js | 0 .../{initial-build => }/explainFiles.js | 0 .../multiple-emitHelpers-in-all-projects.js | 0 ...tiple-emitHelpers-in-different-projects.js | 0 .../multiple-prologues-in-all-projects.js | 0 ...ultiple-prologues-in-different-projects.js | 0 .../shebang-in-all-projects.js | 0 .../shebang-in-only-one-dependency-project.js | 0 .../strict-in-all-projects.js | 0 .../strict-in-one-dependency.js | 0 ...hen-internal-is-inside-another-internal.js | 0 ...en-one-two-three-are-prepended-in-order.js | 0 .../stripInternal-jsdoc-style-comment.js | 0 ...en-one-two-three-are-prepended-in-order.js | 0 ...-jsdoc-style-with-comments-emit-enabled.js | 0 ...l-when-few-members-of-enum-are-internal.js | 0 ...en-one-two-three-are-prepended-in-order.js | 0 ...nal-when-prepend-is-completely-internal.js | 0 ...en-one-two-three-are-prepended-in-order.js | 0 ...tripInternal-with-comments-emit-enabled.js | 0 .../{initial-build => }/stripInternal.js | 0 .../triple-slash-refs-in-all-projects.js | 0 .../triple-slash-refs-in-one-project.js | 0 ...roject-is-not-composite-but-incremental.js | 0 ...t-composite-but-uses-project-references.js | 0 ...final-project-specifies-tsBuildInfoFile.js | 0 ...-source-files-are-empty-in-the-own-file.js | 0 ...otDir-is-not-specified-and-is-composite.js | 0 .../when-rootDir-is-not-specified.js | 0 ...iles-belong-to-rootDir-and-is-composite.js | 0 ...ied-but-not-all-files-belong-to-rootDir.js | 0 .../when-rootDir-is-specified.js | 0 .../{initial-build => }/builds-correctly.js | 0 ...nfo-file-because-no-rootDir-in-the-base.js | 0 ...reports-error-for-same-tsbuildinfo-file.js | 0 ...eports-no-error-when-tsbuildinfo-differ.js | 0 .../files-containing-json-file.js | 0 ...ting-json-module-from-project-reference.js | 0 .../{initial-build => }/include-and-files.js | 0 ...r-include-and-file-name-matches-ts-file.js | 0 ...nclude-of-json-along-with-other-include.js | 0 .../{initial-build => }/include-only.js | 0 .../{initial-build => }/sourcemap.js | 0 .../{initial-build => }/without-outDir.js | 0 .../always-builds-under-with-force-option.js | 0 ...t-in-not-build-order-doesnt-throw-error.js | 0 .../building-using-buildReferencedProject.js | 0 ...rectly-when-declarationDir-is-specified.js | 0 ...ilds-correctly-when-outDir-is-specified.js | 0 ...composite-or-doesnt-have-any-references.js | 0 .../builds-till-project-specified.js | 0 .../can-detect-when-and-what-to-rebuild.js | 0 ...t-in-not-build-order-doesnt-throw-error.js | 0 .../cleans-till-project-specified.js | 0 ...ojects-if-upstream-projects-have-errors.js | 0 ...vent-if-version-doesnt-match-ts-version.js | 0 ...does-not-write-any-files-in-a-dry-build.js | 0 .../{initial-build => }/explainFiles.js | 0 ...it-would-skip-builds-during-a-dry-build.js | 0 .../{initial-build => }/listEmittedFiles.js | 0 .../sample1/{initial-build => }/listFiles.js | 0 ...-in-tsbuildinfo-doesnt-match-ts-version.js | 0 ...uilds-from-start-if-force-option-is-set.js | 0 ...uilds-when-extended-config-file-changes.js | 0 .../removes-all-files-it-built.js | 0 .../sample1/{initial-build => }/sample.js | 0 .../when-declaration-option-changes.js | 0 .../when-esModuleInterop-option-changes.js | 0 .../when-logic-specifies-tsBuildInfoFile.js | 0 .../when-module-option-changes.js | 0 .../when-target-option-changes.js | 0 ...roject-uses-different-module-resolution.js | 0 .../{initial-build => }/builds-correctly.js | 0 ...de-resolution-with-external-module-name.js | 0 .../reports-syntax-errors-in-config-file.js | 0 .../demo/updates-with-bad-reference.js | 0 .../demo/updates-with-circular-reference.js | 0 ...for-changes-to-package-json-main-fields.js | 0 ...t-correctly-with-cts-and-mts-extensions.js | 0 ...se-different-module-resolution-settings.js | 0 ...n-no-files-are-emitted-with-incremental.js | 0 ...when-watching-when-no-files-are-emitted.js | 0 ...mit-any-files-on-error-with-incremental.js | 0 .../does-not-emit-any-files-on-error.js | 0 .../creates-solution-in-watch-mode.js | 0 .../incremental-updates-in-verbose-mode.js | 0 .../when-file-with-no-error-changes.js | 0 ...ing-errors-only-changed-file-is-emitted.js | 0 .../when-file-with-no-error-changes.js | 0 ...ixing-error-files-all-files-are-emitted.js | 0 .../when-preserveWatchOutput-is-not-used.js | 0 ...veWatchOutput-is-passed-on-command-line.js | 0 ...e-of-program-emit-with-outDir-specified.js | 0 ...r-recompilation-because-of-program-emit.js | 0 ...-references-watches-only-those-projects.js | 0 ...tches-config-files-that-are-not-present.js | 0 ...e-down-stream-project-and-then-fixes-it.js | 0 ...ncing-project-even-for-non-local-change.js | 0 ...le-is-added,-and-its-subsequent-updates.js | 0 ...hanges-and-reports-found-errors-message.js | 0 ...not-start-build-of-referencing-projects.js | 0 ...le-is-added,-and-its-subsequent-updates.js | 0 ...hanges-and-reports-found-errors-message.js | 0 ...not-start-build-of-referencing-projects.js | 0 ...project-with-extended-config-is-removed.js | 0 ...hen-noUnusedParameters-changes-to-false.js | 0 .../works-with-extended-source-files.js | 0 .../publicApi/with-custom-transformers.js | 0 .../reexport/Reports-errors-correctly.js | 0 ...e-projects-with-single-watcher-per-file.js | 0 .../same-file-in-multiple-projects.js | 0 ...and-line-but-has-tsbuild-info-in-config.js | 0 ...and-line-but-has-tsbuild-info-in-config.js | 0 ...setting-composite-false-on-command-line.js | 0 ...-setting-composite-null-on-command-line.js | 0 .../noEmit-changes-composite.js | 0 .../noEmit-changes-incremental-declaration.js | 0 .../noEmit-changes-incremental.js | 0 ...t-changes-with-initial-noEmit-composite.js | 0 ...-initial-noEmit-incremental-declaration.js | 0 ...changes-with-initial-noEmit-incremental.js | 0 .../serializing-error-chains.js | 0 ...ault-lib-that-augments-the-global-scope.js | 0 ...le-is-added,-the-signatures-are-updated.js | 0 ...file-is-added-to-the-referenced-project.js | 0 ...g-filename-for-buildinfo-on-commandline.js | 0 .../when-passing-rootDir-from-commandline.js | 0 ...when-passing-rootDir-is-in-the-tsconfig.js | 0 .../when-project-has-strict-true.js | 0 .../with-noEmitOnError-semantic-errors.js | 0 .../with-noEmitOnError-syntax-errors.js | 0 .../with-only-dts-files.js | 0 .../combined-with-watch.js | 0 .../{initial-build => }/loose-file.js | 0 ...ject-contains-invalid-project-reference.js | 0 ...eferences-composite-project-with-noEmit.js | 0 ...ypes-found-doesn't-crash-under---strict.js | 0 ...th-no-backing-types-found-doesn't-crash.js | 0 ...does-not-add-color-when-NO_COLOR-is-set.js | 0 ...-when-host-can't-provide-terminal-width.js | 0 ...tatus.DiagnosticsPresent_OutputsSkipped.js | 0 207 files changed, 181 insertions(+), 313 deletions(-) rename tests/baselines/reference/tsbuild/amdModulesWithOut/{initial-build => }/modules-and-globals-mixed-in-amd.js (100%) rename tests/baselines/reference/tsbuild/amdModulesWithOut/{initial-build => }/multiple-emitHelpers-in-all-projects.js (100%) rename tests/baselines/reference/tsbuild/amdModulesWithOut/{initial-build => }/multiple-prologues-in-all-projects.js (100%) rename tests/baselines/reference/tsbuild/amdModulesWithOut/{initial-build => }/shebang-in-all-projects.js (100%) rename tests/baselines/reference/tsbuild/amdModulesWithOut/{initial-build => }/stripInternal.js (100%) rename tests/baselines/reference/tsbuild/amdModulesWithOut/{initial-build => }/triple-slash-refs-in-all-projects.js (100%) rename tests/baselines/reference/tsbuild/amdModulesWithOut/{initial-build => }/when-the-module-resolution-finds-original-source-file.js (100%) rename tests/baselines/reference/tsbuild/clean/{initial-build => }/file-name-and-output-name-clashing.js (100%) rename tests/baselines/reference/tsbuild/configFileErrors/{initial-build => }/reports-syntax-errors-in-config-file.js (100%) rename tests/baselines/reference/tsbuild/configFileErrors/{initial-build => }/when-tsconfig-extends-the-missing-file.js (100%) rename tests/baselines/reference/tsbuild/configFileExtends/{initial-build => }/when-building-project-uses-reference-and-both-extend-config-with-include.js (100%) rename tests/baselines/reference/tsbuild/configFileExtends/{initial-build => }/when-building-solution-with-projects-extends-config-with-include.js (100%) rename tests/baselines/reference/tsbuild/containerOnlyReferenced/{initial-build => }/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js (100%) rename tests/baselines/reference/tsbuild/declarationEmit/{initial-build => }/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js (100%) rename tests/baselines/reference/tsbuild/declarationEmit/{initial-build => }/when-declaration-file-is-referenced-through-triple-slash.js (100%) rename tests/baselines/reference/tsbuild/declarationEmit/{initial-build => }/when-declaration-file-used-inferred-type-from-referenced-project.js (100%) rename tests/baselines/reference/tsbuild/demo/{initial-build => }/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js (100%) rename tests/baselines/reference/tsbuild/demo/{initial-build => }/in-circular-branch-reports-the-error-about-it-by-stopping-build.js (100%) rename tests/baselines/reference/tsbuild/demo/{initial-build => }/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js (100%) rename tests/baselines/reference/tsbuild/emitDeclarationOnly/{initial-build => }/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js (100%) rename tests/baselines/reference/tsbuild/emitDeclarationOnly/{initial-build => }/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js (100%) rename tests/baselines/reference/tsbuild/emitDeclarationOnly/{initial-build => }/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js (100%) rename tests/baselines/reference/tsbuild/emptyFiles/{initial-build => }/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js (100%) rename tests/baselines/reference/tsbuild/emptyFiles/{initial-build => }/has-empty-files-diagnostic-when-files-is-empty-and-no-references-are-provided.js (100%) rename tests/baselines/reference/tsbuild/exitCodeOnBogusFile/{initial-build => }/test-exit-code.js (100%) rename tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/{initial-build => }/inferred-type-from-transitive-module-with-isolatedModules.js (100%) rename tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/{initial-build => }/inferred-type-from-transitive-module.js (100%) rename tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/{initial-build => }/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js (100%) rename tests/baselines/reference/tsbuild/javascriptProjectEmit/{initial-build => }/loads-js-based-projects-and-emits-them-correctly.js (100%) rename tests/baselines/reference/tsbuild/javascriptProjectEmit/{initial-build => }/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js (100%) rename tests/baselines/reference/tsbuild/javascriptProjectEmit/{initial-build => }/modifies-outfile-js-projects-and-concatenates-them-correctly.js (100%) rename tests/baselines/reference/tsbuild/lateBoundSymbol/{initial-build => }/interface-is-merged-and-contains-late-bound-member.js (100%) rename tests/baselines/reference/tsbuild/moduleResolution/{initial-build => }/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js (100%) rename tests/baselines/reference/tsbuild/moduleSpecifiers/{initial-build => }/synthesized-module-specifiers-across-projects-resolve-correctly.js (100%) rename tests/baselines/reference/tsbuild/moduleSpecifiers/{initial-build => }/synthesized-module-specifiers-resolve-correctly.js (100%) rename tests/baselines/reference/tsbuild/noEmitOnError/{initial-build => }/semantic-errors-with-incremental.js (100%) rename tests/baselines/reference/tsbuild/noEmitOnError/{initial-build => }/semantic-errors.js (100%) rename tests/baselines/reference/tsbuild/noEmitOnError/{initial-build => }/syntax-errors-with-incremental.js (100%) rename tests/baselines/reference/tsbuild/noEmitOnError/{initial-build => }/syntax-errors.js (100%) rename tests/baselines/reference/tsbuild/outFile/{initial-build => }/builds-till-project-specified.js (100%) rename tests/baselines/reference/tsbuild/outFile/{initial-build => }/clean-projects.js (100%) rename tests/baselines/reference/tsbuild/outFile/{initial-build => }/cleans-till-project-specified.js (100%) rename tests/baselines/reference/tsbuild/outFile/{initial-build => }/non-module-projects-without-prepend.js (100%) rename tests/baselines/reference/tsbuild/outFile/{initial-build => }/rebuilds-completely-when-command-line-incremental-flag-changes-between-non-dts-changes.js (100%) rename tests/baselines/reference/tsbuild/outFile/{initial-build => }/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js (100%) rename tests/baselines/reference/tsbuild/outFile/{initial-build => }/tsbuildinfo-is-not-generated-when-incremental-is-set-to-false.js (100%) rename tests/baselines/reference/tsbuild/outFile/{initial-build => }/verify-buildInfo-absence-results-in-new-build.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/baseline-sectioned-sourcemaps.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/declarationMap-and-sourceMap-disabled.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/emitHelpers-in-all-projects.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/emitHelpers-in-only-one-dependency-project.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/explainFiles.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/multiple-emitHelpers-in-all-projects.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/multiple-emitHelpers-in-different-projects.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/multiple-prologues-in-all-projects.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/multiple-prologues-in-different-projects.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/shebang-in-all-projects.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/shebang-in-only-one-dependency-project.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/strict-in-all-projects.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/strict-in-one-dependency.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/stripInternal-baseline-when-internal-is-inside-another-internal.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/stripInternal-jsdoc-style-comment.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/stripInternal-jsdoc-style-with-comments-emit-enabled.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/stripInternal-when-few-members-of-enum-are-internal.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/stripInternal-when-one-two-three-are-prepended-in-order.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/stripInternal-when-prepend-is-completely-internal.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/stripInternal-with-comments-emit-enabled.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/stripInternal.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/triple-slash-refs-in-all-projects.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/triple-slash-refs-in-one-project.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/when-final-project-is-not-composite-but-incremental.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/when-final-project-is-not-composite-but-uses-project-references.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/when-final-project-specifies-tsBuildInfoFile.js (100%) rename tests/baselines/reference/tsbuild/outfile-concat/{initial-build => }/when-source-files-are-empty-in-the-own-file.js (100%) rename tests/baselines/reference/tsbuild/outputPaths/{initial-build => }/when-rootDir-is-not-specified-and-is-composite.js (100%) rename tests/baselines/reference/tsbuild/outputPaths/{initial-build => }/when-rootDir-is-not-specified.js (100%) rename tests/baselines/reference/tsbuild/outputPaths/{initial-build => }/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js (100%) rename tests/baselines/reference/tsbuild/outputPaths/{initial-build => }/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js (100%) rename tests/baselines/reference/tsbuild/outputPaths/{initial-build => }/when-rootDir-is-specified.js (100%) rename tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/{initial-build => }/builds-correctly.js (100%) rename tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/{initial-build => }/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js (100%) rename tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/{initial-build => }/reports-error-for-same-tsbuildinfo-file.js (100%) rename tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/{initial-build => }/reports-no-error-when-tsbuildinfo-differ.js (100%) rename tests/baselines/reference/tsbuild/resolveJsonModule/{initial-build => }/files-containing-json-file.js (100%) rename tests/baselines/reference/tsbuild/resolveJsonModule/{initial-build => }/importing-json-module-from-project-reference.js (100%) rename tests/baselines/reference/tsbuild/resolveJsonModule/{initial-build => }/include-and-files.js (100%) rename tests/baselines/reference/tsbuild/resolveJsonModule/{initial-build => }/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js (100%) rename tests/baselines/reference/tsbuild/resolveJsonModule/{initial-build => }/include-of-json-along-with-other-include.js (100%) rename tests/baselines/reference/tsbuild/resolveJsonModule/{initial-build => }/include-only.js (100%) rename tests/baselines/reference/tsbuild/resolveJsonModule/{initial-build => }/sourcemap.js (100%) rename tests/baselines/reference/tsbuild/resolveJsonModule/{initial-build => }/without-outDir.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/always-builds-under-with-force-option.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/building-project-in-not-build-order-doesnt-throw-error.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/building-using-buildReferencedProject.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/builds-correctly-when-declarationDir-is-specified.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/builds-correctly-when-outDir-is-specified.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/builds-till-project-specified.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/can-detect-when-and-what-to-rebuild.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/cleaning-project-in-not-build-order-doesnt-throw-error.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/cleans-till-project-specified.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/does-not-build-downstream-projects-if-upstream-projects-have-errors.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/does-not-rebuild-if-there-is-no-program-and-bundle-in-the-ts-build-info-event-if-version-doesnt-match-ts-version.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/does-not-write-any-files-in-a-dry-build.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/explainFiles.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/indicates-that-it-would-skip-builds-during-a-dry-build.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/listEmittedFiles.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/listFiles.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/rebuilds-from-start-if-force-option-is-set.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/rebuilds-when-extended-config-file-changes.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/removes-all-files-it-built.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/sample.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/when-declaration-option-changes.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/when-esModuleInterop-option-changes.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/when-logic-specifies-tsBuildInfoFile.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/when-module-option-changes.js (100%) rename tests/baselines/reference/tsbuild/sample1/{initial-build => }/when-target-option-changes.js (100%) rename tests/baselines/reference/tsbuild/transitiveReferences/{initial-build => }/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js (100%) rename tests/baselines/reference/tsbuild/transitiveReferences/{initial-build => }/builds-correctly.js (100%) rename tests/baselines/reference/tsbuild/transitiveReferences/{initial-build => }/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/configFileErrors/reports-syntax-errors-in-config-file.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/demo/updates-with-bad-reference.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/demo/updates-with-circular-reference.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/noEmitOnError/does-not-emit-any-files-on-error.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/creates-solution-in-watch-mode.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/incremental-updates-in-verbose-mode.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/verify-building-references-watches-only-those-projects.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/watches-config-files-that-are-not-present.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/works-when-noUnusedParameters-changes-to-false.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/programUpdates/works-with-extended-source-files.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/publicApi/with-custom-transformers.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/reexport/Reports-errors-correctly.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js (100%) rename tests/baselines/reference/{tsbuild/watchMode => tsbuildWatch}/watchEnvironment/same-file-in-multiple-projects.js (100%) rename tests/baselines/reference/tsc/composite/{initial-build => }/when-setting-composite-false-and-tsbuildinfo-as-null-on-command-line-but-has-tsbuild-info-in-config.js (100%) rename tests/baselines/reference/tsc/composite/{initial-build => }/when-setting-composite-false-on-command-line-but-has-tsbuild-info-in-config.js (100%) rename tests/baselines/reference/tsc/composite/{initial-build => }/when-setting-composite-false-on-command-line.js (100%) rename tests/baselines/reference/tsc/composite/{initial-build => }/when-setting-composite-null-on-command-line.js (100%) rename tests/baselines/reference/tsc/incremental/{initial-build => }/noEmit-changes-composite.js (100%) rename tests/baselines/reference/tsc/incremental/{initial-build => }/noEmit-changes-incremental-declaration.js (100%) rename tests/baselines/reference/tsc/incremental/{initial-build => }/noEmit-changes-incremental.js (100%) rename tests/baselines/reference/tsc/incremental/{initial-build => }/noEmit-changes-with-initial-noEmit-composite.js (100%) rename tests/baselines/reference/tsc/incremental/{initial-build => }/noEmit-changes-with-initial-noEmit-incremental-declaration.js (100%) rename tests/baselines/reference/tsc/incremental/{initial-build => }/noEmit-changes-with-initial-noEmit-incremental.js (100%) rename tests/baselines/reference/tsc/incremental/{initial-build => }/serializing-error-chains.js (100%) rename tests/baselines/reference/tsc/incremental/{initial-build => }/ts-file-with-no-default-lib-that-augments-the-global-scope.js (100%) rename tests/baselines/reference/tsc/incremental/{initial-build => }/when-global-file-is-added,-the-signatures-are-updated.js (100%) rename tests/baselines/reference/tsc/incremental/{initial-build => }/when-new-file-is-added-to-the-referenced-project.js (100%) rename tests/baselines/reference/tsc/incremental/{initial-build => }/when-passing-filename-for-buildinfo-on-commandline.js (100%) rename tests/baselines/reference/tsc/incremental/{initial-build => }/when-passing-rootDir-from-commandline.js (100%) rename tests/baselines/reference/tsc/incremental/{initial-build => }/when-passing-rootDir-is-in-the-tsconfig.js (100%) rename tests/baselines/reference/tsc/incremental/{initial-build => }/when-project-has-strict-true.js (100%) rename tests/baselines/reference/tsc/incremental/{initial-build => }/with-noEmitOnError-semantic-errors.js (100%) rename tests/baselines/reference/tsc/incremental/{initial-build => }/with-noEmitOnError-syntax-errors.js (100%) rename tests/baselines/reference/tsc/incremental/{initial-build => }/with-only-dts-files.js (100%) rename tests/baselines/reference/tsc/listFilesOnly/{initial-build => }/combined-with-watch.js (100%) rename tests/baselines/reference/tsc/listFilesOnly/{initial-build => }/loose-file.js (100%) rename tests/baselines/reference/tsc/projectReferences/{initial-build => }/when-project-contains-invalid-project-reference.js (100%) rename tests/baselines/reference/tsc/projectReferences/{initial-build => }/when-project-references-composite-project-with-noEmit.js (100%) rename tests/baselines/reference/tsc/react-jsx-emit-mode/{initial-build => }/with-no-backing-types-found-doesn't-crash-under---strict.js (100%) rename tests/baselines/reference/tsc/react-jsx-emit-mode/{initial-build => }/with-no-backing-types-found-doesn't-crash.js (100%) rename tests/baselines/reference/tsc/runWithoutArgs/{initial-build => }/does-not-add-color-when-NO_COLOR-is-set.js (100%) rename tests/baselines/reference/tsc/runWithoutArgs/{initial-build => }/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-can't-provide-terminal-width.js (100%) rename tests/baselines/reference/tsc/runWithoutArgs/{initial-build => }/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js (100%) diff --git a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts index 16252917a8b12..3e3a81491b127 100644 --- a/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts +++ b/src/testRunner/unittests/tsbuild/amdModulesWithOut.ts @@ -19,20 +19,20 @@ namespace ts { modifyFs, modifyAgainFs }: VerifyOutFileScenarioInput) { - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "amdModulesWithOut", subScenario, fs: () => outFileFs, commandLineArgs: ["--b", "/src/app", "--verbose"], baselineSourceMap: true, modifyFs, - incrementalScenarios: [ + edits: [ { - buildKind: BuildKind.IncrementalDtsUnchanged, + subScenario: "incremental-declaration-doesnt-change", modifyFs: fs => appendText(fs, "/src/lib/file1.ts", "console.log(x);") }, ...(modifyAgainFs ? [{ - buildKind: BuildKind.IncrementalHeadersChange, + subScenario: "incremental-headers-change-without-dts-changes", modifyFs: modifyAgainFs }] : emptyArray), ] diff --git a/src/testRunner/unittests/tsbuild/configFileErrors.ts b/src/testRunner/unittests/tsbuild/configFileErrors.ts index b4defb331be00..594c8e07cadd8 100644 --- a/src/testRunner/unittests/tsbuild/configFileErrors.ts +++ b/src/testRunner/unittests/tsbuild/configFileErrors.ts @@ -9,7 +9,7 @@ namespace ts { }); describe("unittests:: tsbuild:: configFileErrors:: reports syntax errors in config file", () => { - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "configFileErrors", subScenario: "reports syntax errors in config file", fs: () => loadProjectFromFiles({ @@ -27,21 +27,18 @@ namespace ts { }` }), commandLineArgs: ["--b", "/src/tsconfig.json"], - incrementalScenarios: [ + edits: [ { - buildKind: BuildKind.IncrementalDtsUnchanged, modifyFs: fs => replaceText(fs, "/src/tsconfig.json", ",", `, "declaration": true,`), subScenario: "reports syntax errors after change to config file" }, { - buildKind: BuildKind.IncrementalDtsUnchanged, modifyFs: fs => appendText(fs, "/src/a.ts", "export function fooBar() { }"), subScenario: "reports syntax errors after change to ts file" }, noChangeRun, { - buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => fs.writeFileSync( "/src/tsconfig.json", JSON.stringify({ diff --git a/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts b/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts index 8ccfbe5fe4742..e9eacf1fa657c 100644 --- a/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts +++ b/src/testRunner/unittests/tsbuild/containerOnlyReferenced.ts @@ -1,11 +1,11 @@ namespace ts { describe("unittests:: tsbuild:: when containerOnly project is referenced", () => { - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "containerOnlyReferenced", subScenario: "verify that subsequent builds after initial build doesnt build anything", fs: () => loadProjectFromDisk("tests/projects/containerOnlyReferenced"), commandLineArgs: ["--b", "/src", "--verbose"], - incrementalScenarios: noChangeOnlyRuns + edits: noChangeOnlyRuns }); }); } diff --git a/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts b/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts index c673cd11bcd6a..9994b24d32c2a 100644 --- a/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts +++ b/src/testRunner/unittests/tsbuild/emitDeclarationOnly.ts @@ -9,7 +9,7 @@ namespace ts { }); function verifyEmitDeclarationOnly(disableMap?: true) { - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ subScenario: `only dts output in circular import project with emitDeclarationOnly${disableMap ? "" : " and declarationMap"}`, fs: () => projFs, scenario: "emitDeclarationOnly", @@ -17,8 +17,8 @@ namespace ts { modifyFs: disableMap ? (fs => replaceText(fs, "/src/tsconfig.json", `"declarationMap": true,`, "")) : undefined, - incrementalScenarios: [{ - buildKind: BuildKind.IncrementalDtsChange, + edits: [{ + subScenario: "incremental-declaration-changes", modifyFs: fs => replaceText(fs, "/src/src/a.ts", "b: B;", "b: B; foo: any;"), }], }); @@ -26,7 +26,7 @@ namespace ts { verifyEmitDeclarationOnly(); verifyEmitDeclarationOnly(/*disableMap*/ true); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ subScenario: `only dts output in non circular imports project with emitDeclarationOnly`, fs: () => projFs, scenario: "emitDeclarationOnly", @@ -35,17 +35,16 @@ namespace ts { fs.rimrafSync("/src/src/index.ts"); replaceText(fs, "/src/src/a.ts", `import { B } from "./b";`, `export class B { prop = "hello"; }`); }, - incrementalScenarios: [ + edits: [ { - buildKind: BuildKind.IncrementalDtsUnchanged, + subScenario: "incremental-declaration-doesnt-change", modifyFs: fs => replaceText(fs, "/src/src/a.ts", "export interface A {", `class C { } export interface A {`), }, { - buildKind: BuildKind.IncrementalDtsChange, + subScenario: "incremental-declaration-changes", modifyFs: fs => replaceText(fs, "/src/src/a.ts", "b: B;", "b: B; foo: any;"), - }, ], }); diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index a42a7437ddd45..fdc3b3e064843 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -331,21 +331,22 @@ interface Symbol { (originalWriteFile || sys.writeFile).call(sys, `${buildInfoPath}.baseline.txt`, text); } - interface VerifyIncrementalCorrectness { + interface VerifyTscEditCorrectnessInput { scenario: TestTscCompile["scenario"]; commandLineArgs: TestTscCompile["commandLineArgs"]; modifyFs: TestTscCompile["modifyFs"]; - incrementalModifyFs: TscIncremental["modifyFs"]; + editFs: TestTscEdit["modifyFs"]; tick: () => void; baseFs: vfs.FileSystem; newSys: TscCompileSystem; - cleanBuildDiscrepancies: TscIncremental["cleanBuildDiscrepancies"]; + cleanBuildDiscrepancies: TestTscEdit["cleanBuildDiscrepancies"]; } - function verifyIncrementalCorrectness(input: () => VerifyIncrementalCorrectness, index: number, subScenario: TestTscCompile["subScenario"]) { - it(`Verify emit output file text is same when built clean for incremental scenario at:: ${index} ${subScenario}`, () => { + /** Verify that emit is same as clean build vs building after edit */ + function verifyTscEditCorrectness(input: () => VerifyTscEditCorrectnessInput, index: number, subScenario: TestTscCompile["subScenario"]) { + it(`Verify emit output file text is same when built clean for incremental edit scenario at:: ${index} ${subScenario}`, () => { const { scenario, commandLineArgs, cleanBuildDiscrepancies, - modifyFs, incrementalModifyFs, + modifyFs, editFs, tick, baseFs, newSys } = input(); const sys = testTscCompile({ @@ -356,7 +357,7 @@ interface Symbol { modifyFs: fs => { tick(); if (modifyFs) modifyFs(fs); - incrementalModifyFs(fs); + editFs(fs); }, disableUseFileVersionAsSignature: true, }); @@ -498,136 +499,45 @@ interface Symbol { CleanFilePresent, } - export interface TscIncremental { - buildKind: BuildKind; + export interface TestTscEdit { modifyFs: (fs: vfs.FileSystem) => void; - subScenario?: string; + subScenario: string; commandLineArgs?: readonly string[]; cleanBuildDiscrepancies?: () => ESMap; } - export interface VerifyTsBuildInput extends VerifyTsBuildInputWorker { + export interface VerifyTscWithEditsInput extends VerifyTscWithEditsWorkerInput { baselineIncremental?: boolean; } - - export function verifyTscIncrementalEdits(input: VerifyTsBuildInput) { - verifyTscIncrementalEditsWorker(input); - if (input.baselineIncremental) { - verifyTscIncrementalEditsWorker({ - ...input, - subScenario: `${input.subScenario} with incremental`, - commandLineArgs: [...input.commandLineArgs, "--incremental"], - }); - } - } - - export interface VerifyTsBuildInputWorker extends TestTscCompile { - incrementalScenarios: TscIncremental[]; - } - function verifyTscIncrementalEditsWorker({ - subScenario, fs, scenario, commandLineArgs, - baselineSourceMap, modifyFs, baselineReadFileCalls, baselinePrograms, - incrementalScenarios - }: VerifyTsBuildInputWorker) { - describe(`tsc ${commandLineArgs.join(" ")} ${scenario}:: ${subScenario}`, () => { - let tick: () => void; - let sys: TscCompileSystem; - let baseFs: vfs.FileSystem; - before(() => { - ({ fs: baseFs, tick } = getFsWithTime(fs())); - sys = testTscCompile({ - scenario, - subScenario, - fs: () => baseFs.makeReadonly(), - commandLineArgs, - modifyFs: fs => { - if (modifyFs) modifyFs(fs); - tick(); - }, - baselineSourceMap, - baselineReadFileCalls, - baselinePrograms - }); - Debug.assert(!!incrementalScenarios.length, `${scenario}/${subScenario}:: No incremental scenarios, you probably want to use verifyTsc instead.`); - }); - after(() => { - baseFs = undefined!; - sys = undefined!; - tick = undefined!; - }); - describe("initialBuild", () => { - verifyTscBaseline(() => sys); - }); - - incrementalScenarios.forEach(({ - buildKind, - modifyFs: incrementalModifyFs, - subScenario: incrementalSubScenario, - commandLineArgs: incrementalCommandLineArgs, - cleanBuildDiscrepancies, - }, index) => { - describe(incrementalSubScenario || buildKind, () => { - let newSys: TscCompileSystem; - before(() => { - Debug.assert(buildKind !== BuildKind.Initial, "Incremental edit cannot be initial compilation"); - tick(); - newSys = testTscCompile({ - scenario, - subScenario: incrementalSubScenario || subScenario, - buildKind, - fs: () => sys.vfs, - commandLineArgs: incrementalCommandLineArgs || commandLineArgs, - modifyFs: fs => { - tick(); - incrementalModifyFs(fs); - tick(); - }, - baselineSourceMap, - baselineReadFileCalls, - baselinePrograms - }); - }); - after(() => { - newSys = undefined!; - }); - verifyTscBaseline(() => newSys); - verifyIncrementalCorrectness(() => ({ - scenario, - baseFs, - newSys, - commandLineArgs: incrementalCommandLineArgs || commandLineArgs, - cleanBuildDiscrepancies, - incrementalModifyFs, - modifyFs, - tick - }), index, incrementalSubScenario || subScenario); - }); - }); - }); + export interface VerifyTscWithEditsWorkerInput extends TestTscCompile { + edits: TestTscEdit[]; } - export function verifyTscSerializedIncrementalEdits(input: VerifyTsBuildInput) { - verifyTscSerializedIncrementalEditsWorker(input); + /** + * Verify non watch tsc invokcation after each edit + */ + export function verifyTscWithEdits(input: VerifyTscWithEditsInput) { + verifyTscWithEditsWorker(input); if (input.baselineIncremental) { - verifyTscSerializedIncrementalEditsWorker({ + verifyTscWithEditsWorker({ ...input, subScenario: `${input.subScenario} with incremental`, commandLineArgs: [...input.commandLineArgs, "--incremental"], }); } } - function verifyTscSerializedIncrementalEditsWorker({ + function verifyTscWithEditsWorker({ subScenario, fs, scenario, commandLineArgs, baselineSourceMap, modifyFs, baselineReadFileCalls, baselinePrograms, - incrementalScenarios - }: VerifyTsBuildInputWorker) { + edits + }: VerifyTscWithEditsWorkerInput) { describe(`tsc ${commandLineArgs.join(" ")} ${scenario}:: ${subScenario} serializedEdits`, () => { - Debug.assert(!!incrementalScenarios.length, `${scenario}/${subScenario}:: No incremental scenarios, you probably want to use verifyTsc instead.`); let tick: () => void; let sys: TscCompileSystem; let baseFs: vfs.FileSystem; - let incrementalSys: TscCompileSystem[]; + let editsSys: TscCompileSystem[]; before(() => { + Debug.assert(!!edits.length, `${scenario}/${subScenario}:: No incremental scenarios, you probably want to use verifyTsc instead.`); ({ fs: baseFs, tick } = getFsWithTime(fs())); sys = testTscCompile({ scenario, @@ -642,18 +552,17 @@ interface Symbol { baselineReadFileCalls, baselinePrograms }); - incrementalScenarios.forEach(( - { buildKind, modifyFs, subScenario: incrementalSubScenario, commandLineArgs: incrementalCommandLineArgs }, + edits.forEach(( + { modifyFs, subScenario: editScenario, commandLineArgs: editCommandLineArgs }, index ) => { - Debug.assert(buildKind !== BuildKind.Initial, "Incremental edit cannot be initial compilation"); tick(); - (incrementalSys || (incrementalSys = [])).push(testTscCompile({ + (editsSys || (editsSys = [])).push(testTscCompile({ scenario, - subScenario: incrementalSubScenario || subScenario, - buildKind, - fs: () => index === 0 ? sys.vfs : incrementalSys[index - 1].vfs, - commandLineArgs: incrementalCommandLineArgs || commandLineArgs, + subScenario: editScenario || subScenario, + diffWithInitial: true, + fs: () => index === 0 ? sys.vfs : editsSys[index - 1].vfs, + commandLineArgs: editCommandLineArgs || commandLineArgs, modifyFs: fs => { tick(); modifyFs(fs); @@ -669,39 +578,38 @@ interface Symbol { baseFs = undefined!; sys = undefined!; tick = undefined!; - incrementalSys = undefined!; + editsSys = undefined!; }); - describe("serializedBuild", () => { - + describe("tsc invocation after edit", () => { verifyTscBaseline(() => ({ baseLine: () => { const { file, text } = sys.baseLine(); const texts: string[] = [text]; - incrementalSys.forEach((sys, index) => { - const incrementalScenario = incrementalScenarios[index]; + editsSys.forEach((sys, index) => { + const incrementalScenario = edits[index]; texts.push(""); - texts.push(`Change:: ${incrementalScenario.subScenario || incrementalScenario.buildKind}`); + texts.push(`Change:: ${incrementalScenario.subScenario}`); texts.push(sys.baseLine().text); }); return { file, text: texts.join("\r\n") }; } })); }); - describe("incremental correctness", () => { - incrementalScenarios.forEach(({ commandLineArgs: incrementalCommandLineArgs, subScenario, buildKind, cleanBuildDiscrepancies }, index) => verifyIncrementalCorrectness(() => ({ + describe("tsc invocation after edit and clean build correctness", () => { + edits.forEach(({ commandLineArgs: editCommandLineArgs, subScenario, cleanBuildDiscrepancies }, index) => verifyTscEditCorrectness(() => ({ scenario, baseFs, - newSys: incrementalSys[index], - commandLineArgs: incrementalCommandLineArgs || commandLineArgs, + newSys: editsSys[index], + commandLineArgs: editCommandLineArgs || commandLineArgs, cleanBuildDiscrepancies, - incrementalModifyFs: fs => { + editFs: fs => { for (let i = 0; i <= index; i++) { - incrementalScenarios[i].modifyFs(fs); + edits[i].modifyFs(fs); } }, modifyFs, tick - }), index, subScenario || buildKind)); + }), index, subScenario)); }); }); } diff --git a/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts b/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts index e2d27de684a0a..2f8cc57d11175 100644 --- a/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts +++ b/src/testRunner/unittests/tsbuild/inferredTypeFromTransitiveModule.ts @@ -8,42 +8,42 @@ namespace ts { projFs = undefined!; }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "inferredTypeFromTransitiveModule", subScenario: "inferred type from transitive module", fs: () => projFs, commandLineArgs: ["--b", "/src", "--verbose"], - incrementalScenarios: [ + edits: [ { - buildKind: BuildKind.IncrementalDtsChange, + subScenario: "incremental-declaration-changes", modifyFs: changeBarParam, }, { - buildKind: BuildKind.IncrementalDtsChange, + subScenario: "incremental-declaration-changes", modifyFs: changeBarParamBack, }, ], }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ subScenario: "inferred type from transitive module with isolatedModules", fs: () => projFs, scenario: "inferredTypeFromTransitiveModule", commandLineArgs: ["--b", "/src", "--verbose"], modifyFs: changeToIsolatedModules, - incrementalScenarios: [ + edits: [ { - buildKind: BuildKind.IncrementalDtsChange, + subScenario: "incremental-declaration-changes", modifyFs: changeBarParam }, { - buildKind: BuildKind.IncrementalDtsChange, + subScenario: "incremental-declaration-changes", modifyFs: changeBarParamBack, }, ] }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "inferredTypeFromTransitiveModule", subScenario: "reports errors in files affected by change in signature with isolatedModules", fs: () => projFs, @@ -54,22 +54,21 @@ namespace ts { import { default as bar } from './bar'; bar("hello");`); }, - incrementalScenarios: [ + edits: [ { - buildKind: BuildKind.IncrementalDtsChange, + subScenario: "incremental-declaration-changes", modifyFs: changeBarParam }, { - buildKind: BuildKind.IncrementalDtsChange, + subScenario: "incremental-declaration-changes", modifyFs: changeBarParamBack, }, { - buildKind: BuildKind.IncrementalDtsChange, + subScenario: "incremental-declaration-changes", modifyFs: changeBarParam }, { subScenario: "Fix Error", - buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => replaceText(fs, "/src/lazyIndex.ts", `bar("hello")`, "bar()") }, ] diff --git a/src/testRunner/unittests/tsbuild/javascriptProjectEmit.ts b/src/testRunner/unittests/tsbuild/javascriptProjectEmit.ts index 6786205bb20a1..6a0f6d5bc156c 100644 --- a/src/testRunner/unittests/tsbuild/javascriptProjectEmit.ts +++ b/src/testRunner/unittests/tsbuild/javascriptProjectEmit.ts @@ -88,7 +88,7 @@ namespace ts { commandLineArgs: ["-b", "/src"] }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "javascriptProjectEmit", subScenario: `modifies outfile js projects and concatenates them correctly`, fs: () => loadProjectFromFiles({ @@ -176,8 +176,8 @@ namespace ts { }`, }, symbolLibContent), commandLineArgs: ["-b", "/src"], - incrementalScenarios: [{ - buildKind: BuildKind.IncrementalDtsUnchanged, + edits: [{ + subScenario: "incremental-declaration-doesnt-change", modifyFs: fs => replaceText(fs, "/src/sub-project/index.js", "null", "undefined") }] }); diff --git a/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts b/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts index 953e7f7f045a3..aeb075f5ab501 100644 --- a/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts +++ b/src/testRunner/unittests/tsbuild/lateBoundSymbol.ts @@ -1,17 +1,17 @@ namespace ts { describe("unittests:: tsbuild:: lateBoundSymbol:: interface is merged and contains late bound member", () => { - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ subScenario: "interface is merged and contains late bound member", fs: () => loadProjectFromDisk("tests/projects/lateBoundSymbol"), scenario: "lateBoundSymbol", commandLineArgs: ["--b", "/src/tsconfig.json", "--verbose"], - incrementalScenarios: [ + edits: [ { - buildKind: BuildKind.IncrementalDtsUnchanged, + subScenario: "incremental-declaration-doesnt-change", modifyFs: fs => replaceText(fs, "/src/src/main.ts", "const x = 10;", ""), }, { - buildKind: BuildKind.IncrementalDtsUnchanged, + subScenario: "incremental-declaration-doesnt-change", modifyFs: fs => appendText(fs, "/src/src/main.ts", "const x = 10;"), }, ] diff --git a/src/testRunner/unittests/tsbuild/noEmitOnError.ts b/src/testRunner/unittests/tsbuild/noEmitOnError.ts index 75e17f66203e9..93586fa5410bc 100644 --- a/src/testRunner/unittests/tsbuild/noEmitOnError.ts +++ b/src/testRunner/unittests/tsbuild/noEmitOnError.ts @@ -8,18 +8,17 @@ namespace ts { projFs = undefined!; }); - function verifyNoEmitOnError(subScenario: string, fixModifyFs: TscIncremental["modifyFs"], modifyFs?: TscIncremental["modifyFs"]) { - verifyTscSerializedIncrementalEdits({ + function verifyNoEmitOnError(subScenario: string, fixModifyFs: TestTscEdit["modifyFs"], modifyFs?: TestTscEdit["modifyFs"]) { + verifyTscWithEdits({ scenario: "noEmitOnError", subScenario, fs: () => projFs, modifyFs, commandLineArgs: ["--b", "/src/tsconfig.json"], - incrementalScenarios: [ + edits: [ noChangeRun, { subScenario: "Fix error", - buildKind: BuildKind.IncrementalDtsChange, modifyFs: fixModifyFs, }, noChangeRun, diff --git a/src/testRunner/unittests/tsbuild/outFile.ts b/src/testRunner/unittests/tsbuild/outFile.ts index a8f0f66f12e40..2e9900784b521 100644 --- a/src/testRunner/unittests/tsbuild/outFile.ts +++ b/src/testRunner/unittests/tsbuild/outFile.ts @@ -33,26 +33,26 @@ namespace ts { baselineOnly, additionalCommandLineArgs, }: VerifyOutFileScenarioInput) { - const incrementalScenarios: TscIncremental[] = []; + const edits: TestTscEdit[] = []; if (!ignoreDtsChanged) { - incrementalScenarios.push({ - buildKind: BuildKind.IncrementalDtsChange, + edits.push({ + subScenario: "incremental-declaration-changes", modifyFs: fs => replaceText(fs, "/src/first/first_PART1.ts", "Hello", "Hola"), }); } if (!ignoreDtsUnchanged) { - incrementalScenarios.push({ - buildKind: BuildKind.IncrementalDtsUnchanged, + edits.push({ + subScenario: "incremental-declaration-doesnt-change", modifyFs: fs => appendText(fs, "/src/first/first_PART1.ts", "console.log(s);"), }); } if (modifyAgainFs) { - incrementalScenarios.push({ - buildKind: BuildKind.IncrementalHeadersChange, + edits.push({ + subScenario: "incremental-headers-change-without-dts-changes", modifyFs: modifyAgainFs }); } - const input: VerifyTsBuildInput = { + const input: VerifyTscWithEditsInput = { subScenario, fs: () => outFileFs, scenario: "outfile-concat", @@ -60,10 +60,10 @@ namespace ts { baselineSourceMap: true, modifyFs, baselineReadFileCalls: !baselineOnly, - incrementalScenarios, + edits, }; - return incrementalScenarios.length ? - verifyTscSerializedIncrementalEdits(input) : + return edits.length ? + verifyTscWithEdits(input) : verifyTsc(input); } @@ -115,12 +115,12 @@ namespace ts { return outFileWithBuildFs = fs; } - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "outFile", subScenario: "clean projects", fs: getOutFileFsAfterBuild, commandLineArgs: ["--b", "/src/third", "--clean"], - incrementalScenarios: noChangeOnlyRuns + edits: noChangeOnlyRuns }); verifyTsc({ @@ -153,7 +153,7 @@ namespace ts { } }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "outFile", subScenario: "rebuilds completely when command line incremental flag changes between non dts changes", fs: () => outFileFs, @@ -161,16 +161,14 @@ namespace ts { modifyFs: fs => replaceText(fs, "/src/third/tsconfig.json", `"composite": true,`, ""), // Build with command line incremental commandLineArgs: ["--b", "/src/third", "--i", "--verbose"], - incrementalScenarios: [ + edits: [ { subScenario: "Make non incremental build with change in file that doesnt affect dts", - buildKind: BuildKind.IncrementalDtsUnchanged, modifyFs: fs => appendText(fs, "/src/first/first_PART1.ts", "console.log(s);"), commandLineArgs: ["--b", "/src/third", "--verbose"], }, { subScenario: "Make incremental build with change in file that doesnt affect dts", - buildKind: BuildKind.IncrementalDtsUnchanged, modifyFs: fs => appendText(fs, "/src/first/first_PART1.ts", "console.log(s);"), commandLineArgs: ["--b", "/src/third", "--verbose", "--incremental"], } diff --git a/src/testRunner/unittests/tsbuild/outputPaths.ts b/src/testRunner/unittests/tsbuild/outputPaths.ts index e2a9ac549bf0a..6782a1bba96a9 100644 --- a/src/testRunner/unittests/tsbuild/outputPaths.ts +++ b/src/testRunner/unittests/tsbuild/outputPaths.ts @@ -1,18 +1,17 @@ namespace ts { describe("unittests:: tsbuild - output file paths", () => { - const noChangeProject: TscIncremental = { - buildKind: BuildKind.NoChangeRun, + const noChangeProject: TestTscEdit = { modifyFs: noop, subScenario: "Normal build without change, that does not block emit on error to show files that get emitted", commandLineArgs: ["-p", "/src/tsconfig.json"], }; - const incrementalScenarios: TscIncremental[] = [ + const edits: TestTscEdit[] = [ noChangeRun, noChangeProject, ]; - function verify(input: Pick, expectedOuptutNames: readonly string[]) { - verifyTscSerializedIncrementalEdits({ + function verify(input: Pick, expectedOuptutNames: readonly string[]) { + verifyTscWithEdits({ scenario: "outputPaths", commandLineArgs: ["--b", "/src/tsconfig.json", "-v"], ...input @@ -42,7 +41,7 @@ namespace ts { } }) }), - incrementalScenarios, + edits, }, ["/src/dist/index.js"]); verify({ @@ -56,7 +55,7 @@ namespace ts { } }) }), - incrementalScenarios: [ + edits: [ noChangeRun, { ...noChangeProject, @@ -79,7 +78,7 @@ namespace ts { } }) }), - incrementalScenarios, + edits, }, ["/src/dist/index.js"]); verify({ @@ -94,7 +93,7 @@ namespace ts { } }) }), - incrementalScenarios, + edits, }, ["/src/dist/index.js"]); verify({ @@ -110,7 +109,7 @@ namespace ts { } }) }), - incrementalScenarios, + edits, }, ["/src/dist/index.js", "/src/dist/index.d.ts"]); }); } diff --git a/src/testRunner/unittests/tsbuild/resolveJsonModule.ts b/src/testRunner/unittests/tsbuild/resolveJsonModule.ts index 733f61efe3f3f..834d5825377f2 100644 --- a/src/testRunner/unittests/tsbuild/resolveJsonModule.ts +++ b/src/testRunner/unittests/tsbuild/resolveJsonModule.ts @@ -51,32 +51,32 @@ export default hello.hello`); commandLineArgs: ["--b", "/src/tsconfig_withIncludeAndFiles.json", "--v", "--explainFiles"], }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "resolveJsonModule", subScenario: "sourcemap", fs: () => projFs, commandLineArgs: ["--b", "src/tsconfig_withFiles.json", "--verbose", "--explainFiles"], modifyFs: fs => replaceText(fs, "src/tsconfig_withFiles.json", `"composite": true,`, `"composite": true, "sourceMap": true,`), - incrementalScenarios: noChangeOnlyRuns + edits: noChangeOnlyRuns }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "resolveJsonModule", subScenario: "without outDir", fs: () => projFs, commandLineArgs: ["--b", "src/tsconfig_withFiles.json", "--verbose"], modifyFs: fs => replaceText(fs, "src/tsconfig_withFiles.json", `"outDir": "dist",`, ""), - incrementalScenarios: noChangeOnlyRuns + edits: noChangeOnlyRuns }); }); describe("unittests:: tsbuild:: with resolveJsonModule option on project importJsonFromProjectReference", () => { - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "resolveJsonModule", subScenario: "importing json module from project reference", fs: () => loadProjectFromDisk("tests/projects/importJsonFromProjectReference"), commandLineArgs: ["--b", "src/tsconfig.json", "--verbose", "--explainFiles"], - incrementalScenarios: noChangeOnlyRuns + edits: noChangeOnlyRuns }); }); } diff --git a/src/testRunner/unittests/tsbuild/sample.ts b/src/testRunner/unittests/tsbuild/sample.ts index 2d379d76633f1..d4ddc36effd26 100644 --- a/src/testRunner/unittests/tsbuild/sample.ts +++ b/src/testRunner/unittests/tsbuild/sample.ts @@ -70,12 +70,12 @@ namespace ts { }); describe("clean builds", () => { - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "sample1", subScenario: "removes all files it built", fs: getSampleFsAfterBuild, commandLineArgs: ["--b", "/src/tests", "--clean"], - incrementalScenarios: noChangeOnlyRuns + edits: noChangeOnlyRuns }); verifyTscCompileLike(testTscCompileLike, { @@ -104,37 +104,34 @@ namespace ts { }); describe("force builds", () => { - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "sample1", subScenario: "always builds under with force option", fs: () => projFs, commandLineArgs: ["--b", "/src/tests", "--force"], - incrementalScenarios: noChangeOnlyRuns + edits: noChangeOnlyRuns }); }); describe("can detect when and what to rebuild", () => { - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "sample1", subScenario: "can detect when and what to rebuild", fs: getSampleFsAfterBuild, commandLineArgs: ["--b", "/src/tests", "--verbose"], - incrementalScenarios: [ + edits: [ // Update a file in the leaf node (tests), only it should rebuild the last one { subScenario: "Only builds the leaf node project", - buildKind: BuildKind.IncrementalDtsUnchanged, modifyFs: fs => fs.writeFileSync("/src/tests/index.ts", "const m = 10;"), }, // Update a file in the parent (without affecting types), should get fast downstream builds { subScenario: "Detects type-only changes in upstream projects", - buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => replaceText(fs, "/src/core/index.ts", "HELLO WORLD", "WELCOME PLANET"), }, { subScenario: "rebuilds when tsconfig changes", - buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => replaceText(fs, "/src/tests/tsconfig.json", `"composite": true`, `"composite": true, "target": "es3"`), }, ] @@ -189,7 +186,7 @@ namespace ts { }, }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "sample1", subScenario: "rebuilds when extended config file changes", fs: () => projFs, @@ -198,8 +195,8 @@ namespace ts { fs.writeFileSync("/src/tests/tsconfig.base.json", JSON.stringify({ compilerOptions: { target: "es3" } })); replaceText(fs, "/src/tests/tsconfig.json", `"references": [`, `"extends": "./tsconfig.base.json", "references": [`); }, - incrementalScenarios: [{ - buildKind: BuildKind.IncrementalDtsChange, + edits: [{ + subScenario: "incremental-declaration-changes", modifyFs: fs => fs.writeFileSync("/src/tests/tsconfig.base.json", JSON.stringify({ compilerOptions: {} })) }] }); @@ -360,56 +357,55 @@ namespace ts { }); }); - const coreChanges: TscIncremental[] = [ + const coreChanges: TestTscEdit[] = [ { - buildKind: BuildKind.IncrementalDtsChange, + subScenario: "incremental-declaration-changes", modifyFs: fs => appendText(fs, "/src/core/index.ts", ` export class someClass { }`), }, { - buildKind: BuildKind.IncrementalDtsUnchanged, + subScenario: "incremental-declaration-doesnt-change", modifyFs: fs => appendText(fs, "/src/core/index.ts", ` class someClass2 { }`), } ]; describe("lists files", () => { - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "sample1", subScenario: "listFiles", fs: () => projFs, commandLineArgs: ["--b", "/src/tests", "--listFiles"], - incrementalScenarios: coreChanges + edits: coreChanges }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "sample1", subScenario: "listEmittedFiles", fs: () => projFs, commandLineArgs: ["--b", "/src/tests", "--listEmittedFiles"], - incrementalScenarios: coreChanges + edits: coreChanges }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "sample1", subScenario: "explainFiles", fs: () => projFs, commandLineArgs: ["--b", "/src/tests", "--explainFiles", "--v"], - incrementalScenarios: coreChanges + edits: coreChanges }); }); describe("emit output", () => { - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ subScenario: "sample", fs: () => projFs, scenario: "sample1", commandLineArgs: ["--b", "/src/tests", "--verbose"], baselineSourceMap: true, baselineReadFileCalls: true, - incrementalScenarios: [ + edits: [ ...coreChanges, { subScenario: "when logic config changes declaration dir", - buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => replaceText(fs, "/src/logic/tsconfig.json", `"declaration": true,`, `"declaration": true, "declarationDir": "decls",`), }, @@ -428,7 +424,7 @@ class someClass2 { }`), baselineReadFileCalls: true }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ subScenario: "when declaration option changes", fs: () => projFs, scenario: "sample1", @@ -439,13 +435,13 @@ class someClass2 { }`), "skipDefaultLibCheck": true } }`), - incrementalScenarios: [{ - buildKind: BuildKind.IncrementalDtsChange, + edits: [{ + subScenario: "incremental-declaration-changes", modifyFs: fs => replaceText(fs, "/src/core/tsconfig.json", `"incremental": true,`, `"incremental": true, "declaration": true,`), }], }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ subScenario: "when target option changes", fs: () => projFs, scenario: "sample1", @@ -465,13 +461,13 @@ class someClass2 { }`), } }`); }, - incrementalScenarios: [{ - buildKind: BuildKind.IncrementalDtsChange, + edits: [{ + subScenario: "incremental-declaration-changes", modifyFs: fs => replaceText(fs, "/src/core/tsconfig.json", "esnext", "es5"), }], }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ subScenario: "when module option changes", fs: () => projFs, scenario: "sample1", @@ -482,13 +478,13 @@ class someClass2 { }`), "module": "commonjs" } }`), - incrementalScenarios: [{ - buildKind: BuildKind.IncrementalDtsChange, + edits: [{ + subScenario: "incremental-declaration-changes", modifyFs: fs => replaceText(fs, "/src/core/tsconfig.json", `"module": "commonjs"`, `"module": "amd"`), }], }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ subScenario: "when esModuleInterop option changes", fs: () => projFs, scenario: "sample1", @@ -507,8 +503,8 @@ class someClass2 { }`), "esModuleInterop": false } }`), - incrementalScenarios: [{ - buildKind: BuildKind.IncrementalDtsChange, + edits: [{ + subScenario: "incremental-declaration-changes", modifyFs: fs => replaceText(fs, "/src/tests/tsconfig.json", `"esModuleInterop": false`, `"esModuleInterop": true`), }], }); diff --git a/src/testRunner/unittests/tsc/helpers.ts b/src/testRunner/unittests/tsc/helpers.ts index c984a76f5c9b6..ef72e343c5644 100644 --- a/src/testRunner/unittests/tsc/helpers.ts +++ b/src/testRunner/unittests/tsc/helpers.ts @@ -5,16 +5,8 @@ namespace ts { disableUseFileVersionAsSignature?: boolean; }; - export enum BuildKind { - Initial = "initial-build", - IncrementalDtsChange = "incremental-declaration-changes", - IncrementalDtsUnchanged = "incremental-declaration-doesnt-change", - IncrementalHeadersChange = "incremental-headers-change-without-dts-changes", - NoChangeRun = "no-change-run" - } - - export const noChangeRun: TscIncremental = { - buildKind: BuildKind.NoChangeRun, + export const noChangeRun: TestTscEdit = { + subScenario: "no-change-run", modifyFs: noop }; export const noChangeOnlyRuns = [noChangeRun]; @@ -63,8 +55,7 @@ namespace ts { }; } export interface TestTscCompileLikeBase extends VerifyTscCompileLike { - buildKind?: BuildKind; // Should be defined for tsc --b - + diffWithInitial?: boolean; modifyFs?: (fs: vfs.FileSystem) => void; disableUseFileVersionAsSignature?: boolean; environmentVariables?: Record; @@ -81,7 +72,7 @@ namespace ts { const initialFs = input.fs(); const inputFs = initialFs.shadow(); const { - scenario, subScenario, buildKind, + scenario, subScenario, diffWithInitial, commandLineArgs, modifyFs, environmentVariables, compile: worker, additionalBaseline, @@ -100,12 +91,12 @@ namespace ts { additionalBaseline?.(sys); fs.makeReadonly(); sys.baseLine = () => { - const baseFsPatch = !buildKind || buildKind === BuildKind.Initial ? - inputFs.diff(/*base*/ undefined, { baseIsNotShadowRoot: true }) : - inputFs.diff(initialFs, { includeChangedFileWithSameContent: true }); + const baseFsPatch = diffWithInitial ? + inputFs.diff(initialFs, { includeChangedFileWithSameContent: true }) : + inputFs.diff(/*base*/ undefined, { baseIsNotShadowRoot: true }); const patch = fs.diff(inputFs, { includeChangedFileWithSameContent: true }); return { - file: `${isBuild(commandLineArgs) ? "tsbuild" : "tsc"}/${scenario}/${buildKind || BuildKind.Initial}/${subScenario.split(" ").join("-")}.js`, + file: `${isBuild(commandLineArgs) ? "tsbuild" : "tsc"}/${scenario}/${subScenario.split(" ").join("-")}.js`, text: `Input:: ${baseFsPatch ? vfs.formatPatch(baseFsPatch) : ""} diff --git a/src/testRunner/unittests/tsc/incremental.ts b/src/testRunner/unittests/tsc/incremental.ts index 2085038fd8048..ec5093e0849a9 100644 --- a/src/testRunner/unittests/tsc/incremental.ts +++ b/src/testRunner/unittests/tsc/incremental.ts @@ -1,6 +1,6 @@ namespace ts { describe("unittests:: tsc:: incremental::", () => { - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "incremental", subScenario: "when passing filename for buildinfo on commandline", fs: () => loadProjectFromFiles({ @@ -17,10 +17,10 @@ namespace ts { }`, }), commandLineArgs: ["--incremental", "--p", "src/project", "--tsBuildInfoFile", "src/project/.tsbuildinfo", "--explainFiles"], - incrementalScenarios: noChangeOnlyRuns + edits: noChangeOnlyRuns }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "incremental", subScenario: "when passing rootDir from commandline", fs: () => loadProjectFromFiles({ @@ -34,10 +34,10 @@ namespace ts { }`, }), commandLineArgs: ["--p", "src/project", "--rootDir", "src/project/src"], - incrementalScenarios: noChangeOnlyRuns + edits: noChangeOnlyRuns }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "incremental", subScenario: "with only dts files", fs: () => loadProjectFromFiles({ @@ -46,16 +46,16 @@ namespace ts { "/src/project/tsconfig.json": "{}", }), commandLineArgs: ["--incremental", "--p", "src/project"], - incrementalScenarios: [ + edits: [ noChangeRun, { - buildKind: BuildKind.IncrementalDtsUnchanged, + subScenario: "incremental-declaration-doesnt-change", modifyFs: fs => appendText(fs, "/src/project/src/main.d.ts", "export const xy = 100;") } ] }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "incremental", subScenario: "when passing rootDir is in the tsconfig", fs: () => loadProjectFromFiles({ @@ -70,7 +70,7 @@ namespace ts { }`, }), commandLineArgs: ["--p", "src/project"], - incrementalScenarios: noChangeOnlyRuns + edits: noChangeOnlyRuns }); describe("with noEmitOnError", () => { @@ -82,17 +82,17 @@ namespace ts { projFs = undefined!; }); - function verifyNoEmitOnError(subScenario: string, fixModifyFs: TscIncremental["modifyFs"], modifyFs?: TscIncremental["modifyFs"]) { - verifyTscSerializedIncrementalEdits({ + function verifyNoEmitOnError(subScenario: string, fixModifyFs: TestTscEdit["modifyFs"], modifyFs?: TestTscEdit["modifyFs"]) { + verifyTscWithEdits({ scenario: "incremental", subScenario, fs: () => projFs, commandLineArgs: ["--incremental", "-p", "src"], modifyFs, - incrementalScenarios: [ + edits: [ noChangeRun, { - buildKind: BuildKind.IncrementalDtsUnchanged, + subScenario: "incremental-declaration-doesnt-change", modifyFs: fixModifyFs }, noChangeRun, @@ -123,15 +123,15 @@ const a: string = 10;`, "utf-8"), verifyNoEmitChanges({ composite: true }); function verifyNoEmitChanges(compilerOptions: CompilerOptions) { - const noChangeRunWithNoEmit: TscIncremental = { + const noChangeRunWithNoEmit: TestTscEdit = { + ...noChangeRun, subScenario: "No Change run with noEmit", commandLineArgs: ["--p", "src/project", "--noEmit"], - ...noChangeRun, }; - const noChangeRunWithEmit: TscIncremental = { + const noChangeRunWithEmit: TestTscEdit = { + ...noChangeRun, subScenario: "No Change run with emit", commandLineArgs: ["--p", "src/project"], - ...noChangeRun, }; let optionsString = ""; for (const key in compilerOptions) { @@ -140,24 +140,22 @@ const a: string = 10;`, "utf-8"), } } - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "incremental", subScenario: `noEmit changes${optionsString}`, commandLineArgs: ["--p", "src/project"], fs, - incrementalScenarios: [ + edits: [ noChangeRunWithNoEmit, noChangeRunWithNoEmit, { subScenario: "Introduce error but still noEmit", commandLineArgs: ["--p", "src/project", "--noEmit"], modifyFs: fs => replaceText(fs, "/src/project/src/class.ts", "prop", "prop1"), - buildKind: BuildKind.IncrementalDtsChange }, { subScenario: "Fix error and emit", modifyFs: fs => replaceText(fs, "/src/project/src/class.ts", "prop1", "prop"), - buildKind: BuildKind.IncrementalDtsChange }, noChangeRunWithEmit, noChangeRunWithNoEmit, @@ -166,7 +164,6 @@ const a: string = 10;`, "utf-8"), { subScenario: "Introduce error and emit", modifyFs: fs => replaceText(fs, "/src/project/src/class.ts", "prop", "prop1"), - buildKind: BuildKind.IncrementalDtsChange }, noChangeRunWithEmit, noChangeRunWithNoEmit, @@ -176,7 +173,6 @@ const a: string = 10;`, "utf-8"), subScenario: "Fix error and no emit", commandLineArgs: ["--p", "src/project", "--noEmit"], modifyFs: fs => replaceText(fs, "/src/project/src/class.ts", "prop1", "prop"), - buildKind: BuildKind.IncrementalDtsChange }, noChangeRunWithEmit, noChangeRunWithNoEmit, @@ -185,23 +181,21 @@ const a: string = 10;`, "utf-8"), ], }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "incremental", subScenario: `noEmit changes with initial noEmit${optionsString}`, commandLineArgs: ["--p", "src/project", "--noEmit"], fs, - incrementalScenarios: [ + edits: [ noChangeRunWithEmit, { subScenario: "Introduce error with emit", commandLineArgs: ["--p", "src/project"], modifyFs: fs => replaceText(fs, "/src/project/src/class.ts", "prop", "prop1"), - buildKind: BuildKind.IncrementalDtsChange }, { subScenario: "Fix error and no emit", modifyFs: fs => replaceText(fs, "/src/project/src/class.ts", "prop1", "prop"), - buildKind: BuildKind.IncrementalDtsChange }, noChangeRunWithEmit, ], @@ -236,7 +230,7 @@ const a: string = 10;`, "utf-8"), } }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "incremental", subScenario: `when global file is added, the signatures are updated`, fs: () => loadProjectFromFiles({ @@ -257,21 +251,18 @@ const a: string = 10;`, "utf-8"), }), }), commandLineArgs: ["--p", "src/project"], - incrementalScenarios: [ + edits: [ noChangeRun, { subScenario: "Modify main file", - buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), }, { subScenario: "Modify main file again", - buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), }, { subScenario: "Add new file and update main file", - buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => { fs.writeFileSync(`/src/project/src/newFile.ts`, "function foo() { return 20; }"); prependText(fs, `/src/project/src/main.ts`, `/// @@ -281,12 +272,10 @@ const a: string = 10;`, "utf-8"), }, { subScenario: "Write file that could not be resolved", - buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => fs.writeFileSync(`/src/project/src/fileNotFound.ts`, "function something2() { return 20; }"), }, { subScenario: "Modify main file", - buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => appendText(fs, `/src/project/src/main.ts`, `something();`), }, ], @@ -334,7 +323,7 @@ declare global { }); }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "incremental", subScenario: "when new file is added to the referenced project", commandLineArgs: ["-i", "-p", `src/projects/project2`], @@ -359,10 +348,9 @@ declare global { }), "/src/projects/project2/class2.ts": `class class2 {}`, }), - incrementalScenarios: [ + edits: [ { subScenario: "Add class3 to project1 and build it", - buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => fs.writeFileSync("/src/projects/project1/class3.ts", `class class3 {}`, "utf-8"), cleanBuildDiscrepancies: () => new Map([ // Ts buildinfo will not be updated in incremental build so it will have semantic diagnostics cached from previous build @@ -372,12 +360,10 @@ declare global { }, { subScenario: "Add output of class3", - buildKind: BuildKind.IncrementalDtsChange, modifyFs: fs => fs.writeFileSync("/src/projects/project1/class3.d.ts", `declare class class3 {}`, "utf-8"), }, { subScenario: "Add excluded file to project1", - buildKind: BuildKind.IncrementalDtsUnchanged, modifyFs: fs => { fs.mkdirSync("/src/projects/project1/temp"); fs.writeFileSync("/src/projects/project1/temp/file.d.ts", `declare class file {}`, "utf-8"); @@ -385,7 +371,6 @@ declare global { }, { subScenario: "Delete output for class3", - buildKind: BuildKind.IncrementalDtsUnchanged, modifyFs: fs => fs.unlinkSync("/src/projects/project1/class3.d.ts"), cleanBuildDiscrepancies: () => new Map([ // Ts buildinfo willbe updated but will retain lib file errors from previous build and not others because they are emitted because of change which results in clearing their semantic diagnostics cache @@ -395,14 +380,13 @@ declare global { }, { subScenario: "Create output for class3", - buildKind: BuildKind.IncrementalDtsUnchanged, modifyFs: fs => fs.writeFileSync("/src/projects/project1/class3.d.ts", `declare class class3 {}`, "utf-8"), }, ] }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "incremental", subScenario: "when project has strict true", commandLineArgs: ["-noEmit", "-p", `src/project`], @@ -415,11 +399,11 @@ declare global { }), "/src/project/class1.ts": `export class class1 {}`, }), - incrementalScenarios: noChangeOnlyRuns, + edits: noChangeOnlyRuns, baselinePrograms: true }); - verifyTscSerializedIncrementalEdits({ + verifyTscWithEdits({ scenario: "incremental", subScenario: "serializing error chains", commandLineArgs: ["-p", `src/project`], @@ -447,7 +431,7 @@ declare global {
)` }, `\ninterface ReadonlyArray { readonly length: number }`), - incrementalScenarios: noChangeOnlyRuns, + edits: noChangeOnlyRuns, }); verifyTsc({ diff --git a/src/testRunner/unittests/tscWatch/helpers.ts b/src/testRunner/unittests/tscWatch/helpers.ts index 745946dcab26b..97d838cdf634e 100644 --- a/src/testRunner/unittests/tscWatch/helpers.ts +++ b/src/testRunner/unittests/tscWatch/helpers.ts @@ -280,9 +280,7 @@ namespace ts.tscWatch { baselineDependencies, }); } - Harness.Baseline.runBaseline(`${isBuild(commandLineArgs) ? - isWatch(commandLineArgs) ? "tsbuild/watchMode" : "tsbuild" : - isWatch(commandLineArgs) ? "tscWatch" : "tsc"}/${scenario}/${subScenario.split(" ").join("-")}.js`, baseline.join("\r\n")); + Harness.Baseline.runBaseline(`${isBuild(commandLineArgs) ? "tsbuild" : "tsc"}${isWatch(commandLineArgs) ? "Watch" : ""}/${scenario}/${subScenario.split(" ").join("-")}.js`, baseline.join("\r\n")); } function isWatch(commandLineArgs: readonly string[]) { diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/modules-and-globals-mixed-in-amd.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/modules-and-globals-mixed-in-amd.js similarity index 100% rename from tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/modules-and-globals-mixed-in-amd.js rename to tests/baselines/reference/tsbuild/amdModulesWithOut/modules-and-globals-mixed-in-amd.js diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-emitHelpers-in-all-projects.js similarity index 100% rename from tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-emitHelpers-in-all-projects.js rename to tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-emitHelpers-in-all-projects.js diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-prologues-in-all-projects.js similarity index 100% rename from tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-prologues-in-all-projects.js rename to tests/baselines/reference/tsbuild/amdModulesWithOut/multiple-prologues-in-all-projects.js diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js similarity index 100% rename from tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/shebang-in-all-projects.js rename to tests/baselines/reference/tsbuild/amdModulesWithOut/shebang-in-all-projects.js diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/stripInternal.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js similarity index 100% rename from tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/stripInternal.js rename to tests/baselines/reference/tsbuild/amdModulesWithOut/stripInternal.js diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/triple-slash-refs-in-all-projects.js similarity index 100% rename from tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/triple-slash-refs-in-all-projects.js rename to tests/baselines/reference/tsbuild/amdModulesWithOut/triple-slash-refs-in-all-projects.js diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/when-the-module-resolution-finds-original-source-file.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/when-the-module-resolution-finds-original-source-file.js similarity index 100% rename from tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/when-the-module-resolution-finds-original-source-file.js rename to tests/baselines/reference/tsbuild/amdModulesWithOut/when-the-module-resolution-finds-original-source-file.js diff --git a/tests/baselines/reference/tsbuild/clean/initial-build/file-name-and-output-name-clashing.js b/tests/baselines/reference/tsbuild/clean/file-name-and-output-name-clashing.js similarity index 100% rename from tests/baselines/reference/tsbuild/clean/initial-build/file-name-and-output-name-clashing.js rename to tests/baselines/reference/tsbuild/clean/file-name-and-output-name-clashing.js diff --git a/tests/baselines/reference/tsbuild/configFileErrors/initial-build/reports-syntax-errors-in-config-file.js b/tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js similarity index 100% rename from tests/baselines/reference/tsbuild/configFileErrors/initial-build/reports-syntax-errors-in-config-file.js rename to tests/baselines/reference/tsbuild/configFileErrors/reports-syntax-errors-in-config-file.js diff --git a/tests/baselines/reference/tsbuild/configFileErrors/initial-build/when-tsconfig-extends-the-missing-file.js b/tests/baselines/reference/tsbuild/configFileErrors/when-tsconfig-extends-the-missing-file.js similarity index 100% rename from tests/baselines/reference/tsbuild/configFileErrors/initial-build/when-tsconfig-extends-the-missing-file.js rename to tests/baselines/reference/tsbuild/configFileErrors/when-tsconfig-extends-the-missing-file.js diff --git a/tests/baselines/reference/tsbuild/configFileExtends/initial-build/when-building-project-uses-reference-and-both-extend-config-with-include.js b/tests/baselines/reference/tsbuild/configFileExtends/when-building-project-uses-reference-and-both-extend-config-with-include.js similarity index 100% rename from tests/baselines/reference/tsbuild/configFileExtends/initial-build/when-building-project-uses-reference-and-both-extend-config-with-include.js rename to tests/baselines/reference/tsbuild/configFileExtends/when-building-project-uses-reference-and-both-extend-config-with-include.js diff --git a/tests/baselines/reference/tsbuild/configFileExtends/initial-build/when-building-solution-with-projects-extends-config-with-include.js b/tests/baselines/reference/tsbuild/configFileExtends/when-building-solution-with-projects-extends-config-with-include.js similarity index 100% rename from tests/baselines/reference/tsbuild/configFileExtends/initial-build/when-building-solution-with-projects-extends-config-with-include.js rename to tests/baselines/reference/tsbuild/configFileExtends/when-building-solution-with-projects-extends-config-with-include.js diff --git a/tests/baselines/reference/tsbuild/containerOnlyReferenced/initial-build/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js b/tests/baselines/reference/tsbuild/containerOnlyReferenced/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js similarity index 100% rename from tests/baselines/reference/tsbuild/containerOnlyReferenced/initial-build/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js rename to tests/baselines/reference/tsbuild/containerOnlyReferenced/verify-that-subsequent-builds-after-initial-build-doesnt-build-anything.js diff --git a/tests/baselines/reference/tsbuild/declarationEmit/initial-build/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js similarity index 100% rename from tests/baselines/reference/tsbuild/declarationEmit/initial-build/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js rename to tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash-but-uses-no-references.js diff --git a/tests/baselines/reference/tsbuild/declarationEmit/initial-build/when-declaration-file-is-referenced-through-triple-slash.js b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js similarity index 100% rename from tests/baselines/reference/tsbuild/declarationEmit/initial-build/when-declaration-file-is-referenced-through-triple-slash.js rename to tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-is-referenced-through-triple-slash.js diff --git a/tests/baselines/reference/tsbuild/declarationEmit/initial-build/when-declaration-file-used-inferred-type-from-referenced-project.js b/tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js similarity index 100% rename from tests/baselines/reference/tsbuild/declarationEmit/initial-build/when-declaration-file-used-inferred-type-from-referenced-project.js rename to tests/baselines/reference/tsbuild/declarationEmit/when-declaration-file-used-inferred-type-from-referenced-project.js diff --git a/tests/baselines/reference/tsbuild/demo/initial-build/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js b/tests/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js similarity index 100% rename from tests/baselines/reference/tsbuild/demo/initial-build/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js rename to tests/baselines/reference/tsbuild/demo/in-bad-ref-branch-reports-the-error-about-files-not-in-rootDir-at-the-import-location.js diff --git a/tests/baselines/reference/tsbuild/demo/initial-build/in-circular-branch-reports-the-error-about-it-by-stopping-build.js b/tests/baselines/reference/tsbuild/demo/in-circular-branch-reports-the-error-about-it-by-stopping-build.js similarity index 100% rename from tests/baselines/reference/tsbuild/demo/initial-build/in-circular-branch-reports-the-error-about-it-by-stopping-build.js rename to tests/baselines/reference/tsbuild/demo/in-circular-branch-reports-the-error-about-it-by-stopping-build.js diff --git a/tests/baselines/reference/tsbuild/demo/initial-build/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js b/tests/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js similarity index 100% rename from tests/baselines/reference/tsbuild/demo/initial-build/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js rename to tests/baselines/reference/tsbuild/demo/in-master-branch-with-everything-setup-correctly-and-reports-no-error.js diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js similarity index 100% rename from tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js rename to tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly-and-declarationMap.js diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js similarity index 100% rename from tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js rename to tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-circular-import-project-with-emitDeclarationOnly.js diff --git a/tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js b/tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js similarity index 100% rename from tests/baselines/reference/tsbuild/emitDeclarationOnly/initial-build/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js rename to tests/baselines/reference/tsbuild/emitDeclarationOnly/only-dts-output-in-non-circular-imports-project-with-emitDeclarationOnly.js diff --git a/tests/baselines/reference/tsbuild/emptyFiles/initial-build/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js b/tests/baselines/reference/tsbuild/emptyFiles/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js similarity index 100% rename from tests/baselines/reference/tsbuild/emptyFiles/initial-build/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js rename to tests/baselines/reference/tsbuild/emptyFiles/does-not-have-empty-files-diagnostic-when-files-is-empty-and-references-are-provided.js diff --git a/tests/baselines/reference/tsbuild/emptyFiles/initial-build/has-empty-files-diagnostic-when-files-is-empty-and-no-references-are-provided.js b/tests/baselines/reference/tsbuild/emptyFiles/has-empty-files-diagnostic-when-files-is-empty-and-no-references-are-provided.js similarity index 100% rename from tests/baselines/reference/tsbuild/emptyFiles/initial-build/has-empty-files-diagnostic-when-files-is-empty-and-no-references-are-provided.js rename to tests/baselines/reference/tsbuild/emptyFiles/has-empty-files-diagnostic-when-files-is-empty-and-no-references-are-provided.js diff --git a/tests/baselines/reference/tsbuild/exitCodeOnBogusFile/initial-build/test-exit-code.js b/tests/baselines/reference/tsbuild/exitCodeOnBogusFile/test-exit-code.js similarity index 100% rename from tests/baselines/reference/tsbuild/exitCodeOnBogusFile/initial-build/test-exit-code.js rename to tests/baselines/reference/tsbuild/exitCodeOnBogusFile/test-exit-code.js diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js similarity index 100% rename from tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module-with-isolatedModules.js rename to tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js similarity index 100% rename from tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/inferred-type-from-transitive-module.js rename to tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js diff --git a/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js b/tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js similarity index 100% rename from tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/initial-build/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js rename to tests/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js diff --git a/tests/baselines/reference/tsbuild/javascriptProjectEmit/initial-build/loads-js-based-projects-and-emits-them-correctly.js b/tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-and-emits-them-correctly.js similarity index 100% rename from tests/baselines/reference/tsbuild/javascriptProjectEmit/initial-build/loads-js-based-projects-and-emits-them-correctly.js rename to tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-and-emits-them-correctly.js diff --git a/tests/baselines/reference/tsbuild/javascriptProjectEmit/initial-build/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js b/tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js similarity index 100% rename from tests/baselines/reference/tsbuild/javascriptProjectEmit/initial-build/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js rename to tests/baselines/reference/tsbuild/javascriptProjectEmit/loads-js-based-projects-with-non-moved-json-files-and-emits-them-correctly.js diff --git a/tests/baselines/reference/tsbuild/javascriptProjectEmit/initial-build/modifies-outfile-js-projects-and-concatenates-them-correctly.js b/tests/baselines/reference/tsbuild/javascriptProjectEmit/modifies-outfile-js-projects-and-concatenates-them-correctly.js similarity index 100% rename from tests/baselines/reference/tsbuild/javascriptProjectEmit/initial-build/modifies-outfile-js-projects-and-concatenates-them-correctly.js rename to tests/baselines/reference/tsbuild/javascriptProjectEmit/modifies-outfile-js-projects-and-concatenates-them-correctly.js diff --git a/tests/baselines/reference/tsbuild/lateBoundSymbol/initial-build/interface-is-merged-and-contains-late-bound-member.js b/tests/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js similarity index 100% rename from tests/baselines/reference/tsbuild/lateBoundSymbol/initial-build/interface-is-merged-and-contains-late-bound-member.js rename to tests/baselines/reference/tsbuild/lateBoundSymbol/interface-is-merged-and-contains-late-bound-member.js diff --git a/tests/baselines/reference/tsbuild/moduleResolution/initial-build/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js b/tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js similarity index 100% rename from tests/baselines/reference/tsbuild/moduleResolution/initial-build/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js rename to tests/baselines/reference/tsbuild/moduleResolution/type-reference-resolution-uses-correct-options-for-different-resolution-options-referenced-project.js diff --git a/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-build/synthesized-module-specifiers-across-projects-resolve-correctly.js b/tests/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-across-projects-resolve-correctly.js similarity index 100% rename from tests/baselines/reference/tsbuild/moduleSpecifiers/initial-build/synthesized-module-specifiers-across-projects-resolve-correctly.js rename to tests/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-across-projects-resolve-correctly.js diff --git a/tests/baselines/reference/tsbuild/moduleSpecifiers/initial-build/synthesized-module-specifiers-resolve-correctly.js b/tests/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-resolve-correctly.js similarity index 100% rename from tests/baselines/reference/tsbuild/moduleSpecifiers/initial-build/synthesized-module-specifiers-resolve-correctly.js rename to tests/baselines/reference/tsbuild/moduleSpecifiers/synthesized-module-specifiers-resolve-correctly.js diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/initial-build/semantic-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js similarity index 100% rename from tests/baselines/reference/tsbuild/noEmitOnError/initial-build/semantic-errors-with-incremental.js rename to tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors-with-incremental.js diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/initial-build/semantic-errors.js b/tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors.js similarity index 100% rename from tests/baselines/reference/tsbuild/noEmitOnError/initial-build/semantic-errors.js rename to tests/baselines/reference/tsbuild/noEmitOnError/semantic-errors.js diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/initial-build/syntax-errors-with-incremental.js b/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js similarity index 100% rename from tests/baselines/reference/tsbuild/noEmitOnError/initial-build/syntax-errors-with-incremental.js rename to tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors-with-incremental.js diff --git a/tests/baselines/reference/tsbuild/noEmitOnError/initial-build/syntax-errors.js b/tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors.js similarity index 100% rename from tests/baselines/reference/tsbuild/noEmitOnError/initial-build/syntax-errors.js rename to tests/baselines/reference/tsbuild/noEmitOnError/syntax-errors.js diff --git a/tests/baselines/reference/tsbuild/outFile/initial-build/builds-till-project-specified.js b/tests/baselines/reference/tsbuild/outFile/builds-till-project-specified.js similarity index 100% rename from tests/baselines/reference/tsbuild/outFile/initial-build/builds-till-project-specified.js rename to tests/baselines/reference/tsbuild/outFile/builds-till-project-specified.js diff --git a/tests/baselines/reference/tsbuild/outFile/initial-build/clean-projects.js b/tests/baselines/reference/tsbuild/outFile/clean-projects.js similarity index 100% rename from tests/baselines/reference/tsbuild/outFile/initial-build/clean-projects.js rename to tests/baselines/reference/tsbuild/outFile/clean-projects.js diff --git a/tests/baselines/reference/tsbuild/outFile/initial-build/cleans-till-project-specified.js b/tests/baselines/reference/tsbuild/outFile/cleans-till-project-specified.js similarity index 100% rename from tests/baselines/reference/tsbuild/outFile/initial-build/cleans-till-project-specified.js rename to tests/baselines/reference/tsbuild/outFile/cleans-till-project-specified.js diff --git a/tests/baselines/reference/tsbuild/outFile/initial-build/non-module-projects-without-prepend.js b/tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js similarity index 100% rename from tests/baselines/reference/tsbuild/outFile/initial-build/non-module-projects-without-prepend.js rename to tests/baselines/reference/tsbuild/outFile/non-module-projects-without-prepend.js diff --git a/tests/baselines/reference/tsbuild/outFile/initial-build/rebuilds-completely-when-command-line-incremental-flag-changes-between-non-dts-changes.js b/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-command-line-incremental-flag-changes-between-non-dts-changes.js similarity index 100% rename from tests/baselines/reference/tsbuild/outFile/initial-build/rebuilds-completely-when-command-line-incremental-flag-changes-between-non-dts-changes.js rename to tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-command-line-incremental-flag-changes-between-non-dts-changes.js diff --git a/tests/baselines/reference/tsbuild/outFile/initial-build/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js b/tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js similarity index 100% rename from tests/baselines/reference/tsbuild/outFile/initial-build/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js rename to tests/baselines/reference/tsbuild/outFile/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js diff --git a/tests/baselines/reference/tsbuild/outFile/initial-build/tsbuildinfo-is-not-generated-when-incremental-is-set-to-false.js b/tests/baselines/reference/tsbuild/outFile/tsbuildinfo-is-not-generated-when-incremental-is-set-to-false.js similarity index 100% rename from tests/baselines/reference/tsbuild/outFile/initial-build/tsbuildinfo-is-not-generated-when-incremental-is-set-to-false.js rename to tests/baselines/reference/tsbuild/outFile/tsbuildinfo-is-not-generated-when-incremental-is-set-to-false.js diff --git a/tests/baselines/reference/tsbuild/outFile/initial-build/verify-buildInfo-absence-results-in-new-build.js b/tests/baselines/reference/tsbuild/outFile/verify-buildInfo-absence-results-in-new-build.js similarity index 100% rename from tests/baselines/reference/tsbuild/outFile/initial-build/verify-buildInfo-absence-results-in-new-build.js rename to tests/baselines/reference/tsbuild/outFile/verify-buildInfo-absence-results-in-new-build.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/baseline-sectioned-sourcemaps.js b/tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/baseline-sectioned-sourcemaps.js rename to tests/baselines/reference/tsbuild/outfile-concat/baseline-sectioned-sourcemaps.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/declarationMap-and-sourceMap-disabled.js b/tests/baselines/reference/tsbuild/outfile-concat/declarationMap-and-sourceMap-disabled.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/declarationMap-and-sourceMap-disabled.js rename to tests/baselines/reference/tsbuild/outfile-concat/declarationMap-and-sourceMap-disabled.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-all-projects.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-all-projects.js rename to tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-all-projects.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-only-one-dependency-project.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/emitHelpers-in-only-one-dependency-project.js rename to tests/baselines/reference/tsbuild/outfile-concat/emitHelpers-in-only-one-dependency-project.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/explainFiles.js b/tests/baselines/reference/tsbuild/outfile-concat/explainFiles.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/explainFiles.js rename to tests/baselines/reference/tsbuild/outfile-concat/explainFiles.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-all-projects.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-all-projects.js rename to tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-all-projects.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-different-projects.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-different-projects.js rename to tests/baselines/reference/tsbuild/outfile-concat/multiple-emitHelpers-in-different-projects.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-all-projects.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-all-projects.js rename to tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-all-projects.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-different-projects.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-prologues-in-different-projects.js rename to tests/baselines/reference/tsbuild/outfile-concat/multiple-prologues-in-different-projects.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-all-projects.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-all-projects.js rename to tests/baselines/reference/tsbuild/outfile-concat/shebang-in-all-projects.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/shebang-in-only-one-dependency-project.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/shebang-in-only-one-dependency-project.js rename to tests/baselines/reference/tsbuild/outfile-concat/shebang-in-only-one-dependency-project.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/strict-in-all-projects.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-all-projects.js rename to tests/baselines/reference/tsbuild/outfile-concat/strict-in-all-projects.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-one-dependency.js b/tests/baselines/reference/tsbuild/outfile-concat/strict-in-one-dependency.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/strict-in-one-dependency.js rename to tests/baselines/reference/tsbuild/outfile-concat/strict-in-one-dependency.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-baseline-when-internal-is-inside-another-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-baseline-when-internal-is-inside-another-internal.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-baseline-when-internal-is-inside-another-internal.js rename to tests/baselines/reference/tsbuild/outfile-concat/stripInternal-baseline-when-internal-is-inside-another-internal.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js rename to tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-comment.js rename to tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-comment.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js rename to tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-jsdoc-style-with-comments-emit-enabled.js rename to tests/baselines/reference/tsbuild/outfile-concat/stripInternal-jsdoc-style-with-comments-emit-enabled.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-few-members-of-enum-are-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-few-members-of-enum-are-internal.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-few-members-of-enum-are-internal.js rename to tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-few-members-of-enum-are-internal.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-one-two-three-are-prepended-in-order.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-one-two-three-are-prepended-in-order.js rename to tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-one-two-three-are-prepended-in-order.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-prepend-is-completely-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-prepend-is-completely-internal.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-when-prepend-is-completely-internal.js rename to tests/baselines/reference/tsbuild/outfile-concat/stripInternal-when-prepend-is-completely-internal.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js rename to tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal-with-comments-emit-enabled.js rename to tests/baselines/reference/tsbuild/outfile-concat/stripInternal-with-comments-emit-enabled.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal.js b/tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/stripInternal.js rename to tests/baselines/reference/tsbuild/outfile-concat/stripInternal.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-all-projects.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-all-projects.js rename to tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-all-projects.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-one-project.js b/tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-one-project.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/triple-slash-refs-in-one-project.js rename to tests/baselines/reference/tsbuild/outfile-concat/triple-slash-refs-in-one-project.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-incremental.js b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-incremental.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-incremental.js rename to tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-incremental.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-uses-project-references.js b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-uses-project-references.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-is-not-composite-but-uses-project-references.js rename to tests/baselines/reference/tsbuild/outfile-concat/when-final-project-is-not-composite-but-uses-project-references.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/outfile-concat/when-final-project-specifies-tsBuildInfoFile.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-final-project-specifies-tsBuildInfoFile.js rename to tests/baselines/reference/tsbuild/outfile-concat/when-final-project-specifies-tsBuildInfoFile.js diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-source-files-are-empty-in-the-own-file.js b/tests/baselines/reference/tsbuild/outfile-concat/when-source-files-are-empty-in-the-own-file.js similarity index 100% rename from tests/baselines/reference/tsbuild/outfile-concat/initial-build/when-source-files-are-empty-in-the-own-file.js rename to tests/baselines/reference/tsbuild/outfile-concat/when-source-files-are-empty-in-the-own-file.js diff --git a/tests/baselines/reference/tsbuild/outputPaths/initial-build/when-rootDir-is-not-specified-and-is-composite.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js similarity index 100% rename from tests/baselines/reference/tsbuild/outputPaths/initial-build/when-rootDir-is-not-specified-and-is-composite.js rename to tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified-and-is-composite.js diff --git a/tests/baselines/reference/tsbuild/outputPaths/initial-build/when-rootDir-is-not-specified.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js similarity index 100% rename from tests/baselines/reference/tsbuild/outputPaths/initial-build/when-rootDir-is-not-specified.js rename to tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-not-specified.js diff --git a/tests/baselines/reference/tsbuild/outputPaths/initial-build/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js similarity index 100% rename from tests/baselines/reference/tsbuild/outputPaths/initial-build/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js rename to tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir-and-is-composite.js diff --git a/tests/baselines/reference/tsbuild/outputPaths/initial-build/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js similarity index 100% rename from tests/baselines/reference/tsbuild/outputPaths/initial-build/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js rename to tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified-but-not-all-files-belong-to-rootDir.js diff --git a/tests/baselines/reference/tsbuild/outputPaths/initial-build/when-rootDir-is-specified.js b/tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified.js similarity index 100% rename from tests/baselines/reference/tsbuild/outputPaths/initial-build/when-rootDir-is-specified.js rename to tests/baselines/reference/tsbuild/outputPaths/when-rootDir-is-specified.js diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/initial-build/builds-correctly.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/builds-correctly.js similarity index 100% rename from tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/initial-build/builds-correctly.js rename to tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/builds-correctly.js diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/initial-build/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js similarity index 100% rename from tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/initial-build/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js rename to tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file-because-no-rootDir-in-the-base.js diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/initial-build/reports-error-for-same-tsbuildinfo-file.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file.js similarity index 100% rename from tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/initial-build/reports-error-for-same-tsbuildinfo-file.js rename to tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-error-for-same-tsbuildinfo-file.js diff --git a/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/initial-build/reports-no-error-when-tsbuildinfo-differ.js b/tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-no-error-when-tsbuildinfo-differ.js similarity index 100% rename from tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/initial-build/reports-no-error-when-tsbuildinfo-differ.js rename to tests/baselines/reference/tsbuild/projectReferenceWithRootDirInParent/reports-no-error-when-tsbuildinfo-differ.js diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/files-containing-json-file.js b/tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js similarity index 100% rename from tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/files-containing-json-file.js rename to tests/baselines/reference/tsbuild/resolveJsonModule/files-containing-json-file.js diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/importing-json-module-from-project-reference.js b/tests/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js similarity index 100% rename from tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/importing-json-module-from-project-reference.js rename to tests/baselines/reference/tsbuild/resolveJsonModule/importing-json-module-from-project-reference.js diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/include-and-files.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js similarity index 100% rename from tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/include-and-files.js rename to tests/baselines/reference/tsbuild/resolveJsonModule/include-and-files.js diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js similarity index 100% rename from tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js rename to tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include-and-file-name-matches-ts-file.js diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/include-of-json-along-with-other-include.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js similarity index 100% rename from tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/include-of-json-along-with-other-include.js rename to tests/baselines/reference/tsbuild/resolveJsonModule/include-of-json-along-with-other-include.js diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/include-only.js b/tests/baselines/reference/tsbuild/resolveJsonModule/include-only.js similarity index 100% rename from tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/include-only.js rename to tests/baselines/reference/tsbuild/resolveJsonModule/include-only.js diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/sourcemap.js b/tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js similarity index 100% rename from tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/sourcemap.js rename to tests/baselines/reference/tsbuild/resolveJsonModule/sourcemap.js diff --git a/tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/without-outDir.js b/tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js similarity index 100% rename from tests/baselines/reference/tsbuild/resolveJsonModule/initial-build/without-outDir.js rename to tests/baselines/reference/tsbuild/resolveJsonModule/without-outDir.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/always-builds-under-with-force-option.js b/tests/baselines/reference/tsbuild/sample1/always-builds-under-with-force-option.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/always-builds-under-with-force-option.js rename to tests/baselines/reference/tsbuild/sample1/always-builds-under-with-force-option.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/building-project-in-not-build-order-doesnt-throw-error.js b/tests/baselines/reference/tsbuild/sample1/building-project-in-not-build-order-doesnt-throw-error.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/building-project-in-not-build-order-doesnt-throw-error.js rename to tests/baselines/reference/tsbuild/sample1/building-project-in-not-build-order-doesnt-throw-error.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/building-using-buildReferencedProject.js b/tests/baselines/reference/tsbuild/sample1/building-using-buildReferencedProject.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/building-using-buildReferencedProject.js rename to tests/baselines/reference/tsbuild/sample1/building-using-buildReferencedProject.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/builds-correctly-when-declarationDir-is-specified.js b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-declarationDir-is-specified.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/builds-correctly-when-declarationDir-is-specified.js rename to tests/baselines/reference/tsbuild/sample1/builds-correctly-when-declarationDir-is-specified.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/builds-correctly-when-outDir-is-specified.js b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-outDir-is-specified.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/builds-correctly-when-outDir-is-specified.js rename to tests/baselines/reference/tsbuild/sample1/builds-correctly-when-outDir-is-specified.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js b/tests/baselines/reference/tsbuild/sample1/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js rename to tests/baselines/reference/tsbuild/sample1/builds-correctly-when-project-is-not-composite-or-doesnt-have-any-references.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/builds-till-project-specified.js b/tests/baselines/reference/tsbuild/sample1/builds-till-project-specified.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/builds-till-project-specified.js rename to tests/baselines/reference/tsbuild/sample1/builds-till-project-specified.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/can-detect-when-and-what-to-rebuild.js b/tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/can-detect-when-and-what-to-rebuild.js rename to tests/baselines/reference/tsbuild/sample1/can-detect-when-and-what-to-rebuild.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/cleaning-project-in-not-build-order-doesnt-throw-error.js b/tests/baselines/reference/tsbuild/sample1/cleaning-project-in-not-build-order-doesnt-throw-error.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/cleaning-project-in-not-build-order-doesnt-throw-error.js rename to tests/baselines/reference/tsbuild/sample1/cleaning-project-in-not-build-order-doesnt-throw-error.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/cleans-till-project-specified.js b/tests/baselines/reference/tsbuild/sample1/cleans-till-project-specified.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/cleans-till-project-specified.js rename to tests/baselines/reference/tsbuild/sample1/cleans-till-project-specified.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/does-not-build-downstream-projects-if-upstream-projects-have-errors.js b/tests/baselines/reference/tsbuild/sample1/does-not-build-downstream-projects-if-upstream-projects-have-errors.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/does-not-build-downstream-projects-if-upstream-projects-have-errors.js rename to tests/baselines/reference/tsbuild/sample1/does-not-build-downstream-projects-if-upstream-projects-have-errors.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/does-not-rebuild-if-there-is-no-program-and-bundle-in-the-ts-build-info-event-if-version-doesnt-match-ts-version.js b/tests/baselines/reference/tsbuild/sample1/does-not-rebuild-if-there-is-no-program-and-bundle-in-the-ts-build-info-event-if-version-doesnt-match-ts-version.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/does-not-rebuild-if-there-is-no-program-and-bundle-in-the-ts-build-info-event-if-version-doesnt-match-ts-version.js rename to tests/baselines/reference/tsbuild/sample1/does-not-rebuild-if-there-is-no-program-and-bundle-in-the-ts-build-info-event-if-version-doesnt-match-ts-version.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/does-not-write-any-files-in-a-dry-build.js b/tests/baselines/reference/tsbuild/sample1/does-not-write-any-files-in-a-dry-build.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/does-not-write-any-files-in-a-dry-build.js rename to tests/baselines/reference/tsbuild/sample1/does-not-write-any-files-in-a-dry-build.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/explainFiles.js b/tests/baselines/reference/tsbuild/sample1/explainFiles.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/explainFiles.js rename to tests/baselines/reference/tsbuild/sample1/explainFiles.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/indicates-that-it-would-skip-builds-during-a-dry-build.js b/tests/baselines/reference/tsbuild/sample1/indicates-that-it-would-skip-builds-during-a-dry-build.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/indicates-that-it-would-skip-builds-during-a-dry-build.js rename to tests/baselines/reference/tsbuild/sample1/indicates-that-it-would-skip-builds-during-a-dry-build.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/listEmittedFiles.js b/tests/baselines/reference/tsbuild/sample1/listEmittedFiles.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/listEmittedFiles.js rename to tests/baselines/reference/tsbuild/sample1/listEmittedFiles.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/listFiles.js b/tests/baselines/reference/tsbuild/sample1/listFiles.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/listFiles.js rename to tests/baselines/reference/tsbuild/sample1/listFiles.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js b/tests/baselines/reference/tsbuild/sample1/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js rename to tests/baselines/reference/tsbuild/sample1/rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/rebuilds-from-start-if-force-option-is-set.js b/tests/baselines/reference/tsbuild/sample1/rebuilds-from-start-if-force-option-is-set.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/rebuilds-from-start-if-force-option-is-set.js rename to tests/baselines/reference/tsbuild/sample1/rebuilds-from-start-if-force-option-is-set.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/rebuilds-when-extended-config-file-changes.js b/tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/rebuilds-when-extended-config-file-changes.js rename to tests/baselines/reference/tsbuild/sample1/rebuilds-when-extended-config-file-changes.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/removes-all-files-it-built.js b/tests/baselines/reference/tsbuild/sample1/removes-all-files-it-built.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/removes-all-files-it-built.js rename to tests/baselines/reference/tsbuild/sample1/removes-all-files-it-built.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/sample.js b/tests/baselines/reference/tsbuild/sample1/sample.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/sample.js rename to tests/baselines/reference/tsbuild/sample1/sample.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/when-declaration-option-changes.js b/tests/baselines/reference/tsbuild/sample1/when-declaration-option-changes.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/when-declaration-option-changes.js rename to tests/baselines/reference/tsbuild/sample1/when-declaration-option-changes.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/when-esModuleInterop-option-changes.js b/tests/baselines/reference/tsbuild/sample1/when-esModuleInterop-option-changes.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/when-esModuleInterop-option-changes.js rename to tests/baselines/reference/tsbuild/sample1/when-esModuleInterop-option-changes.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/when-logic-specifies-tsBuildInfoFile.js b/tests/baselines/reference/tsbuild/sample1/when-logic-specifies-tsBuildInfoFile.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/when-logic-specifies-tsBuildInfoFile.js rename to tests/baselines/reference/tsbuild/sample1/when-logic-specifies-tsBuildInfoFile.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/when-module-option-changes.js b/tests/baselines/reference/tsbuild/sample1/when-module-option-changes.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/when-module-option-changes.js rename to tests/baselines/reference/tsbuild/sample1/when-module-option-changes.js diff --git a/tests/baselines/reference/tsbuild/sample1/initial-build/when-target-option-changes.js b/tests/baselines/reference/tsbuild/sample1/when-target-option-changes.js similarity index 100% rename from tests/baselines/reference/tsbuild/sample1/initial-build/when-target-option-changes.js rename to tests/baselines/reference/tsbuild/sample1/when-target-option-changes.js diff --git a/tests/baselines/reference/tsbuild/transitiveReferences/initial-build/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js similarity index 100% rename from tests/baselines/reference/tsbuild/transitiveReferences/initial-build/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js rename to tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly-when-the-referenced-project-uses-different-module-resolution.js diff --git a/tests/baselines/reference/tsbuild/transitiveReferences/initial-build/builds-correctly.js b/tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly.js similarity index 100% rename from tests/baselines/reference/tsbuild/transitiveReferences/initial-build/builds-correctly.js rename to tests/baselines/reference/tsbuild/transitiveReferences/builds-correctly.js diff --git a/tests/baselines/reference/tsbuild/transitiveReferences/initial-build/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js b/tests/baselines/reference/tsbuild/transitiveReferences/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js similarity index 100% rename from tests/baselines/reference/tsbuild/transitiveReferences/initial-build/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js rename to tests/baselines/reference/tsbuild/transitiveReferences/reports-error-about-module-not-found-with-node-resolution-with-external-module-name.js diff --git a/tests/baselines/reference/tsbuild/watchMode/configFileErrors/reports-syntax-errors-in-config-file.js b/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/configFileErrors/reports-syntax-errors-in-config-file.js rename to tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js diff --git a/tests/baselines/reference/tsbuild/watchMode/demo/updates-with-bad-reference.js b/tests/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/demo/updates-with-bad-reference.js rename to tests/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js diff --git a/tests/baselines/reference/tsbuild/watchMode/demo/updates-with-circular-reference.js b/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/demo/updates-with-circular-reference.js rename to tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js diff --git a/tests/baselines/reference/tsbuild/watchMode/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js b/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js rename to tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js diff --git a/tests/baselines/reference/tsbuild/watchMode/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js b/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js rename to tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js diff --git a/tests/baselines/reference/tsbuild/watchMode/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js b/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js rename to tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js diff --git a/tests/baselines/reference/tsbuild/watchMode/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js b/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js rename to tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js diff --git a/tests/baselines/reference/tsbuild/watchMode/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js b/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js rename to tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js diff --git a/tests/baselines/reference/tsbuild/watchMode/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js b/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js rename to tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js diff --git a/tests/baselines/reference/tsbuild/watchMode/noEmitOnError/does-not-emit-any-files-on-error.js b/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/noEmitOnError/does-not-emit-any-files-on-error.js rename to tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/creates-solution-in-watch-mode.js b/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/creates-solution-in-watch-mode.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/incremental-updates-in-verbose-mode.js b/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/incremental-updates-in-verbose-mode.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/verify-building-references-watches-only-those-projects.js b/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/verify-building-references-watches-only-those-projects.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/watches-config-files-that-are-not-present.js b/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/watches-config-files-that-are-not-present.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js b/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/works-when-noUnusedParameters-changes-to-false.js b/tests/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/works-when-noUnusedParameters-changes-to-false.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js diff --git a/tests/baselines/reference/tsbuild/watchMode/programUpdates/works-with-extended-source-files.js b/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/programUpdates/works-with-extended-source-files.js rename to tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js diff --git a/tests/baselines/reference/tsbuild/watchMode/publicApi/with-custom-transformers.js b/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/publicApi/with-custom-transformers.js rename to tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js diff --git a/tests/baselines/reference/tsbuild/watchMode/reexport/Reports-errors-correctly.js b/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/reexport/Reports-errors-correctly.js rename to tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js diff --git a/tests/baselines/reference/tsbuild/watchMode/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js b/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js rename to tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js diff --git a/tests/baselines/reference/tsbuild/watchMode/watchEnvironment/same-file-in-multiple-projects.js b/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects.js similarity index 100% rename from tests/baselines/reference/tsbuild/watchMode/watchEnvironment/same-file-in-multiple-projects.js rename to tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects.js diff --git a/tests/baselines/reference/tsc/composite/initial-build/when-setting-composite-false-and-tsbuildinfo-as-null-on-command-line-but-has-tsbuild-info-in-config.js b/tests/baselines/reference/tsc/composite/when-setting-composite-false-and-tsbuildinfo-as-null-on-command-line-but-has-tsbuild-info-in-config.js similarity index 100% rename from tests/baselines/reference/tsc/composite/initial-build/when-setting-composite-false-and-tsbuildinfo-as-null-on-command-line-but-has-tsbuild-info-in-config.js rename to tests/baselines/reference/tsc/composite/when-setting-composite-false-and-tsbuildinfo-as-null-on-command-line-but-has-tsbuild-info-in-config.js diff --git a/tests/baselines/reference/tsc/composite/initial-build/when-setting-composite-false-on-command-line-but-has-tsbuild-info-in-config.js b/tests/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line-but-has-tsbuild-info-in-config.js similarity index 100% rename from tests/baselines/reference/tsc/composite/initial-build/when-setting-composite-false-on-command-line-but-has-tsbuild-info-in-config.js rename to tests/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line-but-has-tsbuild-info-in-config.js diff --git a/tests/baselines/reference/tsc/composite/initial-build/when-setting-composite-false-on-command-line.js b/tests/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line.js similarity index 100% rename from tests/baselines/reference/tsc/composite/initial-build/when-setting-composite-false-on-command-line.js rename to tests/baselines/reference/tsc/composite/when-setting-composite-false-on-command-line.js diff --git a/tests/baselines/reference/tsc/composite/initial-build/when-setting-composite-null-on-command-line.js b/tests/baselines/reference/tsc/composite/when-setting-composite-null-on-command-line.js similarity index 100% rename from tests/baselines/reference/tsc/composite/initial-build/when-setting-composite-null-on-command-line.js rename to tests/baselines/reference/tsc/composite/when-setting-composite-null-on-command-line.js diff --git a/tests/baselines/reference/tsc/incremental/initial-build/noEmit-changes-composite.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-composite.js similarity index 100% rename from tests/baselines/reference/tsc/incremental/initial-build/noEmit-changes-composite.js rename to tests/baselines/reference/tsc/incremental/noEmit-changes-composite.js diff --git a/tests/baselines/reference/tsc/incremental/initial-build/noEmit-changes-incremental-declaration.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental-declaration.js similarity index 100% rename from tests/baselines/reference/tsc/incremental/initial-build/noEmit-changes-incremental-declaration.js rename to tests/baselines/reference/tsc/incremental/noEmit-changes-incremental-declaration.js diff --git a/tests/baselines/reference/tsc/incremental/initial-build/noEmit-changes-incremental.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-incremental.js similarity index 100% rename from tests/baselines/reference/tsc/incremental/initial-build/noEmit-changes-incremental.js rename to tests/baselines/reference/tsc/incremental/noEmit-changes-incremental.js diff --git a/tests/baselines/reference/tsc/incremental/initial-build/noEmit-changes-with-initial-noEmit-composite.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite.js similarity index 100% rename from tests/baselines/reference/tsc/incremental/initial-build/noEmit-changes-with-initial-noEmit-composite.js rename to tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-composite.js diff --git a/tests/baselines/reference/tsc/incremental/initial-build/noEmit-changes-with-initial-noEmit-incremental-declaration.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental-declaration.js similarity index 100% rename from tests/baselines/reference/tsc/incremental/initial-build/noEmit-changes-with-initial-noEmit-incremental-declaration.js rename to tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental-declaration.js diff --git a/tests/baselines/reference/tsc/incremental/initial-build/noEmit-changes-with-initial-noEmit-incremental.js b/tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental.js similarity index 100% rename from tests/baselines/reference/tsc/incremental/initial-build/noEmit-changes-with-initial-noEmit-incremental.js rename to tests/baselines/reference/tsc/incremental/noEmit-changes-with-initial-noEmit-incremental.js diff --git a/tests/baselines/reference/tsc/incremental/initial-build/serializing-error-chains.js b/tests/baselines/reference/tsc/incremental/serializing-error-chains.js similarity index 100% rename from tests/baselines/reference/tsc/incremental/initial-build/serializing-error-chains.js rename to tests/baselines/reference/tsc/incremental/serializing-error-chains.js diff --git a/tests/baselines/reference/tsc/incremental/initial-build/ts-file-with-no-default-lib-that-augments-the-global-scope.js b/tests/baselines/reference/tsc/incremental/ts-file-with-no-default-lib-that-augments-the-global-scope.js similarity index 100% rename from tests/baselines/reference/tsc/incremental/initial-build/ts-file-with-no-default-lib-that-augments-the-global-scope.js rename to tests/baselines/reference/tsc/incremental/ts-file-with-no-default-lib-that-augments-the-global-scope.js diff --git a/tests/baselines/reference/tsc/incremental/initial-build/when-global-file-is-added,-the-signatures-are-updated.js b/tests/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js similarity index 100% rename from tests/baselines/reference/tsc/incremental/initial-build/when-global-file-is-added,-the-signatures-are-updated.js rename to tests/baselines/reference/tsc/incremental/when-global-file-is-added,-the-signatures-are-updated.js diff --git a/tests/baselines/reference/tsc/incremental/initial-build/when-new-file-is-added-to-the-referenced-project.js b/tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js similarity index 100% rename from tests/baselines/reference/tsc/incremental/initial-build/when-new-file-is-added-to-the-referenced-project.js rename to tests/baselines/reference/tsc/incremental/when-new-file-is-added-to-the-referenced-project.js diff --git a/tests/baselines/reference/tsc/incremental/initial-build/when-passing-filename-for-buildinfo-on-commandline.js b/tests/baselines/reference/tsc/incremental/when-passing-filename-for-buildinfo-on-commandline.js similarity index 100% rename from tests/baselines/reference/tsc/incremental/initial-build/when-passing-filename-for-buildinfo-on-commandline.js rename to tests/baselines/reference/tsc/incremental/when-passing-filename-for-buildinfo-on-commandline.js diff --git a/tests/baselines/reference/tsc/incremental/initial-build/when-passing-rootDir-from-commandline.js b/tests/baselines/reference/tsc/incremental/when-passing-rootDir-from-commandline.js similarity index 100% rename from tests/baselines/reference/tsc/incremental/initial-build/when-passing-rootDir-from-commandline.js rename to tests/baselines/reference/tsc/incremental/when-passing-rootDir-from-commandline.js diff --git a/tests/baselines/reference/tsc/incremental/initial-build/when-passing-rootDir-is-in-the-tsconfig.js b/tests/baselines/reference/tsc/incremental/when-passing-rootDir-is-in-the-tsconfig.js similarity index 100% rename from tests/baselines/reference/tsc/incremental/initial-build/when-passing-rootDir-is-in-the-tsconfig.js rename to tests/baselines/reference/tsc/incremental/when-passing-rootDir-is-in-the-tsconfig.js diff --git a/tests/baselines/reference/tsc/incremental/initial-build/when-project-has-strict-true.js b/tests/baselines/reference/tsc/incremental/when-project-has-strict-true.js similarity index 100% rename from tests/baselines/reference/tsc/incremental/initial-build/when-project-has-strict-true.js rename to tests/baselines/reference/tsc/incremental/when-project-has-strict-true.js diff --git a/tests/baselines/reference/tsc/incremental/initial-build/with-noEmitOnError-semantic-errors.js b/tests/baselines/reference/tsc/incremental/with-noEmitOnError-semantic-errors.js similarity index 100% rename from tests/baselines/reference/tsc/incremental/initial-build/with-noEmitOnError-semantic-errors.js rename to tests/baselines/reference/tsc/incremental/with-noEmitOnError-semantic-errors.js diff --git a/tests/baselines/reference/tsc/incremental/initial-build/with-noEmitOnError-syntax-errors.js b/tests/baselines/reference/tsc/incremental/with-noEmitOnError-syntax-errors.js similarity index 100% rename from tests/baselines/reference/tsc/incremental/initial-build/with-noEmitOnError-syntax-errors.js rename to tests/baselines/reference/tsc/incremental/with-noEmitOnError-syntax-errors.js diff --git a/tests/baselines/reference/tsc/incremental/initial-build/with-only-dts-files.js b/tests/baselines/reference/tsc/incremental/with-only-dts-files.js similarity index 100% rename from tests/baselines/reference/tsc/incremental/initial-build/with-only-dts-files.js rename to tests/baselines/reference/tsc/incremental/with-only-dts-files.js diff --git a/tests/baselines/reference/tsc/listFilesOnly/initial-build/combined-with-watch.js b/tests/baselines/reference/tsc/listFilesOnly/combined-with-watch.js similarity index 100% rename from tests/baselines/reference/tsc/listFilesOnly/initial-build/combined-with-watch.js rename to tests/baselines/reference/tsc/listFilesOnly/combined-with-watch.js diff --git a/tests/baselines/reference/tsc/listFilesOnly/initial-build/loose-file.js b/tests/baselines/reference/tsc/listFilesOnly/loose-file.js similarity index 100% rename from tests/baselines/reference/tsc/listFilesOnly/initial-build/loose-file.js rename to tests/baselines/reference/tsc/listFilesOnly/loose-file.js diff --git a/tests/baselines/reference/tsc/projectReferences/initial-build/when-project-contains-invalid-project-reference.js b/tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js similarity index 100% rename from tests/baselines/reference/tsc/projectReferences/initial-build/when-project-contains-invalid-project-reference.js rename to tests/baselines/reference/tsc/projectReferences/when-project-contains-invalid-project-reference.js diff --git a/tests/baselines/reference/tsc/projectReferences/initial-build/when-project-references-composite-project-with-noEmit.js b/tests/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js similarity index 100% rename from tests/baselines/reference/tsc/projectReferences/initial-build/when-project-references-composite-project-with-noEmit.js rename to tests/baselines/reference/tsc/projectReferences/when-project-references-composite-project-with-noEmit.js diff --git a/tests/baselines/reference/tsc/react-jsx-emit-mode/initial-build/with-no-backing-types-found-doesn't-crash-under---strict.js b/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash-under---strict.js similarity index 100% rename from tests/baselines/reference/tsc/react-jsx-emit-mode/initial-build/with-no-backing-types-found-doesn't-crash-under---strict.js rename to tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash-under---strict.js diff --git a/tests/baselines/reference/tsc/react-jsx-emit-mode/initial-build/with-no-backing-types-found-doesn't-crash.js b/tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash.js similarity index 100% rename from tests/baselines/reference/tsc/react-jsx-emit-mode/initial-build/with-no-backing-types-found-doesn't-crash.js rename to tests/baselines/reference/tsc/react-jsx-emit-mode/with-no-backing-types-found-doesn't-crash.js diff --git a/tests/baselines/reference/tsc/runWithoutArgs/initial-build/does-not-add-color-when-NO_COLOR-is-set.js b/tests/baselines/reference/tsc/runWithoutArgs/does-not-add-color-when-NO_COLOR-is-set.js similarity index 100% rename from tests/baselines/reference/tsc/runWithoutArgs/initial-build/does-not-add-color-when-NO_COLOR-is-set.js rename to tests/baselines/reference/tsc/runWithoutArgs/does-not-add-color-when-NO_COLOR-is-set.js diff --git a/tests/baselines/reference/tsc/runWithoutArgs/initial-build/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-can't-provide-terminal-width.js b/tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-can't-provide-terminal-width.js similarity index 100% rename from tests/baselines/reference/tsc/runWithoutArgs/initial-build/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-can't-provide-terminal-width.js rename to tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-can't-provide-terminal-width.js diff --git a/tests/baselines/reference/tsc/runWithoutArgs/initial-build/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js b/tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js similarity index 100% rename from tests/baselines/reference/tsc/runWithoutArgs/initial-build/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js rename to tests/baselines/reference/tsc/runWithoutArgs/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js