From 224f3ca975e7088f61d33cc406b7b6ffdb27a17d Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 20 Feb 2019 13:09:38 -0800 Subject: [PATCH] Enable other stripinternal test cases --- src/compiler/emitter.ts | 2 +- src/testRunner/unittests/tsbuild/outFile.ts | 109 +- ...en-one-two-three-are-prepended-in-order.js | 761 ++----------- .../stripInternal-jsdoc-style-comment.js | 824 ++------------ ...en-one-two-three-are-prepended-in-order.js | 885 ++------------- ...-jsdoc-style-with-comments-emit-enabled.js | 954 ++-------------- ...en-one-two-three-are-prepended-in-order.js | 761 ++----------- ...en-one-two-three-are-prepended-in-order.js | 761 ++----------- ...tripInternal-with-comments-emit-enabled.js | 824 ++------------ ...en-one-two-three-are-prepended-in-order.js | 144 ++- .../stripInternal-jsdoc-style-comment.js | 98 +- ...en-one-two-three-are-prepended-in-order.js | 144 ++- ...-jsdoc-style-with-comments-emit-enabled.js | 98 +- ...en-one-two-three-are-prepended-in-order.js | 144 ++- ...en-one-two-three-are-prepended-in-order.js | 144 ++- ...tripInternal-with-comments-emit-enabled.js | 98 +- ...en-one-two-three-are-prepended-in-order.js | 644 ++--------- .../stripInternal-jsdoc-style-comment.js | 958 +++++++--------- ...en-one-two-three-are-prepended-in-order.js | 644 ++--------- ...en-one-two-three-are-prepended-in-order.js | 644 ++--------- ...tripInternal-with-comments-emit-enabled.js | 958 +++++++--------- ...en-one-two-three-are-prepended-in-order.js | 761 ++----------- .../stripInternal-jsdoc-style-comment.js | 871 +++----------- ...en-one-two-three-are-prepended-in-order.js | 885 ++------------- ...-jsdoc-style-with-comments-emit-enabled.js | 1001 +++-------------- ...en-one-two-three-are-prepended-in-order.js | 761 ++----------- ...en-one-two-three-are-prepended-in-order.js | 761 ++----------- ...tripInternal-with-comments-emit-enabled.js | 871 +++----------- 28 files changed, 3329 insertions(+), 13181 deletions(-) diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 8545a1353b4..4490c240886 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -798,7 +798,7 @@ namespace ts { if (bundleFileInfo) { const newSections = bundleFileInfo.sections; bundleFileInfo.sections = savedSections!; - if (prepend.oldFileOfCurrentEmit) bundleFileInfo.sections.push({ pos, end: writer.getTextPos(), kind: BundleFileSectionKind.Text }); + if (prepend.oldFileOfCurrentEmit) bundleFileInfo.sections.push(...newSections); else { newSections.forEach(section => Debug.assert(isBundleFileTextLike(section))); bundleFileInfo.sections.push({ pos, end: writer.getTextPos(), kind: BundleFileSectionKind.Prepend, data: (prepend as UnparsedSource).fileName, texts: newSections as BundleFileTextLike[] }); diff --git a/src/testRunner/unittests/tsbuild/outFile.ts b/src/testRunner/unittests/tsbuild/outFile.ts index b4764223f7c..ca5b28ca440 100644 --- a/src/testRunner/unittests/tsbuild/outFile.ts +++ b/src/testRunner/unittests/tsbuild/outFile.ts @@ -158,10 +158,10 @@ namespace ts { [Diagnostics.Building_project_0, sources[project.first][source.config]], [Diagnostics.Project_0_is_out_of_date_because_output_javascript_and_source_map_if_specified_of_its_dependency_1_has_changed, relSources[project.second][source.config], "src/first"], [Diagnostics.Updating_output_javascript_and_javascript_source_map_if_specified_of_project_0, sources[project.second][source.config]], - ...getUnchangedOutputTimeStampUpdate(project.second), + [Diagnostics.Updating_unchanged_output_timestamps_of_project_0, sources[project.second][source.config]], [Diagnostics.Project_0_is_out_of_date_because_output_javascript_and_source_map_if_specified_of_its_dependency_1_has_changed, relSources[project.third][source.config], "src/second"], [Diagnostics.Updating_output_javascript_and_javascript_source_map_if_specified_of_project_0, sources[project.third][source.config]], - ...getUnchangedOutputTimeStampUpdate(project.third), + ...getUnchangedOutputTimeStampUpdateOfProjectThree(), ] : [ getExpectedDiagnosticForProjectsInBuild(relSources[project.first][source.config], relSources[project.second][source.config], relSources[project.third][source.config]), @@ -170,7 +170,7 @@ namespace ts { [Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2, relSources[project.second][source.config], relSources[project.second][source.ts][part.one], relOutputFiles[project.second][ext.js]], [Diagnostics.Project_0_is_out_of_date_because_output_javascript_and_source_map_if_specified_of_its_dependency_1_has_changed, relSources[project.third][source.config], "src/first"], [Diagnostics.Updating_output_javascript_and_javascript_source_map_if_specified_of_project_0, sources[project.third][source.config]], - ...getUnchangedOutputTimeStampUpdate(project.third), + ...getUnchangedOutputTimeStampUpdateOfProjectThree(), ], expectedReadFiles: getReadFilesMap( [ @@ -313,9 +313,9 @@ namespace ts { } }); - function getUnchangedOutputTimeStampUpdate(project: project): ReadonlyArray { + function getUnchangedOutputTimeStampUpdateOfProjectThree(): ReadonlyArray { return !unchangedDtsWritesThirdDts ? - [[Diagnostics.Updating_unchanged_output_timestamps_of_project_0, sources[project][source.config]]] : + [[Diagnostics.Updating_unchanged_output_timestamps_of_project_0, sources[project.third][source.config]]] : emptyArray; } } @@ -648,59 +648,66 @@ ${internal} enum internalEnum { a, b, c }`); unchangedDtsWritesThirdDts: true }); - // verifyOutFileScenario({ - // scenario: "stripInternal with comments emit enabled", - // modifyFs: fs => stripInternalScenario(fs, /*removeCommentsDisabled*/ true), - // modifyAgainFs: fs => replaceText(fs, sources[project.first][source.ts][part.one], `/*@internal*/ interface`, "interface") - // }); + verifyOutFileScenario({ + scenario: "stripInternal with comments emit enabled", + modifyFs: fs => stripInternalScenario(fs, /*removeCommentsDisabled*/ true), + modifyAgainFs: fs => replaceText(fs, sources[project.first][source.ts][part.one], `/*@internal*/ interface`, "interface"), + unchangedDtsWritesThirdDts: true + }); - // verifyOutFileScenario({ - // scenario: "stripInternal jsdoc style comment", - // modifyFs: fs => stripInternalScenario(fs, /*removeCommentsDisabled*/ false, /*jsDocStyle*/ true), - // modifyAgainFs: fs => replaceText(fs, sources[project.first][source.ts][part.one], `/**@internal*/ interface`, "interface") - // }); + verifyOutFileScenario({ + scenario: "stripInternal jsdoc style comment", + modifyFs: fs => stripInternalScenario(fs, /*removeCommentsDisabled*/ false, /*jsDocStyle*/ true), + modifyAgainFs: fs => replaceText(fs, sources[project.first][source.ts][part.one], `/**@internal*/ interface`, "interface"), + unchangedDtsWritesThirdDts: true + }); - // verifyOutFileScenario({ - // scenario: "stripInternal jsdoc style with comments emit enabled", - // modifyFs: fs => stripInternalScenario(fs, /*removeCommentsDisabled*/ true, /*jsDocStyle*/ true), - // }); + verifyOutFileScenario({ + scenario: "stripInternal jsdoc style with comments emit enabled", + modifyFs: fs => stripInternalScenario(fs, /*removeCommentsDisabled*/ true, /*jsDocStyle*/ true), + unchangedDtsWritesThirdDts: true + }); - // function makeOneTwoThreeDependOrder(fs: vfs.FileSystem) { - // replaceText(fs, sources[project.second][source.config], "[", `[ - //{ "path": "../first", "prepend": true }`); - // replaceText(fs, sources[project.third][source.config], `{ "path": "../first", "prepend": true },`, ""); - // } + function makeOneTwoThreeDependOrder(fs: vfs.FileSystem) { + replaceText(fs, sources[project.second][source.config], "[", `[ + { "path": "../first", "prepend": true }`); + replaceText(fs, sources[project.third][source.config], `{ "path": "../first", "prepend": true },`, ""); + } - // function stripInternalWithDependentOrder(fs: vfs.FileSystem, removeCommentsDisabled?: boolean, jsDocStyle?: boolean) { - // stripInternalScenario(fs, removeCommentsDisabled, jsDocStyle); - // makeOneTwoThreeDependOrder(fs); - // } + function stripInternalWithDependentOrder(fs: vfs.FileSystem, removeCommentsDisabled?: boolean, jsDocStyle?: boolean) { + stripInternalScenario(fs, removeCommentsDisabled, jsDocStyle); + makeOneTwoThreeDependOrder(fs); + } - // verifyOutFileScenario({ - // scenario: "stripInternal when one-two-three are prepended in order", - // modifyFs: fs => stripInternalWithDependentOrder(fs), - // modifyAgainFs: fs => replaceText(fs, sources[project.first][source.ts][part.one], `/*@internal*/ interface`, "interface"), - // dependOrdered: true - // }); + verifyOutFileScenario({ + scenario: "stripInternal when one-two-three are prepended in order", + modifyFs: fs => stripInternalWithDependentOrder(fs), + modifyAgainFs: fs => replaceText(fs, sources[project.first][source.ts][part.one], `/*@internal*/ interface`, "interface"), + dependOrdered: true, + unchangedDtsWritesThirdDts: true + }); - // verifyOutFileScenario({ - // scenario: "stripInternal with comments emit enabled when one-two-three are prepended in order", - // modifyFs: fs => stripInternalWithDependentOrder(fs, /*removeCommentsDisabled*/ true), - // modifyAgainFs: fs => replaceText(fs, sources[project.first][source.ts][part.one], `/*@internal*/ interface`, "interface"), - // dependOrdered: true - // }); + verifyOutFileScenario({ + scenario: "stripInternal with comments emit enabled when one-two-three are prepended in order", + modifyFs: fs => stripInternalWithDependentOrder(fs, /*removeCommentsDisabled*/ true), + modifyAgainFs: fs => replaceText(fs, sources[project.first][source.ts][part.one], `/*@internal*/ interface`, "interface"), + dependOrdered: true, + unchangedDtsWritesThirdDts: true + }); - // verifyOutFileScenario({ - // scenario: "stripInternal jsdoc style comment when one-two-three are prepended in order", - // modifyFs: fs => stripInternalWithDependentOrder(fs, /*removeCommentsDisabled*/ false, /*jsDocStyle*/ true), - // modifyAgainFs: fs => replaceText(fs, sources[project.first][source.ts][part.one], `/**@internal*/ interface`, "interface"), - // dependOrdered: true - // }); + verifyOutFileScenario({ + scenario: "stripInternal jsdoc style comment when one-two-three are prepended in order", + modifyFs: fs => stripInternalWithDependentOrder(fs, /*removeCommentsDisabled*/ false, /*jsDocStyle*/ true), + modifyAgainFs: fs => replaceText(fs, sources[project.first][source.ts][part.one], `/**@internal*/ interface`, "interface"), + dependOrdered: true, + unchangedDtsWritesThirdDts: true + }); - // verifyOutFileScenario({ - // scenario: "stripInternal jsdoc style with comments emit enabled when one-two-three are prepended in order", - // modifyFs: fs => stripInternalWithDependentOrder(fs, /*removeCommentsDisabled*/ true, /*jsDocStyle*/ true), - // dependOrdered: true - // }); + verifyOutFileScenario({ + scenario: "stripInternal jsdoc style with comments emit enabled when one-two-three are prepended in order", + modifyFs: fs => stripInternalWithDependentOrder(fs, /*removeCommentsDisabled*/ true, /*jsDocStyle*/ true), + dependOrdered: true, + unchangedDtsWritesThirdDts: true + }); }); } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index ad7f96d9ea1..ad6740f1eb1 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -44,6 +44,11 @@ "texts": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 156, "kind": "text" }, @@ -56,6 +61,36 @@ }, { "pos": 200, + "end": 277, + "kind": "text" + }, + { + "pos": 277, + "end": 351, + "kind": "internal" + }, + { + "pos": 353, + "end": 385, + "kind": "text" + }, + { + "pos": 385, + "end": 777, + "kind": "internal" + }, + { + "pos": 779, + "end": 782, + "kind": "text" + }, + { + "pos": 782, + "end": 1195, + "kind": "internal" + }, + { + "pos": 1197, "end": 1245, "kind": "text" }, @@ -198,12 +233,14 @@ sourceMapUrl: (3203-3244) ====================================================================== File:: /src/2/second-output.d.ts ---------------------------------------------------------------------- -prepend: (0-198):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-198):: /src/first/bin/first-output.d.ts texts:: 3 >>-------------------------------------------------------------------- -text: (0-156) +internal: (0-39) interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (41-156) declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -214,18 +251,26 @@ declare function f(): string; sourceMapUrl: (156-198) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -text: (200-1245) +text: (200-277) declare namespace N { } declare namespace N { } declare class normalC { + +---------------------------------------------------------------------- +internal: (277-351) constructor(); prop: string; method(): void; c: number; +---------------------------------------------------------------------- +text: (353-385) } declare namespace normalN { + +---------------------------------------------------------------------- +internal: (385-777) class C { } function foo(): void; @@ -245,7 +290,12 @@ declare namespace normalN { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (779-782) } + +---------------------------------------------------------------------- +internal: (782-1195) declare class internalC { } declare function internalfoo(): void; @@ -265,6 +315,8 @@ declare enum internalEnum { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (1197-1245) declare class C { doSomething(): void; } @@ -2840,6 +2892,11 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 156, "kind": "text" }, @@ -2872,10 +2929,12 @@ sourceMapUrl: (109-149) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-156) +internal: (0-39) interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (41-156) declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -3251,12 +3310,17 @@ console.log(s); "sections": [ { "pos": 0, - "end": 1288, + "end": 403, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 156, "kind": "text" }, @@ -3267,24 +3331,24 @@ console.log(s); }, { "pos": 200, - "end": 1245, + "end": 360, "kind": "text" }, { - "pos": 1245, - "end": 1288, + "pos": 360, + "end": 403, "kind": "sourceMapUrl" } ] }, { - "pos": 1290, - "end": 1309, + "pos": 405, + "end": 424, "kind": "text" }, { - "pos": 1309, - "end": 1351, + "pos": 424, + "end": 466, "kind": "sourceMapUrl" } ] @@ -3429,12 +3493,14 @@ sourceMapUrl: (3282-3322) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-1288):: /src/2/second-output.d.ts texts:: 4 +prepend: (0-403):: /src/2/second-output.d.ts texts:: 5 >>-------------------------------------------------------------------- -text: (0-156) +internal: (0-39) interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (41-156) declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -3445,70 +3511,28 @@ declare function f(): string; sourceMapUrl: (156-198) //# sourceMappingURL=first-output.d.ts.map >>-------------------------------------------------------------------- -text: (200-1245) +text: (200-360) declare namespace N { } declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - c: 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; } >>-------------------------------------------------------------------- -sourceMapUrl: (1245-1288) +sourceMapUrl: (360-403) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1290-1309) +text: (405-424) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1309-1351) +sourceMapUrl: (424-466) //# sourceMappingURL=third-output.d.ts.map ====================================================================== @@ -3527,50 +3551,8 @@ declare namespace N { declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - c: 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; @@ -3580,7 +3562,7 @@ 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":"AAAe,UAAU,QAAQ;IAC7B,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;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CACnC;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;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"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":"AAAe,UAAU,QAAQ;IAC7B,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] =================================================================== @@ -3778,59 +3760,17 @@ sourceFile:../../../second/second_part1.ts 2 >Emitted(14, 15) Source(13, 7) + SourceIndex(2) 3 >Emitted(14, 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(16, 5) Source(15, 20) + SourceIndex(2) -2 >Emitted(16, 9) Source(15, 24) + SourceIndex(2) -3 >Emitted(16, 11) Source(15, 26) + SourceIndex(2) -4 >Emitted(16, 17) Source(15, 32) + SourceIndex(2) -5 >Emitted(16, 18) Source(15, 33) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^-> -1-> - > /**@internal*/ -2 > method -1->Emitted(17, 5) Source(16, 20) + SourceIndex(2) -2 >Emitted(17, 11) Source(16, 26) + SourceIndex(2) ---- ->>> c: number; -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /**@internal*/ get -2 > c -3 > () { return 10; } - > /**@internal*/ set c(val: -4 > number -1->Emitted(18, 5) Source(17, 24) + SourceIndex(2) -2 >Emitted(18, 6) Source(17, 25) + SourceIndex(2) -3 >Emitted(18, 8) Source(18, 31) + SourceIndex(2) -4 >Emitted(18, 14) Source(18, 37) + SourceIndex(2) ---- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +1 >Emitted(15, 2) Source(19, 2) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -3842,488 +3782,25 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(16, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(16, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(16, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(16, 27) Source(20, 19) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 45) + SourceIndex(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(17, 2) Source(29, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4337,9 +3814,9 @@ sourceFile:../../../second/second_part2.ts 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) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(18, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(18, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -4347,8 +3824,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(19, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(19, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -4357,7 +3834,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(20, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4378,12 +3855,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(64, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(64, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(64, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(64, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(64, 18) Source(1, 17) + SourceIndex(4) +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) --- >>>//# sourceMappingURL=third-output.d.ts.map diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-jsdoc-style-comment.js index 7129d693607..55c5458b17c 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-jsdoc-style-comment.js @@ -20,6 +20,11 @@ "sections": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 156, "kind": "text" }, @@ -52,10 +57,12 @@ sourceMapUrl: (109-149) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-156) +internal: (0-39) interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (41-156) declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -439,48 +446,48 @@ console.log(s); "sections": [ { "pos": 0, - "end": 198, + "end": 157, "kind": "prepend", "data": "/src/first/bin/first-output.d.ts", "texts": [ { "pos": 0, - "end": 156, + "end": 115, "kind": "text" }, { - "pos": 156, - "end": 198, + "pos": 115, + "end": 157, "kind": "sourceMapUrl" } ] }, { - "pos": 200, - "end": 1288, + "pos": 159, + "end": 362, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { - "pos": 200, - "end": 1245, + "pos": 159, + "end": 319, "kind": "text" }, { - "pos": 1245, - "end": 1288, + "pos": 319, + "end": 362, "kind": "sourceMapUrl" } ] }, { - "pos": 1290, - "end": 1309, + "pos": 364, + "end": 383, "kind": "text" }, { - "pos": 1309, - "end": 1351, + "pos": 383, + "end": 425, "kind": "sourceMapUrl" } ] @@ -627,12 +634,9 @@ sourceMapUrl: (3282-3322) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-198):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-157):: /src/first/bin/first-output.d.ts texts:: 2 >>-------------------------------------------------------------------- -text: (0-156) -interface TheFirst { - none: any; -} +text: (0-115) declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -640,82 +644,37 @@ interface NoJsForHereEither { declare function f(): string; >>-------------------------------------------------------------------- -sourceMapUrl: (156-198) +sourceMapUrl: (115-157) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -prepend: (200-1288):: /src/2/second-output.d.ts texts:: 2 +prepend: (159-362):: /src/2/second-output.d.ts texts:: 2 >>-------------------------------------------------------------------- -text: (200-1245) +text: (159-319) declare namespace N { } declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - c: 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; } >>-------------------------------------------------------------------- -sourceMapUrl: (1245-1288) +sourceMapUrl: (319-362) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1290-1309) +text: (364-383) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1309-1351) +sourceMapUrl: (383-425) //# sourceMappingURL=third-output.d.ts.map ====================================================================== //// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -727,50 +686,8 @@ declare namespace N { declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - c: 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; @@ -780,7 +697,7 @@ 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":"AAAe,UAAU,QAAQ;IAC7B,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;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CACnC;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;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"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] =================================================================== @@ -793,50 +710,16 @@ sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../se emittedFile:/src/third/thirdjs/output/third-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, 16) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 26) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 34) + 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-> +1 > 2 >^^^^^^^^ 3 > ^^^^^^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> +1 >/**@internal*/ interface TheFirst { + > none: any; + >} > > 2 > @@ -844,12 +727,12 @@ sourceFile:../../../first/first_PART1.ts 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) +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 > @@ -860,9 +743,9 @@ sourceFile:../../../first/first_PART1.ts > 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) +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 >^^^^ @@ -876,18 +759,18 @@ sourceFile:../../../first/first_PART1.ts 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 >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(7, 2) Source(9, 2) + SourceIndex(0) +1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -905,10 +788,10 @@ sourceFile:../../../first/first_part3.ts 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) +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 @@ -924,10 +807,10 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(7, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(7, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(7, 21) Source(1, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -935,7 +818,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) --- >>>declare namespace N { 1-> @@ -948,10 +831,10 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(9, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(5, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -963,7 +846,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) +1 >Emitted(10, 2) Source(11, 2) + SourceIndex(2) --- >>>declare class normalC { 1-> @@ -974,63 +857,21 @@ sourceFile:../../../second/second_part1.ts > 2 >class 3 > normalC -1->Emitted(14, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(14, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(14, 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(16, 5) Source(15, 20) + SourceIndex(2) -2 >Emitted(16, 9) Source(15, 24) + SourceIndex(2) -3 >Emitted(16, 11) Source(15, 26) + SourceIndex(2) -4 >Emitted(16, 17) Source(15, 32) + SourceIndex(2) -5 >Emitted(16, 18) Source(15, 33) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^-> -1-> - > /**@internal*/ -2 > method -1->Emitted(17, 5) Source(16, 20) + SourceIndex(2) -2 >Emitted(17, 11) Source(16, 26) + SourceIndex(2) ---- ->>> c: number; -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /**@internal*/ get -2 > c -3 > () { return 10; } - > /**@internal*/ set c(val: -4 > number -1->Emitted(18, 5) Source(17, 24) + SourceIndex(2) -2 >Emitted(18, 6) Source(17, 25) + SourceIndex(2) -3 >Emitted(18, 8) Source(18, 31) + SourceIndex(2) -4 >Emitted(18, 14) Source(18, 37) + SourceIndex(2) +1->Emitted(11, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(11, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(11, 22) Source(13, 14) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +1 >Emitted(12, 2) Source(19, 2) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -1042,488 +883,25 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(13, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(13, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(13, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(13, 27) Source(20, 19) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 45) + SourceIndex(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(14, 2) Source(29, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1537,9 +915,9 @@ sourceFile:../../../second/second_part2.ts 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) +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->^^^^ @@ -1547,8 +925,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -1557,7 +935,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1578,12 +956,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(64, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(64, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(64, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(64, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(64, 18) Source(1, 17) + SourceIndex(4) +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) --- >>>//# sourceMappingURL=third-output.d.ts.map diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/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-changes/buildInfo/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 96b407b8828..801744121b6 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/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-changes/buildInfo/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -44,6 +44,11 @@ "texts": [ { "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, "end": 171, "kind": "text" }, @@ -56,6 +61,36 @@ }, { "pos": 215, + "end": 292, + "kind": "text" + }, + { + "pos": 292, + "end": 441, + "kind": "internal" + }, + { + "pos": 443, + "end": 475, + "kind": "text" + }, + { + "pos": 475, + "end": 987, + "kind": "internal" + }, + { + "pos": 989, + "end": 992, + "kind": "text" + }, + { + "pos": 992, + "end": 1525, + "kind": "internal" + }, + { + "pos": 1527, "end": 1575, "kind": "text" }, @@ -198,12 +233,14 @@ sourceMapUrl: (3585-3626) ====================================================================== File:: /src/2/second-output.d.ts ---------------------------------------------------------------------- -prepend: (0-213):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-213):: /src/first/bin/first-output.d.ts texts:: 3 >>-------------------------------------------------------------------- -text: (0-171) +internal: (0-54) /**@internal*/ interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (56-171) declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -214,18 +251,26 @@ declare function f(): string; sourceMapUrl: (171-213) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -text: (215-1575) +text: (215-292) declare namespace N { } declare namespace N { } declare class normalC { + +---------------------------------------------------------------------- +internal: (292-441) /**@internal*/ constructor(); /**@internal*/ prop: string; /**@internal*/ method(): void; /**@internal*/ /**@internal*/ c: number; +---------------------------------------------------------------------- +text: (443-475) } declare namespace normalN { + +---------------------------------------------------------------------- +internal: (475-987) /**@internal*/ class C { } /**@internal*/ function foo(): void; @@ -245,7 +290,12 @@ declare namespace normalN { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (989-992) } + +---------------------------------------------------------------------- +internal: (992-1525) /**@internal*/ declare class internalC { } /**@internal*/ declare function internalfoo(): void; @@ -265,6 +315,8 @@ declare namespace normalN { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (1527-1575) declare class C { doSomething(): void; } @@ -3070,6 +3122,11 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, "end": 171, "kind": "text" }, @@ -3102,10 +3159,12 @@ sourceMapUrl: (109-149) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-171) +internal: (0-54) /**@internal*/ interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (56-171) declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -3487,12 +3546,17 @@ console.log(s); "sections": [ { "pos": 0, - "end": 1618, + "end": 418, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, "end": 171, "kind": "text" }, @@ -3503,24 +3567,24 @@ console.log(s); }, { "pos": 215, - "end": 1575, + "end": 375, "kind": "text" }, { - "pos": 1575, - "end": 1618, + "pos": 375, + "end": 418, "kind": "sourceMapUrl" } ] }, { - "pos": 1620, - "end": 1639, + "pos": 420, + "end": 439, "kind": "text" }, { - "pos": 1639, - "end": 1681, + "pos": 439, + "end": 481, "kind": "sourceMapUrl" } ] @@ -3665,12 +3729,14 @@ sourceMapUrl: (3664-3704) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-1618):: /src/2/second-output.d.ts texts:: 4 +prepend: (0-418):: /src/2/second-output.d.ts texts:: 5 >>-------------------------------------------------------------------- -text: (0-171) +internal: (0-54) /**@internal*/ interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (56-171) declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -3681,70 +3747,28 @@ declare function f(): string; sourceMapUrl: (171-213) //# sourceMappingURL=first-output.d.ts.map >>-------------------------------------------------------------------- -text: (215-1575) +text: (215-375) declare namespace N { } declare namespace N { } declare class normalC { - /**@internal*/ constructor(); - /**@internal*/ prop: string; - /**@internal*/ method(): void; - /**@internal*/ /**@internal*/ c: number; } declare namespace normalN { - /**@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 - } -} -/**@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 } declare class C { doSomething(): void; } >>-------------------------------------------------------------------- -sourceMapUrl: (1575-1618) +sourceMapUrl: (375-418) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1620-1639) +text: (420-439) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1639-1681) +sourceMapUrl: (439-481) //# sourceMappingURL=third-output.d.ts.map ====================================================================== @@ -3763,50 +3787,8 @@ declare namespace N { declare namespace N { } declare class normalC { - /**@internal*/ constructor(); - /**@internal*/ prop: string; - /**@internal*/ method(): void; - /**@internal*/ /**@internal*/ c: number; } declare namespace normalN { - /**@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 - } -} -/**@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 } declare class C { doSomething(): void; @@ -3816,7 +3798,7 @@ 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,cAAc,CAAC,UAAU,QAAQ;IAC7B,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;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,gBAAK,CAAC,EACM,MAAM;CACnC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,aAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"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,cAAc,CAAC,UAAU,QAAQ;IAC7B,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] =================================================================== @@ -4011,7 +3993,6 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^-> 1-> > > @@ -4021,675 +4002,47 @@ sourceFile:../../../second/second_part1.ts 2 >Emitted(14, 15) Source(13, 7) + SourceIndex(2) 3 >Emitted(14, 22) Source(13, 14) + SourceIndex(2) --- ->>> /**@internal*/ constructor(); -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^-> -1-> { - > -2 > /**@internal*/ -1->Emitted(15, 5) Source(14, 5) + SourceIndex(2) -2 >Emitted(15, 19) Source(14, 19) + SourceIndex(2) ---- ->>> /**@internal*/ prop: string; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^ -6 > ^^^^^^ -7 > ^ -8 > ^^^-> -1-> constructor() { } - > -2 > /**@internal*/ -3 > -4 > prop -5 > : -6 > string -7 > ; -1->Emitted(16, 5) Source(15, 5) + SourceIndex(2) -2 >Emitted(16, 19) Source(15, 19) + SourceIndex(2) -3 >Emitted(16, 20) Source(15, 20) + SourceIndex(2) -4 >Emitted(16, 24) Source(15, 24) + SourceIndex(2) -5 >Emitted(16, 26) Source(15, 26) + SourceIndex(2) -6 >Emitted(16, 32) Source(15, 32) + SourceIndex(2) -7 >Emitted(16, 33) Source(15, 33) + SourceIndex(2) ---- ->>> /**@internal*/ method(): void; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 > /**@internal*/ -3 > -4 > method -1->Emitted(17, 5) Source(16, 5) + SourceIndex(2) -2 >Emitted(17, 19) Source(16, 19) + SourceIndex(2) -3 >Emitted(17, 20) Source(16, 20) + SourceIndex(2) -4 >Emitted(17, 26) Source(16, 26) + SourceIndex(2) ---- ->>> /**@internal*/ /**@internal*/ c: number; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^^^^^ -1->() { } - > -2 > /**@internal*/ -3 > get -4 > c -5 > () { return 10; } - > /**@internal*/ set c(val: -6 > number -1->Emitted(18, 5) Source(17, 5) + SourceIndex(2) -2 >Emitted(18, 19) Source(17, 19) + SourceIndex(2) -3 >Emitted(18, 35) Source(17, 24) + SourceIndex(2) -4 >Emitted(18, 36) Source(17, 25) + SourceIndex(2) -5 >Emitted(18, 38) Source(18, 31) + SourceIndex(2) -6 >Emitted(18, 44) Source(18, 37) + SourceIndex(2) ---- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +1 >Emitted(15, 2) Source(19, 2) + SourceIndex(2) --- >>>declare namespace normalN { 1-> 2 >^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^ 4 > ^ -5 > ^^^-> 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) ---- ->>> /**@internal*/ class C { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -1->{ - > -2 > /**@internal*/ -3 > -4 > export class -5 > C -1->Emitted(21, 5) Source(21, 5) + SourceIndex(2) -2 >Emitted(21, 19) Source(21, 19) + SourceIndex(2) -3 >Emitted(21, 20) Source(21, 20) + SourceIndex(2) -4 >Emitted(21, 26) Source(21, 33) + SourceIndex(2) -5 >Emitted(21, 27) Source(21, 34) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(22, 6) Source(21, 38) + SourceIndex(2) ---- ->>> /**@internal*/ function foo(): void; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^ -7 > ^^^^^-> -1-> - > -2 > /**@internal*/ -3 > -4 > export function -5 > foo -6 > () {} -1->Emitted(23, 5) Source(22, 5) + SourceIndex(2) -2 >Emitted(23, 19) Source(22, 19) + SourceIndex(2) -3 >Emitted(23, 20) Source(22, 20) + SourceIndex(2) -4 >Emitted(23, 29) Source(22, 36) + SourceIndex(2) -5 >Emitted(23, 32) Source(22, 39) + SourceIndex(2) -6 >Emitted(23, 41) Source(22, 44) + SourceIndex(2) ---- ->>> /**@internal*/ namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > -1->Emitted(24, 5) Source(23, 5) + SourceIndex(2) -2 >Emitted(24, 19) Source(23, 19) + SourceIndex(2) -3 >Emitted(24, 20) Source(23, 20) + SourceIndex(2) -4 >Emitted(24, 30) Source(23, 37) + SourceIndex(2) -5 >Emitted(24, 43) Source(23, 50) + SourceIndex(2) -6 >Emitted(24, 44) 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) ---- ->>> /**@internal*/ namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someOther -6 > . -7 > something -8 > -1->Emitted(28, 5) Source(24, 5) + SourceIndex(2) -2 >Emitted(28, 19) Source(24, 19) + SourceIndex(2) -3 >Emitted(28, 20) Source(24, 20) + SourceIndex(2) -4 >Emitted(28, 30) Source(24, 37) + SourceIndex(2) -5 >Emitted(28, 39) Source(24, 46) + SourceIndex(2) -6 >Emitted(28, 40) Source(24, 47) + SourceIndex(2) -7 >Emitted(28, 49) Source(24, 56) + SourceIndex(2) -8 >Emitted(28, 50) 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) ---- ->>> /**@internal*/ export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^ -6 > ^^^^^^^^^^ -7 > ^^^ -8 > ^^^^^^^^^^^^^ -9 > ^ -10> ^ -11> ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export -5 > import -6 > someImport -7 > = -8 > someNamespace -9 > . -10> C -11> ; -1->Emitted(32, 5) Source(25, 5) + SourceIndex(2) -2 >Emitted(32, 19) Source(25, 19) + SourceIndex(2) -3 >Emitted(32, 20) Source(25, 20) + SourceIndex(2) -4 >Emitted(32, 26) Source(25, 26) + SourceIndex(2) -5 >Emitted(32, 34) Source(25, 34) + SourceIndex(2) -6 >Emitted(32, 44) Source(25, 44) + SourceIndex(2) -7 >Emitted(32, 47) Source(25, 47) + SourceIndex(2) -8 >Emitted(32, 60) Source(25, 60) + SourceIndex(2) -9 >Emitted(32, 61) Source(25, 61) + SourceIndex(2) -10>Emitted(32, 62) Source(25, 62) + SourceIndex(2) -11>Emitted(32, 63) Source(25, 63) + SourceIndex(2) ---- ->>> /**@internal*/ type internalType = internalC; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^ -5 > ^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^ -8 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > export type -5 > internalType -6 > = -7 > internalC -8 > ; -1 >Emitted(33, 5) Source(26, 5) + SourceIndex(2) -2 >Emitted(33, 19) Source(26, 19) + SourceIndex(2) -3 >Emitted(33, 20) Source(26, 20) + SourceIndex(2) -4 >Emitted(33, 25) Source(26, 32) + SourceIndex(2) -5 >Emitted(33, 37) Source(26, 44) + SourceIndex(2) -6 >Emitted(33, 40) Source(26, 47) + SourceIndex(2) -7 >Emitted(33, 49) Source(26, 56) + SourceIndex(2) -8 >Emitted(33, 50) Source(26, 57) + SourceIndex(2) ---- ->>> /**@internal*/ const internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1 > - > -2 > /**@internal*/ -3 > export -4 > const -5 > internalConst -6 > = 10 -7 > ; -1 >Emitted(34, 5) Source(27, 5) + SourceIndex(2) -2 >Emitted(34, 19) Source(27, 19) + SourceIndex(2) -3 >Emitted(34, 20) Source(27, 27) + SourceIndex(2) -4 >Emitted(34, 26) Source(27, 33) + SourceIndex(2) -5 >Emitted(34, 39) Source(27, 46) + SourceIndex(2) -6 >Emitted(34, 44) Source(27, 51) + SourceIndex(2) -7 >Emitted(34, 45) Source(27, 52) + SourceIndex(2) ---- ->>> /**@internal*/ enum internalEnum { -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /**@internal*/ -3 > -4 > export enum -5 > internalEnum -1 >Emitted(35, 5) Source(28, 5) + SourceIndex(2) -2 >Emitted(35, 19) Source(28, 19) + SourceIndex(2) -3 >Emitted(35, 20) Source(28, 20) + SourceIndex(2) -4 >Emitted(35, 25) Source(28, 32) + SourceIndex(2) -5 >Emitted(35, 37) 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) ---- ->>>/**@internal*/ declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^^^ -1-> - > -2 >/**@internal*/ -3 > -4 > class -5 > internalC -1->Emitted(41, 1) Source(30, 1) + SourceIndex(2) -2 >Emitted(41, 15) Source(30, 15) + SourceIndex(2) -3 >Emitted(41, 16) Source(30, 16) + SourceIndex(2) -4 >Emitted(41, 30) Source(30, 22) + SourceIndex(2) -5 >Emitted(41, 39) Source(30, 31) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(42, 2) Source(30, 34) + SourceIndex(2) ---- ->>>/**@internal*/ declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^^^^^ -7 > ^-> -1-> - > -2 >/**@internal*/ -3 > -4 > function -5 > internalfoo -6 > () {} -1->Emitted(43, 1) Source(31, 1) + SourceIndex(2) -2 >Emitted(43, 15) Source(31, 15) + SourceIndex(2) -3 >Emitted(43, 16) Source(31, 16) + SourceIndex(2) -4 >Emitted(43, 33) Source(31, 25) + SourceIndex(2) -5 >Emitted(43, 44) Source(31, 36) + SourceIndex(2) -6 >Emitted(43, 53) Source(31, 41) + SourceIndex(2) ---- ->>>/**@internal*/ declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > -1->Emitted(44, 1) Source(32, 1) + SourceIndex(2) -2 >Emitted(44, 15) Source(32, 15) + SourceIndex(2) -3 >Emitted(44, 16) Source(32, 16) + SourceIndex(2) -4 >Emitted(44, 34) Source(32, 26) + SourceIndex(2) -5 >Emitted(44, 51) Source(32, 43) + SourceIndex(2) -6 >Emitted(44, 52) 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) ---- ->>>/**@internal*/ declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalOther -6 > . -7 > something -8 > -1->Emitted(48, 1) Source(33, 1) + SourceIndex(2) -2 >Emitted(48, 15) Source(33, 15) + SourceIndex(2) -3 >Emitted(48, 16) Source(33, 16) + SourceIndex(2) -4 >Emitted(48, 34) Source(33, 26) + SourceIndex(2) -5 >Emitted(48, 47) Source(33, 39) + SourceIndex(2) -6 >Emitted(48, 48) Source(33, 40) + SourceIndex(2) -7 >Emitted(48, 57) Source(33, 49) + SourceIndex(2) -8 >Emitted(48, 58) 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) ---- ->>>/**@internal*/ import 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(52, 1) Source(34, 1) + SourceIndex(2) -2 >Emitted(52, 15) Source(34, 15) + SourceIndex(2) -3 >Emitted(52, 16) Source(34, 16) + SourceIndex(2) -4 >Emitted(52, 23) Source(34, 23) + SourceIndex(2) -5 >Emitted(52, 37) Source(34, 37) + SourceIndex(2) -6 >Emitted(52, 40) Source(34, 40) + SourceIndex(2) -7 >Emitted(52, 57) Source(34, 57) + SourceIndex(2) -8 >Emitted(52, 58) Source(34, 58) + SourceIndex(2) -9 >Emitted(52, 67) Source(34, 67) + SourceIndex(2) -10>Emitted(52, 68) Source(34, 68) + SourceIndex(2) ---- ->>>/**@internal*/ declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^ -8 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > type -5 > internalType -6 > = -7 > internalC -8 > ; -1 >Emitted(53, 1) Source(35, 1) + SourceIndex(2) -2 >Emitted(53, 15) Source(35, 15) + SourceIndex(2) -3 >Emitted(53, 16) Source(35, 16) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 21) + SourceIndex(2) -5 >Emitted(53, 41) Source(35, 33) + SourceIndex(2) -6 >Emitted(53, 44) Source(35, 36) + SourceIndex(2) -7 >Emitted(53, 53) Source(35, 45) + SourceIndex(2) -8 >Emitted(53, 54) Source(35, 46) + SourceIndex(2) ---- ->>>/**@internal*/ declare const internalConst = 10; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > -5 > const -6 > internalConst -7 > = 10 -8 > ; -1 >Emitted(54, 1) Source(36, 1) + SourceIndex(2) -2 >Emitted(54, 15) Source(36, 15) + SourceIndex(2) -3 >Emitted(54, 16) Source(36, 16) + SourceIndex(2) -4 >Emitted(54, 24) Source(36, 16) + SourceIndex(2) -5 >Emitted(54, 30) Source(36, 22) + SourceIndex(2) -6 >Emitted(54, 43) Source(36, 35) + SourceIndex(2) -7 >Emitted(54, 48) Source(36, 40) + SourceIndex(2) -8 >Emitted(54, 49) Source(36, 41) + SourceIndex(2) ---- ->>>/**@internal*/ declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/**@internal*/ -3 > -4 > enum -5 > internalEnum -1 >Emitted(55, 1) Source(37, 1) + SourceIndex(2) -2 >Emitted(55, 15) Source(37, 15) + SourceIndex(2) -3 >Emitted(55, 16) Source(37, 16) + SourceIndex(2) -4 >Emitted(55, 29) Source(37, 21) + SourceIndex(2) -5 >Emitted(55, 41) 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->Emitted(16, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(16, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(16, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(16, 27) Source(20, 19) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 45) + SourceIndex(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(17, 2) Source(29, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4703,9 +4056,9 @@ sourceFile:../../../second/second_part2.ts 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) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(18, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(18, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -4713,8 +4066,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(19, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(19, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -4723,7 +4076,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(20, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4744,12 +4097,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(64, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(64, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(64, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(64, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(64, 18) Source(1, 17) + SourceIndex(4) +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) --- >>>//# sourceMappingURL=third-output.d.ts.map diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-jsdoc-style-with-comments-emit-enabled.js index b998ebc53b1..4e9f8ead25e 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-jsdoc-style-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-jsdoc-style-with-comments-emit-enabled.js @@ -20,6 +20,11 @@ "sections": [ { "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, "end": 171, "kind": "text" }, @@ -52,10 +57,12 @@ sourceMapUrl: (109-149) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-171) +internal: (0-54) /**@internal*/ interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (56-171) declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -445,48 +452,48 @@ console.log(s); "sections": [ { "pos": 0, - "end": 213, + "end": 157, "kind": "prepend", "data": "/src/first/bin/first-output.d.ts", "texts": [ { "pos": 0, - "end": 171, + "end": 115, "kind": "text" }, { - "pos": 171, - "end": 213, + "pos": 115, + "end": 157, "kind": "sourceMapUrl" } ] }, { - "pos": 215, - "end": 1618, + "pos": 159, + "end": 362, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { - "pos": 215, - "end": 1575, + "pos": 159, + "end": 319, "kind": "text" }, { - "pos": 1575, - "end": 1618, + "pos": 319, + "end": 362, "kind": "sourceMapUrl" } ] }, { - "pos": 1620, - "end": 1639, + "pos": 364, + "end": 383, "kind": "text" }, { - "pos": 1639, - "end": 1681, + "pos": 383, + "end": 425, "kind": "sourceMapUrl" } ] @@ -633,12 +640,9 @@ sourceMapUrl: (3664-3704) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-213):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-157):: /src/first/bin/first-output.d.ts texts:: 2 >>-------------------------------------------------------------------- -text: (0-171) -/**@internal*/ interface TheFirst { - none: any; -} +text: (0-115) declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -646,82 +650,37 @@ interface NoJsForHereEither { declare function f(): string; >>-------------------------------------------------------------------- -sourceMapUrl: (171-213) +sourceMapUrl: (115-157) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -prepend: (215-1618):: /src/2/second-output.d.ts texts:: 2 +prepend: (159-362):: /src/2/second-output.d.ts texts:: 2 >>-------------------------------------------------------------------- -text: (215-1575) +text: (159-319) declare namespace N { } declare namespace N { } declare class normalC { - /**@internal*/ constructor(); - /**@internal*/ prop: string; - /**@internal*/ method(): void; - /**@internal*/ /**@internal*/ c: number; } declare namespace normalN { - /**@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 - } -} -/**@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 } declare class C { doSomething(): void; } >>-------------------------------------------------------------------- -sourceMapUrl: (1575-1618) +sourceMapUrl: (319-362) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1620-1639) +text: (364-383) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1639-1681) +sourceMapUrl: (383-425) //# sourceMappingURL=third-output.d.ts.map ====================================================================== //// [/src/third/thirdjs/output/third-output.d.ts] -/**@internal*/ interface TheFirst { - none: any; -} declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -733,50 +692,8 @@ declare namespace N { declare namespace N { } declare class normalC { - /**@internal*/ constructor(); - /**@internal*/ prop: string; - /**@internal*/ method(): void; - /**@internal*/ /**@internal*/ c: number; } declare namespace normalN { - /**@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 - } -} -/**@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 } declare class C { doSomething(): void; @@ -786,7 +703,7 @@ 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,cAAc,CAAC,UAAU,QAAQ;IAC7B,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;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,gBAAK,CAAC,EACM,MAAM;CACnC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,aAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"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] =================================================================== @@ -799,56 +716,16 @@ sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../se emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../first/first_PART1.ts ------------------------------------------------------------------- ->>>/**@internal*/ interface TheFirst { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^ -1 > -2 >/**@internal*/ -3 > -4 > interface -5 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) -3 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) -4 >Emitted(1, 26) Source(1, 26) + SourceIndex(0) -5 >Emitted(1, 34) Source(1, 34) + 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-> +1 > 2 >^^^^^^^^ 3 > ^^^^^^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> +1 >/**@internal*/ interface TheFirst { + > none: any; + >} > > 2 > @@ -856,12 +733,12 @@ sourceFile:../../../first/first_PART1.ts 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) +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 > @@ -872,9 +749,9 @@ sourceFile:../../../first/first_PART1.ts > 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) +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 >^^^^ @@ -888,18 +765,18 @@ sourceFile:../../../first/first_PART1.ts 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 >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(7, 2) Source(9, 2) + SourceIndex(0) +1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -917,10 +794,10 @@ sourceFile:../../../first/first_part3.ts 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) +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 @@ -936,10 +813,10 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(7, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(7, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(7, 21) Source(1, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -947,7 +824,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) --- >>>declare namespace N { 1-> @@ -960,10 +837,10 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(9, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(5, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -975,691 +852,62 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) +1 >Emitted(10, 2) Source(11, 2) + SourceIndex(2) --- >>>declare class normalC { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^-> 1-> > > 2 >class 3 > normalC -1->Emitted(14, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(14, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(14, 22) Source(13, 14) + SourceIndex(2) ---- ->>> /**@internal*/ constructor(); -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^-> -1-> { - > -2 > /**@internal*/ -1->Emitted(15, 5) Source(14, 5) + SourceIndex(2) -2 >Emitted(15, 19) Source(14, 19) + SourceIndex(2) ---- ->>> /**@internal*/ prop: string; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^ -6 > ^^^^^^ -7 > ^ -8 > ^^^-> -1-> constructor() { } - > -2 > /**@internal*/ -3 > -4 > prop -5 > : -6 > string -7 > ; -1->Emitted(16, 5) Source(15, 5) + SourceIndex(2) -2 >Emitted(16, 19) Source(15, 19) + SourceIndex(2) -3 >Emitted(16, 20) Source(15, 20) + SourceIndex(2) -4 >Emitted(16, 24) Source(15, 24) + SourceIndex(2) -5 >Emitted(16, 26) Source(15, 26) + SourceIndex(2) -6 >Emitted(16, 32) Source(15, 32) + SourceIndex(2) -7 >Emitted(16, 33) Source(15, 33) + SourceIndex(2) ---- ->>> /**@internal*/ method(): void; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 > /**@internal*/ -3 > -4 > method -1->Emitted(17, 5) Source(16, 5) + SourceIndex(2) -2 >Emitted(17, 19) Source(16, 19) + SourceIndex(2) -3 >Emitted(17, 20) Source(16, 20) + SourceIndex(2) -4 >Emitted(17, 26) Source(16, 26) + SourceIndex(2) ---- ->>> /**@internal*/ /**@internal*/ c: number; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^^^^^ -1->() { } - > -2 > /**@internal*/ -3 > get -4 > c -5 > () { return 10; } - > /**@internal*/ set c(val: -6 > number -1->Emitted(18, 5) Source(17, 5) + SourceIndex(2) -2 >Emitted(18, 19) Source(17, 19) + SourceIndex(2) -3 >Emitted(18, 35) Source(17, 24) + SourceIndex(2) -4 >Emitted(18, 36) Source(17, 25) + SourceIndex(2) -5 >Emitted(18, 38) Source(18, 31) + SourceIndex(2) -6 >Emitted(18, 44) Source(18, 37) + SourceIndex(2) +1->Emitted(11, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(11, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(11, 22) Source(13, 14) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +1 >Emitted(12, 2) Source(19, 2) + SourceIndex(2) --- >>>declare namespace normalN { 1-> 2 >^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^ 4 > ^ -5 > ^^^-> 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) ---- ->>> /**@internal*/ class C { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -1->{ - > -2 > /**@internal*/ -3 > -4 > export class -5 > C -1->Emitted(21, 5) Source(21, 5) + SourceIndex(2) -2 >Emitted(21, 19) Source(21, 19) + SourceIndex(2) -3 >Emitted(21, 20) Source(21, 20) + SourceIndex(2) -4 >Emitted(21, 26) Source(21, 33) + SourceIndex(2) -5 >Emitted(21, 27) Source(21, 34) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(22, 6) Source(21, 38) + SourceIndex(2) ---- ->>> /**@internal*/ function foo(): void; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^ -7 > ^^^^^-> -1-> - > -2 > /**@internal*/ -3 > -4 > export function -5 > foo -6 > () {} -1->Emitted(23, 5) Source(22, 5) + SourceIndex(2) -2 >Emitted(23, 19) Source(22, 19) + SourceIndex(2) -3 >Emitted(23, 20) Source(22, 20) + SourceIndex(2) -4 >Emitted(23, 29) Source(22, 36) + SourceIndex(2) -5 >Emitted(23, 32) Source(22, 39) + SourceIndex(2) -6 >Emitted(23, 41) Source(22, 44) + SourceIndex(2) ---- ->>> /**@internal*/ namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > -1->Emitted(24, 5) Source(23, 5) + SourceIndex(2) -2 >Emitted(24, 19) Source(23, 19) + SourceIndex(2) -3 >Emitted(24, 20) Source(23, 20) + SourceIndex(2) -4 >Emitted(24, 30) Source(23, 37) + SourceIndex(2) -5 >Emitted(24, 43) Source(23, 50) + SourceIndex(2) -6 >Emitted(24, 44) 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) ---- ->>> /**@internal*/ namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someOther -6 > . -7 > something -8 > -1->Emitted(28, 5) Source(24, 5) + SourceIndex(2) -2 >Emitted(28, 19) Source(24, 19) + SourceIndex(2) -3 >Emitted(28, 20) Source(24, 20) + SourceIndex(2) -4 >Emitted(28, 30) Source(24, 37) + SourceIndex(2) -5 >Emitted(28, 39) Source(24, 46) + SourceIndex(2) -6 >Emitted(28, 40) Source(24, 47) + SourceIndex(2) -7 >Emitted(28, 49) Source(24, 56) + SourceIndex(2) -8 >Emitted(28, 50) 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) ---- ->>> /**@internal*/ export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^ -6 > ^^^^^^^^^^ -7 > ^^^ -8 > ^^^^^^^^^^^^^ -9 > ^ -10> ^ -11> ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export -5 > import -6 > someImport -7 > = -8 > someNamespace -9 > . -10> C -11> ; -1->Emitted(32, 5) Source(25, 5) + SourceIndex(2) -2 >Emitted(32, 19) Source(25, 19) + SourceIndex(2) -3 >Emitted(32, 20) Source(25, 20) + SourceIndex(2) -4 >Emitted(32, 26) Source(25, 26) + SourceIndex(2) -5 >Emitted(32, 34) Source(25, 34) + SourceIndex(2) -6 >Emitted(32, 44) Source(25, 44) + SourceIndex(2) -7 >Emitted(32, 47) Source(25, 47) + SourceIndex(2) -8 >Emitted(32, 60) Source(25, 60) + SourceIndex(2) -9 >Emitted(32, 61) Source(25, 61) + SourceIndex(2) -10>Emitted(32, 62) Source(25, 62) + SourceIndex(2) -11>Emitted(32, 63) Source(25, 63) + SourceIndex(2) ---- ->>> /**@internal*/ type internalType = internalC; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^ -5 > ^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^ -8 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > export type -5 > internalType -6 > = -7 > internalC -8 > ; -1 >Emitted(33, 5) Source(26, 5) + SourceIndex(2) -2 >Emitted(33, 19) Source(26, 19) + SourceIndex(2) -3 >Emitted(33, 20) Source(26, 20) + SourceIndex(2) -4 >Emitted(33, 25) Source(26, 32) + SourceIndex(2) -5 >Emitted(33, 37) Source(26, 44) + SourceIndex(2) -6 >Emitted(33, 40) Source(26, 47) + SourceIndex(2) -7 >Emitted(33, 49) Source(26, 56) + SourceIndex(2) -8 >Emitted(33, 50) Source(26, 57) + SourceIndex(2) ---- ->>> /**@internal*/ const internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1 > - > -2 > /**@internal*/ -3 > export -4 > const -5 > internalConst -6 > = 10 -7 > ; -1 >Emitted(34, 5) Source(27, 5) + SourceIndex(2) -2 >Emitted(34, 19) Source(27, 19) + SourceIndex(2) -3 >Emitted(34, 20) Source(27, 27) + SourceIndex(2) -4 >Emitted(34, 26) Source(27, 33) + SourceIndex(2) -5 >Emitted(34, 39) Source(27, 46) + SourceIndex(2) -6 >Emitted(34, 44) Source(27, 51) + SourceIndex(2) -7 >Emitted(34, 45) Source(27, 52) + SourceIndex(2) ---- ->>> /**@internal*/ enum internalEnum { -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /**@internal*/ -3 > -4 > export enum -5 > internalEnum -1 >Emitted(35, 5) Source(28, 5) + SourceIndex(2) -2 >Emitted(35, 19) Source(28, 19) + SourceIndex(2) -3 >Emitted(35, 20) Source(28, 20) + SourceIndex(2) -4 >Emitted(35, 25) Source(28, 32) + SourceIndex(2) -5 >Emitted(35, 37) 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) ---- ->>>/**@internal*/ declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^^^ -1-> - > -2 >/**@internal*/ -3 > -4 > class -5 > internalC -1->Emitted(41, 1) Source(30, 1) + SourceIndex(2) -2 >Emitted(41, 15) Source(30, 15) + SourceIndex(2) -3 >Emitted(41, 16) Source(30, 16) + SourceIndex(2) -4 >Emitted(41, 30) Source(30, 22) + SourceIndex(2) -5 >Emitted(41, 39) Source(30, 31) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(42, 2) Source(30, 34) + SourceIndex(2) ---- ->>>/**@internal*/ declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^^^^^ -7 > ^-> -1-> - > -2 >/**@internal*/ -3 > -4 > function -5 > internalfoo -6 > () {} -1->Emitted(43, 1) Source(31, 1) + SourceIndex(2) -2 >Emitted(43, 15) Source(31, 15) + SourceIndex(2) -3 >Emitted(43, 16) Source(31, 16) + SourceIndex(2) -4 >Emitted(43, 33) Source(31, 25) + SourceIndex(2) -5 >Emitted(43, 44) Source(31, 36) + SourceIndex(2) -6 >Emitted(43, 53) Source(31, 41) + SourceIndex(2) ---- ->>>/**@internal*/ declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > -1->Emitted(44, 1) Source(32, 1) + SourceIndex(2) -2 >Emitted(44, 15) Source(32, 15) + SourceIndex(2) -3 >Emitted(44, 16) Source(32, 16) + SourceIndex(2) -4 >Emitted(44, 34) Source(32, 26) + SourceIndex(2) -5 >Emitted(44, 51) Source(32, 43) + SourceIndex(2) -6 >Emitted(44, 52) 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) ---- ->>>/**@internal*/ declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalOther -6 > . -7 > something -8 > -1->Emitted(48, 1) Source(33, 1) + SourceIndex(2) -2 >Emitted(48, 15) Source(33, 15) + SourceIndex(2) -3 >Emitted(48, 16) Source(33, 16) + SourceIndex(2) -4 >Emitted(48, 34) Source(33, 26) + SourceIndex(2) -5 >Emitted(48, 47) Source(33, 39) + SourceIndex(2) -6 >Emitted(48, 48) Source(33, 40) + SourceIndex(2) -7 >Emitted(48, 57) Source(33, 49) + SourceIndex(2) -8 >Emitted(48, 58) 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) ---- ->>>/**@internal*/ import 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(52, 1) Source(34, 1) + SourceIndex(2) -2 >Emitted(52, 15) Source(34, 15) + SourceIndex(2) -3 >Emitted(52, 16) Source(34, 16) + SourceIndex(2) -4 >Emitted(52, 23) Source(34, 23) + SourceIndex(2) -5 >Emitted(52, 37) Source(34, 37) + SourceIndex(2) -6 >Emitted(52, 40) Source(34, 40) + SourceIndex(2) -7 >Emitted(52, 57) Source(34, 57) + SourceIndex(2) -8 >Emitted(52, 58) Source(34, 58) + SourceIndex(2) -9 >Emitted(52, 67) Source(34, 67) + SourceIndex(2) -10>Emitted(52, 68) Source(34, 68) + SourceIndex(2) ---- ->>>/**@internal*/ declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^ -8 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > type -5 > internalType -6 > = -7 > internalC -8 > ; -1 >Emitted(53, 1) Source(35, 1) + SourceIndex(2) -2 >Emitted(53, 15) Source(35, 15) + SourceIndex(2) -3 >Emitted(53, 16) Source(35, 16) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 21) + SourceIndex(2) -5 >Emitted(53, 41) Source(35, 33) + SourceIndex(2) -6 >Emitted(53, 44) Source(35, 36) + SourceIndex(2) -7 >Emitted(53, 53) Source(35, 45) + SourceIndex(2) -8 >Emitted(53, 54) Source(35, 46) + SourceIndex(2) ---- ->>>/**@internal*/ declare const internalConst = 10; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > -5 > const -6 > internalConst -7 > = 10 -8 > ; -1 >Emitted(54, 1) Source(36, 1) + SourceIndex(2) -2 >Emitted(54, 15) Source(36, 15) + SourceIndex(2) -3 >Emitted(54, 16) Source(36, 16) + SourceIndex(2) -4 >Emitted(54, 24) Source(36, 16) + SourceIndex(2) -5 >Emitted(54, 30) Source(36, 22) + SourceIndex(2) -6 >Emitted(54, 43) Source(36, 35) + SourceIndex(2) -7 >Emitted(54, 48) Source(36, 40) + SourceIndex(2) -8 >Emitted(54, 49) Source(36, 41) + SourceIndex(2) ---- ->>>/**@internal*/ declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/**@internal*/ -3 > -4 > enum -5 > internalEnum -1 >Emitted(55, 1) Source(37, 1) + SourceIndex(2) -2 >Emitted(55, 15) Source(37, 15) + SourceIndex(2) -3 >Emitted(55, 16) Source(37, 16) + SourceIndex(2) -4 >Emitted(55, 29) Source(37, 21) + SourceIndex(2) -5 >Emitted(55, 41) 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->Emitted(13, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(13, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(13, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(13, 27) Source(20, 19) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 45) + SourceIndex(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(14, 2) Source(29, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1673,9 +921,9 @@ sourceFile:../../../second/second_part2.ts 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) +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->^^^^ @@ -1683,8 +931,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -1693,7 +941,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1714,12 +962,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(64, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(64, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(64, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(64, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(64, 18) Source(1, 17) + SourceIndex(4) +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) --- >>>//# sourceMappingURL=third-output.d.ts.map diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-when-one-two-three-are-prepended-in-order.js index 219e4aeeb0a..3790c876e8e 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -44,6 +44,11 @@ "texts": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 156, "kind": "text" }, @@ -56,6 +61,36 @@ }, { "pos": 200, + "end": 277, + "kind": "text" + }, + { + "pos": 277, + "end": 351, + "kind": "internal" + }, + { + "pos": 353, + "end": 385, + "kind": "text" + }, + { + "pos": 385, + "end": 777, + "kind": "internal" + }, + { + "pos": 779, + "end": 782, + "kind": "text" + }, + { + "pos": 782, + "end": 1195, + "kind": "internal" + }, + { + "pos": 1197, "end": 1245, "kind": "text" }, @@ -198,12 +233,14 @@ sourceMapUrl: (3203-3244) ====================================================================== File:: /src/2/second-output.d.ts ---------------------------------------------------------------------- -prepend: (0-198):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-198):: /src/first/bin/first-output.d.ts texts:: 3 >>-------------------------------------------------------------------- -text: (0-156) +internal: (0-39) interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (41-156) declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -214,18 +251,26 @@ declare function f(): string; sourceMapUrl: (156-198) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -text: (200-1245) +text: (200-277) declare namespace N { } declare namespace N { } declare class normalC { + +---------------------------------------------------------------------- +internal: (277-351) constructor(); prop: string; method(): void; c: number; +---------------------------------------------------------------------- +text: (353-385) } declare namespace normalN { + +---------------------------------------------------------------------- +internal: (385-777) class C { } function foo(): void; @@ -245,7 +290,12 @@ declare namespace normalN { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (779-782) } + +---------------------------------------------------------------------- +internal: (782-1195) declare class internalC { } declare function internalfoo(): void; @@ -265,6 +315,8 @@ declare enum internalEnum { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (1197-1245) declare class C { doSomething(): void; } @@ -2840,6 +2892,11 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 156, "kind": "text" }, @@ -2872,10 +2929,12 @@ sourceMapUrl: (109-149) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-156) +internal: (0-39) interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (41-156) declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -3251,12 +3310,17 @@ console.log(s); "sections": [ { "pos": 0, - "end": 1288, + "end": 403, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 156, "kind": "text" }, @@ -3267,24 +3331,24 @@ console.log(s); }, { "pos": 200, - "end": 1245, + "end": 360, "kind": "text" }, { - "pos": 1245, - "end": 1288, + "pos": 360, + "end": 403, "kind": "sourceMapUrl" } ] }, { - "pos": 1290, - "end": 1309, + "pos": 405, + "end": 424, "kind": "text" }, { - "pos": 1309, - "end": 1351, + "pos": 424, + "end": 466, "kind": "sourceMapUrl" } ] @@ -3429,12 +3493,14 @@ sourceMapUrl: (3282-3322) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-1288):: /src/2/second-output.d.ts texts:: 4 +prepend: (0-403):: /src/2/second-output.d.ts texts:: 5 >>-------------------------------------------------------------------- -text: (0-156) +internal: (0-39) interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (41-156) declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -3445,70 +3511,28 @@ declare function f(): string; sourceMapUrl: (156-198) //# sourceMappingURL=first-output.d.ts.map >>-------------------------------------------------------------------- -text: (200-1245) +text: (200-360) declare namespace N { } declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - c: 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; } >>-------------------------------------------------------------------- -sourceMapUrl: (1245-1288) +sourceMapUrl: (360-403) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1290-1309) +text: (405-424) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1309-1351) +sourceMapUrl: (424-466) //# sourceMappingURL=third-output.d.ts.map ====================================================================== @@ -3527,50 +3551,8 @@ declare namespace N { declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - c: 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; @@ -3580,7 +3562,7 @@ 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":"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;IACF,CAAC,EACM,MAAM;CAClC;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;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"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":"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;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] =================================================================== @@ -3778,59 +3760,17 @@ sourceFile:../../../second/second_part1.ts 2 >Emitted(14, 15) Source(13, 7) + SourceIndex(2) 3 >Emitted(14, 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(16, 5) Source(15, 19) + SourceIndex(2) -2 >Emitted(16, 9) Source(15, 23) + SourceIndex(2) -3 >Emitted(16, 11) Source(15, 25) + SourceIndex(2) -4 >Emitted(16, 17) Source(15, 31) + SourceIndex(2) -5 >Emitted(16, 18) Source(15, 32) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(17, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(17, 11) Source(16, 25) + SourceIndex(2) ---- ->>> c: number; -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /*@internal*/ get -2 > c -3 > () { return 10; } - > /*@internal*/ set c(val: -4 > number -1->Emitted(18, 5) Source(17, 23) + SourceIndex(2) -2 >Emitted(18, 6) Source(17, 24) + SourceIndex(2) -3 >Emitted(18, 8) Source(18, 30) + SourceIndex(2) -4 >Emitted(18, 14) Source(18, 36) + SourceIndex(2) ---- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +1 >Emitted(15, 2) Source(19, 2) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -3842,488 +3782,25 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(16, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(16, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(16, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(16, 27) Source(20, 19) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 44) + SourceIndex(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(17, 2) Source(29, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4337,9 +3814,9 @@ sourceFile:../../../second/second_part2.ts 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) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(18, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(18, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -4347,8 +3824,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(19, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(19, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -4357,7 +3834,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(20, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4378,12 +3855,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(64, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(64, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(64, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(64, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(64, 18) Source(1, 17) + SourceIndex(4) +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) --- >>>//# sourceMappingURL=third-output.d.ts.map diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index b40a3bbc197..242fcc23526 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -44,6 +44,11 @@ "texts": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 156, "kind": "text" }, @@ -56,6 +61,36 @@ }, { "pos": 200, + "end": 277, + "kind": "text" + }, + { + "pos": 277, + "end": 365, + "kind": "internal" + }, + { + "pos": 367, + "end": 399, + "kind": "text" + }, + { + "pos": 399, + "end": 791, + "kind": "internal" + }, + { + "pos": 793, + "end": 796, + "kind": "text" + }, + { + "pos": 796, + "end": 1209, + "kind": "internal" + }, + { + "pos": 1211, "end": 1259, "kind": "text" }, @@ -198,12 +233,14 @@ sourceMapUrl: (3567-3608) ====================================================================== File:: /src/2/second-output.d.ts ---------------------------------------------------------------------- -prepend: (0-198):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-198):: /src/first/bin/first-output.d.ts texts:: 3 >>-------------------------------------------------------------------- -text: (0-156) +internal: (0-39) interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (41-156) declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -214,18 +251,26 @@ declare function f(): string; sourceMapUrl: (156-198) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -text: (200-1259) +text: (200-277) declare namespace N { } declare namespace N { } declare class normalC { + +---------------------------------------------------------------------- +internal: (277-365) constructor(); prop: string; method(): void; /*@internal*/ c: number; +---------------------------------------------------------------------- +text: (367-399) } declare namespace normalN { + +---------------------------------------------------------------------- +internal: (399-791) class C { } function foo(): void; @@ -245,7 +290,12 @@ declare namespace normalN { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (793-796) } + +---------------------------------------------------------------------- +internal: (796-1209) declare class internalC { } declare function internalfoo(): void; @@ -265,6 +315,8 @@ declare enum internalEnum { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (1211-1259) declare class C { doSomething(): void; } @@ -2940,6 +2992,11 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 156, "kind": "text" }, @@ -2972,10 +3029,12 @@ sourceMapUrl: (109-149) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-156) +internal: (0-39) interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (41-156) declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -3351,12 +3410,17 @@ console.log(s); "sections": [ { "pos": 0, - "end": 1302, + "end": 403, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 156, "kind": "text" }, @@ -3367,24 +3431,24 @@ console.log(s); }, { "pos": 200, - "end": 1259, + "end": 360, "kind": "text" }, { - "pos": 1259, - "end": 1302, + "pos": 360, + "end": 403, "kind": "sourceMapUrl" } ] }, { - "pos": 1304, - "end": 1323, + "pos": 405, + "end": 424, "kind": "text" }, { - "pos": 1323, - "end": 1365, + "pos": 424, + "end": 466, "kind": "sourceMapUrl" } ] @@ -3529,12 +3593,14 @@ sourceMapUrl: (3646-3686) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-1302):: /src/2/second-output.d.ts texts:: 4 +prepend: (0-403):: /src/2/second-output.d.ts texts:: 5 >>-------------------------------------------------------------------- -text: (0-156) +internal: (0-39) interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (41-156) declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -3545,70 +3611,28 @@ declare function f(): string; sourceMapUrl: (156-198) //# sourceMappingURL=first-output.d.ts.map >>-------------------------------------------------------------------- -text: (200-1259) +text: (200-360) declare namespace N { } declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - /*@internal*/ c: 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; } >>-------------------------------------------------------------------- -sourceMapUrl: (1259-1302) +sourceMapUrl: (360-403) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1304-1323) +text: (405-424) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1323-1365) +sourceMapUrl: (424-466) //# sourceMappingURL=third-output.d.ts.map ====================================================================== @@ -3627,50 +3651,8 @@ declare namespace N { declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - /*@internal*/ c: 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; @@ -3680,7 +3662,7 @@ 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":"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;kBACF,CAAC,EACM,MAAM;CAClC;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;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"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":"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;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] =================================================================== @@ -3878,59 +3860,17 @@ sourceFile:../../../second/second_part1.ts 2 >Emitted(14, 15) Source(13, 7) + SourceIndex(2) 3 >Emitted(14, 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(16, 5) Source(15, 19) + SourceIndex(2) -2 >Emitted(16, 9) Source(15, 23) + SourceIndex(2) -3 >Emitted(16, 11) Source(15, 25) + SourceIndex(2) -4 >Emitted(16, 17) Source(15, 31) + SourceIndex(2) -5 >Emitted(16, 18) Source(15, 32) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(17, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(17, 11) Source(16, 25) + SourceIndex(2) ---- ->>> /*@internal*/ c: number; -1->^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /*@internal*/ get -2 > c -3 > () { return 10; } - > /*@internal*/ set c(val: -4 > number -1->Emitted(18, 19) Source(17, 23) + SourceIndex(2) -2 >Emitted(18, 20) Source(17, 24) + SourceIndex(2) -3 >Emitted(18, 22) Source(18, 30) + SourceIndex(2) -4 >Emitted(18, 28) Source(18, 36) + SourceIndex(2) ---- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +1 >Emitted(15, 2) Source(19, 2) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -3942,488 +3882,25 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(16, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(16, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(16, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(16, 27) Source(20, 19) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 44) + SourceIndex(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(17, 2) Source(29, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4437,9 +3914,9 @@ sourceFile:../../../second/second_part2.ts 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) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(18, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(18, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -4447,8 +3924,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(19, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(19, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -4457,7 +3934,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(20, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4478,12 +3955,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(64, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(64, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(64, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(64, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(64, 18) Source(1, 17) + SourceIndex(4) +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) --- >>>//# sourceMappingURL=third-output.d.ts.map diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-with-comments-emit-enabled.js index 4b98313ea4d..6aa91eaa47b 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/buildInfo/stripInternal-with-comments-emit-enabled.js @@ -20,6 +20,11 @@ "sections": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 156, "kind": "text" }, @@ -52,10 +57,12 @@ sourceMapUrl: (109-149) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-156) +internal: (0-39) interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (41-156) declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -439,48 +446,48 @@ console.log(s); "sections": [ { "pos": 0, - "end": 198, + "end": 157, "kind": "prepend", "data": "/src/first/bin/first-output.d.ts", "texts": [ { "pos": 0, - "end": 156, + "end": 115, "kind": "text" }, { - "pos": 156, - "end": 198, + "pos": 115, + "end": 157, "kind": "sourceMapUrl" } ] }, { - "pos": 200, - "end": 1302, + "pos": 159, + "end": 362, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { - "pos": 200, - "end": 1259, + "pos": 159, + "end": 319, "kind": "text" }, { - "pos": 1259, - "end": 1302, + "pos": 319, + "end": 362, "kind": "sourceMapUrl" } ] }, { - "pos": 1304, - "end": 1323, + "pos": 364, + "end": 383, "kind": "text" }, { - "pos": 1323, - "end": 1365, + "pos": 383, + "end": 425, "kind": "sourceMapUrl" } ] @@ -627,12 +634,9 @@ sourceMapUrl: (3646-3686) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-198):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-157):: /src/first/bin/first-output.d.ts texts:: 2 >>-------------------------------------------------------------------- -text: (0-156) -interface TheFirst { - none: any; -} +text: (0-115) declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -640,82 +644,37 @@ interface NoJsForHereEither { declare function f(): string; >>-------------------------------------------------------------------- -sourceMapUrl: (156-198) +sourceMapUrl: (115-157) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -prepend: (200-1302):: /src/2/second-output.d.ts texts:: 2 +prepend: (159-362):: /src/2/second-output.d.ts texts:: 2 >>-------------------------------------------------------------------- -text: (200-1259) +text: (159-319) declare namespace N { } declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - /*@internal*/ c: 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; } >>-------------------------------------------------------------------- -sourceMapUrl: (1259-1302) +sourceMapUrl: (319-362) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1304-1323) +text: (364-383) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1323-1365) +sourceMapUrl: (383-425) //# sourceMappingURL=third-output.d.ts.map ====================================================================== //// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} declare const s = "Hola, world"; interface NoJsForHereEither { none: any; @@ -727,50 +686,8 @@ declare namespace N { declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - /*@internal*/ c: 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; @@ -780,7 +697,7 @@ 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":"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;kBACF,CAAC,EACM,MAAM;CAClC;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;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"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] =================================================================== @@ -793,50 +710,16 @@ sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../se emittedFile:/src/third/thirdjs/output/third-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-> +1 > 2 >^^^^^^^^ 3 > ^^^^^^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^ 6 > ^ -1-> +1 >/*@internal*/ interface TheFirst { + > none: any; + >} > > 2 > @@ -844,12 +727,12 @@ sourceFile:../../../first/first_PART1.ts 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) +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 > @@ -860,9 +743,9 @@ sourceFile:../../../first/first_PART1.ts > 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) +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 >^^^^ @@ -876,18 +759,18 @@ sourceFile:../../../first/first_PART1.ts 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 >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(7, 2) Source(9, 2) + SourceIndex(0) +1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -905,10 +788,10 @@ sourceFile:../../../first/first_part3.ts 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) +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 @@ -924,10 +807,10 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(7, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(7, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(7, 21) Source(1, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -935,7 +818,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) --- >>>declare namespace N { 1-> @@ -948,10 +831,10 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(9, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(5, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -963,7 +846,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) +1 >Emitted(10, 2) Source(11, 2) + SourceIndex(2) --- >>>declare class normalC { 1-> @@ -974,63 +857,21 @@ sourceFile:../../../second/second_part1.ts > 2 >class 3 > normalC -1->Emitted(14, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(14, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(14, 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(16, 5) Source(15, 19) + SourceIndex(2) -2 >Emitted(16, 9) Source(15, 23) + SourceIndex(2) -3 >Emitted(16, 11) Source(15, 25) + SourceIndex(2) -4 >Emitted(16, 17) Source(15, 31) + SourceIndex(2) -5 >Emitted(16, 18) Source(15, 32) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(17, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(17, 11) Source(16, 25) + SourceIndex(2) ---- ->>> /*@internal*/ c: number; -1->^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /*@internal*/ get -2 > c -3 > () { return 10; } - > /*@internal*/ set c(val: -4 > number -1->Emitted(18, 19) Source(17, 23) + SourceIndex(2) -2 >Emitted(18, 20) Source(17, 24) + SourceIndex(2) -3 >Emitted(18, 22) Source(18, 30) + SourceIndex(2) -4 >Emitted(18, 28) Source(18, 36) + SourceIndex(2) +1->Emitted(11, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(11, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(11, 22) Source(13, 14) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +1 >Emitted(12, 2) Source(19, 2) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -1042,488 +883,25 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(13, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(13, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(13, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(13, 27) Source(20, 19) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 44) + SourceIndex(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(14, 2) Source(29, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1537,9 +915,9 @@ sourceFile:../../../second/second_part2.ts 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) +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->^^^^ @@ -1547,8 +925,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -1557,7 +935,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1578,12 +956,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(64, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(64, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(64, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(64, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(64, 18) Source(1, 17) + SourceIndex(4) +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) --- >>>//# sourceMappingURL=third-output.d.ts.map diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index d801515da63..28349398aaf 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -44,6 +44,11 @@ "texts": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -56,6 +61,36 @@ }, { "pos": 201, + "end": 278, + "kind": "text" + }, + { + "pos": 278, + "end": 352, + "kind": "internal" + }, + { + "pos": 354, + "end": 386, + "kind": "text" + }, + { + "pos": 386, + "end": 778, + "kind": "internal" + }, + { + "pos": 780, + "end": 783, + "kind": "text" + }, + { + "pos": 783, + "end": 1196, + "kind": "internal" + }, + { + "pos": 1198, "end": 1246, "kind": "text" }, @@ -199,12 +234,14 @@ sourceMapUrl: (3221-3262) ====================================================================== File:: /src/2/second-output.d.ts ---------------------------------------------------------------------- -prepend: (0-199):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-199):: /src/first/bin/first-output.d.ts texts:: 3 >>-------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -215,18 +252,26 @@ declare function f(): string; sourceMapUrl: (157-199) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -text: (201-1246) +text: (201-278) declare namespace N { } declare namespace N { } declare class normalC { + +---------------------------------------------------------------------- +internal: (278-352) constructor(); prop: string; method(): void; c: number; +---------------------------------------------------------------------- +text: (354-386) } declare namespace normalN { + +---------------------------------------------------------------------- +internal: (386-778) class C { } function foo(): void; @@ -246,7 +291,12 @@ declare namespace normalN { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (780-783) } + +---------------------------------------------------------------------- +internal: (783-1196) declare class internalC { } declare function internalfoo(): void; @@ -266,6 +316,8 @@ declare enum internalEnum { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (1198-1246) declare class C { doSomething(): void; } @@ -2023,6 +2075,11 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -2056,10 +2113,12 @@ sourceMapUrl: (127-167) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -2320,12 +2379,17 @@ console.log(s); "sections": [ { "pos": 0, - "end": 1289, + "end": 404, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -2336,24 +2400,24 @@ console.log(s); }, { "pos": 201, - "end": 1246, + "end": 361, "kind": "text" }, { - "pos": 1246, - "end": 1289, + "pos": 361, + "end": 404, "kind": "sourceMapUrl" } ] }, { - "pos": 1291, - "end": 1310, + "pos": 406, + "end": 425, "kind": "text" }, { - "pos": 1310, - "end": 1352, + "pos": 425, + "end": 467, "kind": "sourceMapUrl" } ] @@ -2499,12 +2563,14 @@ sourceMapUrl: (3300-3340) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-1289):: /src/2/second-output.d.ts texts:: 4 +prepend: (0-404):: /src/2/second-output.d.ts texts:: 5 >>-------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -2515,70 +2581,28 @@ declare function f(): string; sourceMapUrl: (157-199) //# sourceMappingURL=first-output.d.ts.map >>-------------------------------------------------------------------- -text: (201-1246) +text: (201-361) declare namespace N { } declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - c: 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; } >>-------------------------------------------------------------------- -sourceMapUrl: (1246-1289) +sourceMapUrl: (361-404) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1291-1310) +text: (406-425) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1310-1352) +sourceMapUrl: (425-467) //# sourceMappingURL=third-output.d.ts.map ====================================================================== diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-jsdoc-style-comment.js index 587171646f7..b15cf807e49 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-jsdoc-style-comment.js @@ -20,6 +20,11 @@ "sections": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -53,10 +58,12 @@ sourceMapUrl: (127-167) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -325,48 +332,48 @@ console.log(s); "sections": [ { "pos": 0, - "end": 199, + "end": 158, "kind": "prepend", "data": "/src/first/bin/first-output.d.ts", "texts": [ { "pos": 0, - "end": 157, + "end": 116, "kind": "text" }, { - "pos": 157, - "end": 199, + "pos": 116, + "end": 158, "kind": "sourceMapUrl" } ] }, { - "pos": 201, - "end": 1289, + "pos": 160, + "end": 363, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { - "pos": 201, - "end": 1246, + "pos": 160, + "end": 320, "kind": "text" }, { - "pos": 1246, - "end": 1289, + "pos": 320, + "end": 363, "kind": "sourceMapUrl" } ] }, { - "pos": 1291, - "end": 1310, + "pos": 365, + "end": 384, "kind": "text" }, { - "pos": 1310, - "end": 1352, + "pos": 384, + "end": 426, "kind": "sourceMapUrl" } ] @@ -514,12 +521,9 @@ sourceMapUrl: (3300-3340) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-199):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-158):: /src/first/bin/first-output.d.ts texts:: 2 >>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} +text: (0-116) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -527,75 +531,33 @@ interface NoJsForHereEither { declare function f(): string; >>-------------------------------------------------------------------- -sourceMapUrl: (157-199) +sourceMapUrl: (116-158) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -prepend: (201-1289):: /src/2/second-output.d.ts texts:: 2 +prepend: (160-363):: /src/2/second-output.d.ts texts:: 2 >>-------------------------------------------------------------------- -text: (201-1246) +text: (160-320) declare namespace N { } declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - c: 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; } >>-------------------------------------------------------------------- -sourceMapUrl: (1246-1289) +sourceMapUrl: (320-363) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1291-1310) +text: (365-384) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1310-1352) +sourceMapUrl: (384-426) //# sourceMappingURL=third-output.d.ts.map ====================================================================== diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/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/buildInfo/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 84048d38363..e22abdfba3d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/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/buildInfo/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -44,6 +44,11 @@ "texts": [ { "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, "end": 172, "kind": "text" }, @@ -56,6 +61,36 @@ }, { "pos": 216, + "end": 293, + "kind": "text" + }, + { + "pos": 293, + "end": 442, + "kind": "internal" + }, + { + "pos": 444, + "end": 476, + "kind": "text" + }, + { + "pos": 476, + "end": 988, + "kind": "internal" + }, + { + "pos": 990, + "end": 993, + "kind": "text" + }, + { + "pos": 993, + "end": 1526, + "kind": "internal" + }, + { + "pos": 1528, "end": 1576, "kind": "text" }, @@ -199,12 +234,14 @@ sourceMapUrl: (3603-3644) ====================================================================== File:: /src/2/second-output.d.ts ---------------------------------------------------------------------- -prepend: (0-214):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-214):: /src/first/bin/first-output.d.ts texts:: 3 >>-------------------------------------------------------------------- -text: (0-172) +internal: (0-54) /**@internal*/ interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (56-172) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -215,18 +252,26 @@ declare function f(): string; sourceMapUrl: (172-214) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -text: (216-1576) +text: (216-293) declare namespace N { } declare namespace N { } declare class normalC { + +---------------------------------------------------------------------- +internal: (293-442) /**@internal*/ constructor(); /**@internal*/ prop: string; /**@internal*/ method(): void; /**@internal*/ /**@internal*/ c: number; +---------------------------------------------------------------------- +text: (444-476) } declare namespace normalN { + +---------------------------------------------------------------------- +internal: (476-988) /**@internal*/ class C { } /**@internal*/ function foo(): void; @@ -246,7 +291,12 @@ declare namespace normalN { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (990-993) } + +---------------------------------------------------------------------- +internal: (993-1526) /**@internal*/ declare class internalC { } /**@internal*/ declare function internalfoo(): void; @@ -266,6 +316,8 @@ declare namespace normalN { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (1528-1576) declare class C { doSomething(): void; } @@ -2123,6 +2175,11 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, "end": 172, "kind": "text" }, @@ -2156,10 +2213,12 @@ sourceMapUrl: (127-167) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-172) +internal: (0-54) /**@internal*/ interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (56-172) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -2420,12 +2479,17 @@ console.log(s); "sections": [ { "pos": 0, - "end": 1619, + "end": 419, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, "end": 172, "kind": "text" }, @@ -2436,24 +2500,24 @@ console.log(s); }, { "pos": 216, - "end": 1576, + "end": 376, "kind": "text" }, { - "pos": 1576, - "end": 1619, + "pos": 376, + "end": 419, "kind": "sourceMapUrl" } ] }, { - "pos": 1621, - "end": 1640, + "pos": 421, + "end": 440, "kind": "text" }, { - "pos": 1640, - "end": 1682, + "pos": 440, + "end": 482, "kind": "sourceMapUrl" } ] @@ -2599,12 +2663,14 @@ sourceMapUrl: (3682-3722) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-1619):: /src/2/second-output.d.ts texts:: 4 +prepend: (0-419):: /src/2/second-output.d.ts texts:: 5 >>-------------------------------------------------------------------- -text: (0-172) +internal: (0-54) /**@internal*/ interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (56-172) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -2615,70 +2681,28 @@ declare function f(): string; sourceMapUrl: (172-214) //# sourceMappingURL=first-output.d.ts.map >>-------------------------------------------------------------------- -text: (216-1576) +text: (216-376) declare namespace N { } declare namespace N { } declare class normalC { - /**@internal*/ constructor(); - /**@internal*/ prop: string; - /**@internal*/ method(): void; - /**@internal*/ /**@internal*/ c: number; } declare namespace normalN { - /**@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 - } -} -/**@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 } declare class C { doSomething(): void; } >>-------------------------------------------------------------------- -sourceMapUrl: (1576-1619) +sourceMapUrl: (376-419) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1621-1640) +text: (421-440) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1640-1682) +sourceMapUrl: (440-482) //# sourceMappingURL=third-output.d.ts.map ====================================================================== diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-jsdoc-style-with-comments-emit-enabled.js index cec1d714214..f78f944cd03 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-jsdoc-style-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-jsdoc-style-with-comments-emit-enabled.js @@ -20,6 +20,11 @@ "sections": [ { "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, "end": 172, "kind": "text" }, @@ -53,10 +58,12 @@ sourceMapUrl: (127-167) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-172) +internal: (0-54) /**@internal*/ interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (56-172) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -325,48 +332,48 @@ console.log(s); "sections": [ { "pos": 0, - "end": 214, + "end": 158, "kind": "prepend", "data": "/src/first/bin/first-output.d.ts", "texts": [ { "pos": 0, - "end": 172, + "end": 116, "kind": "text" }, { - "pos": 172, - "end": 214, + "pos": 116, + "end": 158, "kind": "sourceMapUrl" } ] }, { - "pos": 216, - "end": 1619, + "pos": 160, + "end": 363, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { - "pos": 216, - "end": 1576, + "pos": 160, + "end": 320, "kind": "text" }, { - "pos": 1576, - "end": 1619, + "pos": 320, + "end": 363, "kind": "sourceMapUrl" } ] }, { - "pos": 1621, - "end": 1640, + "pos": 365, + "end": 384, "kind": "text" }, { - "pos": 1640, - "end": 1682, + "pos": 384, + "end": 426, "kind": "sourceMapUrl" } ] @@ -514,12 +521,9 @@ sourceMapUrl: (3682-3722) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-214):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-158):: /src/first/bin/first-output.d.ts texts:: 2 >>-------------------------------------------------------------------- -text: (0-172) -/**@internal*/ interface TheFirst { - none: any; -} +text: (0-116) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -527,75 +531,33 @@ interface NoJsForHereEither { declare function f(): string; >>-------------------------------------------------------------------- -sourceMapUrl: (172-214) +sourceMapUrl: (116-158) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -prepend: (216-1619):: /src/2/second-output.d.ts texts:: 2 +prepend: (160-363):: /src/2/second-output.d.ts texts:: 2 >>-------------------------------------------------------------------- -text: (216-1576) +text: (160-320) declare namespace N { } declare namespace N { } declare class normalC { - /**@internal*/ constructor(); - /**@internal*/ prop: string; - /**@internal*/ method(): void; - /**@internal*/ /**@internal*/ c: number; } declare namespace normalN { - /**@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 - } -} -/**@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 } declare class C { doSomething(): void; } >>-------------------------------------------------------------------- -sourceMapUrl: (1576-1619) +sourceMapUrl: (320-363) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1621-1640) +text: (365-384) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1640-1682) +sourceMapUrl: (384-426) //# sourceMappingURL=third-output.d.ts.map ====================================================================== diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-when-one-two-three-are-prepended-in-order.js index 947b83ab52c..05155eba6b2 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -44,6 +44,11 @@ "texts": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -56,6 +61,36 @@ }, { "pos": 201, + "end": 278, + "kind": "text" + }, + { + "pos": 278, + "end": 352, + "kind": "internal" + }, + { + "pos": 354, + "end": 386, + "kind": "text" + }, + { + "pos": 386, + "end": 778, + "kind": "internal" + }, + { + "pos": 780, + "end": 783, + "kind": "text" + }, + { + "pos": 783, + "end": 1196, + "kind": "internal" + }, + { + "pos": 1198, "end": 1246, "kind": "text" }, @@ -199,12 +234,14 @@ sourceMapUrl: (3221-3262) ====================================================================== File:: /src/2/second-output.d.ts ---------------------------------------------------------------------- -prepend: (0-199):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-199):: /src/first/bin/first-output.d.ts texts:: 3 >>-------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -215,18 +252,26 @@ declare function f(): string; sourceMapUrl: (157-199) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -text: (201-1246) +text: (201-278) declare namespace N { } declare namespace N { } declare class normalC { + +---------------------------------------------------------------------- +internal: (278-352) constructor(); prop: string; method(): void; c: number; +---------------------------------------------------------------------- +text: (354-386) } declare namespace normalN { + +---------------------------------------------------------------------- +internal: (386-778) class C { } function foo(): void; @@ -246,7 +291,12 @@ declare namespace normalN { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (780-783) } + +---------------------------------------------------------------------- +internal: (783-1196) declare class internalC { } declare function internalfoo(): void; @@ -266,6 +316,8 @@ declare enum internalEnum { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (1198-1246) declare class C { doSomething(): void; } @@ -2023,6 +2075,11 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -2056,10 +2113,12 @@ sourceMapUrl: (127-167) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -2320,12 +2379,17 @@ console.log(s); "sections": [ { "pos": 0, - "end": 1289, + "end": 404, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -2336,24 +2400,24 @@ console.log(s); }, { "pos": 201, - "end": 1246, + "end": 361, "kind": "text" }, { - "pos": 1246, - "end": 1289, + "pos": 361, + "end": 404, "kind": "sourceMapUrl" } ] }, { - "pos": 1291, - "end": 1310, + "pos": 406, + "end": 425, "kind": "text" }, { - "pos": 1310, - "end": 1352, + "pos": 425, + "end": 467, "kind": "sourceMapUrl" } ] @@ -2499,12 +2563,14 @@ sourceMapUrl: (3300-3340) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-1289):: /src/2/second-output.d.ts texts:: 4 +prepend: (0-404):: /src/2/second-output.d.ts texts:: 5 >>-------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -2515,70 +2581,28 @@ declare function f(): string; sourceMapUrl: (157-199) //# sourceMappingURL=first-output.d.ts.map >>-------------------------------------------------------------------- -text: (201-1246) +text: (201-361) declare namespace N { } declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - c: 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; } >>-------------------------------------------------------------------- -sourceMapUrl: (1246-1289) +sourceMapUrl: (361-404) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1291-1310) +text: (406-425) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1310-1352) +sourceMapUrl: (425-467) //# sourceMappingURL=third-output.d.ts.map ====================================================================== diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/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/buildInfo/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 0f39cebcbe0..326f4d1be2a 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/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/buildInfo/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -44,6 +44,11 @@ "texts": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -56,6 +61,36 @@ }, { "pos": 201, + "end": 278, + "kind": "text" + }, + { + "pos": 278, + "end": 366, + "kind": "internal" + }, + { + "pos": 368, + "end": 400, + "kind": "text" + }, + { + "pos": 400, + "end": 792, + "kind": "internal" + }, + { + "pos": 794, + "end": 797, + "kind": "text" + }, + { + "pos": 797, + "end": 1210, + "kind": "internal" + }, + { + "pos": 1212, "end": 1260, "kind": "text" }, @@ -199,12 +234,14 @@ sourceMapUrl: (3585-3626) ====================================================================== File:: /src/2/second-output.d.ts ---------------------------------------------------------------------- -prepend: (0-199):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-199):: /src/first/bin/first-output.d.ts texts:: 3 >>-------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -215,18 +252,26 @@ declare function f(): string; sourceMapUrl: (157-199) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -text: (201-1260) +text: (201-278) declare namespace N { } declare namespace N { } declare class normalC { + +---------------------------------------------------------------------- +internal: (278-366) constructor(); prop: string; method(): void; /*@internal*/ c: number; +---------------------------------------------------------------------- +text: (368-400) } declare namespace normalN { + +---------------------------------------------------------------------- +internal: (400-792) class C { } function foo(): void; @@ -246,7 +291,12 @@ declare namespace normalN { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (794-797) } + +---------------------------------------------------------------------- +internal: (797-1210) declare class internalC { } declare function internalfoo(): void; @@ -266,6 +316,8 @@ declare enum internalEnum { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (1212-1260) declare class C { doSomething(): void; } @@ -2123,6 +2175,11 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -2156,10 +2213,12 @@ sourceMapUrl: (127-167) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -2420,12 +2479,17 @@ console.log(s); "sections": [ { "pos": 0, - "end": 1303, + "end": 404, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -2436,24 +2500,24 @@ console.log(s); }, { "pos": 201, - "end": 1260, + "end": 361, "kind": "text" }, { - "pos": 1260, - "end": 1303, + "pos": 361, + "end": 404, "kind": "sourceMapUrl" } ] }, { - "pos": 1305, - "end": 1324, + "pos": 406, + "end": 425, "kind": "text" }, { - "pos": 1324, - "end": 1366, + "pos": 425, + "end": 467, "kind": "sourceMapUrl" } ] @@ -2599,12 +2663,14 @@ sourceMapUrl: (3664-3704) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-1303):: /src/2/second-output.d.ts texts:: 4 +prepend: (0-404):: /src/2/second-output.d.ts texts:: 5 >>-------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -2615,70 +2681,28 @@ declare function f(): string; sourceMapUrl: (157-199) //# sourceMappingURL=first-output.d.ts.map >>-------------------------------------------------------------------- -text: (201-1260) +text: (201-361) declare namespace N { } declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - /*@internal*/ c: 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; } >>-------------------------------------------------------------------- -sourceMapUrl: (1260-1303) +sourceMapUrl: (361-404) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1305-1324) +text: (406-425) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1324-1366) +sourceMapUrl: (425-467) //# sourceMappingURL=third-output.d.ts.map ====================================================================== diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-with-comments-emit-enabled.js index 9cee140daf9..20dd3e59392 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/buildInfo/stripInternal-with-comments-emit-enabled.js @@ -20,6 +20,11 @@ "sections": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -53,10 +58,12 @@ sourceMapUrl: (127-167) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -325,48 +332,48 @@ console.log(s); "sections": [ { "pos": 0, - "end": 199, + "end": 158, "kind": "prepend", "data": "/src/first/bin/first-output.d.ts", "texts": [ { "pos": 0, - "end": 157, + "end": 116, "kind": "text" }, { - "pos": 157, - "end": 199, + "pos": 116, + "end": 158, "kind": "sourceMapUrl" } ] }, { - "pos": 201, - "end": 1303, + "pos": 160, + "end": 363, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { - "pos": 201, - "end": 1260, + "pos": 160, + "end": 320, "kind": "text" }, { - "pos": 1260, - "end": 1303, + "pos": 320, + "end": 363, "kind": "sourceMapUrl" } ] }, { - "pos": 1305, - "end": 1324, + "pos": 365, + "end": 384, "kind": "text" }, { - "pos": 1324, - "end": 1366, + "pos": 384, + "end": 426, "kind": "sourceMapUrl" } ] @@ -514,12 +521,9 @@ sourceMapUrl: (3664-3704) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-199):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-158):: /src/first/bin/first-output.d.ts texts:: 2 >>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} +text: (0-116) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -527,75 +531,33 @@ interface NoJsForHereEither { declare function f(): string; >>-------------------------------------------------------------------- -sourceMapUrl: (157-199) +sourceMapUrl: (116-158) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -prepend: (201-1303):: /src/2/second-output.d.ts texts:: 2 +prepend: (160-363):: /src/2/second-output.d.ts texts:: 2 >>-------------------------------------------------------------------- -text: (201-1260) +text: (160-320) declare namespace N { } declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - /*@internal*/ c: 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; } >>-------------------------------------------------------------------- -sourceMapUrl: (1260-1303) +sourceMapUrl: (320-363) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1305-1324) +text: (365-384) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1324-1366) +sourceMapUrl: (384-426) //# sourceMappingURL=third-output.d.ts.map ====================================================================== diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index 8ba3da8f23d..eede18aa1f1 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -2362,6 +2362,75 @@ sourceFile:../second/second_part2.ts --- >>>//# sourceMappingURL=second-output.js.map +//// [/src/first/bin/.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/first/", + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + }, + { + "pos": 110, + "end": 150, + "kind": "sourceMapUrl" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + }, + { + "pos": 157, + "end": 199, + "kind": "sourceMapUrl" + } + ] + } + } +} + +//// [/src/first/bin/.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"; +} + +---------------------------------------------------------------------- +sourceMapUrl: (110-150) +//# sourceMappingURL=first-output.js.map +====================================================================== +====================================================================== +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; + +---------------------------------------------------------------------- +sourceMapUrl: (157-199) +//# 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,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} @@ -2654,7 +2723,7 @@ console.log(s); //// [/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;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CACnC;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;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"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] =================================================================== @@ -2852,59 +2921,17 @@ sourceFile:../../../second/second_part1.ts 2 >Emitted(14, 15) Source(13, 7) + SourceIndex(2) 3 >Emitted(14, 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(16, 5) Source(15, 20) + SourceIndex(2) -2 >Emitted(16, 9) Source(15, 24) + SourceIndex(2) -3 >Emitted(16, 11) Source(15, 26) + SourceIndex(2) -4 >Emitted(16, 17) Source(15, 32) + SourceIndex(2) -5 >Emitted(16, 18) Source(15, 33) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^-> -1-> - > /**@internal*/ -2 > method -1->Emitted(17, 5) Source(16, 20) + SourceIndex(2) -2 >Emitted(17, 11) Source(16, 26) + SourceIndex(2) ---- ->>> c: number; -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /**@internal*/ get -2 > c -3 > () { return 10; } - > /**@internal*/ set c(val: -4 > number -1->Emitted(18, 5) Source(17, 24) + SourceIndex(2) -2 >Emitted(18, 6) Source(17, 25) + SourceIndex(2) -3 >Emitted(18, 8) Source(18, 31) + SourceIndex(2) -4 >Emitted(18, 14) Source(18, 37) + SourceIndex(2) ---- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +1 >Emitted(15, 2) Source(19, 2) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -2916,488 +2943,25 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(16, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(16, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(16, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(16, 27) Source(20, 19) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 45) + SourceIndex(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(17, 2) Source(29, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -3411,9 +2975,9 @@ sourceFile:../../../second/second_part2.ts 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) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(18, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(18, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -3421,8 +2985,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(19, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(19, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -3431,7 +2995,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(20, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -3452,12 +3016,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(64, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(64, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(64, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(64, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(64, 18) Source(1, 17) + SourceIndex(4) +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) --- >>>//# sourceMappingURL=third-output.d.ts.map diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-jsdoc-style-comment.js index 8aea40550aa..0343c960ae1 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-jsdoc-style-comment.js @@ -1,3 +1,72 @@ +//// [/src/first/bin/.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/first/", + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + }, + { + "pos": 110, + "end": 150, + "kind": "sourceMapUrl" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + }, + { + "pos": 157, + "end": 199, + "kind": "sourceMapUrl" + } + ] + } + } +} + +//// [/src/first/bin/.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"; +} + +---------------------------------------------------------------------- +sourceMapUrl: (110-150) +//# sourceMappingURL=first-output.js.map +====================================================================== +====================================================================== +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; + +---------------------------------------------------------------------- +sourceMapUrl: (157-199) +//# 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,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} @@ -289,8 +358,322 @@ interface NoJsForHereEither { console.log(s); +//// [/src/third/thirdjs/output/.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/third/", + "js": { + "sections": [ + { + "pos": 0, + "end": 150, + "kind": "prepend", + "data": "/src/first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + }, + { + "pos": 110, + "end": 150, + "kind": "sourceMapUrl" + } + ] + }, + { + "pos": 152, + "end": 3245, + "kind": "prepend", + "data": "/src/2/second-output.js", + "texts": [ + { + "pos": 152, + "end": 3204, + "kind": "text" + }, + { + "pos": 3204, + "end": 3245, + "kind": "sourceMapUrl" + } + ] + }, + { + "pos": 3247, + "end": 3283, + "kind": "text" + }, + { + "pos": 3283, + "end": 3323, + "kind": "sourceMapUrl" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 199, + "kind": "prepend", + "data": "/src/first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + }, + { + "pos": 157, + "end": 199, + "kind": "sourceMapUrl" + } + ] + }, + { + "pos": 201, + "end": 404, + "kind": "prepend", + "data": "/src/2/second-output.d.ts", + "texts": [ + { + "pos": 201, + "end": 361, + "kind": "text" + }, + { + "pos": 361, + "end": 404, + "kind": "sourceMapUrl" + } + ] + }, + { + "pos": 406, + "end": 425, + "kind": "text" + }, + { + "pos": 425, + "end": 467, + "kind": "sourceMapUrl" + } + ] + } + } +} + +//// [/src/third/thirdjs/output/.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-150):: /src/first/bin/first-output.js texts:: 2 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +>>-------------------------------------------------------------------- +sourceMapUrl: (110-150) +//# sourceMappingURL=first-output.js.map +---------------------------------------------------------------------- +prepend: (152-3245):: /src/2/second-output.js texts:: 2 +>>-------------------------------------------------------------------- +text: (152-3204) +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: true, + 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; +}()); + +>>-------------------------------------------------------------------- +sourceMapUrl: (3204-3245) +//# sourceMappingURL=second-output.js.map +---------------------------------------------------------------------- +text: (3247-3283) +var c = new C(); +c.doSomething(); + +---------------------------------------------------------------------- +sourceMapUrl: (3283-3323) +//# sourceMappingURL=third-output.js.map +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-199):: /src/first/bin/first-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +>>-------------------------------------------------------------------- +sourceMapUrl: (157-199) +//# sourceMappingURL=first-output.d.ts.map +---------------------------------------------------------------------- +prepend: (201-404):: /src/2/second-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +text: (201-361) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +>>-------------------------------------------------------------------- +sourceMapUrl: (361-404) +//# sourceMappingURL=second-output.d.ts.map +---------------------------------------------------------------------- +text: (406-425) +declare var c: C; + +---------------------------------------------------------------------- +sourceMapUrl: (425-467) +//# sourceMappingURL=third-output.d.ts.map +====================================================================== + +//// [/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; +//# sourceMappingURL=first-output.d.ts.map +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map +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;;IAEM,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CACnC;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;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"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] =================================================================== @@ -488,59 +871,17 @@ sourceFile:../../../second/second_part1.ts 2 >Emitted(14, 15) Source(13, 7) + SourceIndex(2) 3 >Emitted(14, 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(16, 5) Source(15, 20) + SourceIndex(2) -2 >Emitted(16, 9) Source(15, 24) + SourceIndex(2) -3 >Emitted(16, 11) Source(15, 26) + SourceIndex(2) -4 >Emitted(16, 17) Source(15, 32) + SourceIndex(2) -5 >Emitted(16, 18) Source(15, 33) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^-> -1-> - > /**@internal*/ -2 > method -1->Emitted(17, 5) Source(16, 20) + SourceIndex(2) -2 >Emitted(17, 11) Source(16, 26) + SourceIndex(2) ---- ->>> c: number; -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /**@internal*/ get -2 > c -3 > () { return 10; } - > /**@internal*/ set c(val: -4 > number -1->Emitted(18, 5) Source(17, 24) + SourceIndex(2) -2 >Emitted(18, 6) Source(17, 25) + SourceIndex(2) -3 >Emitted(18, 8) Source(18, 31) + SourceIndex(2) -4 >Emitted(18, 14) Source(18, 37) + SourceIndex(2) ---- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +1 >Emitted(15, 2) Source(19, 2) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -552,488 +893,25 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(16, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(16, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(16, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(16, 27) Source(20, 19) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 45) + SourceIndex(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(17, 2) Source(29, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1047,9 +925,9 @@ sourceFile:../../../second/second_part2.ts 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) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(18, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(18, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -1057,8 +935,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(19, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(19, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -1067,7 +945,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(20, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1088,12 +966,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(64, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(64, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(64, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(64, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(64, 18) Source(1, 17) + SourceIndex(4) +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) --- >>>//# sourceMappingURL=third-output.d.ts.map diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-when-one-two-three-are-prepended-in-order.js index cbef3118b72..fa0899fa02f 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -2362,6 +2362,75 @@ sourceFile:../second/second_part2.ts --- >>>//# sourceMappingURL=second-output.js.map +//// [/src/first/bin/.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/first/", + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + }, + { + "pos": 110, + "end": 150, + "kind": "sourceMapUrl" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + }, + { + "pos": 157, + "end": 199, + "kind": "sourceMapUrl" + } + ] + } + } +} + +//// [/src/first/bin/.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"; +} + +---------------------------------------------------------------------- +sourceMapUrl: (110-150) +//# sourceMappingURL=first-output.js.map +====================================================================== +====================================================================== +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; + +---------------------------------------------------------------------- +sourceMapUrl: (157-199) +//# 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,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} @@ -2654,7 +2723,7 @@ console.log(s); //// [/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;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;IACF,CAAC,EACM,MAAM;CAClC;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;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"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] =================================================================== @@ -2852,59 +2921,17 @@ sourceFile:../../../second/second_part1.ts 2 >Emitted(14, 15) Source(13, 7) + SourceIndex(2) 3 >Emitted(14, 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(16, 5) Source(15, 19) + SourceIndex(2) -2 >Emitted(16, 9) Source(15, 23) + SourceIndex(2) -3 >Emitted(16, 11) Source(15, 25) + SourceIndex(2) -4 >Emitted(16, 17) Source(15, 31) + SourceIndex(2) -5 >Emitted(16, 18) Source(15, 32) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(17, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(17, 11) Source(16, 25) + SourceIndex(2) ---- ->>> c: number; -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /*@internal*/ get -2 > c -3 > () { return 10; } - > /*@internal*/ set c(val: -4 > number -1->Emitted(18, 5) Source(17, 23) + SourceIndex(2) -2 >Emitted(18, 6) Source(17, 24) + SourceIndex(2) -3 >Emitted(18, 8) Source(18, 30) + SourceIndex(2) -4 >Emitted(18, 14) Source(18, 36) + SourceIndex(2) ---- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +1 >Emitted(15, 2) Source(19, 2) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -2916,488 +2943,25 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(16, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(16, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(16, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(16, 27) Source(20, 19) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 44) + SourceIndex(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(17, 2) Source(29, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -3411,9 +2975,9 @@ sourceFile:../../../second/second_part2.ts 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) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(18, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(18, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -3421,8 +2985,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(19, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(19, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -3431,7 +2995,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(20, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -3452,12 +3016,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(64, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(64, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(64, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(64, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(64, 18) Source(1, 17) + SourceIndex(4) +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) --- >>>//# sourceMappingURL=third-output.d.ts.map diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 948c136a219..ddf355bd62a 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -2462,6 +2462,75 @@ sourceFile:../second/second_part2.ts --- >>>//# sourceMappingURL=second-output.js.map +//// [/src/first/bin/.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/first/", + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + }, + { + "pos": 110, + "end": 150, + "kind": "sourceMapUrl" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + }, + { + "pos": 157, + "end": 199, + "kind": "sourceMapUrl" + } + ] + } + } +} + +//// [/src/first/bin/.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"; +} + +---------------------------------------------------------------------- +sourceMapUrl: (110-150) +//# sourceMappingURL=first-output.js.map +====================================================================== +====================================================================== +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; + +---------------------------------------------------------------------- +sourceMapUrl: (157-199) +//# 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,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} @@ -2754,7 +2823,7 @@ console.log(s); //// [/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;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;kBACF,CAAC,EACM,MAAM;CAClC;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;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"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] =================================================================== @@ -2952,59 +3021,17 @@ sourceFile:../../../second/second_part1.ts 2 >Emitted(14, 15) Source(13, 7) + SourceIndex(2) 3 >Emitted(14, 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(16, 5) Source(15, 19) + SourceIndex(2) -2 >Emitted(16, 9) Source(15, 23) + SourceIndex(2) -3 >Emitted(16, 11) Source(15, 25) + SourceIndex(2) -4 >Emitted(16, 17) Source(15, 31) + SourceIndex(2) -5 >Emitted(16, 18) Source(15, 32) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(17, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(17, 11) Source(16, 25) + SourceIndex(2) ---- ->>> /*@internal*/ c: number; -1->^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /*@internal*/ get -2 > c -3 > () { return 10; } - > /*@internal*/ set c(val: -4 > number -1->Emitted(18, 19) Source(17, 23) + SourceIndex(2) -2 >Emitted(18, 20) Source(17, 24) + SourceIndex(2) -3 >Emitted(18, 22) Source(18, 30) + SourceIndex(2) -4 >Emitted(18, 28) Source(18, 36) + SourceIndex(2) ---- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +1 >Emitted(15, 2) Source(19, 2) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -3016,488 +3043,25 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(16, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(16, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(16, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(16, 27) Source(20, 19) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 44) + SourceIndex(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(17, 2) Source(29, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -3511,9 +3075,9 @@ sourceFile:../../../second/second_part2.ts 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) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(18, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(18, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -3521,8 +3085,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(19, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(19, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -3531,7 +3095,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(20, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -3552,12 +3116,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(64, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(64, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(64, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(64, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(64, 18) Source(1, 17) + SourceIndex(4) +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) --- >>>//# sourceMappingURL=third-output.d.ts.map diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-with-comments-emit-enabled.js index 200f41eb6ff..99d1728456d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change/buildInfo/stripInternal-with-comments-emit-enabled.js @@ -1,3 +1,72 @@ +//// [/src/first/bin/.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/first/", + "js": { + "sections": [ + { + "pos": 0, + "end": 110, + "kind": "text" + }, + { + "pos": 110, + "end": 150, + "kind": "sourceMapUrl" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 157, + "kind": "text" + }, + { + "pos": 157, + "end": 199, + "kind": "sourceMapUrl" + } + ] + } + } +} + +//// [/src/first/bin/.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"; +} + +---------------------------------------------------------------------- +sourceMapUrl: (110-150) +//# sourceMappingURL=first-output.js.map +====================================================================== +====================================================================== +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; + +---------------------------------------------------------------------- +sourceMapUrl: (157-199) +//# 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,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AERD,iBAAS,CAAC,WAET"} @@ -289,8 +358,322 @@ interface NoJsForHereEither { console.log(s); +//// [/src/third/thirdjs/output/.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/third/", + "js": { + "sections": [ + { + "pos": 0, + "end": 150, + "kind": "prepend", + "data": "/src/first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 110, + "kind": "text" + }, + { + "pos": 110, + "end": 150, + "kind": "sourceMapUrl" + } + ] + }, + { + "pos": 152, + "end": 3609, + "kind": "prepend", + "data": "/src/2/second-output.js", + "texts": [ + { + "pos": 152, + "end": 3568, + "kind": "text" + }, + { + "pos": 3568, + "end": 3609, + "kind": "sourceMapUrl" + } + ] + }, + { + "pos": 3611, + "end": 3647, + "kind": "text" + }, + { + "pos": 3647, + "end": 3687, + "kind": "sourceMapUrl" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 199, + "kind": "prepend", + "data": "/src/first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 157, + "kind": "text" + }, + { + "pos": 157, + "end": 199, + "kind": "sourceMapUrl" + } + ] + }, + { + "pos": 201, + "end": 404, + "kind": "prepend", + "data": "/src/2/second-output.d.ts", + "texts": [ + { + "pos": 201, + "end": 361, + "kind": "text" + }, + { + "pos": 361, + "end": 404, + "kind": "sourceMapUrl" + } + ] + }, + { + "pos": 406, + "end": 425, + "kind": "text" + }, + { + "pos": 425, + "end": 467, + "kind": "sourceMapUrl" + } + ] + } + } +} + +//// [/src/third/thirdjs/output/.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-150):: /src/first/bin/first-output.js texts:: 2 +>>-------------------------------------------------------------------- +text: (0-110) +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +>>-------------------------------------------------------------------- +sourceMapUrl: (110-150) +//# sourceMappingURL=first-output.js.map +---------------------------------------------------------------------- +prepend: (152-3609):: /src/2/second-output.js texts:: 2 +>>-------------------------------------------------------------------- +text: (152-3568) +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: true, + 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; +}()); + +>>-------------------------------------------------------------------- +sourceMapUrl: (3568-3609) +//# sourceMappingURL=second-output.js.map +---------------------------------------------------------------------- +text: (3611-3647) +var c = new C(); +c.doSomething(); + +---------------------------------------------------------------------- +sourceMapUrl: (3647-3687) +//# sourceMappingURL=third-output.js.map +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-199):: /src/first/bin/first-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +text: (0-157) +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +>>-------------------------------------------------------------------- +sourceMapUrl: (157-199) +//# sourceMappingURL=first-output.d.ts.map +---------------------------------------------------------------------- +prepend: (201-404):: /src/2/second-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +text: (201-361) +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} + +>>-------------------------------------------------------------------- +sourceMapUrl: (361-404) +//# sourceMappingURL=second-output.d.ts.map +---------------------------------------------------------------------- +text: (406-425) +declare var c: C; + +---------------------------------------------------------------------- +sourceMapUrl: (425-467) +//# sourceMappingURL=third-output.d.ts.map +====================================================================== + +//// [/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; +//# sourceMappingURL=first-output.d.ts.map +declare namespace N { +} +declare namespace N { +} +declare class normalC { +} +declare namespace normalN { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map +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;;IAEK,IAAI,EAAE,MAAM,CAAC;IACb,MAAM;kBACF,CAAC,EACM,MAAM;CAClC;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;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"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] =================================================================== @@ -488,59 +871,17 @@ sourceFile:../../../second/second_part1.ts 2 >Emitted(14, 15) Source(13, 7) + SourceIndex(2) 3 >Emitted(14, 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(16, 5) Source(15, 19) + SourceIndex(2) -2 >Emitted(16, 9) Source(15, 23) + SourceIndex(2) -3 >Emitted(16, 11) Source(15, 25) + SourceIndex(2) -4 >Emitted(16, 17) Source(15, 31) + SourceIndex(2) -5 >Emitted(16, 18) Source(15, 32) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(17, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(17, 11) Source(16, 25) + SourceIndex(2) ---- ->>> /*@internal*/ c: number; -1->^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /*@internal*/ get -2 > c -3 > () { return 10; } - > /*@internal*/ set c(val: -4 > number -1->Emitted(18, 19) Source(17, 23) + SourceIndex(2) -2 >Emitted(18, 20) Source(17, 24) + SourceIndex(2) -3 >Emitted(18, 22) Source(18, 30) + SourceIndex(2) -4 >Emitted(18, 28) Source(18, 36) + SourceIndex(2) ---- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +1 >Emitted(15, 2) Source(19, 2) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -552,488 +893,25 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(16, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(16, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(16, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(16, 27) Source(20, 19) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 44) + SourceIndex(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(17, 2) Source(29, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1047,9 +925,9 @@ sourceFile:../../../second/second_part2.ts 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) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(18, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(18, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -1057,8 +935,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(19, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(19, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -1067,7 +945,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(20, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1088,12 +966,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(64, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(64, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(64, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(64, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(64, 18) Source(1, 17) + SourceIndex(4) +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) --- >>>//# sourceMappingURL=third-output.d.ts.map diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js index 8cae0a343be..16b3c4b0340 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-jsdoc-style-comment-when-one-two-three-are-prepended-in-order.js @@ -44,6 +44,11 @@ "texts": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -56,6 +61,36 @@ }, { "pos": 201, + "end": 278, + "kind": "text" + }, + { + "pos": 278, + "end": 352, + "kind": "internal" + }, + { + "pos": 354, + "end": 386, + "kind": "text" + }, + { + "pos": 386, + "end": 778, + "kind": "internal" + }, + { + "pos": 780, + "end": 783, + "kind": "text" + }, + { + "pos": 783, + "end": 1196, + "kind": "internal" + }, + { + "pos": 1198, "end": 1246, "kind": "text" }, @@ -198,12 +233,14 @@ sourceMapUrl: (3204-3245) ====================================================================== File:: /src/2/second-output.d.ts ---------------------------------------------------------------------- -prepend: (0-199):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-199):: /src/first/bin/first-output.d.ts texts:: 3 >>-------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -214,18 +251,26 @@ declare function f(): string; sourceMapUrl: (157-199) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -text: (201-1246) +text: (201-278) declare namespace N { } declare namespace N { } declare class normalC { + +---------------------------------------------------------------------- +internal: (278-352) constructor(); prop: string; method(): void; c: number; +---------------------------------------------------------------------- +text: (354-386) } declare namespace normalN { + +---------------------------------------------------------------------- +internal: (386-778) class C { } function foo(): void; @@ -245,7 +290,12 @@ declare namespace normalN { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (780-783) } + +---------------------------------------------------------------------- +internal: (783-1196) declare class internalC { } declare function internalfoo(): void; @@ -265,6 +315,8 @@ declare enum internalEnum { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (1198-1246) declare class C { doSomething(): void; } @@ -2840,6 +2892,11 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -2872,10 +2929,12 @@ sourceMapUrl: (110-150) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -3309,12 +3368,17 @@ namespace normalN { "sections": [ { "pos": 0, - "end": 1289, + "end": 404, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -3325,24 +3389,24 @@ namespace normalN { }, { "pos": 201, - "end": 1246, + "end": 361, "kind": "text" }, { - "pos": 1246, - "end": 1289, + "pos": 361, + "end": 404, "kind": "sourceMapUrl" } ] }, { - "pos": 1291, - "end": 1310, + "pos": 406, + "end": 425, "kind": "text" }, { - "pos": 1310, - "end": 1352, + "pos": 425, + "end": 467, "kind": "sourceMapUrl" } ] @@ -3487,12 +3551,14 @@ sourceMapUrl: (3283-3323) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-1289):: /src/2/second-output.d.ts texts:: 4 +prepend: (0-404):: /src/2/second-output.d.ts texts:: 5 >>-------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -3503,70 +3569,28 @@ declare function f(): string; sourceMapUrl: (157-199) //# sourceMappingURL=first-output.d.ts.map >>-------------------------------------------------------------------- -text: (201-1246) +text: (201-361) declare namespace N { } declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - c: 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; } >>-------------------------------------------------------------------- -sourceMapUrl: (1246-1289) +sourceMapUrl: (361-404) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1291-1310) +text: (406-425) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1310-1352) +sourceMapUrl: (425-467) //# sourceMappingURL=third-output.d.ts.map ====================================================================== @@ -3585,50 +3609,8 @@ declare namespace N { declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - c: 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; @@ -3638,7 +3620,7 @@ 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":"AAAe,UAAU,QAAQ;IAC7B,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;IACF,CAAC,EACM,MAAM;CACnC;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;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"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":"AAAe,UAAU,QAAQ;IAC7B,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] =================================================================== @@ -3836,59 +3818,17 @@ sourceFile:../../../second/second_part1.ts 2 >Emitted(14, 15) Source(13, 7) + SourceIndex(2) 3 >Emitted(14, 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(16, 5) Source(15, 20) + SourceIndex(2) -2 >Emitted(16, 9) Source(15, 24) + SourceIndex(2) -3 >Emitted(16, 11) Source(15, 26) + SourceIndex(2) -4 >Emitted(16, 17) Source(15, 32) + SourceIndex(2) -5 >Emitted(16, 18) Source(15, 33) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^-> -1-> - > /**@internal*/ -2 > method -1->Emitted(17, 5) Source(16, 20) + SourceIndex(2) -2 >Emitted(17, 11) Source(16, 26) + SourceIndex(2) ---- ->>> c: number; -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /**@internal*/ get -2 > c -3 > () { return 10; } - > /**@internal*/ set c(val: -4 > number -1->Emitted(18, 5) Source(17, 24) + SourceIndex(2) -2 >Emitted(18, 6) Source(17, 25) + SourceIndex(2) -3 >Emitted(18, 8) Source(18, 31) + SourceIndex(2) -4 >Emitted(18, 14) Source(18, 37) + SourceIndex(2) ---- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +1 >Emitted(15, 2) Source(19, 2) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -3900,488 +3840,25 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(16, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(16, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(16, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(16, 27) Source(20, 19) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 45) + SourceIndex(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(17, 2) Source(29, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4395,9 +3872,9 @@ sourceFile:../../../second/second_part2.ts 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) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(18, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(18, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -4405,8 +3882,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(19, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(19, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -4415,7 +3892,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(20, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4436,12 +3913,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(64, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(64, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(64, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(64, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(64, 18) Source(1, 17) + SourceIndex(4) +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) --- >>>//# sourceMappingURL=third-output.d.ts.map diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-jsdoc-style-comment.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-jsdoc-style-comment.js index 701c93f352a..3972d952527 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-jsdoc-style-comment.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-jsdoc-style-comment.js @@ -20,6 +20,36 @@ "sections": [ { "pos": 0, + "end": 77, + "kind": "text" + }, + { + "pos": 77, + "end": 151, + "kind": "internal" + }, + { + "pos": 153, + "end": 185, + "kind": "text" + }, + { + "pos": 185, + "end": 577, + "kind": "internal" + }, + { + "pos": 579, + "end": 582, + "kind": "text" + }, + { + "pos": 582, + "end": 995, + "kind": "internal" + }, + { + "pos": 997, "end": 1045, "kind": "text" }, @@ -148,18 +178,26 @@ sourceMapUrl: (3052-3093) ====================================================================== File:: /src/2/second-output.d.ts ---------------------------------------------------------------------- -text: (0-1045) +text: (0-77) declare namespace N { } declare namespace N { } declare class normalC { + +---------------------------------------------------------------------- +internal: (77-151) constructor(); prop: string; method(): void; c: number; +---------------------------------------------------------------------- +text: (153-185) } declare namespace normalN { + +---------------------------------------------------------------------- +internal: (185-577) class C { } function foo(): void; @@ -179,7 +217,12 @@ declare namespace normalN { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (579-582) } + +---------------------------------------------------------------------- +internal: (582-995) declare class internalC { } declare function internalfoo(): void; @@ -199,6 +242,8 @@ declare enum internalEnum { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (997-1045) declare class C { doSomething(): void; } @@ -2500,6 +2545,11 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -2532,10 +2582,12 @@ sourceMapUrl: (110-150) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -2958,48 +3010,48 @@ namespace normalN { "sections": [ { "pos": 0, - "end": 199, + "end": 158, "kind": "prepend", "data": "/src/first/bin/first-output.d.ts", "texts": [ { "pos": 0, - "end": 157, + "end": 116, "kind": "text" }, { - "pos": 157, - "end": 199, + "pos": 116, + "end": 158, "kind": "sourceMapUrl" } ] }, { - "pos": 201, - "end": 1289, + "pos": 160, + "end": 363, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { - "pos": 201, - "end": 1246, + "pos": 160, + "end": 320, "kind": "text" }, { - "pos": 1246, - "end": 1289, + "pos": 320, + "end": 363, "kind": "sourceMapUrl" } ] }, { - "pos": 1291, - "end": 1310, + "pos": 365, + "end": 384, "kind": "text" }, { - "pos": 1310, - "end": 1352, + "pos": 384, + "end": 426, "kind": "sourceMapUrl" } ] @@ -3146,12 +3198,9 @@ sourceMapUrl: (3283-3323) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-199):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-158):: /src/first/bin/first-output.d.ts texts:: 2 >>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} +text: (0-116) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -3159,82 +3208,37 @@ interface NoJsForHereEither { declare function f(): string; >>-------------------------------------------------------------------- -sourceMapUrl: (157-199) +sourceMapUrl: (116-158) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -prepend: (201-1289):: /src/2/second-output.d.ts texts:: 2 +prepend: (160-363):: /src/2/second-output.d.ts texts:: 2 >>-------------------------------------------------------------------- -text: (201-1246) +text: (160-320) declare namespace N { } declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - c: 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; } >>-------------------------------------------------------------------- -sourceMapUrl: (1246-1289) +sourceMapUrl: (320-363) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1291-1310) +text: (365-384) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1310-1352) +sourceMapUrl: (384-426) //# sourceMappingURL=third-output.d.ts.map ====================================================================== //// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -3246,50 +3250,8 @@ declare namespace N { declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - c: 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; @@ -3299,7 +3261,7 @@ 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":"AAAe,UAAU,QAAQ;IAC7B,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;IACF,CAAC,EACM,MAAM;CACnC;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;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"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,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] =================================================================== @@ -3312,50 +3274,16 @@ sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../se emittedFile:/src/third/thirdjs/output/third-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, 16) + SourceIndex(0) -2 >Emitted(1, 11) Source(1, 26) + SourceIndex(0) -3 >Emitted(1, 19) Source(1, 34) + 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-> +1 > 2 >^^^^^^^^ 3 > ^^^^^^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> +1 >/**@internal*/ interface TheFirst { + > none: any; + >} > > 2 > @@ -3363,12 +3291,12 @@ sourceFile:../../../first/first_PART1.ts 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) +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, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 34) Source(5, 26) + SourceIndex(0) --- >>>interface NoJsForHereEither { 1 > @@ -3379,9 +3307,9 @@ sourceFile:../../../first/first_PART1.ts > 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) +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 >^^^^ @@ -3395,18 +3323,18 @@ sourceFile:../../../first/first_PART1.ts 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 >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(7, 2) Source(9, 2) + SourceIndex(0) +1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -3424,10 +3352,10 @@ sourceFile:../../../first/first_part3.ts 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) +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 @@ -3443,10 +3371,10 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(7, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(7, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(7, 21) Source(1, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -3454,7 +3382,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) --- >>>declare namespace N { 1-> @@ -3467,10 +3395,10 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(9, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(5, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -3482,7 +3410,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) +1 >Emitted(10, 2) Source(11, 2) + SourceIndex(2) --- >>>declare class normalC { 1-> @@ -3493,63 +3421,21 @@ sourceFile:../../../second/second_part1.ts > 2 >class 3 > normalC -1->Emitted(14, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(14, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(14, 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(16, 5) Source(15, 20) + SourceIndex(2) -2 >Emitted(16, 9) Source(15, 24) + SourceIndex(2) -3 >Emitted(16, 11) Source(15, 26) + SourceIndex(2) -4 >Emitted(16, 17) Source(15, 32) + SourceIndex(2) -5 >Emitted(16, 18) Source(15, 33) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^-> -1-> - > /**@internal*/ -2 > method -1->Emitted(17, 5) Source(16, 20) + SourceIndex(2) -2 >Emitted(17, 11) Source(16, 26) + SourceIndex(2) ---- ->>> c: number; -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /**@internal*/ get -2 > c -3 > () { return 10; } - > /**@internal*/ set c(val: -4 > number -1->Emitted(18, 5) Source(17, 24) + SourceIndex(2) -2 >Emitted(18, 6) Source(17, 25) + SourceIndex(2) -3 >Emitted(18, 8) Source(18, 31) + SourceIndex(2) -4 >Emitted(18, 14) Source(18, 37) + SourceIndex(2) +1->Emitted(11, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(11, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(11, 22) Source(13, 14) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +1 >Emitted(12, 2) Source(19, 2) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -3561,488 +3447,25 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(13, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(13, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(13, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(13, 27) Source(20, 19) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 45) + SourceIndex(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(14, 2) Source(29, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4056,9 +3479,9 @@ sourceFile:../../../second/second_part2.ts 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) +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->^^^^ @@ -4066,8 +3489,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -4076,7 +3499,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4097,12 +3520,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(64, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(64, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(64, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(64, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(64, 18) Source(1, 17) + SourceIndex(4) +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) --- >>>//# sourceMappingURL=third-output.d.ts.map diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/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/buildInfo/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index c387456a871..9f79c4dbbff 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/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/buildInfo/stripInternal-jsdoc-style-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -44,6 +44,11 @@ "texts": [ { "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, "end": 172, "kind": "text" }, @@ -56,6 +61,36 @@ }, { "pos": 216, + "end": 293, + "kind": "text" + }, + { + "pos": 293, + "end": 442, + "kind": "internal" + }, + { + "pos": 444, + "end": 476, + "kind": "text" + }, + { + "pos": 476, + "end": 988, + "kind": "internal" + }, + { + "pos": 990, + "end": 993, + "kind": "text" + }, + { + "pos": 993, + "end": 1526, + "kind": "internal" + }, + { + "pos": 1528, "end": 1576, "kind": "text" }, @@ -198,12 +233,14 @@ sourceMapUrl: (3586-3627) ====================================================================== File:: /src/2/second-output.d.ts ---------------------------------------------------------------------- -prepend: (0-214):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-214):: /src/first/bin/first-output.d.ts texts:: 3 >>-------------------------------------------------------------------- -text: (0-172) +internal: (0-54) /**@internal*/ interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (56-172) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -214,18 +251,26 @@ declare function f(): string; sourceMapUrl: (172-214) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -text: (216-1576) +text: (216-293) declare namespace N { } declare namespace N { } declare class normalC { + +---------------------------------------------------------------------- +internal: (293-442) /**@internal*/ constructor(); /**@internal*/ prop: string; /**@internal*/ method(): void; /**@internal*/ /**@internal*/ c: number; +---------------------------------------------------------------------- +text: (444-476) } declare namespace normalN { + +---------------------------------------------------------------------- +internal: (476-988) /**@internal*/ class C { } /**@internal*/ function foo(): void; @@ -245,7 +290,12 @@ declare namespace normalN { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (990-993) } + +---------------------------------------------------------------------- +internal: (993-1526) /**@internal*/ declare class internalC { } /**@internal*/ declare function internalfoo(): void; @@ -265,6 +315,8 @@ declare namespace normalN { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (1528-1576) declare class C { doSomething(): void; } @@ -3070,6 +3122,11 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, "end": 172, "kind": "text" }, @@ -3102,10 +3159,12 @@ sourceMapUrl: (110-150) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-172) +internal: (0-54) /**@internal*/ interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (56-172) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -3567,12 +3626,17 @@ namespace normalN { "sections": [ { "pos": 0, - "end": 1619, + "end": 419, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, "end": 172, "kind": "text" }, @@ -3583,24 +3647,24 @@ namespace normalN { }, { "pos": 216, - "end": 1576, + "end": 376, "kind": "text" }, { - "pos": 1576, - "end": 1619, + "pos": 376, + "end": 419, "kind": "sourceMapUrl" } ] }, { - "pos": 1621, - "end": 1640, + "pos": 421, + "end": 440, "kind": "text" }, { - "pos": 1640, - "end": 1682, + "pos": 440, + "end": 482, "kind": "sourceMapUrl" } ] @@ -3745,12 +3809,14 @@ sourceMapUrl: (3665-3705) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-1619):: /src/2/second-output.d.ts texts:: 4 +prepend: (0-419):: /src/2/second-output.d.ts texts:: 5 >>-------------------------------------------------------------------- -text: (0-172) +internal: (0-54) /**@internal*/ interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (56-172) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -3761,70 +3827,28 @@ declare function f(): string; sourceMapUrl: (172-214) //# sourceMappingURL=first-output.d.ts.map >>-------------------------------------------------------------------- -text: (216-1576) +text: (216-376) declare namespace N { } declare namespace N { } declare class normalC { - /**@internal*/ constructor(); - /**@internal*/ prop: string; - /**@internal*/ method(): void; - /**@internal*/ /**@internal*/ c: number; } declare namespace normalN { - /**@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 - } -} -/**@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 } declare class C { doSomething(): void; } >>-------------------------------------------------------------------- -sourceMapUrl: (1576-1619) +sourceMapUrl: (376-419) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1621-1640) +text: (421-440) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1640-1682) +sourceMapUrl: (440-482) //# sourceMappingURL=third-output.d.ts.map ====================================================================== @@ -3843,50 +3867,8 @@ declare namespace N { declare namespace N { } declare class normalC { - /**@internal*/ constructor(); - /**@internal*/ prop: string; - /**@internal*/ method(): void; - /**@internal*/ /**@internal*/ c: number; } declare namespace normalN { - /**@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 - } -} -/**@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 } declare class C { doSomething(): void; @@ -3896,7 +3878,7 @@ 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,cAAc,CAAC,UAAU,QAAQ;IAC7B,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;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,gBAAK,CAAC,EACM,MAAM;CACnC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,aAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"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,cAAc,CAAC,UAAU,QAAQ;IAC7B,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] =================================================================== @@ -4091,7 +4073,6 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^-> 1-> > > @@ -4101,675 +4082,47 @@ sourceFile:../../../second/second_part1.ts 2 >Emitted(14, 15) Source(13, 7) + SourceIndex(2) 3 >Emitted(14, 22) Source(13, 14) + SourceIndex(2) --- ->>> /**@internal*/ constructor(); -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^-> -1-> { - > -2 > /**@internal*/ -1->Emitted(15, 5) Source(14, 5) + SourceIndex(2) -2 >Emitted(15, 19) Source(14, 19) + SourceIndex(2) ---- ->>> /**@internal*/ prop: string; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^ -6 > ^^^^^^ -7 > ^ -8 > ^^^-> -1-> constructor() { } - > -2 > /**@internal*/ -3 > -4 > prop -5 > : -6 > string -7 > ; -1->Emitted(16, 5) Source(15, 5) + SourceIndex(2) -2 >Emitted(16, 19) Source(15, 19) + SourceIndex(2) -3 >Emitted(16, 20) Source(15, 20) + SourceIndex(2) -4 >Emitted(16, 24) Source(15, 24) + SourceIndex(2) -5 >Emitted(16, 26) Source(15, 26) + SourceIndex(2) -6 >Emitted(16, 32) Source(15, 32) + SourceIndex(2) -7 >Emitted(16, 33) Source(15, 33) + SourceIndex(2) ---- ->>> /**@internal*/ method(): void; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 > /**@internal*/ -3 > -4 > method -1->Emitted(17, 5) Source(16, 5) + SourceIndex(2) -2 >Emitted(17, 19) Source(16, 19) + SourceIndex(2) -3 >Emitted(17, 20) Source(16, 20) + SourceIndex(2) -4 >Emitted(17, 26) Source(16, 26) + SourceIndex(2) ---- ->>> /**@internal*/ /**@internal*/ c: number; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^^^^^ -1->() { } - > -2 > /**@internal*/ -3 > get -4 > c -5 > () { return 10; } - > /**@internal*/ set c(val: -6 > number -1->Emitted(18, 5) Source(17, 5) + SourceIndex(2) -2 >Emitted(18, 19) Source(17, 19) + SourceIndex(2) -3 >Emitted(18, 35) Source(17, 24) + SourceIndex(2) -4 >Emitted(18, 36) Source(17, 25) + SourceIndex(2) -5 >Emitted(18, 38) Source(18, 31) + SourceIndex(2) -6 >Emitted(18, 44) Source(18, 37) + SourceIndex(2) ---- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +1 >Emitted(15, 2) Source(19, 2) + SourceIndex(2) --- >>>declare namespace normalN { 1-> 2 >^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^ 4 > ^ -5 > ^^^-> 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) ---- ->>> /**@internal*/ class C { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -1->{ - > -2 > /**@internal*/ -3 > -4 > export class -5 > C -1->Emitted(21, 5) Source(21, 5) + SourceIndex(2) -2 >Emitted(21, 19) Source(21, 19) + SourceIndex(2) -3 >Emitted(21, 20) Source(21, 20) + SourceIndex(2) -4 >Emitted(21, 26) Source(21, 33) + SourceIndex(2) -5 >Emitted(21, 27) Source(21, 34) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(22, 6) Source(21, 38) + SourceIndex(2) ---- ->>> /**@internal*/ function foo(): void; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^ -7 > ^^^^^-> -1-> - > -2 > /**@internal*/ -3 > -4 > export function -5 > foo -6 > () {} -1->Emitted(23, 5) Source(22, 5) + SourceIndex(2) -2 >Emitted(23, 19) Source(22, 19) + SourceIndex(2) -3 >Emitted(23, 20) Source(22, 20) + SourceIndex(2) -4 >Emitted(23, 29) Source(22, 36) + SourceIndex(2) -5 >Emitted(23, 32) Source(22, 39) + SourceIndex(2) -6 >Emitted(23, 41) Source(22, 44) + SourceIndex(2) ---- ->>> /**@internal*/ namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > -1->Emitted(24, 5) Source(23, 5) + SourceIndex(2) -2 >Emitted(24, 19) Source(23, 19) + SourceIndex(2) -3 >Emitted(24, 20) Source(23, 20) + SourceIndex(2) -4 >Emitted(24, 30) Source(23, 37) + SourceIndex(2) -5 >Emitted(24, 43) Source(23, 50) + SourceIndex(2) -6 >Emitted(24, 44) 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) ---- ->>> /**@internal*/ namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someOther -6 > . -7 > something -8 > -1->Emitted(28, 5) Source(24, 5) + SourceIndex(2) -2 >Emitted(28, 19) Source(24, 19) + SourceIndex(2) -3 >Emitted(28, 20) Source(24, 20) + SourceIndex(2) -4 >Emitted(28, 30) Source(24, 37) + SourceIndex(2) -5 >Emitted(28, 39) Source(24, 46) + SourceIndex(2) -6 >Emitted(28, 40) Source(24, 47) + SourceIndex(2) -7 >Emitted(28, 49) Source(24, 56) + SourceIndex(2) -8 >Emitted(28, 50) 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) ---- ->>> /**@internal*/ export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^ -6 > ^^^^^^^^^^ -7 > ^^^ -8 > ^^^^^^^^^^^^^ -9 > ^ -10> ^ -11> ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export -5 > import -6 > someImport -7 > = -8 > someNamespace -9 > . -10> C -11> ; -1->Emitted(32, 5) Source(25, 5) + SourceIndex(2) -2 >Emitted(32, 19) Source(25, 19) + SourceIndex(2) -3 >Emitted(32, 20) Source(25, 20) + SourceIndex(2) -4 >Emitted(32, 26) Source(25, 26) + SourceIndex(2) -5 >Emitted(32, 34) Source(25, 34) + SourceIndex(2) -6 >Emitted(32, 44) Source(25, 44) + SourceIndex(2) -7 >Emitted(32, 47) Source(25, 47) + SourceIndex(2) -8 >Emitted(32, 60) Source(25, 60) + SourceIndex(2) -9 >Emitted(32, 61) Source(25, 61) + SourceIndex(2) -10>Emitted(32, 62) Source(25, 62) + SourceIndex(2) -11>Emitted(32, 63) Source(25, 63) + SourceIndex(2) ---- ->>> /**@internal*/ type internalType = internalC; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^ -5 > ^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^ -8 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > export type -5 > internalType -6 > = -7 > internalC -8 > ; -1 >Emitted(33, 5) Source(26, 5) + SourceIndex(2) -2 >Emitted(33, 19) Source(26, 19) + SourceIndex(2) -3 >Emitted(33, 20) Source(26, 20) + SourceIndex(2) -4 >Emitted(33, 25) Source(26, 32) + SourceIndex(2) -5 >Emitted(33, 37) Source(26, 44) + SourceIndex(2) -6 >Emitted(33, 40) Source(26, 47) + SourceIndex(2) -7 >Emitted(33, 49) Source(26, 56) + SourceIndex(2) -8 >Emitted(33, 50) Source(26, 57) + SourceIndex(2) ---- ->>> /**@internal*/ const internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1 > - > -2 > /**@internal*/ -3 > export -4 > const -5 > internalConst -6 > = 10 -7 > ; -1 >Emitted(34, 5) Source(27, 5) + SourceIndex(2) -2 >Emitted(34, 19) Source(27, 19) + SourceIndex(2) -3 >Emitted(34, 20) Source(27, 27) + SourceIndex(2) -4 >Emitted(34, 26) Source(27, 33) + SourceIndex(2) -5 >Emitted(34, 39) Source(27, 46) + SourceIndex(2) -6 >Emitted(34, 44) Source(27, 51) + SourceIndex(2) -7 >Emitted(34, 45) Source(27, 52) + SourceIndex(2) ---- ->>> /**@internal*/ enum internalEnum { -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /**@internal*/ -3 > -4 > export enum -5 > internalEnum -1 >Emitted(35, 5) Source(28, 5) + SourceIndex(2) -2 >Emitted(35, 19) Source(28, 19) + SourceIndex(2) -3 >Emitted(35, 20) Source(28, 20) + SourceIndex(2) -4 >Emitted(35, 25) Source(28, 32) + SourceIndex(2) -5 >Emitted(35, 37) 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) ---- ->>>/**@internal*/ declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^^^ -1-> - > -2 >/**@internal*/ -3 > -4 > class -5 > internalC -1->Emitted(41, 1) Source(30, 1) + SourceIndex(2) -2 >Emitted(41, 15) Source(30, 15) + SourceIndex(2) -3 >Emitted(41, 16) Source(30, 16) + SourceIndex(2) -4 >Emitted(41, 30) Source(30, 22) + SourceIndex(2) -5 >Emitted(41, 39) Source(30, 31) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(42, 2) Source(30, 34) + SourceIndex(2) ---- ->>>/**@internal*/ declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^^^^^ -7 > ^-> -1-> - > -2 >/**@internal*/ -3 > -4 > function -5 > internalfoo -6 > () {} -1->Emitted(43, 1) Source(31, 1) + SourceIndex(2) -2 >Emitted(43, 15) Source(31, 15) + SourceIndex(2) -3 >Emitted(43, 16) Source(31, 16) + SourceIndex(2) -4 >Emitted(43, 33) Source(31, 25) + SourceIndex(2) -5 >Emitted(43, 44) Source(31, 36) + SourceIndex(2) -6 >Emitted(43, 53) Source(31, 41) + SourceIndex(2) ---- ->>>/**@internal*/ declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > -1->Emitted(44, 1) Source(32, 1) + SourceIndex(2) -2 >Emitted(44, 15) Source(32, 15) + SourceIndex(2) -3 >Emitted(44, 16) Source(32, 16) + SourceIndex(2) -4 >Emitted(44, 34) Source(32, 26) + SourceIndex(2) -5 >Emitted(44, 51) Source(32, 43) + SourceIndex(2) -6 >Emitted(44, 52) 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) ---- ->>>/**@internal*/ declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalOther -6 > . -7 > something -8 > -1->Emitted(48, 1) Source(33, 1) + SourceIndex(2) -2 >Emitted(48, 15) Source(33, 15) + SourceIndex(2) -3 >Emitted(48, 16) Source(33, 16) + SourceIndex(2) -4 >Emitted(48, 34) Source(33, 26) + SourceIndex(2) -5 >Emitted(48, 47) Source(33, 39) + SourceIndex(2) -6 >Emitted(48, 48) Source(33, 40) + SourceIndex(2) -7 >Emitted(48, 57) Source(33, 49) + SourceIndex(2) -8 >Emitted(48, 58) 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) ---- ->>>/**@internal*/ import 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(52, 1) Source(34, 1) + SourceIndex(2) -2 >Emitted(52, 15) Source(34, 15) + SourceIndex(2) -3 >Emitted(52, 16) Source(34, 16) + SourceIndex(2) -4 >Emitted(52, 23) Source(34, 23) + SourceIndex(2) -5 >Emitted(52, 37) Source(34, 37) + SourceIndex(2) -6 >Emitted(52, 40) Source(34, 40) + SourceIndex(2) -7 >Emitted(52, 57) Source(34, 57) + SourceIndex(2) -8 >Emitted(52, 58) Source(34, 58) + SourceIndex(2) -9 >Emitted(52, 67) Source(34, 67) + SourceIndex(2) -10>Emitted(52, 68) Source(34, 68) + SourceIndex(2) ---- ->>>/**@internal*/ declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^ -8 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > type -5 > internalType -6 > = -7 > internalC -8 > ; -1 >Emitted(53, 1) Source(35, 1) + SourceIndex(2) -2 >Emitted(53, 15) Source(35, 15) + SourceIndex(2) -3 >Emitted(53, 16) Source(35, 16) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 21) + SourceIndex(2) -5 >Emitted(53, 41) Source(35, 33) + SourceIndex(2) -6 >Emitted(53, 44) Source(35, 36) + SourceIndex(2) -7 >Emitted(53, 53) Source(35, 45) + SourceIndex(2) -8 >Emitted(53, 54) Source(35, 46) + SourceIndex(2) ---- ->>>/**@internal*/ declare const internalConst = 10; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > -5 > const -6 > internalConst -7 > = 10 -8 > ; -1 >Emitted(54, 1) Source(36, 1) + SourceIndex(2) -2 >Emitted(54, 15) Source(36, 15) + SourceIndex(2) -3 >Emitted(54, 16) Source(36, 16) + SourceIndex(2) -4 >Emitted(54, 24) Source(36, 16) + SourceIndex(2) -5 >Emitted(54, 30) Source(36, 22) + SourceIndex(2) -6 >Emitted(54, 43) Source(36, 35) + SourceIndex(2) -7 >Emitted(54, 48) Source(36, 40) + SourceIndex(2) -8 >Emitted(54, 49) Source(36, 41) + SourceIndex(2) ---- ->>>/**@internal*/ declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/**@internal*/ -3 > -4 > enum -5 > internalEnum -1 >Emitted(55, 1) Source(37, 1) + SourceIndex(2) -2 >Emitted(55, 15) Source(37, 15) + SourceIndex(2) -3 >Emitted(55, 16) Source(37, 16) + SourceIndex(2) -4 >Emitted(55, 29) Source(37, 21) + SourceIndex(2) -5 >Emitted(55, 41) 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->Emitted(16, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(16, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(16, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(16, 27) Source(20, 19) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 45) + SourceIndex(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(17, 2) Source(29, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4783,9 +4136,9 @@ sourceFile:../../../second/second_part2.ts 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) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(18, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(18, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -4793,8 +4146,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(19, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(19, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -4803,7 +4156,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(20, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4824,12 +4177,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(64, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(64, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(64, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(64, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(64, 18) Source(1, 17) + SourceIndex(4) +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) --- >>>//# sourceMappingURL=third-output.d.ts.map diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-jsdoc-style-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-jsdoc-style-with-comments-emit-enabled.js index ba2eb6a11c9..9982569377c 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-jsdoc-style-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-jsdoc-style-with-comments-emit-enabled.js @@ -20,6 +20,36 @@ "sections": [ { "pos": 0, + "end": 77, + "kind": "text" + }, + { + "pos": 77, + "end": 226, + "kind": "internal" + }, + { + "pos": 228, + "end": 260, + "kind": "text" + }, + { + "pos": 260, + "end": 772, + "kind": "internal" + }, + { + "pos": 774, + "end": 777, + "kind": "text" + }, + { + "pos": 777, + "end": 1310, + "kind": "internal" + }, + { + "pos": 1312, "end": 1360, "kind": "text" }, @@ -148,18 +178,26 @@ sourceMapUrl: (3434-3475) ====================================================================== File:: /src/2/second-output.d.ts ---------------------------------------------------------------------- -text: (0-1360) +text: (0-77) declare namespace N { } declare namespace N { } declare class normalC { + +---------------------------------------------------------------------- +internal: (77-226) /**@internal*/ constructor(); /**@internal*/ prop: string; /**@internal*/ method(): void; /**@internal*/ /**@internal*/ c: number; +---------------------------------------------------------------------- +text: (228-260) } declare namespace normalN { + +---------------------------------------------------------------------- +internal: (260-772) /**@internal*/ class C { } /**@internal*/ function foo(): void; @@ -179,7 +217,12 @@ declare namespace normalN { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (774-777) } + +---------------------------------------------------------------------- +internal: (777-1310) /**@internal*/ declare class internalC { } /**@internal*/ declare function internalfoo(): void; @@ -199,6 +242,8 @@ declare namespace normalN { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (1312-1360) declare class C { doSomething(): void; } @@ -2724,6 +2769,11 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, + "end": 54, + "kind": "internal" + }, + { + "pos": 56, "end": 172, "kind": "text" }, @@ -2756,10 +2806,12 @@ sourceMapUrl: (110-150) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-172) +internal: (0-54) /**@internal*/ interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (56-172) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -3228,48 +3280,48 @@ namespace normalN { "sections": [ { "pos": 0, - "end": 214, + "end": 158, "kind": "prepend", "data": "/src/first/bin/first-output.d.ts", "texts": [ { "pos": 0, - "end": 172, + "end": 116, "kind": "text" }, { - "pos": 172, - "end": 214, + "pos": 116, + "end": 158, "kind": "sourceMapUrl" } ] }, { - "pos": 216, - "end": 1619, + "pos": 160, + "end": 363, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { - "pos": 216, - "end": 1576, + "pos": 160, + "end": 320, "kind": "text" }, { - "pos": 1576, - "end": 1619, + "pos": 320, + "end": 363, "kind": "sourceMapUrl" } ] }, { - "pos": 1621, - "end": 1640, + "pos": 365, + "end": 384, "kind": "text" }, { - "pos": 1640, - "end": 1682, + "pos": 384, + "end": 426, "kind": "sourceMapUrl" } ] @@ -3416,12 +3468,9 @@ sourceMapUrl: (3665-3705) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-214):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-158):: /src/first/bin/first-output.d.ts texts:: 2 >>-------------------------------------------------------------------- -text: (0-172) -/**@internal*/ interface TheFirst { - none: any; -} +text: (0-116) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -3429,82 +3478,37 @@ interface NoJsForHereEither { declare function f(): string; >>-------------------------------------------------------------------- -sourceMapUrl: (172-214) +sourceMapUrl: (116-158) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -prepend: (216-1619):: /src/2/second-output.d.ts texts:: 2 +prepend: (160-363):: /src/2/second-output.d.ts texts:: 2 >>-------------------------------------------------------------------- -text: (216-1576) +text: (160-320) declare namespace N { } declare namespace N { } declare class normalC { - /**@internal*/ constructor(); - /**@internal*/ prop: string; - /**@internal*/ method(): void; - /**@internal*/ /**@internal*/ c: number; } declare namespace normalN { - /**@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 - } -} -/**@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 } declare class C { doSomething(): void; } >>-------------------------------------------------------------------- -sourceMapUrl: (1576-1619) +sourceMapUrl: (320-363) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1621-1640) +text: (365-384) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1640-1682) +sourceMapUrl: (384-426) //# sourceMappingURL=third-output.d.ts.map ====================================================================== //// [/src/third/thirdjs/output/third-output.d.ts] -/**@internal*/ interface TheFirst { - none: any; -} declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -3516,50 +3520,8 @@ declare namespace N { declare namespace N { } declare class normalC { - /**@internal*/ constructor(); - /**@internal*/ prop: string; - /**@internal*/ method(): void; - /**@internal*/ /**@internal*/ c: number; } declare namespace normalN { - /**@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 - } -} -/**@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 } declare class C { doSomething(): void; @@ -3569,7 +3531,7 @@ 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,cAAc,CAAC,UAAU,QAAQ;IAC7B,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;IACT,cAAc;IACd,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,MAAM;IACrB,cAAc,gBAAK,CAAC,EACM,MAAM;CACnC;AACD,kBAAU,OAAO,CAAC;IACd,cAAc,CAAC,MAAa,CAAC;KAAI;IACjC,cAAc,CAAC,SAAgB,GAAG,SAAK;IACvC,cAAc,CAAC,UAAiB,aAAa,CAAC;QAAE,MAAa,CAAC;SAAG;KAAE;IACnE,cAAc,CAAC,UAAiB,SAAS,CAAC,SAAS,CAAC;QAAE,MAAa,SAAS;SAAG;KAAE;IACjF,cAAc,CAAC,MAAM,QAAQ,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC;IAC1D,cAAc,CAAC,KAAY,YAAY,GAAG,SAAS,CAAC;IACpD,cAAc,CAAQ,MAAM,aAAa,KAAK,CAAC;IAC/C,cAAc,CAAC,KAAY,YAAY;QAAG,CAAC,IAAA;QAAE,CAAC,IAAA;QAAE,CAAC,IAAA;KAAE;CACtD;AACD,cAAc,CAAC,cAAM,SAAS;CAAG;AACjC,cAAc,CAAC,iBAAS,WAAW,SAAK;AACxC,cAAc,CAAC,kBAAU,iBAAiB,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AACxE,cAAc,CAAC,kBAAU,aAAa,CAAC,SAAS,CAAC;IAAE,MAAa,SAAS;KAAG;CAAE;AAC9E,cAAc,CAAC,OAAO,cAAc,GAAG,iBAAiB,CAAC,SAAS,CAAC;AACnE,cAAc,CAAC,aAAK,YAAY,GAAG,SAAS,CAAC;AAC7C,cAAc,CAAC,QAAA,MAAM,aAAa,KAAK,CAAC;AACxC,cAAc,CAAC,aAAK,YAAY;IAAG,CAAC,IAAA;IAAE,CAAC,IAAA;IAAE,CAAC,IAAA;CAAE;ACpC5C,cAAM,CAAC;IACH,WAAW;CAGd;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"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,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] =================================================================== @@ -3582,56 +3544,16 @@ sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../se emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../first/first_PART1.ts ------------------------------------------------------------------- ->>>/**@internal*/ interface TheFirst { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^ -1 > -2 >/**@internal*/ -3 > -4 > interface -5 > TheFirst -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 15) Source(1, 15) + SourceIndex(0) -3 >Emitted(1, 16) Source(1, 16) + SourceIndex(0) -4 >Emitted(1, 26) Source(1, 26) + SourceIndex(0) -5 >Emitted(1, 34) Source(1, 34) + 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-> +1 > 2 >^^^^^^^^ 3 > ^^^^^^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> +1 >/**@internal*/ interface TheFirst { + > none: any; + >} > > 2 > @@ -3639,12 +3561,12 @@ sourceFile:../../../first/first_PART1.ts 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) +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, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 34) Source(5, 26) + SourceIndex(0) --- >>>interface NoJsForHereEither { 1 > @@ -3655,9 +3577,9 @@ sourceFile:../../../first/first_PART1.ts > 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) +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 >^^^^ @@ -3671,18 +3593,18 @@ sourceFile:../../../first/first_PART1.ts 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 >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(7, 2) Source(9, 2) + SourceIndex(0) +1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -3700,10 +3622,10 @@ sourceFile:../../../first/first_part3.ts 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) +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 @@ -3719,10 +3641,10 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(7, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(7, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(7, 21) Source(1, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -3730,7 +3652,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) --- >>>declare namespace N { 1-> @@ -3743,10 +3665,10 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(9, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(5, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -3758,691 +3680,62 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) +1 >Emitted(10, 2) Source(11, 2) + SourceIndex(2) --- >>>declare class normalC { 1-> 2 >^^^^^^^^^^^^^^ 3 > ^^^^^^^ -4 > ^^^^^^^^^^^^^-> 1-> > > 2 >class 3 > normalC -1->Emitted(14, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(14, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(14, 22) Source(13, 14) + SourceIndex(2) ---- ->>> /**@internal*/ constructor(); -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^-> -1-> { - > -2 > /**@internal*/ -1->Emitted(15, 5) Source(14, 5) + SourceIndex(2) -2 >Emitted(15, 19) Source(14, 19) + SourceIndex(2) ---- ->>> /**@internal*/ prop: string; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^ -5 > ^^ -6 > ^^^^^^ -7 > ^ -8 > ^^^-> -1-> constructor() { } - > -2 > /**@internal*/ -3 > -4 > prop -5 > : -6 > string -7 > ; -1->Emitted(16, 5) Source(15, 5) + SourceIndex(2) -2 >Emitted(16, 19) Source(15, 19) + SourceIndex(2) -3 >Emitted(16, 20) Source(15, 20) + SourceIndex(2) -4 >Emitted(16, 24) Source(15, 24) + SourceIndex(2) -5 >Emitted(16, 26) Source(15, 26) + SourceIndex(2) -6 >Emitted(16, 32) Source(15, 32) + SourceIndex(2) -7 >Emitted(16, 33) Source(15, 33) + SourceIndex(2) ---- ->>> /**@internal*/ method(): void; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^-> -1-> - > -2 > /**@internal*/ -3 > -4 > method -1->Emitted(17, 5) Source(16, 5) + SourceIndex(2) -2 >Emitted(17, 19) Source(16, 19) + SourceIndex(2) -3 >Emitted(17, 20) Source(16, 20) + SourceIndex(2) -4 >Emitted(17, 26) Source(16, 26) + SourceIndex(2) ---- ->>> /**@internal*/ /**@internal*/ c: number; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^^^^^ -1->() { } - > -2 > /**@internal*/ -3 > get -4 > c -5 > () { return 10; } - > /**@internal*/ set c(val: -6 > number -1->Emitted(18, 5) Source(17, 5) + SourceIndex(2) -2 >Emitted(18, 19) Source(17, 19) + SourceIndex(2) -3 >Emitted(18, 35) Source(17, 24) + SourceIndex(2) -4 >Emitted(18, 36) Source(17, 25) + SourceIndex(2) -5 >Emitted(18, 38) Source(18, 31) + SourceIndex(2) -6 >Emitted(18, 44) Source(18, 37) + SourceIndex(2) +1->Emitted(11, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(11, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(11, 22) Source(13, 14) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } +1 > { + > /**@internal*/ constructor() { } + > /**@internal*/ prop: string; + > /**@internal*/ method() { } + > /**@internal*/ get c() { return 10; } + > /**@internal*/ set c(val: number) { } >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +1 >Emitted(12, 2) Source(19, 2) + SourceIndex(2) --- >>>declare namespace normalN { 1-> 2 >^^^^^^^^^^^^^^^^^^ 3 > ^^^^^^^ 4 > ^ -5 > ^^^-> 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) ---- ->>> /**@internal*/ class C { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^ -1->{ - > -2 > /**@internal*/ -3 > -4 > export class -5 > C -1->Emitted(21, 5) Source(21, 5) + SourceIndex(2) -2 >Emitted(21, 19) Source(21, 19) + SourceIndex(2) -3 >Emitted(21, 20) Source(21, 20) + SourceIndex(2) -4 >Emitted(21, 26) Source(21, 33) + SourceIndex(2) -5 >Emitted(21, 27) Source(21, 34) + SourceIndex(2) ---- ->>> } -1 >^^^^^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > { } -1 >Emitted(22, 6) Source(21, 38) + SourceIndex(2) ---- ->>> /**@internal*/ function foo(): void; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^ -5 > ^^^ -6 > ^^^^^^^^^ -7 > ^^^^^-> -1-> - > -2 > /**@internal*/ -3 > -4 > export function -5 > foo -6 > () {} -1->Emitted(23, 5) Source(22, 5) + SourceIndex(2) -2 >Emitted(23, 19) Source(22, 19) + SourceIndex(2) -3 >Emitted(23, 20) Source(22, 20) + SourceIndex(2) -4 >Emitted(23, 29) Source(22, 36) + SourceIndex(2) -5 >Emitted(23, 32) Source(22, 39) + SourceIndex(2) -6 >Emitted(23, 41) Source(22, 44) + SourceIndex(2) ---- ->>> /**@internal*/ namespace someNamespace { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someNamespace -6 > -1->Emitted(24, 5) Source(23, 5) + SourceIndex(2) -2 >Emitted(24, 19) Source(23, 19) + SourceIndex(2) -3 >Emitted(24, 20) Source(23, 20) + SourceIndex(2) -4 >Emitted(24, 30) Source(23, 37) + SourceIndex(2) -5 >Emitted(24, 43) Source(23, 50) + SourceIndex(2) -6 >Emitted(24, 44) 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) ---- ->>> /**@internal*/ namespace someOther.something { -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^ -5 > ^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export namespace -5 > someOther -6 > . -7 > something -8 > -1->Emitted(28, 5) Source(24, 5) + SourceIndex(2) -2 >Emitted(28, 19) Source(24, 19) + SourceIndex(2) -3 >Emitted(28, 20) Source(24, 20) + SourceIndex(2) -4 >Emitted(28, 30) Source(24, 37) + SourceIndex(2) -5 >Emitted(28, 39) Source(24, 46) + SourceIndex(2) -6 >Emitted(28, 40) Source(24, 47) + SourceIndex(2) -7 >Emitted(28, 49) Source(24, 56) + SourceIndex(2) -8 >Emitted(28, 50) 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) ---- ->>> /**@internal*/ export import someImport = someNamespace.C; -1->^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^ -6 > ^^^^^^^^^^ -7 > ^^^ -8 > ^^^^^^^^^^^^^ -9 > ^ -10> ^ -11> ^ -1-> - > -2 > /**@internal*/ -3 > -4 > export -5 > import -6 > someImport -7 > = -8 > someNamespace -9 > . -10> C -11> ; -1->Emitted(32, 5) Source(25, 5) + SourceIndex(2) -2 >Emitted(32, 19) Source(25, 19) + SourceIndex(2) -3 >Emitted(32, 20) Source(25, 20) + SourceIndex(2) -4 >Emitted(32, 26) Source(25, 26) + SourceIndex(2) -5 >Emitted(32, 34) Source(25, 34) + SourceIndex(2) -6 >Emitted(32, 44) Source(25, 44) + SourceIndex(2) -7 >Emitted(32, 47) Source(25, 47) + SourceIndex(2) -8 >Emitted(32, 60) Source(25, 60) + SourceIndex(2) -9 >Emitted(32, 61) Source(25, 61) + SourceIndex(2) -10>Emitted(32, 62) Source(25, 62) + SourceIndex(2) -11>Emitted(32, 63) Source(25, 63) + SourceIndex(2) ---- ->>> /**@internal*/ type internalType = internalC; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^ -5 > ^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^ -8 > ^ -1 > - > -2 > /**@internal*/ -3 > -4 > export type -5 > internalType -6 > = -7 > internalC -8 > ; -1 >Emitted(33, 5) Source(26, 5) + SourceIndex(2) -2 >Emitted(33, 19) Source(26, 19) + SourceIndex(2) -3 >Emitted(33, 20) Source(26, 20) + SourceIndex(2) -4 >Emitted(33, 25) Source(26, 32) + SourceIndex(2) -5 >Emitted(33, 37) Source(26, 44) + SourceIndex(2) -6 >Emitted(33, 40) Source(26, 47) + SourceIndex(2) -7 >Emitted(33, 49) Source(26, 56) + SourceIndex(2) -8 >Emitted(33, 50) Source(26, 57) + SourceIndex(2) ---- ->>> /**@internal*/ const internalConst = 10; -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^^^^^ -7 > ^ -1 > - > -2 > /**@internal*/ -3 > export -4 > const -5 > internalConst -6 > = 10 -7 > ; -1 >Emitted(34, 5) Source(27, 5) + SourceIndex(2) -2 >Emitted(34, 19) Source(27, 19) + SourceIndex(2) -3 >Emitted(34, 20) Source(27, 27) + SourceIndex(2) -4 >Emitted(34, 26) Source(27, 33) + SourceIndex(2) -5 >Emitted(34, 39) Source(27, 46) + SourceIndex(2) -6 >Emitted(34, 44) Source(27, 51) + SourceIndex(2) -7 >Emitted(34, 45) Source(27, 52) + SourceIndex(2) ---- ->>> /**@internal*/ enum internalEnum { -1 >^^^^ -2 > ^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 > /**@internal*/ -3 > -4 > export enum -5 > internalEnum -1 >Emitted(35, 5) Source(28, 5) + SourceIndex(2) -2 >Emitted(35, 19) Source(28, 19) + SourceIndex(2) -3 >Emitted(35, 20) Source(28, 20) + SourceIndex(2) -4 >Emitted(35, 25) Source(28, 32) + SourceIndex(2) -5 >Emitted(35, 37) 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) ---- ->>>/**@internal*/ declare class internalC { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^ -5 > ^^^^^^^^^ -1-> - > -2 >/**@internal*/ -3 > -4 > class -5 > internalC -1->Emitted(41, 1) Source(30, 1) + SourceIndex(2) -2 >Emitted(41, 15) Source(30, 15) + SourceIndex(2) -3 >Emitted(41, 16) Source(30, 16) + SourceIndex(2) -4 >Emitted(41, 30) Source(30, 22) + SourceIndex(2) -5 >Emitted(41, 39) Source(30, 31) + SourceIndex(2) ---- ->>>} -1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > {} -1 >Emitted(42, 2) Source(30, 34) + SourceIndex(2) ---- ->>>/**@internal*/ declare function internalfoo(): void; -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^ -6 > ^^^^^^^^^ -7 > ^-> -1-> - > -2 >/**@internal*/ -3 > -4 > function -5 > internalfoo -6 > () {} -1->Emitted(43, 1) Source(31, 1) + SourceIndex(2) -2 >Emitted(43, 15) Source(31, 15) + SourceIndex(2) -3 >Emitted(43, 16) Source(31, 16) + SourceIndex(2) -4 >Emitted(43, 33) Source(31, 25) + SourceIndex(2) -5 >Emitted(43, 44) Source(31, 36) + SourceIndex(2) -6 >Emitted(43, 53) Source(31, 41) + SourceIndex(2) ---- ->>>/**@internal*/ declare namespace internalNamespace { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^ -6 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalNamespace -6 > -1->Emitted(44, 1) Source(32, 1) + SourceIndex(2) -2 >Emitted(44, 15) Source(32, 15) + SourceIndex(2) -3 >Emitted(44, 16) Source(32, 16) + SourceIndex(2) -4 >Emitted(44, 34) Source(32, 26) + SourceIndex(2) -5 >Emitted(44, 51) Source(32, 43) + SourceIndex(2) -6 >Emitted(44, 52) 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) ---- ->>>/**@internal*/ declare namespace internalOther.something { -1-> -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^ -6 > ^ -7 > ^^^^^^^^^ -8 > ^ -1-> - > -2 >/**@internal*/ -3 > -4 > namespace -5 > internalOther -6 > . -7 > something -8 > -1->Emitted(48, 1) Source(33, 1) + SourceIndex(2) -2 >Emitted(48, 15) Source(33, 15) + SourceIndex(2) -3 >Emitted(48, 16) Source(33, 16) + SourceIndex(2) -4 >Emitted(48, 34) Source(33, 26) + SourceIndex(2) -5 >Emitted(48, 47) Source(33, 39) + SourceIndex(2) -6 >Emitted(48, 48) Source(33, 40) + SourceIndex(2) -7 >Emitted(48, 57) Source(33, 49) + SourceIndex(2) -8 >Emitted(48, 58) 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) ---- ->>>/**@internal*/ import 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(52, 1) Source(34, 1) + SourceIndex(2) -2 >Emitted(52, 15) Source(34, 15) + SourceIndex(2) -3 >Emitted(52, 16) Source(34, 16) + SourceIndex(2) -4 >Emitted(52, 23) Source(34, 23) + SourceIndex(2) -5 >Emitted(52, 37) Source(34, 37) + SourceIndex(2) -6 >Emitted(52, 40) Source(34, 40) + SourceIndex(2) -7 >Emitted(52, 57) Source(34, 57) + SourceIndex(2) -8 >Emitted(52, 58) Source(34, 58) + SourceIndex(2) -9 >Emitted(52, 67) Source(34, 67) + SourceIndex(2) -10>Emitted(52, 68) Source(34, 68) + SourceIndex(2) ---- ->>>/**@internal*/ declare type internalType = internalC; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^ -6 > ^^^ -7 > ^^^^^^^^^ -8 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > type -5 > internalType -6 > = -7 > internalC -8 > ; -1 >Emitted(53, 1) Source(35, 1) + SourceIndex(2) -2 >Emitted(53, 15) Source(35, 15) + SourceIndex(2) -3 >Emitted(53, 16) Source(35, 16) + SourceIndex(2) -4 >Emitted(53, 29) Source(35, 21) + SourceIndex(2) -5 >Emitted(53, 41) Source(35, 33) + SourceIndex(2) -6 >Emitted(53, 44) Source(35, 36) + SourceIndex(2) -7 >Emitted(53, 53) Source(35, 45) + SourceIndex(2) -8 >Emitted(53, 54) Source(35, 46) + SourceIndex(2) ---- ->>>/**@internal*/ declare const internalConst = 10; -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^ -5 > ^^^^^^ -6 > ^^^^^^^^^^^^^ -7 > ^^^^^ -8 > ^ -1 > - > -2 >/**@internal*/ -3 > -4 > -5 > const -6 > internalConst -7 > = 10 -8 > ; -1 >Emitted(54, 1) Source(36, 1) + SourceIndex(2) -2 >Emitted(54, 15) Source(36, 15) + SourceIndex(2) -3 >Emitted(54, 16) Source(36, 16) + SourceIndex(2) -4 >Emitted(54, 24) Source(36, 16) + SourceIndex(2) -5 >Emitted(54, 30) Source(36, 22) + SourceIndex(2) -6 >Emitted(54, 43) Source(36, 35) + SourceIndex(2) -7 >Emitted(54, 48) Source(36, 40) + SourceIndex(2) -8 >Emitted(54, 49) Source(36, 41) + SourceIndex(2) ---- ->>>/**@internal*/ declare enum internalEnum { -1 > -2 >^^^^^^^^^^^^^^ -3 > ^ -4 > ^^^^^^^^^^^^^ -5 > ^^^^^^^^^^^^ -1 > - > -2 >/**@internal*/ -3 > -4 > enum -5 > internalEnum -1 >Emitted(55, 1) Source(37, 1) + SourceIndex(2) -2 >Emitted(55, 15) Source(37, 15) + SourceIndex(2) -3 >Emitted(55, 16) Source(37, 16) + SourceIndex(2) -4 >Emitted(55, 29) Source(37, 21) + SourceIndex(2) -5 >Emitted(55, 41) 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->Emitted(13, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(13, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(13, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(13, 27) Source(20, 19) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 45) + SourceIndex(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(14, 2) Source(29, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4456,9 +3749,9 @@ sourceFile:../../../second/second_part2.ts 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) +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->^^^^ @@ -4466,8 +3759,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -4476,7 +3769,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4497,12 +3790,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(64, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(64, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(64, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(64, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(64, 18) Source(1, 17) + SourceIndex(4) +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) --- >>>//# sourceMappingURL=third-output.d.ts.map diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-when-one-two-three-are-prepended-in-order.js index b13befbfa76..3e8bf568166 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-when-one-two-three-are-prepended-in-order.js @@ -44,6 +44,11 @@ "texts": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -56,6 +61,36 @@ }, { "pos": 201, + "end": 278, + "kind": "text" + }, + { + "pos": 278, + "end": 352, + "kind": "internal" + }, + { + "pos": 354, + "end": 386, + "kind": "text" + }, + { + "pos": 386, + "end": 778, + "kind": "internal" + }, + { + "pos": 780, + "end": 783, + "kind": "text" + }, + { + "pos": 783, + "end": 1196, + "kind": "internal" + }, + { + "pos": 1198, "end": 1246, "kind": "text" }, @@ -198,12 +233,14 @@ sourceMapUrl: (3204-3245) ====================================================================== File:: /src/2/second-output.d.ts ---------------------------------------------------------------------- -prepend: (0-199):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-199):: /src/first/bin/first-output.d.ts texts:: 3 >>-------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -214,18 +251,26 @@ declare function f(): string; sourceMapUrl: (157-199) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -text: (201-1246) +text: (201-278) declare namespace N { } declare namespace N { } declare class normalC { + +---------------------------------------------------------------------- +internal: (278-352) constructor(); prop: string; method(): void; c: number; +---------------------------------------------------------------------- +text: (354-386) } declare namespace normalN { + +---------------------------------------------------------------------- +internal: (386-778) class C { } function foo(): void; @@ -245,7 +290,12 @@ declare namespace normalN { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (780-783) } + +---------------------------------------------------------------------- +internal: (783-1196) declare class internalC { } declare function internalfoo(): void; @@ -265,6 +315,8 @@ declare enum internalEnum { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (1198-1246) declare class C { doSomething(): void; } @@ -2840,6 +2892,11 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -2872,10 +2929,12 @@ sourceMapUrl: (110-150) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -3309,12 +3368,17 @@ namespace normalN { "sections": [ { "pos": 0, - "end": 1289, + "end": 404, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -3325,24 +3389,24 @@ namespace normalN { }, { "pos": 201, - "end": 1246, + "end": 361, "kind": "text" }, { - "pos": 1246, - "end": 1289, + "pos": 361, + "end": 404, "kind": "sourceMapUrl" } ] }, { - "pos": 1291, - "end": 1310, + "pos": 406, + "end": 425, "kind": "text" }, { - "pos": 1310, - "end": 1352, + "pos": 425, + "end": 467, "kind": "sourceMapUrl" } ] @@ -3487,12 +3551,14 @@ sourceMapUrl: (3283-3323) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-1289):: /src/2/second-output.d.ts texts:: 4 +prepend: (0-404):: /src/2/second-output.d.ts texts:: 5 >>-------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -3503,70 +3569,28 @@ declare function f(): string; sourceMapUrl: (157-199) //# sourceMappingURL=first-output.d.ts.map >>-------------------------------------------------------------------- -text: (201-1246) +text: (201-361) declare namespace N { } declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - c: 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; } >>-------------------------------------------------------------------- -sourceMapUrl: (1246-1289) +sourceMapUrl: (361-404) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1291-1310) +text: (406-425) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1310-1352) +sourceMapUrl: (425-467) //# sourceMappingURL=third-output.d.ts.map ====================================================================== @@ -3585,50 +3609,8 @@ declare namespace N { declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - c: 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; @@ -3638,7 +3620,7 @@ 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":"AAAc,UAAU,QAAQ;IAC5B,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;IACF,CAAC,EACM,MAAM;CAClC;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;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"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":"AAAc,UAAU,QAAQ;IAC5B,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] =================================================================== @@ -3836,59 +3818,17 @@ sourceFile:../../../second/second_part1.ts 2 >Emitted(14, 15) Source(13, 7) + SourceIndex(2) 3 >Emitted(14, 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(16, 5) Source(15, 19) + SourceIndex(2) -2 >Emitted(16, 9) Source(15, 23) + SourceIndex(2) -3 >Emitted(16, 11) Source(15, 25) + SourceIndex(2) -4 >Emitted(16, 17) Source(15, 31) + SourceIndex(2) -5 >Emitted(16, 18) Source(15, 32) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(17, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(17, 11) Source(16, 25) + SourceIndex(2) ---- ->>> c: number; -1->^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /*@internal*/ get -2 > c -3 > () { return 10; } - > /*@internal*/ set c(val: -4 > number -1->Emitted(18, 5) Source(17, 23) + SourceIndex(2) -2 >Emitted(18, 6) Source(17, 24) + SourceIndex(2) -3 >Emitted(18, 8) Source(18, 30) + SourceIndex(2) -4 >Emitted(18, 14) Source(18, 36) + SourceIndex(2) ---- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +1 >Emitted(15, 2) Source(19, 2) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -3900,488 +3840,25 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(16, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(16, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(16, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(16, 27) Source(20, 19) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 44) + SourceIndex(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(17, 2) Source(29, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4395,9 +3872,9 @@ sourceFile:../../../second/second_part2.ts 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) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(18, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(18, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -4405,8 +3882,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(19, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(19, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -4415,7 +3892,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(20, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4436,12 +3913,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(64, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(64, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(64, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(64, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(64, 18) Source(1, 17) + SourceIndex(4) +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) --- >>>//# sourceMappingURL=third-output.d.ts.map diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js index 6f3d3422d33..679951f0d81 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-with-comments-emit-enabled-when-one-two-three-are-prepended-in-order.js @@ -44,6 +44,11 @@ "texts": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -56,6 +61,36 @@ }, { "pos": 201, + "end": 278, + "kind": "text" + }, + { + "pos": 278, + "end": 366, + "kind": "internal" + }, + { + "pos": 368, + "end": 400, + "kind": "text" + }, + { + "pos": 400, + "end": 792, + "kind": "internal" + }, + { + "pos": 794, + "end": 797, + "kind": "text" + }, + { + "pos": 797, + "end": 1210, + "kind": "internal" + }, + { + "pos": 1212, "end": 1260, "kind": "text" }, @@ -198,12 +233,14 @@ sourceMapUrl: (3568-3609) ====================================================================== File:: /src/2/second-output.d.ts ---------------------------------------------------------------------- -prepend: (0-199):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-199):: /src/first/bin/first-output.d.ts texts:: 3 >>-------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -214,18 +251,26 @@ declare function f(): string; sourceMapUrl: (157-199) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -text: (201-1260) +text: (201-278) declare namespace N { } declare namespace N { } declare class normalC { + +---------------------------------------------------------------------- +internal: (278-366) constructor(); prop: string; method(): void; /*@internal*/ c: number; +---------------------------------------------------------------------- +text: (368-400) } declare namespace normalN { + +---------------------------------------------------------------------- +internal: (400-792) class C { } function foo(): void; @@ -245,7 +290,12 @@ declare namespace normalN { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (794-797) } + +---------------------------------------------------------------------- +internal: (797-1210) declare class internalC { } declare function internalfoo(): void; @@ -265,6 +315,8 @@ declare enum internalEnum { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (1212-1260) declare class C { doSomething(): void; } @@ -2940,6 +2992,11 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -2972,10 +3029,12 @@ sourceMapUrl: (110-150) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -3431,12 +3490,17 @@ namespace normalN { "sections": [ { "pos": 0, - "end": 1303, + "end": 404, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -3447,24 +3511,24 @@ namespace normalN { }, { "pos": 201, - "end": 1260, + "end": 361, "kind": "text" }, { - "pos": 1260, - "end": 1303, + "pos": 361, + "end": 404, "kind": "sourceMapUrl" } ] }, { - "pos": 1305, - "end": 1324, + "pos": 406, + "end": 425, "kind": "text" }, { - "pos": 1324, - "end": 1366, + "pos": 425, + "end": 467, "kind": "sourceMapUrl" } ] @@ -3609,12 +3673,14 @@ sourceMapUrl: (3647-3687) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-1303):: /src/2/second-output.d.ts texts:: 4 +prepend: (0-404):: /src/2/second-output.d.ts texts:: 5 >>-------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +>>-------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -3625,70 +3691,28 @@ declare function f(): string; sourceMapUrl: (157-199) //# sourceMappingURL=first-output.d.ts.map >>-------------------------------------------------------------------- -text: (201-1260) +text: (201-361) declare namespace N { } declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - /*@internal*/ c: 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; } >>-------------------------------------------------------------------- -sourceMapUrl: (1260-1303) +sourceMapUrl: (361-404) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1305-1324) +text: (406-425) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1324-1366) +sourceMapUrl: (425-467) //# sourceMappingURL=third-output.d.ts.map ====================================================================== @@ -3707,50 +3731,8 @@ declare namespace N { declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - /*@internal*/ c: 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; @@ -3760,7 +3742,7 @@ 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":"AAAc,UAAU,QAAQ;IAC5B,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;kBACF,CAAC,EACM,MAAM;CAClC;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;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"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":"AAAc,UAAU,QAAQ;IAC5B,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] =================================================================== @@ -3958,59 +3940,17 @@ sourceFile:../../../second/second_part1.ts 2 >Emitted(14, 15) Source(13, 7) + SourceIndex(2) 3 >Emitted(14, 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(16, 5) Source(15, 19) + SourceIndex(2) -2 >Emitted(16, 9) Source(15, 23) + SourceIndex(2) -3 >Emitted(16, 11) Source(15, 25) + SourceIndex(2) -4 >Emitted(16, 17) Source(15, 31) + SourceIndex(2) -5 >Emitted(16, 18) Source(15, 32) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(17, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(17, 11) Source(16, 25) + SourceIndex(2) ---- ->>> /*@internal*/ c: number; -1->^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /*@internal*/ get -2 > c -3 > () { return 10; } - > /*@internal*/ set c(val: -4 > number -1->Emitted(18, 19) Source(17, 23) + SourceIndex(2) -2 >Emitted(18, 20) Source(17, 24) + SourceIndex(2) -3 >Emitted(18, 22) Source(18, 30) + SourceIndex(2) -4 >Emitted(18, 28) Source(18, 36) + SourceIndex(2) ---- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +1 >Emitted(15, 2) Source(19, 2) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -4022,488 +3962,25 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(16, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(16, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(16, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(16, 27) Source(20, 19) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 44) + SourceIndex(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(17, 2) Source(29, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4517,9 +3994,9 @@ sourceFile:../../../second/second_part2.ts 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) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(18, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(18, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -4527,8 +4004,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(19, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(19, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -4537,7 +4014,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(20, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4558,12 +4035,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(64, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(64, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(64, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(64, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(64, 18) Source(1, 17) + SourceIndex(4) +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) --- >>>//# sourceMappingURL=third-output.d.ts.map diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-with-comments-emit-enabled.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-with-comments-emit-enabled.js index 5533bb1d1ed..ea225a26e00 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-with-comments-emit-enabled.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-with-comments-emit-enabled.js @@ -20,6 +20,36 @@ "sections": [ { "pos": 0, + "end": 77, + "kind": "text" + }, + { + "pos": 77, + "end": 165, + "kind": "internal" + }, + { + "pos": 167, + "end": 199, + "kind": "text" + }, + { + "pos": 199, + "end": 591, + "kind": "internal" + }, + { + "pos": 593, + "end": 596, + "kind": "text" + }, + { + "pos": 596, + "end": 1009, + "kind": "internal" + }, + { + "pos": 1011, "end": 1059, "kind": "text" }, @@ -148,18 +178,26 @@ sourceMapUrl: (3416-3457) ====================================================================== File:: /src/2/second-output.d.ts ---------------------------------------------------------------------- -text: (0-1059) +text: (0-77) declare namespace N { } declare namespace N { } declare class normalC { + +---------------------------------------------------------------------- +internal: (77-165) constructor(); prop: string; method(): void; /*@internal*/ c: number; +---------------------------------------------------------------------- +text: (167-199) } declare namespace normalN { + +---------------------------------------------------------------------- +internal: (199-591) class C { } function foo(): void; @@ -179,7 +217,12 @@ declare namespace normalN { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (593-596) } + +---------------------------------------------------------------------- +internal: (596-1009) declare class internalC { } declare function internalfoo(): void; @@ -199,6 +242,8 @@ declare enum internalEnum { b = 1, c = 2 } +---------------------------------------------------------------------- +text: (1011-1059) declare class C { doSomething(): void; } @@ -2600,6 +2645,11 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, + "end": 39, + "kind": "internal" + }, + { + "pos": 41, "end": 157, "kind": "text" }, @@ -2632,10 +2682,12 @@ sourceMapUrl: (110-150) ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-157) +internal: (0-39) interface TheFirst { none: any; } +---------------------------------------------------------------------- +text: (41-157) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -3098,48 +3150,48 @@ namespace normalN { "sections": [ { "pos": 0, - "end": 199, + "end": 158, "kind": "prepend", "data": "/src/first/bin/first-output.d.ts", "texts": [ { "pos": 0, - "end": 157, + "end": 116, "kind": "text" }, { - "pos": 157, - "end": 199, + "pos": 116, + "end": 158, "kind": "sourceMapUrl" } ] }, { - "pos": 201, - "end": 1303, + "pos": 160, + "end": 363, "kind": "prepend", "data": "/src/2/second-output.d.ts", "texts": [ { - "pos": 201, - "end": 1260, + "pos": 160, + "end": 320, "kind": "text" }, { - "pos": 1260, - "end": 1303, + "pos": 320, + "end": 363, "kind": "sourceMapUrl" } ] }, { - "pos": 1305, - "end": 1324, + "pos": 365, + "end": 384, "kind": "text" }, { - "pos": 1324, - "end": 1366, + "pos": 384, + "end": 426, "kind": "sourceMapUrl" } ] @@ -3286,12 +3338,9 @@ sourceMapUrl: (3647-3687) ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-199):: /src/first/bin/first-output.d.ts texts:: 2 +prepend: (0-158):: /src/first/bin/first-output.d.ts texts:: 2 >>-------------------------------------------------------------------- -text: (0-157) -interface TheFirst { - none: any; -} +text: (0-116) declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -3299,82 +3348,37 @@ interface NoJsForHereEither { declare function f(): string; >>-------------------------------------------------------------------- -sourceMapUrl: (157-199) +sourceMapUrl: (116-158) //# sourceMappingURL=first-output.d.ts.map ---------------------------------------------------------------------- -prepend: (201-1303):: /src/2/second-output.d.ts texts:: 2 +prepend: (160-363):: /src/2/second-output.d.ts texts:: 2 >>-------------------------------------------------------------------- -text: (201-1260) +text: (160-320) declare namespace N { } declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - /*@internal*/ c: 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; } >>-------------------------------------------------------------------- -sourceMapUrl: (1260-1303) +sourceMapUrl: (320-363) //# sourceMappingURL=second-output.d.ts.map ---------------------------------------------------------------------- -text: (1305-1324) +text: (365-384) declare var c: C; ---------------------------------------------------------------------- -sourceMapUrl: (1324-1366) +sourceMapUrl: (384-426) //# sourceMappingURL=third-output.d.ts.map ====================================================================== //// [/src/third/thirdjs/output/third-output.d.ts] -interface TheFirst { - none: any; -} declare const s = "Hello, world"; interface NoJsForHereEither { none: any; @@ -3386,50 +3390,8 @@ declare namespace N { declare namespace N { } declare class normalC { - constructor(); - prop: string; - method(): void; - /*@internal*/ c: 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; @@ -3439,7 +3401,7 @@ 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":"AAAc,UAAU,QAAQ;IAC5B,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;kBACF,CAAC,EACM,MAAM;CAClC;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;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"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,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] =================================================================== @@ -3452,50 +3414,16 @@ sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../se emittedFile:/src/third/thirdjs/output/third-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 = "Hello, world"; -1-> +1 > 2 >^^^^^^^^ 3 > ^^^^^^ 4 > ^ 5 > ^^^^^^^^^^^^^^^^^ 6 > ^ -1-> +1 >/*@internal*/ interface TheFirst { + > none: any; + >} > > 2 > @@ -3503,12 +3431,12 @@ sourceFile:../../../first/first_PART1.ts 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) +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, 33) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 34) Source(5, 26) + SourceIndex(0) --- >>>interface NoJsForHereEither { 1 > @@ -3519,9 +3447,9 @@ sourceFile:../../../first/first_PART1.ts > 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) +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 >^^^^ @@ -3535,18 +3463,18 @@ sourceFile:../../../first/first_PART1.ts 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 >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(7, 2) Source(9, 2) + SourceIndex(0) +1 >Emitted(4, 2) Source(9, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -3564,10 +3492,10 @@ sourceFile:../../../first/first_part3.ts 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) +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 @@ -3583,10 +3511,10 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(7, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(7, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(7, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(7, 21) Source(1, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -3594,7 +3522,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(8, 2) Source(3, 2) + SourceIndex(2) --- >>>declare namespace N { 1-> @@ -3607,10 +3535,10 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(9, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(9, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(9, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(9, 21) Source(5, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -3622,7 +3550,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) +1 >Emitted(10, 2) Source(11, 2) + SourceIndex(2) --- >>>declare class normalC { 1-> @@ -3633,63 +3561,21 @@ sourceFile:../../../second/second_part1.ts > 2 >class 3 > normalC -1->Emitted(14, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(14, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(14, 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(16, 5) Source(15, 19) + SourceIndex(2) -2 >Emitted(16, 9) Source(15, 23) + SourceIndex(2) -3 >Emitted(16, 11) Source(15, 25) + SourceIndex(2) -4 >Emitted(16, 17) Source(15, 31) + SourceIndex(2) -5 >Emitted(16, 18) Source(15, 32) + SourceIndex(2) ---- ->>> method(): void; -1->^^^^ -2 > ^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^-> -1-> - > /*@internal*/ -2 > method -1->Emitted(17, 5) Source(16, 19) + SourceIndex(2) -2 >Emitted(17, 11) Source(16, 25) + SourceIndex(2) ---- ->>> /*@internal*/ c: number; -1->^^^^^^^^^^^^^^^^^^ -2 > ^ -3 > ^^ -4 > ^^^^^^ -1->() { } - > /*@internal*/ get -2 > c -3 > () { return 10; } - > /*@internal*/ set c(val: -4 > number -1->Emitted(18, 19) Source(17, 23) + SourceIndex(2) -2 >Emitted(18, 20) Source(17, 24) + SourceIndex(2) -3 >Emitted(18, 22) Source(18, 30) + SourceIndex(2) -4 >Emitted(18, 28) Source(18, 36) + SourceIndex(2) +1->Emitted(11, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(11, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(11, 22) Source(13, 14) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 >) { } +1 > { + > /*@internal*/ constructor() { } + > /*@internal*/ prop: string; + > /*@internal*/ method() { } + > /*@internal*/ get c() { return 10; } + > /*@internal*/ set c(val: number) { } >} -1 >Emitted(19, 2) Source(19, 2) + SourceIndex(2) +1 >Emitted(12, 2) Source(19, 2) + SourceIndex(2) --- >>>declare namespace normalN { 1-> @@ -3701,488 +3587,25 @@ sourceFile:../../../second/second_part1.ts 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->Emitted(13, 1) Source(20, 1) + SourceIndex(2) +2 >Emitted(13, 19) Source(20, 11) + SourceIndex(2) +3 >Emitted(13, 26) Source(20, 18) + SourceIndex(2) +4 >Emitted(13, 27) Source(20, 19) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> -1 > } -1 >Emitted(59, 2) Source(37, 44) + SourceIndex(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(14, 2) Source(29, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4196,9 +3619,9 @@ sourceFile:../../../second/second_part2.ts 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) +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->^^^^ @@ -4206,8 +3629,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(61, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(61, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -4216,7 +3639,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(62, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -4237,12 +3660,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(64, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(64, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(64, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(64, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(64, 18) Source(1, 17) + SourceIndex(4) +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) --- >>>//# sourceMappingURL=third-output.d.ts.map