diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 65d860f6579..c5e2282fd39 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -314,7 +314,9 @@ namespace ts { if (sourceMappingURL) { if (!writer.isAtStartOfLine()) writer.rawWrite(newLine); + const pos = writer.getTextPos(); writer.writeComment(`//# ${"sourceMappingURL"}=${sourceMappingURL}`); // Tools can sometimes see this line as a source mapping url comment + if (bundleFileInfo) bundleFileInfo.push({ pos, end: writer.getTextPos(), kind: BundleFileSectionKind.SourceMapUrl }); } // Write the source map @@ -734,6 +736,7 @@ namespace ts { case SyntaxKind.UnparsedPrologue: case SyntaxKind.UnparsedPrependText: case SyntaxKind.UnparsedText: + case SyntaxKind.UnparsedSourceMapUrl: return emitUnparsedNode(node); // Identifiers diff --git a/src/compiler/factory.ts b/src/compiler/factory.ts index 821b96df387..4b2835ad0a3 100644 --- a/src/compiler/factory.ts +++ b/src/compiler/factory.ts @@ -2705,6 +2705,9 @@ namespace ts { case BundleFileSectionKind.Text: (texts || (texts = [])).push(createUnparsedNode(SyntaxKind.UnparsedText, section.pos, section.end, node)); break; + case BundleFileSectionKind.SourceMapUrl: + (texts || (texts = [])).push(createUnparsedNode(SyntaxKind.UnparsedSourceMapUrl, section.pos, section.end, node)); + break; default: Debug.assertNever(section); } @@ -2728,7 +2731,7 @@ namespace ts { } function createUnparsedNode(kind: UnparsedNode["kind"], pos: number, end: number, parent: UnparsedSource) { - const node = createNode(kind, pos, end); + const node = createNode(kind, pos, end) as UnparsedNode; node.parent = parent; return node; } diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 9815f49fa1d..54298268643 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -432,6 +432,7 @@ namespace ts { UnparsedPrologue, UnparsedPrependText, UnparsedText, + UnparsedSourceMapUrl, // Top-level nodes SourceFile, @@ -2797,7 +2798,7 @@ namespace ts { getLineAndCharacterOfPosition(pos: number): LineAndCharacter; } - export type UnparsedSourceText = UnparsedPrependText | UnparsedText; + export type UnparsedSourceText = UnparsedPrependText | UnparsedText | UnparsedSourceMapUrl; export type UnparsedNode = UnparsedPrologue | UnparsedSourceText; export interface UnparsedPrologue extends Node { @@ -2817,6 +2818,11 @@ namespace ts { parent: UnparsedSource; } + export interface UnparsedSourceMapUrl extends Node { + kind: SyntaxKind.UnparsedSourceMapUrl; + parent: UnparsedSource; + } + export interface JsonSourceFile extends SourceFile { statements: NodeArray; } @@ -5461,6 +5467,7 @@ namespace ts { Lib = "lib", Prepend = "prepend", Text = "text", + SourceMapUrl = "sourceMapUrl", // internal comments? } @@ -5503,9 +5510,15 @@ namespace ts { kind: BundleFileSectionKind.Text; } + /*@internal*/ + export interface BundleFileSourceMapUrl extends BundleFileSectionBase { + kind: BundleFileSectionKind.SourceMapUrl; + } + /*@internal*/ export type BundleFileSection = BundleFilePrologue | BundleFileEmitHelpers | - BundleFileHasNoDefaultLib | BundleFileReference | BundleFilePrepend | BundleFileText; + BundleFileHasNoDefaultLib | BundleFileReference | BundleFilePrepend | + BundleFileText | BundleFileSourceMapUrl; /*@internal*/ export type BundleFileInfo = BundleFileSection[]; diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 49035bf2289..5027208838f 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -5988,7 +5988,8 @@ namespace ts { export function isUnparsedNode(node: Node): node is UnparsedNode { return node.kind === SyntaxKind.UnparsedPrologue || node.kind === SyntaxKind.UnparsedPrependText || - node.kind === SyntaxKind.UnparsedText; + node.kind === SyntaxKind.UnparsedText || + node.kind === SyntaxKind.UnparsedSourceMapUrl; } // JSDoc diff --git a/tests/baselines/reference/outFile-baseline-sectioned-sourcemaps.js b/tests/baselines/reference/outFile-baseline-sectioned-sourcemaps.js index 0b5f191fcf5..d965d023392 100644 --- a/tests/baselines/reference/outFile-baseline-sectioned-sourcemaps.js +++ b/tests/baselines/reference/outFile-baseline-sectioned-sourcemaps.js @@ -5,6 +5,11 @@ "pos": 0, "end": 285, "kind": "text" + }, + { + "pos": 285, + "end": 326, + "kind": "sourceMapUrl" } ], "dts": [ @@ -12,6 +17,11 @@ "pos": 0, "end": 100, "kind": "text" + }, + { + "pos": 100, + "end": 143, + "kind": "sourceMapUrl" } ] } @@ -408,6 +418,11 @@ sourceFile:../second/second_part2.ts "pos": 0, "end": 110, "kind": "text" + }, + { + "pos": 110, + "end": 150, + "kind": "sourceMapUrl" } ], "dts": [ @@ -415,6 +430,11 @@ sourceFile:../second/second_part2.ts "pos": 0, "end": 157, "kind": "text" + }, + { + "pos": 157, + "end": 199, + "kind": "sourceMapUrl" } ] } @@ -724,39 +744,49 @@ sourceFile:../first_part3.ts "js": [ { "pos": 0, - "end": 110, + "end": 150, "kind": "prepend", "fileName": "/src/first/bin/first-output.js" }, { - "pos": 110, - "end": 395, + "pos": 152, + "end": 478, "kind": "prepend", "fileName": "/src/2/second-output.js" }, { - "pos": 395, - "end": 431, + "pos": 480, + "end": 516, "kind": "text" + }, + { + "pos": 516, + "end": 556, + "kind": "sourceMapUrl" } ], "dts": [ { "pos": 0, - "end": 157, + "end": 199, "kind": "prepend", "fileName": "/src/first/bin/first-output.d.ts" }, { - "pos": 157, - "end": 257, + "pos": 201, + "end": 344, "kind": "prepend", "fileName": "/src/2/second-output.d.ts" }, { - "pos": 257, - "end": 276, + "pos": 346, + "end": 365, "kind": "text" + }, + { + "pos": 365, + "end": 407, + "kind": "sourceMapUrl" } ] } @@ -770,6 +800,7 @@ interface NoJsForHereEither { none: any; } declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map declare namespace N { } declare namespace N { @@ -777,11 +808,12 @@ declare namespace N { 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;ACVD,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;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -899,6 +931,7 @@ sourceFile:../../../first/first_part3.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^-> 1-> 2 >function 3 > f @@ -914,19 +947,20 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.d.ts.map >>>declare namespace N { -1 > +1-> 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1 > +1-> 2 >namespace 3 > N 4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +1->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 >^ @@ -934,7 +968,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) --- >>>declare namespace N { 1-> @@ -947,10 +981,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +1->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 >^ @@ -962,7 +996,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -976,9 +1010,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >class 3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -986,22 +1020,23 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >() { > console.log("something got done"); > } >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.d.ts.map >>>declare var c: C; 1-> 2 >^^^^^^^^ @@ -1016,12 +1051,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) --- >>>//# sourceMappingURL=third-output.d.ts.map @@ -1032,6 +1067,7 @@ console.log(f()); function f() { return "JS does hoists"; } +//# sourceMappingURL=first-output.js.map var N; (function (N) { function f() { @@ -1047,12 +1083,13 @@ var C = (function () { }; return C; }()); +//# sourceMappingURL=second-output.js.map var c = new C(); c.doSomething(); //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -1189,7 +1226,7 @@ sourceFile:../../../first/first_part3.ts >>>} 1 > 2 >^ -3 > ^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -1200,6 +1237,7 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.js.map >>>var N; 1-> 2 >^^^^ @@ -1220,10 +1258,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -1233,9 +1271,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -1246,9 +1284,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -1268,14 +1306,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -1284,8 +1322,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -1299,10 +1337,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -1327,13 +1365,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1343,13 +1381,13 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) +1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -1361,8 +1399,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -1372,9 +1410,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) +1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -1394,14 +1432,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) +1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) --- >>> }; 1 >^^^^ @@ -1410,8 +1448,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -1419,15 +1457,15 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >} 3 > @@ -1436,15 +1474,16 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.js.map >>>var c = new C(); 1-> 2 >^^^^ @@ -1463,14 +1502,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1->Emitted(22, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(22, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(22, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(22, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(22, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(22, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(22, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(22, 17) Source(1, 17) + SourceIndex(5) +1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) --- >>>c.doSomething(); 1-> @@ -1487,12 +1526,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(23, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(23, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) +1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map diff --git a/tests/baselines/reference/outFile-emitHelpers-in-all-projects.js b/tests/baselines/reference/outFile-emitHelpers-in-all-projects.js index f1ce9194a59..a01bbe28e7c 100644 --- a/tests/baselines/reference/outFile-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/outFile-emitHelpers-in-all-projects.js @@ -11,6 +11,11 @@ "pos": 599, "end": 1186, "kind": "text" + }, + { + "pos": 1186, + "end": 1227, + "kind": "sourceMapUrl" } ], "dts": [ @@ -18,6 +23,11 @@ "pos": 0, "end": 172, "kind": "text" + }, + { + "pos": 172, + "end": 215, + "kind": "sourceMapUrl" } ] } @@ -611,6 +621,11 @@ sourceFile:../second/second_part2.ts "pos": 599, "end": 1003, "kind": "text" + }, + { + "pos": 1003, + "end": 1043, + "kind": "sourceMapUrl" } ], "dts": [ @@ -618,6 +633,11 @@ sourceFile:../second/second_part2.ts "pos": 0, "end": 226, "kind": "text" + }, + { + "pos": 226, + "end": 268, + "kind": "sourceMapUrl" } ] } @@ -1151,39 +1171,49 @@ class second2 extends second1 { } }, { "pos": 599, - "end": 1003, + "end": 1043, "kind": "prepend", "fileName": "/src/first/bin/first-output.js" }, { - "pos": 1003, - "end": 1590, + "pos": 1045, + "end": 1673, "kind": "prepend", "fileName": "/src/2/second-output.js" }, { - "pos": 1590, - "end": 1920, + "pos": 1675, + "end": 2005, "kind": "text" + }, + { + "pos": 2005, + "end": 2045, + "kind": "sourceMapUrl" } ], "dts": [ { "pos": 0, - "end": 226, + "end": 268, "kind": "prepend", "fileName": "/src/first/bin/first-output.d.ts" }, { - "pos": 226, - "end": 398, + "pos": 270, + "end": 485, "kind": "prepend", "fileName": "/src/2/second-output.d.ts" }, { - "pos": 398, - "end": 486, + "pos": 487, + "end": 575, "kind": "text" + }, + { + "pos": 575, + "end": 617, + "kind": "sourceMapUrl" } ] } @@ -1201,6 +1231,7 @@ declare class first1 { declare class first2 extends first1 { } declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map declare namespace N { } declare namespace N { @@ -1212,6 +1243,7 @@ declare class second2 extends second1 { declare class C { doSomething(): void; } +//# sourceMappingURL=second-output.d.ts.map declare var c: C; declare class third1 { } @@ -1220,7 +1252,7 @@ declare class third2 extends third1 { //# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACND,cAAM,MAAM;CAAI;AAChB,cAAM,MAAO,SAAQ,MAAM;CAAI;ACH/B,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAAI;AACjB,cAAM,OAAQ,SAAQ,OAAO;CAAI;ACbjC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAGhB,cAAM,MAAM;CAAI;AAChB,cAAM,MAAO,SAAQ,MAAM;CAAI"} +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACND,cAAM,MAAM;CAAI;AAChB,cAAM,MAAO,SAAQ,MAAM;CAAI;ACH/B,iBAAS,CAAC,WAET;;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAAI;AACjB,cAAM,OAAQ,SAAQ,OAAO;CAAI;ACbjC,cAAM,CAAC;IACH,WAAW;CAGd;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAGhB,cAAM,MAAM;CAAI;AAChB,cAAM,MAAO,SAAQ,MAAM;CAAI"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -1385,6 +1417,7 @@ sourceFile:../../../first/first_part3.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^-> 1-> 2 >function 3 > f @@ -1400,19 +1433,20 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.d.ts.map >>>declare namespace N { -1 > +1-> 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1 > +1-> 2 >namespace 3 > N 4 > -1 >Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 19) Source(1, 11) + SourceIndex(3) -3 >Emitted(13, 20) Source(1, 12) + SourceIndex(3) -4 >Emitted(13, 21) Source(1, 13) + SourceIndex(3) +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 19) Source(1, 11) + SourceIndex(3) +3 >Emitted(14, 20) Source(1, 12) + SourceIndex(3) +4 >Emitted(14, 21) Source(1, 13) + SourceIndex(3) --- >>>} 1 >^ @@ -1420,7 +1454,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(14, 2) Source(3, 2) + SourceIndex(3) +1 >Emitted(15, 2) Source(3, 2) + SourceIndex(3) --- >>>declare namespace N { 1-> @@ -1433,10 +1467,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -1->Emitted(15, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(15, 19) Source(5, 11) + SourceIndex(3) -3 >Emitted(15, 20) Source(5, 12) + SourceIndex(3) -4 >Emitted(15, 21) Source(5, 13) + SourceIndex(3) +1->Emitted(16, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(16, 19) Source(5, 11) + SourceIndex(3) +3 >Emitted(16, 20) Source(5, 12) + SourceIndex(3) +4 >Emitted(16, 21) Source(5, 13) + SourceIndex(3) --- >>>} 1 >^ @@ -1448,7 +1482,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(16, 2) Source(11, 2) + SourceIndex(3) +1 >Emitted(17, 2) Source(11, 2) + SourceIndex(3) --- >>>declare class second1 { 1-> @@ -1459,15 +1493,15 @@ sourceFile:../../../second/second_part1.ts > 2 >class 3 > second1 -1->Emitted(17, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(17, 15) Source(13, 7) + SourceIndex(3) -3 >Emitted(17, 22) Source(13, 14) + SourceIndex(3) +1->Emitted(18, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(18, 15) Source(13, 7) + SourceIndex(3) +3 >Emitted(18, 22) Source(13, 14) + SourceIndex(3) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(18, 2) Source(13, 18) + SourceIndex(3) +1 >Emitted(19, 2) Source(13, 18) + SourceIndex(3) --- >>>declare class second2 extends second1 { 1-> @@ -1481,17 +1515,17 @@ sourceFile:../../../second/second_part1.ts 3 > second2 4 > extends 5 > second1 -1->Emitted(19, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(19, 15) Source(14, 7) + SourceIndex(3) -3 >Emitted(19, 22) Source(14, 15) + SourceIndex(3) -4 >Emitted(19, 31) Source(14, 23) + SourceIndex(3) -5 >Emitted(19, 38) Source(14, 30) + SourceIndex(3) +1->Emitted(20, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(20, 15) Source(14, 7) + SourceIndex(3) +3 >Emitted(20, 22) Source(14, 15) + SourceIndex(3) +4 >Emitted(20, 31) Source(14, 23) + SourceIndex(3) +5 >Emitted(20, 38) Source(14, 30) + SourceIndex(3) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(20, 2) Source(14, 34) + SourceIndex(3) +1 >Emitted(21, 2) Source(14, 34) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1505,9 +1539,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >class 3 > C -1->Emitted(21, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(21, 15) Source(1, 7) + SourceIndex(4) -3 >Emitted(21, 16) Source(1, 8) + SourceIndex(4) +1->Emitted(22, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(22, 15) Source(1, 7) + SourceIndex(4) +3 >Emitted(22, 16) Source(1, 8) + SourceIndex(4) --- >>> doSomething(): void; 1->^^^^ @@ -1515,22 +1549,23 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(22, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(22, 16) Source(2, 16) + SourceIndex(4) +1->Emitted(23, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(23, 16) Source(2, 16) + SourceIndex(4) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >() { > console.log("something got done"); > } >} -1 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +1 >Emitted(24, 2) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.d.ts.map >>>declare var c: C; 1-> 2 >^^^^^^^^ @@ -1545,12 +1580,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(24, 9) Source(1, 1) + SourceIndex(5) -3 >Emitted(24, 13) Source(1, 5) + SourceIndex(5) -4 >Emitted(24, 14) Source(1, 6) + SourceIndex(5) -5 >Emitted(24, 17) Source(1, 16) + SourceIndex(5) -6 >Emitted(24, 18) Source(1, 17) + SourceIndex(5) +1->Emitted(26, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(26, 9) Source(1, 1) + SourceIndex(5) +3 >Emitted(26, 13) Source(1, 5) + SourceIndex(5) +4 >Emitted(26, 14) Source(1, 6) + SourceIndex(5) +5 >Emitted(26, 17) Source(1, 16) + SourceIndex(5) +6 >Emitted(26, 18) Source(1, 17) + SourceIndex(5) --- >>>declare class third1 { 1-> @@ -1562,15 +1597,15 @@ sourceFile:../../third_part1.ts > 2 >class 3 > third1 -1->Emitted(25, 1) Source(4, 1) + SourceIndex(5) -2 >Emitted(25, 15) Source(4, 7) + SourceIndex(5) -3 >Emitted(25, 21) Source(4, 13) + SourceIndex(5) +1->Emitted(27, 1) Source(4, 1) + SourceIndex(5) +2 >Emitted(27, 15) Source(4, 7) + SourceIndex(5) +3 >Emitted(27, 21) Source(4, 13) + SourceIndex(5) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(26, 2) Source(4, 17) + SourceIndex(5) +1 >Emitted(28, 2) Source(4, 17) + SourceIndex(5) --- >>>declare class third2 extends third1 { 1-> @@ -1584,17 +1619,17 @@ sourceFile:../../third_part1.ts 3 > third2 4 > extends 5 > third1 -1->Emitted(27, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(27, 15) Source(5, 7) + SourceIndex(5) -3 >Emitted(27, 21) Source(5, 14) + SourceIndex(5) -4 >Emitted(27, 30) Source(5, 22) + SourceIndex(5) -5 >Emitted(27, 36) Source(5, 28) + SourceIndex(5) +1->Emitted(29, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(29, 15) Source(5, 7) + SourceIndex(5) +3 >Emitted(29, 21) Source(5, 14) + SourceIndex(5) +4 >Emitted(29, 30) Source(5, 22) + SourceIndex(5) +5 >Emitted(29, 36) Source(5, 28) + SourceIndex(5) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(28, 2) Source(5, 32) + SourceIndex(5) +1 >Emitted(30, 2) Source(5, 32) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.d.ts.map @@ -1630,6 +1665,7 @@ var first2 = (function (_super) { function f() { return "JS does hoists"; } +//# sourceMappingURL=first-output.js.map var N; (function (N) { function f() { @@ -1657,6 +1693,7 @@ var C = (function () { }; return C; }()); +//# sourceMappingURL=second-output.js.map var c = new C(); c.doSomething(); var third1 = (function () { @@ -1674,7 +1711,7 @@ var third2 = (function (_super) { //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;AAEjB;IAAA;IAAe,CAAC;IAAD,aAAC;AAAD,CAAC,AAAhB,IAAgB;AAChB;IAAqB,0BAAM;IAA3B;;IAA8B,CAAC;IAAD,aAAC;AAAD,CAAC,AAA/B,CAAqB,MAAM,GAAI;ACH/B,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IAAA;IAAgB,CAAC;IAAD,cAAC;AAAD,CAAC,AAAjB,IAAiB;AACjB;IAAsB,2BAAO;IAA7B;;IAAgC,CAAC;IAAD,cAAC;AAAD,CAAC,AAAjC,CAAsB,OAAO,GAAI;ACbjC;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAEhB;IAAA;IAAe,CAAC;IAAD,aAAC;AAAD,CAAC,AAAhB,IAAgB;AAChB;IAAqB,0BAAM;IAA3B;;IAA8B,CAAC;IAAD,aAAC;AAAD,CAAC,AAA/B,CAAqB,MAAM,GAAI"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;AAEjB;IAAA;IAAe,CAAC;IAAD,aAAC;AAAD,CAAC,AAAhB,IAAgB;AAChB;IAAqB,0BAAM;IAA3B;;IAA8B,CAAC;IAAD,aAAC;AAAD,CAAC,AAA/B,CAAqB,MAAM,GAAI;ACH/B,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IAAA;IAAgB,CAAC;IAAD,cAAC;AAAD,CAAC,AAAjB,IAAiB;AACjB;IAAsB,2BAAO;IAA7B;;IAAgC,CAAC;IAAD,cAAC;AAAD,CAAC,AAAjC,CAAsB,OAAO,GAAI;ACbjC;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAEhB;IAAA;IAAe,CAAC;IAAD,aAAC;AAAD,CAAC,AAAhB,IAAgB;AAChB;IAAqB,0BAAM;IAA3B;;IAA8B,CAAC;IAAD,aAAC;AAAD,CAAC,AAA/B,CAAqB,MAAM,GAAI"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -1931,7 +1968,7 @@ sourceFile:../../../first/first_part3.ts >>>} 1 > 2 >^ -3 > ^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -1942,6 +1979,7 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.js.map >>>var N; 1-> 2 >^^^^ @@ -1962,10 +2000,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(32, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(32, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(32, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(32, 7) Source(11, 2) + SourceIndex(3) +1->Emitted(33, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(33, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(33, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(33, 7) Source(11, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -1975,9 +2013,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(33, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(33, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(33, 13) Source(5, 12) + SourceIndex(3) +1->Emitted(34, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(34, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(34, 13) Source(5, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -1988,9 +2026,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(34, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(34, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(34, 15) Source(6, 15) + SourceIndex(3) +1->Emitted(35, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(35, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(35, 15) Source(6, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -2010,14 +2048,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(35, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(35, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(35, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(35, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(35, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(35, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(35, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(35, 32) Source(7, 32) + SourceIndex(3) +1->Emitted(36, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(36, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(36, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(36, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(36, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(36, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(36, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(36, 32) Source(7, 32) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -2026,8 +2064,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(36, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(36, 6) Source(8, 6) + SourceIndex(3) +1 >Emitted(37, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(37, 6) Source(8, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -2041,10 +2079,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(37, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(37, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(37, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(37, 9) Source(10, 9) + SourceIndex(3) +1->Emitted(38, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(38, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(38, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(38, 9) Source(10, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -2069,13 +2107,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(38, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(38, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(38, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(38, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(38, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(38, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(38, 19) Source(11, 2) + SourceIndex(3) +1->Emitted(39, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(39, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(39, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(39, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(39, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(39, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(39, 19) Source(11, 2) + SourceIndex(3) --- >>>var second1 = (function () { 1-> @@ -2083,13 +2121,13 @@ sourceFile:../../../second/second_part1.ts 1-> > > -1->Emitted(39, 1) Source(13, 1) + SourceIndex(3) +1->Emitted(40, 1) Source(13, 1) + SourceIndex(3) --- >>> function second1() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(40, 5) Source(13, 1) + SourceIndex(3) +1->Emitted(41, 5) Source(13, 1) + SourceIndex(3) --- >>> } 1->^^^^ @@ -2097,16 +2135,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^-> 1->class second1 { 2 > } -1->Emitted(41, 5) Source(13, 17) + SourceIndex(3) -2 >Emitted(41, 6) Source(13, 18) + SourceIndex(3) +1->Emitted(42, 5) Source(13, 17) + SourceIndex(3) +2 >Emitted(42, 6) Source(13, 18) + SourceIndex(3) --- >>> return second1; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(42, 5) Source(13, 17) + SourceIndex(3) -2 >Emitted(42, 19) Source(13, 18) + SourceIndex(3) +1->Emitted(43, 5) Source(13, 17) + SourceIndex(3) +2 >Emitted(43, 19) Source(13, 18) + SourceIndex(3) --- >>>}()); 1 > @@ -2118,31 +2156,31 @@ sourceFile:../../../second/second_part1.ts 2 >} 3 > 4 > class second1 { } -1 >Emitted(43, 1) Source(13, 17) + SourceIndex(3) -2 >Emitted(43, 2) Source(13, 18) + SourceIndex(3) -3 >Emitted(43, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(43, 6) Source(13, 18) + SourceIndex(3) +1 >Emitted(44, 1) Source(13, 17) + SourceIndex(3) +2 >Emitted(44, 2) Source(13, 18) + SourceIndex(3) +3 >Emitted(44, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(44, 6) Source(13, 18) + SourceIndex(3) --- >>>var second2 = (function (_super) { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(44, 1) Source(14, 1) + SourceIndex(3) +1->Emitted(45, 1) Source(14, 1) + SourceIndex(3) --- >>> __extends(second2, _super); 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->class second2 extends 2 > second1 -1->Emitted(45, 5) Source(14, 23) + SourceIndex(3) -2 >Emitted(45, 32) Source(14, 30) + SourceIndex(3) +1->Emitted(46, 5) Source(14, 23) + SourceIndex(3) +2 >Emitted(46, 32) Source(14, 30) + SourceIndex(3) --- >>> function second2() { 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(46, 5) Source(14, 1) + SourceIndex(3) +1 >Emitted(47, 5) Source(14, 1) + SourceIndex(3) --- >>> return _super !== null && _super.apply(this, arguments) || this; >>> } @@ -2151,16 +2189,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^-> 1->class second2 extends second1 { 2 > } -1->Emitted(48, 5) Source(14, 33) + SourceIndex(3) -2 >Emitted(48, 6) Source(14, 34) + SourceIndex(3) +1->Emitted(49, 5) Source(14, 33) + SourceIndex(3) +2 >Emitted(49, 6) Source(14, 34) + SourceIndex(3) --- >>> return second2; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(49, 5) Source(14, 33) + SourceIndex(3) -2 >Emitted(49, 19) Source(14, 34) + SourceIndex(3) +1->Emitted(50, 5) Source(14, 33) + SourceIndex(3) +2 >Emitted(50, 19) Source(14, 34) + SourceIndex(3) --- >>>}(second1)); 1 > @@ -2176,12 +2214,12 @@ sourceFile:../../../second/second_part1.ts 4 > class second2 extends 5 > second1 6 > { } -1 >Emitted(50, 1) Source(14, 33) + SourceIndex(3) -2 >Emitted(50, 2) Source(14, 34) + SourceIndex(3) -3 >Emitted(50, 2) Source(14, 1) + SourceIndex(3) -4 >Emitted(50, 3) Source(14, 23) + SourceIndex(3) -5 >Emitted(50, 10) Source(14, 30) + SourceIndex(3) -6 >Emitted(50, 13) Source(14, 34) + SourceIndex(3) +1 >Emitted(51, 1) Source(14, 33) + SourceIndex(3) +2 >Emitted(51, 2) Source(14, 34) + SourceIndex(3) +3 >Emitted(51, 2) Source(14, 1) + SourceIndex(3) +4 >Emitted(51, 3) Source(14, 23) + SourceIndex(3) +5 >Emitted(51, 10) Source(14, 30) + SourceIndex(3) +6 >Emitted(51, 13) Source(14, 34) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2191,13 +2229,13 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(51, 1) Source(1, 1) + SourceIndex(4) +1->Emitted(52, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(52, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(53, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -2209,8 +2247,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(53, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(53, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(54, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(54, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -2220,9 +2258,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(54, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(54, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(54, 31) Source(2, 5) + SourceIndex(4) +1->Emitted(55, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(55, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(55, 31) Source(2, 5) + SourceIndex(4) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -2242,14 +2280,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(55, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(55, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(55, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(55, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(55, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(55, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(55, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(55, 43) Source(3, 43) + SourceIndex(4) +1->Emitted(56, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(56, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(56, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(56, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(56, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(56, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(56, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(56, 43) Source(3, 43) + SourceIndex(4) --- >>> }; 1 >^^^^ @@ -2258,8 +2296,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(56, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(56, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(57, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(57, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -2267,15 +2305,15 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(57, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(57, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(58, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(58, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >} 3 > @@ -2284,15 +2322,16 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(58, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(58, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(58, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(58, 6) Source(5, 2) + SourceIndex(4) +1 >Emitted(59, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(59, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(59, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(59, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.js.map >>>var c = new C(); 1-> 2 >^^^^ @@ -2311,14 +2350,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1->Emitted(59, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(59, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(59, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(59, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(59, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(59, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(59, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(59, 17) Source(1, 17) + SourceIndex(5) +1->Emitted(61, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(61, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(61, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(61, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(61, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(61, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(61, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(61, 17) Source(1, 17) + SourceIndex(5) --- >>>c.doSomething(); 1-> @@ -2335,12 +2374,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(60, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(60, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(60, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(60, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(60, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(60, 17) Source(2, 17) + SourceIndex(5) +1->Emitted(62, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(62, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(62, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(62, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(62, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(62, 17) Source(2, 17) + SourceIndex(5) --- >>>var third1 = (function () { 1-> @@ -2348,13 +2387,13 @@ sourceFile:../../third_part1.ts 1-> > > -1->Emitted(61, 1) Source(4, 1) + SourceIndex(5) +1->Emitted(63, 1) Source(4, 1) + SourceIndex(5) --- >>> function third1() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(62, 5) Source(4, 1) + SourceIndex(5) +1->Emitted(64, 5) Source(4, 1) + SourceIndex(5) --- >>> } 1->^^^^ @@ -2362,16 +2401,16 @@ sourceFile:../../third_part1.ts 3 > ^^^^^^^^^^^^^^-> 1->class third1 { 2 > } -1->Emitted(63, 5) Source(4, 16) + SourceIndex(5) -2 >Emitted(63, 6) Source(4, 17) + SourceIndex(5) +1->Emitted(65, 5) Source(4, 16) + SourceIndex(5) +2 >Emitted(65, 6) Source(4, 17) + SourceIndex(5) --- >>> return third1; 1->^^^^ 2 > ^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(64, 5) Source(4, 16) + SourceIndex(5) -2 >Emitted(64, 18) Source(4, 17) + SourceIndex(5) +1->Emitted(66, 5) Source(4, 16) + SourceIndex(5) +2 >Emitted(66, 18) Source(4, 17) + SourceIndex(5) --- >>>}()); 1 > @@ -2383,31 +2422,31 @@ sourceFile:../../third_part1.ts 2 >} 3 > 4 > class third1 { } -1 >Emitted(65, 1) Source(4, 16) + SourceIndex(5) -2 >Emitted(65, 2) Source(4, 17) + SourceIndex(5) -3 >Emitted(65, 2) Source(4, 1) + SourceIndex(5) -4 >Emitted(65, 6) Source(4, 17) + SourceIndex(5) +1 >Emitted(67, 1) Source(4, 16) + SourceIndex(5) +2 >Emitted(67, 2) Source(4, 17) + SourceIndex(5) +3 >Emitted(67, 2) Source(4, 1) + SourceIndex(5) +4 >Emitted(67, 6) Source(4, 17) + SourceIndex(5) --- >>>var third2 = (function (_super) { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(66, 1) Source(5, 1) + SourceIndex(5) +1->Emitted(68, 1) Source(5, 1) + SourceIndex(5) --- >>> __extends(third2, _super); 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->class third2 extends 2 > third1 -1->Emitted(67, 5) Source(5, 22) + SourceIndex(5) -2 >Emitted(67, 31) Source(5, 28) + SourceIndex(5) +1->Emitted(69, 5) Source(5, 22) + SourceIndex(5) +2 >Emitted(69, 31) Source(5, 28) + SourceIndex(5) --- >>> function third2() { 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(68, 5) Source(5, 1) + SourceIndex(5) +1 >Emitted(70, 5) Source(5, 1) + SourceIndex(5) --- >>> return _super !== null && _super.apply(this, arguments) || this; >>> } @@ -2416,16 +2455,16 @@ sourceFile:../../third_part1.ts 3 > ^^^^^^^^^^^^^^-> 1->class third2 extends third1 { 2 > } -1->Emitted(70, 5) Source(5, 31) + SourceIndex(5) -2 >Emitted(70, 6) Source(5, 32) + SourceIndex(5) +1->Emitted(72, 5) Source(5, 31) + SourceIndex(5) +2 >Emitted(72, 6) Source(5, 32) + SourceIndex(5) --- >>> return third2; 1->^^^^ 2 > ^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(71, 5) Source(5, 31) + SourceIndex(5) -2 >Emitted(71, 18) Source(5, 32) + SourceIndex(5) +1->Emitted(73, 5) Source(5, 31) + SourceIndex(5) +2 >Emitted(73, 18) Source(5, 32) + SourceIndex(5) --- >>>}(third1)); 1 > @@ -2441,12 +2480,12 @@ sourceFile:../../third_part1.ts 4 > class third2 extends 5 > third1 6 > { } -1 >Emitted(72, 1) Source(5, 31) + SourceIndex(5) -2 >Emitted(72, 2) Source(5, 32) + SourceIndex(5) -3 >Emitted(72, 2) Source(5, 1) + SourceIndex(5) -4 >Emitted(72, 3) Source(5, 22) + SourceIndex(5) -5 >Emitted(72, 9) Source(5, 28) + SourceIndex(5) -6 >Emitted(72, 12) Source(5, 32) + SourceIndex(5) +1 >Emitted(74, 1) Source(5, 31) + SourceIndex(5) +2 >Emitted(74, 2) Source(5, 32) + SourceIndex(5) +3 >Emitted(74, 2) Source(5, 1) + SourceIndex(5) +4 >Emitted(74, 3) Source(5, 22) + SourceIndex(5) +5 >Emitted(74, 9) Source(5, 28) + SourceIndex(5) +6 >Emitted(74, 12) Source(5, 32) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map diff --git a/tests/baselines/reference/outFile-emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/outFile-emitHelpers-in-only-one-dependency-project.js index 0c3132bf387..f3146f45471 100644 --- a/tests/baselines/reference/outFile-emitHelpers-in-only-one-dependency-project.js +++ b/tests/baselines/reference/outFile-emitHelpers-in-only-one-dependency-project.js @@ -11,6 +11,11 @@ "pos": 599, "end": 1186, "kind": "text" + }, + { + "pos": 1186, + "end": 1227, + "kind": "sourceMapUrl" } ], "dts": [ @@ -18,6 +23,11 @@ "pos": 0, "end": 172, "kind": "text" + }, + { + "pos": 172, + "end": 215, + "kind": "sourceMapUrl" } ] } @@ -605,6 +615,11 @@ sourceFile:../second/second_part2.ts "pos": 0, "end": 110, "kind": "text" + }, + { + "pos": 110, + "end": 150, + "kind": "sourceMapUrl" } ], "dts": [ @@ -612,6 +627,11 @@ sourceFile:../second/second_part2.ts "pos": 0, "end": 157, "kind": "text" + }, + { + "pos": 157, + "end": 199, + "kind": "sourceMapUrl" } ] } @@ -943,39 +963,49 @@ class second2 extends second1 { } }, { "pos": 599, - "end": 709, + "end": 749, "kind": "prepend", "fileName": "/src/first/bin/first-output.js" }, { - "pos": 709, - "end": 1296, + "pos": 751, + "end": 1379, "kind": "prepend", "fileName": "/src/2/second-output.js" }, { - "pos": 1296, - "end": 1332, + "pos": 1381, + "end": 1417, "kind": "text" + }, + { + "pos": 1417, + "end": 1457, + "kind": "sourceMapUrl" } ], "dts": [ { "pos": 0, - "end": 157, + "end": 199, "kind": "prepend", "fileName": "/src/first/bin/first-output.d.ts" }, { - "pos": 157, - "end": 329, + "pos": 201, + "end": 416, "kind": "prepend", "fileName": "/src/2/second-output.d.ts" }, { - "pos": 329, - "end": 348, + "pos": 418, + "end": 437, "kind": "text" + }, + { + "pos": 437, + "end": 479, + "kind": "sourceMapUrl" } ] } @@ -989,6 +1019,7 @@ interface NoJsForHereEither { none: any; } declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map declare namespace N { } declare namespace N { @@ -1000,11 +1031,12 @@ declare class second2 extends second1 { 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;CAAI;AACjB,cAAM,OAAQ,SAAQ,OAAO;CAAI;ACbjC,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;CAAI;AACjB,cAAM,OAAQ,SAAQ,OAAO;CAAI;ACbjC,cAAM,CAAC;IACH,WAAW;CAGd;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -1122,6 +1154,7 @@ sourceFile:../../../first/first_part3.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^-> 1-> 2 >function 3 > f @@ -1137,19 +1170,20 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.d.ts.map >>>declare namespace N { -1 > +1-> 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1 > +1-> 2 >namespace 3 > N 4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +1->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 >^ @@ -1157,7 +1191,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) --- >>>declare namespace N { 1-> @@ -1170,10 +1204,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +1->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 >^ @@ -1185,7 +1219,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) --- >>>declare class second1 { 1-> @@ -1196,15 +1230,15 @@ sourceFile:../../../second/second_part1.ts > 2 >class 3 > second1 -1->Emitted(13, 1) Source(13, 1) + SourceIndex(2) -2 >Emitted(13, 15) Source(13, 7) + SourceIndex(2) -3 >Emitted(13, 22) Source(13, 14) + SourceIndex(2) +1->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) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(14, 2) Source(13, 18) + SourceIndex(2) +1 >Emitted(15, 2) Source(13, 18) + SourceIndex(2) --- >>>declare class second2 extends second1 { 1-> @@ -1218,17 +1252,17 @@ sourceFile:../../../second/second_part1.ts 3 > second2 4 > extends 5 > second1 -1->Emitted(15, 1) Source(14, 1) + SourceIndex(2) -2 >Emitted(15, 15) Source(14, 7) + SourceIndex(2) -3 >Emitted(15, 22) Source(14, 15) + SourceIndex(2) -4 >Emitted(15, 31) Source(14, 23) + SourceIndex(2) -5 >Emitted(15, 38) Source(14, 30) + SourceIndex(2) +1->Emitted(16, 1) Source(14, 1) + SourceIndex(2) +2 >Emitted(16, 15) Source(14, 7) + SourceIndex(2) +3 >Emitted(16, 22) Source(14, 15) + SourceIndex(2) +4 >Emitted(16, 31) Source(14, 23) + SourceIndex(2) +5 >Emitted(16, 38) Source(14, 30) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(16, 2) Source(14, 34) + SourceIndex(2) +1 >Emitted(17, 2) Source(14, 34) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1242,9 +1276,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >class 3 > C -1->Emitted(17, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) +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->^^^^ @@ -1252,22 +1286,23 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(18, 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 >^ -2 > ^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >() { > console.log("something got done"); > } >} -1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(20, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.d.ts.map >>>declare var c: C; 1-> 2 >^^^^^^^^ @@ -1282,12 +1317,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) +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 @@ -1311,6 +1346,7 @@ console.log(f()); function f() { return "JS does hoists"; } +//# sourceMappingURL=first-output.js.map var N; (function (N) { function f() { @@ -1338,12 +1374,13 @@ var C = (function () { }; return C; }()); +//# sourceMappingURL=second-output.js.map var c = new C(); c.doSomething(); //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IAAA;IAAgB,CAAC;IAAD,cAAC;AAAD,CAAC,AAAjB,IAAiB;AACjB;IAAsB,2BAAO;IAA7B;;IAAgC,CAAC;IAAD,cAAC;AAAD,CAAC,AAAjC,CAAsB,OAAO,GAAI;ACbjC;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IAAA;IAAgB,CAAC;IAAD,cAAC;AAAD,CAAC,AAAjB,IAAiB;AACjB;IAAsB,2BAAO;IAA7B;;IAAgC,CAAC;IAAD,cAAC;AAAD,CAAC,AAAjC,CAAsB,OAAO,GAAI;ACbjC;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -1493,7 +1530,7 @@ sourceFile:../../../first/first_part3.ts >>>} 1 > 2 >^ -3 > ^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -1504,6 +1541,7 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.js.map >>>var N; 1-> 2 >^^^^ @@ -1524,10 +1562,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(20, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(20, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(20, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(20, 7) Source(11, 2) + SourceIndex(3) +1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(21, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(21, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(21, 7) Source(11, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -1537,9 +1575,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(21, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(21, 13) Source(5, 12) + SourceIndex(3) +1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(22, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(22, 13) Source(5, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -1550,9 +1588,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(22, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(22, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(22, 15) Source(6, 15) + SourceIndex(3) +1->Emitted(23, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(23, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(23, 15) Source(6, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -1572,14 +1610,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(23, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(23, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(23, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(23, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(23, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(23, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(23, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(23, 32) Source(7, 32) + SourceIndex(3) +1->Emitted(24, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(24, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(24, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(24, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(24, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(24, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(24, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(24, 32) Source(7, 32) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -1588,8 +1626,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(24, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(24, 6) Source(8, 6) + SourceIndex(3) +1 >Emitted(25, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(25, 6) Source(8, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -1603,10 +1641,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(25, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(25, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(25, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(25, 9) Source(10, 9) + SourceIndex(3) +1->Emitted(26, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(26, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(26, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(26, 9) Source(10, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -1631,13 +1669,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(26, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(26, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(26, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(26, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(26, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(26, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(26, 19) Source(11, 2) + SourceIndex(3) +1->Emitted(27, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(27, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(27, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(27, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(27, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(27, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(27, 19) Source(11, 2) + SourceIndex(3) --- >>>var second1 = (function () { 1-> @@ -1645,13 +1683,13 @@ sourceFile:../../../second/second_part1.ts 1-> > > -1->Emitted(27, 1) Source(13, 1) + SourceIndex(3) +1->Emitted(28, 1) Source(13, 1) + SourceIndex(3) --- >>> function second1() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(28, 5) Source(13, 1) + SourceIndex(3) +1->Emitted(29, 5) Source(13, 1) + SourceIndex(3) --- >>> } 1->^^^^ @@ -1659,16 +1697,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^-> 1->class second1 { 2 > } -1->Emitted(29, 5) Source(13, 17) + SourceIndex(3) -2 >Emitted(29, 6) Source(13, 18) + SourceIndex(3) +1->Emitted(30, 5) Source(13, 17) + SourceIndex(3) +2 >Emitted(30, 6) Source(13, 18) + SourceIndex(3) --- >>> return second1; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(30, 5) Source(13, 17) + SourceIndex(3) -2 >Emitted(30, 19) Source(13, 18) + SourceIndex(3) +1->Emitted(31, 5) Source(13, 17) + SourceIndex(3) +2 >Emitted(31, 19) Source(13, 18) + SourceIndex(3) --- >>>}()); 1 > @@ -1680,31 +1718,31 @@ sourceFile:../../../second/second_part1.ts 2 >} 3 > 4 > class second1 { } -1 >Emitted(31, 1) Source(13, 17) + SourceIndex(3) -2 >Emitted(31, 2) Source(13, 18) + SourceIndex(3) -3 >Emitted(31, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(31, 6) Source(13, 18) + SourceIndex(3) +1 >Emitted(32, 1) Source(13, 17) + SourceIndex(3) +2 >Emitted(32, 2) Source(13, 18) + SourceIndex(3) +3 >Emitted(32, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(32, 6) Source(13, 18) + SourceIndex(3) --- >>>var second2 = (function (_super) { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(32, 1) Source(14, 1) + SourceIndex(3) +1->Emitted(33, 1) Source(14, 1) + SourceIndex(3) --- >>> __extends(second2, _super); 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->class second2 extends 2 > second1 -1->Emitted(33, 5) Source(14, 23) + SourceIndex(3) -2 >Emitted(33, 32) Source(14, 30) + SourceIndex(3) +1->Emitted(34, 5) Source(14, 23) + SourceIndex(3) +2 >Emitted(34, 32) Source(14, 30) + SourceIndex(3) --- >>> function second2() { 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(34, 5) Source(14, 1) + SourceIndex(3) +1 >Emitted(35, 5) Source(14, 1) + SourceIndex(3) --- >>> return _super !== null && _super.apply(this, arguments) || this; >>> } @@ -1713,16 +1751,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^-> 1->class second2 extends second1 { 2 > } -1->Emitted(36, 5) Source(14, 33) + SourceIndex(3) -2 >Emitted(36, 6) Source(14, 34) + SourceIndex(3) +1->Emitted(37, 5) Source(14, 33) + SourceIndex(3) +2 >Emitted(37, 6) Source(14, 34) + SourceIndex(3) --- >>> return second2; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(37, 5) Source(14, 33) + SourceIndex(3) -2 >Emitted(37, 19) Source(14, 34) + SourceIndex(3) +1->Emitted(38, 5) Source(14, 33) + SourceIndex(3) +2 >Emitted(38, 19) Source(14, 34) + SourceIndex(3) --- >>>}(second1)); 1 > @@ -1738,12 +1776,12 @@ sourceFile:../../../second/second_part1.ts 4 > class second2 extends 5 > second1 6 > { } -1 >Emitted(38, 1) Source(14, 33) + SourceIndex(3) -2 >Emitted(38, 2) Source(14, 34) + SourceIndex(3) -3 >Emitted(38, 2) Source(14, 1) + SourceIndex(3) -4 >Emitted(38, 3) Source(14, 23) + SourceIndex(3) -5 >Emitted(38, 10) Source(14, 30) + SourceIndex(3) -6 >Emitted(38, 13) Source(14, 34) + SourceIndex(3) +1 >Emitted(39, 1) Source(14, 33) + SourceIndex(3) +2 >Emitted(39, 2) Source(14, 34) + SourceIndex(3) +3 >Emitted(39, 2) Source(14, 1) + SourceIndex(3) +4 >Emitted(39, 3) Source(14, 23) + SourceIndex(3) +5 >Emitted(39, 10) Source(14, 30) + SourceIndex(3) +6 >Emitted(39, 13) Source(14, 34) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1753,13 +1791,13 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(39, 1) Source(1, 1) + SourceIndex(4) +1->Emitted(40, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(40, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(41, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -1771,8 +1809,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(41, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(41, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(42, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(42, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -1782,9 +1820,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(42, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(42, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(42, 31) Source(2, 5) + SourceIndex(4) +1->Emitted(43, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(43, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(43, 31) Source(2, 5) + SourceIndex(4) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -1804,14 +1842,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(43, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(43, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(43, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(43, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(43, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(43, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(43, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(43, 43) Source(3, 43) + SourceIndex(4) +1->Emitted(44, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(44, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(44, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(44, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(44, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(44, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(44, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(44, 43) Source(3, 43) + SourceIndex(4) --- >>> }; 1 >^^^^ @@ -1820,8 +1858,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(44, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(44, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(45, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(45, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -1829,15 +1867,15 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(45, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(45, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(46, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(46, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >} 3 > @@ -1846,15 +1884,16 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(46, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(46, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(46, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(46, 6) Source(5, 2) + SourceIndex(4) +1 >Emitted(47, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(47, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(47, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(47, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.js.map >>>var c = new C(); 1-> 2 >^^^^ @@ -1873,14 +1912,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1->Emitted(47, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(47, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(47, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(47, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(47, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(47, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(47, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(47, 17) Source(1, 17) + SourceIndex(5) +1->Emitted(49, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(49, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(49, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(49, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(49, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(49, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(49, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(49, 17) Source(1, 17) + SourceIndex(5) --- >>>c.doSomething(); 1-> @@ -1897,12 +1936,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(48, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(48, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(48, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(48, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(48, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(48, 17) Source(2, 17) + SourceIndex(5) +1->Emitted(50, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(50, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(50, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(50, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(50, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(50, 17) Source(2, 17) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map diff --git a/tests/baselines/reference/outFile-multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/outFile-multiple-emitHelpers-in-all-projects.js index 8e168128137..89aafedae9c 100644 --- a/tests/baselines/reference/outFile-multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/outFile-multiple-emitHelpers-in-all-projects.js @@ -23,6 +23,11 @@ "pos": 1277, "end": 2080, "kind": "text" + }, + { + "pos": 2080, + "end": 2121, + "kind": "sourceMapUrl" } ], "dts": [ @@ -30,6 +35,11 @@ "pos": 0, "end": 238, "kind": "text" + }, + { + "pos": 238, + "end": 281, + "kind": "sourceMapUrl" } ] } @@ -810,6 +820,11 @@ sourceFile:../second/second_part2.ts "pos": 1277, "end": 1893, "kind": "text" + }, + { + "pos": 1893, + "end": 1933, + "kind": "sourceMapUrl" } ], "dts": [ @@ -817,6 +832,11 @@ sourceFile:../second/second_part2.ts "pos": 0, "end": 290, "kind": "text" + }, + { + "pos": 290, + "end": 332, + "kind": "sourceMapUrl" } ] } @@ -1594,39 +1614,49 @@ secondsecond_part2Spread(...[10, 20, 30]); }, { "pos": 1277, - "end": 1893, + "end": 1933, "kind": "prepend", "fileName": "/src/first/bin/first-output.js" }, { - "pos": 1893, - "end": 2696, + "pos": 1935, + "end": 2779, "kind": "prepend", "fileName": "/src/2/second-output.js" }, { - "pos": 2696, - "end": 3238, + "pos": 2781, + "end": 3323, "kind": "text" + }, + { + "pos": 3323, + "end": 3363, + "kind": "sourceMapUrl" } ], "dts": [ { "pos": 0, - "end": 290, + "end": 332, "kind": "prepend", "fileName": "/src/first/bin/first-output.d.ts" }, { - "pos": 290, - "end": 528, + "pos": 334, + "end": 615, "kind": "prepend", "fileName": "/src/2/second-output.d.ts" }, { - "pos": 528, - "end": 680, + "pos": 617, + "end": 769, "kind": "text" + }, + { + "pos": 769, + "end": 811, + "kind": "sourceMapUrl" } ] } @@ -1645,6 +1675,7 @@ declare class first2 extends first1 { } declare function f(): string; declare function firstfirst_part3Spread(...b: number[]): void; +//# sourceMappingURL=first-output.d.ts.map declare namespace N { } declare namespace N { @@ -1657,6 +1688,7 @@ declare class C { doSomething(): void; } declare function secondsecond_part2Spread(...b: number[]): void; +//# sourceMappingURL=second-output.d.ts.map declare var c: C; declare class third1 { } @@ -1666,7 +1698,7 @@ declare function thirdthird_part1Spread(...b: number[]): void; //# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACND,cAAM,MAAM;CAAI;AAChB,cAAM,MAAO,SAAQ,MAAM;CAAI;ACH/B,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACHnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAAI;AACjB,cAAM,OAAQ,SAAQ,OAAO;CAAI;ACbjC,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACNrD,QAAA,IAAI,CAAC,GAAU,CAAC;AAGhB,cAAM,MAAM;CAAI;AAChB,cAAM,MAAO,SAAQ,MAAM;CAAI;AAC/B,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACND,cAAM,MAAM;CAAI;AAChB,cAAM,MAAO,SAAQ,MAAM;CAAI;ACH/B,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;;ACHnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAAI;AACjB,cAAM,OAAQ,SAAQ,OAAO;CAAI;ACbjC,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;;ACNrD,QAAA,IAAI,CAAC,GAAU,CAAC;AAGhB,cAAM,MAAM;CAAI;AAChB,cAAM,MAAO,SAAQ,MAAM;CAAI;AAC/B,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -1877,6 +1909,7 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.d.ts.map >>>declare namespace N { 1 > 2 >^^^^^^^^^^^^^^^^^^ @@ -1886,10 +1919,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -1 >Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 19) Source(1, 11) + SourceIndex(3) -3 >Emitted(14, 20) Source(1, 12) + SourceIndex(3) -4 >Emitted(14, 21) Source(1, 13) + SourceIndex(3) +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(15, 19) Source(1, 11) + SourceIndex(3) +3 >Emitted(15, 20) Source(1, 12) + SourceIndex(3) +4 >Emitted(15, 21) Source(1, 13) + SourceIndex(3) --- >>>} 1 >^ @@ -1897,7 +1930,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(15, 2) Source(3, 2) + SourceIndex(3) +1 >Emitted(16, 2) Source(3, 2) + SourceIndex(3) --- >>>declare namespace N { 1-> @@ -1910,10 +1943,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -1->Emitted(16, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(16, 19) Source(5, 11) + SourceIndex(3) -3 >Emitted(16, 20) Source(5, 12) + SourceIndex(3) -4 >Emitted(16, 21) Source(5, 13) + SourceIndex(3) +1->Emitted(17, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(17, 19) Source(5, 11) + SourceIndex(3) +3 >Emitted(17, 20) Source(5, 12) + SourceIndex(3) +4 >Emitted(17, 21) Source(5, 13) + SourceIndex(3) --- >>>} 1 >^ @@ -1925,7 +1958,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(17, 2) Source(11, 2) + SourceIndex(3) +1 >Emitted(18, 2) Source(11, 2) + SourceIndex(3) --- >>>declare class second1 { 1-> @@ -1936,15 +1969,15 @@ sourceFile:../../../second/second_part1.ts > 2 >class 3 > second1 -1->Emitted(18, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(18, 15) Source(13, 7) + SourceIndex(3) -3 >Emitted(18, 22) Source(13, 14) + SourceIndex(3) +1->Emitted(19, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(19, 15) Source(13, 7) + SourceIndex(3) +3 >Emitted(19, 22) Source(13, 14) + SourceIndex(3) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(19, 2) Source(13, 18) + SourceIndex(3) +1 >Emitted(20, 2) Source(13, 18) + SourceIndex(3) --- >>>declare class second2 extends second1 { 1-> @@ -1958,17 +1991,17 @@ sourceFile:../../../second/second_part1.ts 3 > second2 4 > extends 5 > second1 -1->Emitted(20, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(20, 15) Source(14, 7) + SourceIndex(3) -3 >Emitted(20, 22) Source(14, 15) + SourceIndex(3) -4 >Emitted(20, 31) Source(14, 23) + SourceIndex(3) -5 >Emitted(20, 38) Source(14, 30) + SourceIndex(3) +1->Emitted(21, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(21, 15) Source(14, 7) + SourceIndex(3) +3 >Emitted(21, 22) Source(14, 15) + SourceIndex(3) +4 >Emitted(21, 31) Source(14, 23) + SourceIndex(3) +5 >Emitted(21, 38) Source(14, 30) + SourceIndex(3) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(21, 2) Source(14, 34) + SourceIndex(3) +1 >Emitted(22, 2) Source(14, 34) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1982,9 +2015,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >class 3 > C -1->Emitted(22, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(22, 15) Source(1, 7) + SourceIndex(4) -3 >Emitted(22, 16) Source(1, 8) + SourceIndex(4) +1->Emitted(23, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(23, 15) Source(1, 7) + SourceIndex(4) +3 >Emitted(23, 16) Source(1, 8) + SourceIndex(4) --- >>> doSomething(): void; 1->^^^^ @@ -1992,8 +2025,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(23, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(23, 16) Source(2, 16) + SourceIndex(4) +1->Emitted(24, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(24, 16) Source(2, 16) + SourceIndex(4) --- >>>} 1 >^ @@ -2002,7 +2035,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(24, 2) Source(5, 2) + SourceIndex(4) +1 >Emitted(25, 2) Source(5, 2) + SourceIndex(4) --- >>>declare function secondsecond_part2Spread(...b: number[]): void; 1-> @@ -2025,20 +2058,21 @@ sourceFile:../../../second/second_part2.ts 7 > number 8 > [] 9 > ) { } -1->Emitted(25, 1) Source(7, 1) + SourceIndex(4) -2 >Emitted(25, 18) Source(7, 10) + SourceIndex(4) -3 >Emitted(25, 42) Source(7, 34) + SourceIndex(4) -4 >Emitted(25, 43) Source(7, 35) + SourceIndex(4) -5 >Emitted(25, 46) Source(7, 38) + SourceIndex(4) -6 >Emitted(25, 49) Source(7, 41) + SourceIndex(4) -7 >Emitted(25, 55) Source(7, 47) + SourceIndex(4) -8 >Emitted(25, 57) Source(7, 49) + SourceIndex(4) -9 >Emitted(25, 65) Source(7, 54) + SourceIndex(4) +1->Emitted(26, 1) Source(7, 1) + SourceIndex(4) +2 >Emitted(26, 18) Source(7, 10) + SourceIndex(4) +3 >Emitted(26, 42) Source(7, 34) + SourceIndex(4) +4 >Emitted(26, 43) Source(7, 35) + SourceIndex(4) +5 >Emitted(26, 46) Source(7, 38) + SourceIndex(4) +6 >Emitted(26, 49) Source(7, 41) + SourceIndex(4) +7 >Emitted(26, 55) Source(7, 47) + SourceIndex(4) +8 >Emitted(26, 57) Source(7, 49) + SourceIndex(4) +9 >Emitted(26, 65) Source(7, 54) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.d.ts.map >>>declare var c: C; 1 > 2 >^^^^^^^^ @@ -2053,12 +2087,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1 >Emitted(26, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(26, 9) Source(1, 1) + SourceIndex(5) -3 >Emitted(26, 13) Source(1, 5) + SourceIndex(5) -4 >Emitted(26, 14) Source(1, 6) + SourceIndex(5) -5 >Emitted(26, 17) Source(1, 16) + SourceIndex(5) -6 >Emitted(26, 18) Source(1, 17) + SourceIndex(5) +1 >Emitted(28, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(28, 9) Source(1, 1) + SourceIndex(5) +3 >Emitted(28, 13) Source(1, 5) + SourceIndex(5) +4 >Emitted(28, 14) Source(1, 6) + SourceIndex(5) +5 >Emitted(28, 17) Source(1, 16) + SourceIndex(5) +6 >Emitted(28, 18) Source(1, 17) + SourceIndex(5) --- >>>declare class third1 { 1-> @@ -2070,15 +2104,15 @@ sourceFile:../../third_part1.ts > 2 >class 3 > third1 -1->Emitted(27, 1) Source(4, 1) + SourceIndex(5) -2 >Emitted(27, 15) Source(4, 7) + SourceIndex(5) -3 >Emitted(27, 21) Source(4, 13) + SourceIndex(5) +1->Emitted(29, 1) Source(4, 1) + SourceIndex(5) +2 >Emitted(29, 15) Source(4, 7) + SourceIndex(5) +3 >Emitted(29, 21) Source(4, 13) + SourceIndex(5) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(28, 2) Source(4, 17) + SourceIndex(5) +1 >Emitted(30, 2) Source(4, 17) + SourceIndex(5) --- >>>declare class third2 extends third1 { 1-> @@ -2092,17 +2126,17 @@ sourceFile:../../third_part1.ts 3 > third2 4 > extends 5 > third1 -1->Emitted(29, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(29, 15) Source(5, 7) + SourceIndex(5) -3 >Emitted(29, 21) Source(5, 14) + SourceIndex(5) -4 >Emitted(29, 30) Source(5, 22) + SourceIndex(5) -5 >Emitted(29, 36) Source(5, 28) + SourceIndex(5) +1->Emitted(31, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(31, 15) Source(5, 7) + SourceIndex(5) +3 >Emitted(31, 21) Source(5, 14) + SourceIndex(5) +4 >Emitted(31, 30) Source(5, 22) + SourceIndex(5) +5 >Emitted(31, 36) Source(5, 28) + SourceIndex(5) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(30, 2) Source(5, 32) + SourceIndex(5) +1 >Emitted(32, 2) Source(5, 32) + SourceIndex(5) --- >>>declare function thirdthird_part1Spread(...b: number[]): void; 1-> @@ -2124,15 +2158,15 @@ sourceFile:../../third_part1.ts 7 > number 8 > [] 9 > ) { } -1->Emitted(31, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(31, 18) Source(6, 10) + SourceIndex(5) -3 >Emitted(31, 40) Source(6, 32) + SourceIndex(5) -4 >Emitted(31, 41) Source(6, 33) + SourceIndex(5) -5 >Emitted(31, 44) Source(6, 36) + SourceIndex(5) -6 >Emitted(31, 47) Source(6, 39) + SourceIndex(5) -7 >Emitted(31, 53) Source(6, 45) + SourceIndex(5) -8 >Emitted(31, 55) Source(6, 47) + SourceIndex(5) -9 >Emitted(31, 63) Source(6, 52) + SourceIndex(5) +1->Emitted(33, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(33, 18) Source(6, 10) + SourceIndex(5) +3 >Emitted(33, 40) Source(6, 32) + SourceIndex(5) +4 >Emitted(33, 41) Source(6, 33) + SourceIndex(5) +5 >Emitted(33, 44) Source(6, 36) + SourceIndex(5) +6 >Emitted(33, 47) Source(6, 39) + SourceIndex(5) +7 >Emitted(33, 53) Source(6, 45) + SourceIndex(5) +8 >Emitted(33, 55) Source(6, 47) + SourceIndex(5) +9 >Emitted(33, 63) Source(6, 52) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.d.ts.map @@ -2195,6 +2229,7 @@ function firstfirst_part3Spread() { } } firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +//# sourceMappingURL=first-output.js.map var N; (function (N) { function f() { @@ -2229,6 +2264,7 @@ function secondsecond_part2Spread() { } } secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +//# sourceMappingURL=second-output.js.map var c = new C(); c.doSomething(); var third1 = (function () { @@ -2253,7 +2289,7 @@ thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;AAEjB;IAAA;IAAe,CAAC;IAAD,aAAC;AAAD,CAAC,AAAhB,IAAgB;AAChB;IAAqB,0BAAM;IAA3B;;IAA8B,CAAC;IAAD,aAAC;AAAD,CAAC,AAA/B,CAAqB,MAAM,GAAI;ACH/B,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACAxC,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IAAA;IAAgB,CAAC;IAAD,cAAC;AAAD,CAAC,AAAjB,IAAiB;AACjB;IAAsB,2BAAO;IAA7B;;IAAgC,CAAC;IAAD,cAAC;AAAD,CAAC,AAAjC,CAAsB,OAAO,GAAI;ACbjC;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACP1C,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAEhB;IAAA;IAAe,CAAC;IAAD,aAAC;AAAD,CAAC,AAAhB,IAAgB;AAChB;IAAqB,0BAAM;IAA3B;;IAA8B,CAAC;IAAD,aAAC;AAAD,CAAC,AAA/B,CAAqB,MAAM,GAAI;AAC/B,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;AAEjB;IAAA;IAAe,CAAC;IAAD,aAAC;AAAD,CAAC,AAAhB,IAAgB;AAChB;IAAqB,0BAAM;IAA3B;;IAA8B,CAAC;IAAD,aAAC;AAAD,CAAC,AAA/B,CAAqB,MAAM,GAAI;ACH/B,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;ACAxC,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IAAA;IAAgB,CAAC;IAAD,cAAC;AAAD,CAAC,AAAjB,IAAiB;AACjB;IAAsB,2BAAO;IAA7B;;IAAgC,CAAC;IAAD,cAAC;AAAD,CAAC,AAAjC,CAAsB,OAAO,GAAI;ACbjC;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;ACP1C,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAEhB;IAAA;IAAe,CAAC;IAAD,aAAC;AAAD,CAAC,AAAhB,IAAgB;AAChB;IAAqB,0BAAM;IAA3B;;IAA8B,CAAC;IAAD,aAAC;AAAD,CAAC,AAA/B,CAAqB,MAAM,GAAI;AAC/B,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -2636,6 +2672,7 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.js.map >>>var N; 1 > 2 >^^^^ @@ -2656,10 +2693,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1 >Emitted(59, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(59, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(59, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(59, 7) Source(11, 2) + SourceIndex(3) +1 >Emitted(60, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(60, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(60, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(60, 7) Source(11, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -2669,9 +2706,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(60, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(60, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(60, 13) Source(5, 12) + SourceIndex(3) +1->Emitted(61, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(61, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(61, 13) Source(5, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -2682,9 +2719,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(61, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(61, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(61, 15) Source(6, 15) + SourceIndex(3) +1->Emitted(62, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(62, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(62, 15) Source(6, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -2704,14 +2741,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(62, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(62, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(62, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(62, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(62, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(62, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(62, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(62, 32) Source(7, 32) + SourceIndex(3) +1->Emitted(63, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(63, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(63, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(63, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(63, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(63, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(63, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(63, 32) Source(7, 32) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -2720,8 +2757,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(63, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(63, 6) Source(8, 6) + SourceIndex(3) +1 >Emitted(64, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(64, 6) Source(8, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -2735,10 +2772,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(64, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(64, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(64, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(64, 9) Source(10, 9) + SourceIndex(3) +1->Emitted(65, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(65, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(65, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(65, 9) Source(10, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -2763,13 +2800,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(65, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(65, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(65, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(65, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(65, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(65, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(65, 19) Source(11, 2) + SourceIndex(3) +1->Emitted(66, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(66, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(66, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(66, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(66, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(66, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(66, 19) Source(11, 2) + SourceIndex(3) --- >>>var second1 = (function () { 1-> @@ -2777,13 +2814,13 @@ sourceFile:../../../second/second_part1.ts 1-> > > -1->Emitted(66, 1) Source(13, 1) + SourceIndex(3) +1->Emitted(67, 1) Source(13, 1) + SourceIndex(3) --- >>> function second1() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(67, 5) Source(13, 1) + SourceIndex(3) +1->Emitted(68, 5) Source(13, 1) + SourceIndex(3) --- >>> } 1->^^^^ @@ -2791,16 +2828,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^-> 1->class second1 { 2 > } -1->Emitted(68, 5) Source(13, 17) + SourceIndex(3) -2 >Emitted(68, 6) Source(13, 18) + SourceIndex(3) +1->Emitted(69, 5) Source(13, 17) + SourceIndex(3) +2 >Emitted(69, 6) Source(13, 18) + SourceIndex(3) --- >>> return second1; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(69, 5) Source(13, 17) + SourceIndex(3) -2 >Emitted(69, 19) Source(13, 18) + SourceIndex(3) +1->Emitted(70, 5) Source(13, 17) + SourceIndex(3) +2 >Emitted(70, 19) Source(13, 18) + SourceIndex(3) --- >>>}()); 1 > @@ -2812,31 +2849,31 @@ sourceFile:../../../second/second_part1.ts 2 >} 3 > 4 > class second1 { } -1 >Emitted(70, 1) Source(13, 17) + SourceIndex(3) -2 >Emitted(70, 2) Source(13, 18) + SourceIndex(3) -3 >Emitted(70, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(70, 6) Source(13, 18) + SourceIndex(3) +1 >Emitted(71, 1) Source(13, 17) + SourceIndex(3) +2 >Emitted(71, 2) Source(13, 18) + SourceIndex(3) +3 >Emitted(71, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(71, 6) Source(13, 18) + SourceIndex(3) --- >>>var second2 = (function (_super) { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(71, 1) Source(14, 1) + SourceIndex(3) +1->Emitted(72, 1) Source(14, 1) + SourceIndex(3) --- >>> __extends(second2, _super); 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->class second2 extends 2 > second1 -1->Emitted(72, 5) Source(14, 23) + SourceIndex(3) -2 >Emitted(72, 32) Source(14, 30) + SourceIndex(3) +1->Emitted(73, 5) Source(14, 23) + SourceIndex(3) +2 >Emitted(73, 32) Source(14, 30) + SourceIndex(3) --- >>> function second2() { 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(73, 5) Source(14, 1) + SourceIndex(3) +1 >Emitted(74, 5) Source(14, 1) + SourceIndex(3) --- >>> return _super !== null && _super.apply(this, arguments) || this; >>> } @@ -2845,16 +2882,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^-> 1->class second2 extends second1 { 2 > } -1->Emitted(75, 5) Source(14, 33) + SourceIndex(3) -2 >Emitted(75, 6) Source(14, 34) + SourceIndex(3) +1->Emitted(76, 5) Source(14, 33) + SourceIndex(3) +2 >Emitted(76, 6) Source(14, 34) + SourceIndex(3) --- >>> return second2; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(76, 5) Source(14, 33) + SourceIndex(3) -2 >Emitted(76, 19) Source(14, 34) + SourceIndex(3) +1->Emitted(77, 5) Source(14, 33) + SourceIndex(3) +2 >Emitted(77, 19) Source(14, 34) + SourceIndex(3) --- >>>}(second1)); 1 > @@ -2870,12 +2907,12 @@ sourceFile:../../../second/second_part1.ts 4 > class second2 extends 5 > second1 6 > { } -1 >Emitted(77, 1) Source(14, 33) + SourceIndex(3) -2 >Emitted(77, 2) Source(14, 34) + SourceIndex(3) -3 >Emitted(77, 2) Source(14, 1) + SourceIndex(3) -4 >Emitted(77, 3) Source(14, 23) + SourceIndex(3) -5 >Emitted(77, 10) Source(14, 30) + SourceIndex(3) -6 >Emitted(77, 13) Source(14, 34) + SourceIndex(3) +1 >Emitted(78, 1) Source(14, 33) + SourceIndex(3) +2 >Emitted(78, 2) Source(14, 34) + SourceIndex(3) +3 >Emitted(78, 2) Source(14, 1) + SourceIndex(3) +4 >Emitted(78, 3) Source(14, 23) + SourceIndex(3) +5 >Emitted(78, 10) Source(14, 30) + SourceIndex(3) +6 >Emitted(78, 13) Source(14, 34) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2885,13 +2922,13 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(78, 1) Source(1, 1) + SourceIndex(4) +1->Emitted(79, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(79, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(80, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -2903,8 +2940,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(80, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(80, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(81, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(81, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -2914,9 +2951,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(81, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(81, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(81, 31) Source(2, 5) + SourceIndex(4) +1->Emitted(82, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(82, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(82, 31) Source(2, 5) + SourceIndex(4) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -2936,14 +2973,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(82, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(82, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(82, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(82, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(82, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(82, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(82, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(82, 43) Source(3, 43) + SourceIndex(4) +1->Emitted(83, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(83, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(83, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(83, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(83, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(83, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(83, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(83, 43) Source(3, 43) + SourceIndex(4) --- >>> }; 1 >^^^^ @@ -2952,8 +2989,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(83, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(83, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(84, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(84, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -2961,8 +2998,8 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(84, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(84, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(85, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(85, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > @@ -2978,10 +3015,10 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(85, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(85, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(85, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(85, 6) Source(5, 2) + SourceIndex(4) +1 >Emitted(86, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(86, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(86, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(86, 6) Source(5, 2) + SourceIndex(4) --- >>>function secondsecond_part2Spread() { 1-> @@ -2992,9 +3029,9 @@ sourceFile:../../../second/second_part2.ts > 2 >function 3 > secondsecond_part2Spread -1->Emitted(86, 1) Source(7, 1) + SourceIndex(4) -2 >Emitted(86, 10) Source(7, 10) + SourceIndex(4) -3 >Emitted(86, 34) Source(7, 34) + SourceIndex(4) +1->Emitted(87, 1) Source(7, 1) + SourceIndex(4) +2 >Emitted(87, 10) Source(7, 10) + SourceIndex(4) +3 >Emitted(87, 34) Source(7, 34) + SourceIndex(4) --- >>> var b = []; 1 >^^^^ @@ -3002,8 +3039,8 @@ sourceFile:../../../second/second_part2.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(87, 5) Source(7, 35) + SourceIndex(4) -2 >Emitted(87, 16) Source(7, 49) + SourceIndex(4) +1 >Emitted(88, 5) Source(7, 35) + SourceIndex(4) +2 >Emitted(88, 16) Source(7, 49) + SourceIndex(4) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -3018,20 +3055,20 @@ sourceFile:../../../second/second_part2.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(88, 10) Source(7, 35) + SourceIndex(4) -2 >Emitted(88, 20) Source(7, 49) + SourceIndex(4) -3 >Emitted(88, 22) Source(7, 35) + SourceIndex(4) -4 >Emitted(88, 43) Source(7, 49) + SourceIndex(4) -5 >Emitted(88, 45) Source(7, 35) + SourceIndex(4) -6 >Emitted(88, 49) Source(7, 49) + SourceIndex(4) +1->Emitted(89, 10) Source(7, 35) + SourceIndex(4) +2 >Emitted(89, 20) Source(7, 49) + SourceIndex(4) +3 >Emitted(89, 22) Source(7, 35) + SourceIndex(4) +4 >Emitted(89, 43) Source(7, 49) + SourceIndex(4) +5 >Emitted(89, 45) Source(7, 35) + SourceIndex(4) +6 >Emitted(89, 49) Source(7, 49) + SourceIndex(4) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(89, 9) Source(7, 35) + SourceIndex(4) -2 >Emitted(89, 31) Source(7, 49) + SourceIndex(4) +1 >Emitted(90, 9) Source(7, 35) + SourceIndex(4) +2 >Emitted(90, 31) Source(7, 49) + SourceIndex(4) --- >>> } >>>} @@ -3040,8 +3077,8 @@ sourceFile:../../../second/second_part2.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(91, 1) Source(7, 53) + SourceIndex(4) -2 >Emitted(91, 2) Source(7, 54) + SourceIndex(4) +1 >Emitted(92, 1) Source(7, 53) + SourceIndex(4) +2 >Emitted(92, 2) Source(7, 54) + SourceIndex(4) --- >>>secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); 1-> @@ -3067,22 +3104,23 @@ sourceFile:../../../second/second_part2.ts 9 > 30 10> ] 11> ); -1->Emitted(92, 1) Source(8, 1) + SourceIndex(4) -2 >Emitted(92, 25) Source(8, 25) + SourceIndex(4) -3 >Emitted(92, 49) Source(8, 29) + SourceIndex(4) -4 >Emitted(92, 50) Source(8, 30) + SourceIndex(4) -5 >Emitted(92, 52) Source(8, 32) + SourceIndex(4) -6 >Emitted(92, 54) Source(8, 34) + SourceIndex(4) -7 >Emitted(92, 56) Source(8, 36) + SourceIndex(4) -8 >Emitted(92, 58) Source(8, 38) + SourceIndex(4) -9 >Emitted(92, 60) Source(8, 40) + SourceIndex(4) -10>Emitted(92, 61) Source(8, 41) + SourceIndex(4) -11>Emitted(92, 64) Source(8, 43) + SourceIndex(4) +1->Emitted(93, 1) Source(8, 1) + SourceIndex(4) +2 >Emitted(93, 25) Source(8, 25) + SourceIndex(4) +3 >Emitted(93, 49) Source(8, 29) + SourceIndex(4) +4 >Emitted(93, 50) Source(8, 30) + SourceIndex(4) +5 >Emitted(93, 52) Source(8, 32) + SourceIndex(4) +6 >Emitted(93, 54) Source(8, 34) + SourceIndex(4) +7 >Emitted(93, 56) Source(8, 36) + SourceIndex(4) +8 >Emitted(93, 58) Source(8, 38) + SourceIndex(4) +9 >Emitted(93, 60) Source(8, 40) + SourceIndex(4) +10>Emitted(93, 61) Source(8, 41) + SourceIndex(4) +11>Emitted(93, 64) Source(8, 43) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.js.map >>>var c = new C(); 1 > 2 >^^^^ @@ -3101,14 +3139,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1 >Emitted(93, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(93, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(93, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(93, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(93, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(93, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(93, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(93, 17) Source(1, 17) + SourceIndex(5) +1 >Emitted(95, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(95, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(95, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(95, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(95, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(95, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(95, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(95, 17) Source(1, 17) + SourceIndex(5) --- >>>c.doSomething(); 1-> @@ -3125,12 +3163,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(94, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(94, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(94, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(94, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(94, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(94, 17) Source(2, 17) + SourceIndex(5) +1->Emitted(96, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(96, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(96, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(96, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(96, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(96, 17) Source(2, 17) + SourceIndex(5) --- >>>var third1 = (function () { 1-> @@ -3138,13 +3176,13 @@ sourceFile:../../third_part1.ts 1-> > > -1->Emitted(95, 1) Source(4, 1) + SourceIndex(5) +1->Emitted(97, 1) Source(4, 1) + SourceIndex(5) --- >>> function third1() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(96, 5) Source(4, 1) + SourceIndex(5) +1->Emitted(98, 5) Source(4, 1) + SourceIndex(5) --- >>> } 1->^^^^ @@ -3152,16 +3190,16 @@ sourceFile:../../third_part1.ts 3 > ^^^^^^^^^^^^^^-> 1->class third1 { 2 > } -1->Emitted(97, 5) Source(4, 16) + SourceIndex(5) -2 >Emitted(97, 6) Source(4, 17) + SourceIndex(5) +1->Emitted(99, 5) Source(4, 16) + SourceIndex(5) +2 >Emitted(99, 6) Source(4, 17) + SourceIndex(5) --- >>> return third1; 1->^^^^ 2 > ^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(98, 5) Source(4, 16) + SourceIndex(5) -2 >Emitted(98, 18) Source(4, 17) + SourceIndex(5) +1->Emitted(100, 5) Source(4, 16) + SourceIndex(5) +2 >Emitted(100, 18) Source(4, 17) + SourceIndex(5) --- >>>}()); 1 > @@ -3173,31 +3211,31 @@ sourceFile:../../third_part1.ts 2 >} 3 > 4 > class third1 { } -1 >Emitted(99, 1) Source(4, 16) + SourceIndex(5) -2 >Emitted(99, 2) Source(4, 17) + SourceIndex(5) -3 >Emitted(99, 2) Source(4, 1) + SourceIndex(5) -4 >Emitted(99, 6) Source(4, 17) + SourceIndex(5) +1 >Emitted(101, 1) Source(4, 16) + SourceIndex(5) +2 >Emitted(101, 2) Source(4, 17) + SourceIndex(5) +3 >Emitted(101, 2) Source(4, 1) + SourceIndex(5) +4 >Emitted(101, 6) Source(4, 17) + SourceIndex(5) --- >>>var third2 = (function (_super) { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(100, 1) Source(5, 1) + SourceIndex(5) +1->Emitted(102, 1) Source(5, 1) + SourceIndex(5) --- >>> __extends(third2, _super); 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->class third2 extends 2 > third1 -1->Emitted(101, 5) Source(5, 22) + SourceIndex(5) -2 >Emitted(101, 31) Source(5, 28) + SourceIndex(5) +1->Emitted(103, 5) Source(5, 22) + SourceIndex(5) +2 >Emitted(103, 31) Source(5, 28) + SourceIndex(5) --- >>> function third2() { 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(102, 5) Source(5, 1) + SourceIndex(5) +1 >Emitted(104, 5) Source(5, 1) + SourceIndex(5) --- >>> return _super !== null && _super.apply(this, arguments) || this; >>> } @@ -3206,16 +3244,16 @@ sourceFile:../../third_part1.ts 3 > ^^^^^^^^^^^^^^-> 1->class third2 extends third1 { 2 > } -1->Emitted(104, 5) Source(5, 31) + SourceIndex(5) -2 >Emitted(104, 6) Source(5, 32) + SourceIndex(5) +1->Emitted(106, 5) Source(5, 31) + SourceIndex(5) +2 >Emitted(106, 6) Source(5, 32) + SourceIndex(5) --- >>> return third2; 1->^^^^ 2 > ^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(105, 5) Source(5, 31) + SourceIndex(5) -2 >Emitted(105, 18) Source(5, 32) + SourceIndex(5) +1->Emitted(107, 5) Source(5, 31) + SourceIndex(5) +2 >Emitted(107, 18) Source(5, 32) + SourceIndex(5) --- >>>}(third1)); 1 > @@ -3231,12 +3269,12 @@ sourceFile:../../third_part1.ts 4 > class third2 extends 5 > third1 6 > { } -1 >Emitted(106, 1) Source(5, 31) + SourceIndex(5) -2 >Emitted(106, 2) Source(5, 32) + SourceIndex(5) -3 >Emitted(106, 2) Source(5, 1) + SourceIndex(5) -4 >Emitted(106, 3) Source(5, 22) + SourceIndex(5) -5 >Emitted(106, 9) Source(5, 28) + SourceIndex(5) -6 >Emitted(106, 12) Source(5, 32) + SourceIndex(5) +1 >Emitted(108, 1) Source(5, 31) + SourceIndex(5) +2 >Emitted(108, 2) Source(5, 32) + SourceIndex(5) +3 >Emitted(108, 2) Source(5, 1) + SourceIndex(5) +4 >Emitted(108, 3) Source(5, 22) + SourceIndex(5) +5 >Emitted(108, 9) Source(5, 28) + SourceIndex(5) +6 >Emitted(108, 12) Source(5, 32) + SourceIndex(5) --- >>>function thirdthird_part1Spread() { 1-> @@ -3246,9 +3284,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > thirdthird_part1Spread -1->Emitted(107, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(107, 10) Source(6, 10) + SourceIndex(5) -3 >Emitted(107, 32) Source(6, 32) + SourceIndex(5) +1->Emitted(109, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(109, 10) Source(6, 10) + SourceIndex(5) +3 >Emitted(109, 32) Source(6, 32) + SourceIndex(5) --- >>> var b = []; 1 >^^^^ @@ -3256,8 +3294,8 @@ sourceFile:../../third_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(108, 5) Source(6, 33) + SourceIndex(5) -2 >Emitted(108, 16) Source(6, 47) + SourceIndex(5) +1 >Emitted(110, 5) Source(6, 33) + SourceIndex(5) +2 >Emitted(110, 16) Source(6, 47) + SourceIndex(5) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -3272,20 +3310,20 @@ sourceFile:../../third_part1.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(109, 10) Source(6, 33) + SourceIndex(5) -2 >Emitted(109, 20) Source(6, 47) + SourceIndex(5) -3 >Emitted(109, 22) Source(6, 33) + SourceIndex(5) -4 >Emitted(109, 43) Source(6, 47) + SourceIndex(5) -5 >Emitted(109, 45) Source(6, 33) + SourceIndex(5) -6 >Emitted(109, 49) Source(6, 47) + SourceIndex(5) +1->Emitted(111, 10) Source(6, 33) + SourceIndex(5) +2 >Emitted(111, 20) Source(6, 47) + SourceIndex(5) +3 >Emitted(111, 22) Source(6, 33) + SourceIndex(5) +4 >Emitted(111, 43) Source(6, 47) + SourceIndex(5) +5 >Emitted(111, 45) Source(6, 33) + SourceIndex(5) +6 >Emitted(111, 49) Source(6, 47) + SourceIndex(5) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(110, 9) Source(6, 33) + SourceIndex(5) -2 >Emitted(110, 31) Source(6, 47) + SourceIndex(5) +1 >Emitted(112, 9) Source(6, 33) + SourceIndex(5) +2 >Emitted(112, 31) Source(6, 47) + SourceIndex(5) --- >>> } >>>} @@ -3294,8 +3332,8 @@ sourceFile:../../third_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(112, 1) Source(6, 51) + SourceIndex(5) -2 >Emitted(112, 2) Source(6, 52) + SourceIndex(5) +1 >Emitted(114, 1) Source(6, 51) + SourceIndex(5) +2 >Emitted(114, 2) Source(6, 52) + SourceIndex(5) --- >>>thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); 1-> @@ -3321,17 +3359,17 @@ sourceFile:../../third_part1.ts 9 > 30 10> ] 11> ); -1->Emitted(113, 1) Source(7, 1) + SourceIndex(5) -2 >Emitted(113, 23) Source(7, 23) + SourceIndex(5) -3 >Emitted(113, 47) Source(7, 27) + SourceIndex(5) -4 >Emitted(113, 48) Source(7, 28) + SourceIndex(5) -5 >Emitted(113, 50) Source(7, 30) + SourceIndex(5) -6 >Emitted(113, 52) Source(7, 32) + SourceIndex(5) -7 >Emitted(113, 54) Source(7, 34) + SourceIndex(5) -8 >Emitted(113, 56) Source(7, 36) + SourceIndex(5) -9 >Emitted(113, 58) Source(7, 38) + SourceIndex(5) -10>Emitted(113, 59) Source(7, 39) + SourceIndex(5) -11>Emitted(113, 62) Source(7, 41) + SourceIndex(5) +1->Emitted(115, 1) Source(7, 1) + SourceIndex(5) +2 >Emitted(115, 23) Source(7, 23) + SourceIndex(5) +3 >Emitted(115, 47) Source(7, 27) + SourceIndex(5) +4 >Emitted(115, 48) Source(7, 28) + SourceIndex(5) +5 >Emitted(115, 50) Source(7, 30) + SourceIndex(5) +6 >Emitted(115, 52) Source(7, 32) + SourceIndex(5) +7 >Emitted(115, 54) Source(7, 34) + SourceIndex(5) +8 >Emitted(115, 56) Source(7, 36) + SourceIndex(5) +9 >Emitted(115, 58) Source(7, 38) + SourceIndex(5) +10>Emitted(115, 59) Source(7, 39) + SourceIndex(5) +11>Emitted(115, 62) Source(7, 41) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map diff --git a/tests/baselines/reference/outFile-multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/outFile-multiple-emitHelpers-in-different-projects.js index c449394503d..1ac30513e08 100644 --- a/tests/baselines/reference/outFile-multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/outFile-multiple-emitHelpers-in-different-projects.js @@ -11,6 +11,11 @@ "pos": 599, "end": 1186, "kind": "text" + }, + { + "pos": 1186, + "end": 1227, + "kind": "sourceMapUrl" } ], "dts": [ @@ -18,6 +23,11 @@ "pos": 0, "end": 172, "kind": "text" + }, + { + "pos": 172, + "end": 215, + "kind": "sourceMapUrl" } ] } @@ -617,6 +627,11 @@ sourceFile:../second/second_part2.ts "pos": 678, "end": 1000, "kind": "text" + }, + { + "pos": 1000, + "end": 1040, + "kind": "sourceMapUrl" } ], "dts": [ @@ -624,6 +639,11 @@ sourceFile:../second/second_part2.ts "pos": 0, "end": 221, "kind": "text" + }, + { + "pos": 221, + "end": 263, + "kind": "sourceMapUrl" } ] } @@ -1170,39 +1190,49 @@ class second2 extends second1 { } }, { "pos": 1277, - "end": 1599, + "end": 1639, "kind": "prepend", "fileName": "/src/first/bin/first-output.js" }, { - "pos": 1599, - "end": 2186, + "pos": 1641, + "end": 2269, "kind": "prepend", "fileName": "/src/2/second-output.js" }, { - "pos": 2186, - "end": 2434, + "pos": 2271, + "end": 2519, "kind": "text" + }, + { + "pos": 2519, + "end": 2559, + "kind": "sourceMapUrl" } ], "dts": [ { "pos": 0, - "end": 221, + "end": 263, "kind": "prepend", "fileName": "/src/first/bin/first-output.d.ts" }, { - "pos": 221, - "end": 393, + "pos": 265, + "end": 480, "kind": "prepend", "fileName": "/src/2/second-output.d.ts" }, { - "pos": 393, - "end": 476, + "pos": 482, + "end": 565, "kind": "text" + }, + { + "pos": 565, + "end": 607, + "kind": "sourceMapUrl" } ] } @@ -1217,6 +1247,7 @@ interface NoJsForHereEither { } declare function f(): string; declare function firstfirst_part3Spread(...b: number[]): void; +//# sourceMappingURL=first-output.d.ts.map declare namespace N { } declare namespace N { @@ -1228,12 +1259,13 @@ declare class second2 extends second1 { declare class C { doSomething(): void; } +//# sourceMappingURL=second-output.d.ts.map declare var c: C; declare function thirdthird_part1Spread(...b: number[]): void; //# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACRD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACHnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAAI;AACjB,cAAM,OAAQ,SAAQ,OAAO;CAAI;ACbjC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAGhB,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} +{"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;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;;ACHnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,cAAM,OAAO;CAAI;AACjB,cAAM,OAAQ,SAAQ,OAAO;CAAI;ACbjC,cAAM,CAAC;IACH,WAAW;CAGd;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAGhB,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -1397,6 +1429,7 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.d.ts.map >>>declare namespace N { 1 > 2 >^^^^^^^^^^^^^^^^^^ @@ -1406,10 +1439,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(11, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(1, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -1417,7 +1450,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(12, 2) Source(3, 2) + SourceIndex(2) --- >>>declare namespace N { 1-> @@ -1430,10 +1463,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(13, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(13, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(13, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(13, 21) Source(5, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -1445,7 +1478,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) +1 >Emitted(14, 2) Source(11, 2) + SourceIndex(2) --- >>>declare class second1 { 1-> @@ -1456,15 +1489,15 @@ sourceFile:../../../second/second_part1.ts > 2 >class 3 > second1 -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) +1->Emitted(15, 1) Source(13, 1) + SourceIndex(2) +2 >Emitted(15, 15) Source(13, 7) + SourceIndex(2) +3 >Emitted(15, 22) Source(13, 14) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(15, 2) Source(13, 18) + SourceIndex(2) +1 >Emitted(16, 2) Source(13, 18) + SourceIndex(2) --- >>>declare class second2 extends second1 { 1-> @@ -1478,17 +1511,17 @@ sourceFile:../../../second/second_part1.ts 3 > second2 4 > extends 5 > second1 -1->Emitted(16, 1) Source(14, 1) + SourceIndex(2) -2 >Emitted(16, 15) Source(14, 7) + SourceIndex(2) -3 >Emitted(16, 22) Source(14, 15) + SourceIndex(2) -4 >Emitted(16, 31) Source(14, 23) + SourceIndex(2) -5 >Emitted(16, 38) Source(14, 30) + SourceIndex(2) +1->Emitted(17, 1) Source(14, 1) + SourceIndex(2) +2 >Emitted(17, 15) Source(14, 7) + SourceIndex(2) +3 >Emitted(17, 22) Source(14, 15) + SourceIndex(2) +4 >Emitted(17, 31) Source(14, 23) + SourceIndex(2) +5 >Emitted(17, 38) Source(14, 30) + SourceIndex(2) --- >>>} 1 >^ 2 > ^^^^^^^^^^^^^^^^^-> 1 > { } -1 >Emitted(17, 2) Source(14, 34) + SourceIndex(2) +1 >Emitted(18, 2) Source(14, 34) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1502,9 +1535,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >class 3 > C -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) +1->Emitted(19, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(19, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(19, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -1512,22 +1545,23 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(19, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(19, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(20, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(20, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >() { > console.log("something got done"); > } >} -1 >Emitted(20, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(21, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.d.ts.map >>>declare var c: C; 1-> 2 >^^^^^^^^ @@ -1542,12 +1576,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(21, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(21, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(21, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(21, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(21, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(21, 18) Source(1, 17) + SourceIndex(4) +1->Emitted(23, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(23, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(23, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(23, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(23, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(23, 18) Source(1, 17) + SourceIndex(4) --- >>>declare function thirdthird_part1Spread(...b: number[]): void; 1-> @@ -1571,15 +1605,15 @@ sourceFile:../../third_part1.ts 7 > number 8 > [] 9 > ) { } -1->Emitted(22, 1) Source(4, 1) + SourceIndex(4) -2 >Emitted(22, 18) Source(4, 10) + SourceIndex(4) -3 >Emitted(22, 40) Source(4, 32) + SourceIndex(4) -4 >Emitted(22, 41) Source(4, 33) + SourceIndex(4) -5 >Emitted(22, 44) Source(4, 36) + SourceIndex(4) -6 >Emitted(22, 47) Source(4, 39) + SourceIndex(4) -7 >Emitted(22, 53) Source(4, 45) + SourceIndex(4) -8 >Emitted(22, 55) Source(4, 47) + SourceIndex(4) -9 >Emitted(22, 63) Source(4, 52) + SourceIndex(4) +1->Emitted(24, 1) Source(4, 1) + SourceIndex(4) +2 >Emitted(24, 18) Source(4, 10) + SourceIndex(4) +3 >Emitted(24, 40) Source(4, 32) + SourceIndex(4) +4 >Emitted(24, 41) Source(4, 33) + SourceIndex(4) +5 >Emitted(24, 44) Source(4, 36) + SourceIndex(4) +6 >Emitted(24, 47) Source(4, 39) + SourceIndex(4) +7 >Emitted(24, 53) Source(4, 45) + SourceIndex(4) +8 >Emitted(24, 55) Source(4, 47) + SourceIndex(4) +9 >Emitted(24, 63) Source(4, 52) + SourceIndex(4) --- >>>//# sourceMappingURL=third-output.d.ts.map @@ -1630,6 +1664,7 @@ function firstfirst_part3Spread() { } } firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +//# sourceMappingURL=first-output.js.map var N; (function (N) { function f() { @@ -1657,6 +1692,7 @@ var C = (function () { }; return C; }()); +//# sourceMappingURL=second-output.js.map var c = new C(); c.doSomething(); function thirdthird_part1Spread() { @@ -1669,7 +1705,7 @@ thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACAxC,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IAAA;IAAgB,CAAC;IAAD,cAAC;AAAD,CAAC,AAAjB,IAAiB;AACjB;IAAsB,2BAAO;IAA7B;;IAAgC,CAAC;IAAD,cAAC;AAAD,CAAC,AAAjC,CAAsB,OAAO,GAAI;ACbjC;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAEhB,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;ACAxC,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED;IAAA;IAAgB,CAAC;IAAD,cAAC;AAAD,CAAC,AAAjB,IAAiB;AACjB;IAAsB,2BAAO;IAA7B;;IAAgC,CAAC;IAAD,cAAC;AAAD,CAAC,AAAjC,CAAsB,OAAO,GAAI;ACbjC;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAEhB,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -1945,6 +1981,7 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.js.map >>>var N; 1 > 2 >^^^^ @@ -1965,10 +2002,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1 >Emitted(47, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(47, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(47, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(47, 7) Source(11, 2) + SourceIndex(3) +1 >Emitted(48, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(48, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(48, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(48, 7) Source(11, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -1978,9 +2015,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(48, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(48, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(48, 13) Source(5, 12) + SourceIndex(3) +1->Emitted(49, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(49, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(49, 13) Source(5, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -1991,9 +2028,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(49, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(49, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(49, 15) Source(6, 15) + SourceIndex(3) +1->Emitted(50, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(50, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(50, 15) Source(6, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -2013,14 +2050,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(50, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(50, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(50, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(50, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(50, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(50, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(50, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(50, 32) Source(7, 32) + SourceIndex(3) +1->Emitted(51, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(51, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(51, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(51, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(51, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(51, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(51, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(51, 32) Source(7, 32) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -2029,8 +2066,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(51, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(51, 6) Source(8, 6) + SourceIndex(3) +1 >Emitted(52, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(52, 6) Source(8, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -2044,10 +2081,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(52, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(52, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(52, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(52, 9) Source(10, 9) + SourceIndex(3) +1->Emitted(53, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(53, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(53, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(53, 9) Source(10, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -2072,13 +2109,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(53, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(53, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(53, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(53, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(53, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(53, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(53, 19) Source(11, 2) + SourceIndex(3) +1->Emitted(54, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(54, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(54, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(54, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(54, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(54, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(54, 19) Source(11, 2) + SourceIndex(3) --- >>>var second1 = (function () { 1-> @@ -2086,13 +2123,13 @@ sourceFile:../../../second/second_part1.ts 1-> > > -1->Emitted(54, 1) Source(13, 1) + SourceIndex(3) +1->Emitted(55, 1) Source(13, 1) + SourceIndex(3) --- >>> function second1() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(55, 5) Source(13, 1) + SourceIndex(3) +1->Emitted(56, 5) Source(13, 1) + SourceIndex(3) --- >>> } 1->^^^^ @@ -2100,16 +2137,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^-> 1->class second1 { 2 > } -1->Emitted(56, 5) Source(13, 17) + SourceIndex(3) -2 >Emitted(56, 6) Source(13, 18) + SourceIndex(3) +1->Emitted(57, 5) Source(13, 17) + SourceIndex(3) +2 >Emitted(57, 6) Source(13, 18) + SourceIndex(3) --- >>> return second1; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(57, 5) Source(13, 17) + SourceIndex(3) -2 >Emitted(57, 19) Source(13, 18) + SourceIndex(3) +1->Emitted(58, 5) Source(13, 17) + SourceIndex(3) +2 >Emitted(58, 19) Source(13, 18) + SourceIndex(3) --- >>>}()); 1 > @@ -2121,31 +2158,31 @@ sourceFile:../../../second/second_part1.ts 2 >} 3 > 4 > class second1 { } -1 >Emitted(58, 1) Source(13, 17) + SourceIndex(3) -2 >Emitted(58, 2) Source(13, 18) + SourceIndex(3) -3 >Emitted(58, 2) Source(13, 1) + SourceIndex(3) -4 >Emitted(58, 6) Source(13, 18) + SourceIndex(3) +1 >Emitted(59, 1) Source(13, 17) + SourceIndex(3) +2 >Emitted(59, 2) Source(13, 18) + SourceIndex(3) +3 >Emitted(59, 2) Source(13, 1) + SourceIndex(3) +4 >Emitted(59, 6) Source(13, 18) + SourceIndex(3) --- >>>var second2 = (function (_super) { 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > -1->Emitted(59, 1) Source(14, 1) + SourceIndex(3) +1->Emitted(60, 1) Source(14, 1) + SourceIndex(3) --- >>> __extends(second2, _super); 1->^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1->class second2 extends 2 > second1 -1->Emitted(60, 5) Source(14, 23) + SourceIndex(3) -2 >Emitted(60, 32) Source(14, 30) + SourceIndex(3) +1->Emitted(61, 5) Source(14, 23) + SourceIndex(3) +2 >Emitted(61, 32) Source(14, 30) + SourceIndex(3) --- >>> function second2() { 1 >^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(61, 5) Source(14, 1) + SourceIndex(3) +1 >Emitted(62, 5) Source(14, 1) + SourceIndex(3) --- >>> return _super !== null && _super.apply(this, arguments) || this; >>> } @@ -2154,16 +2191,16 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^-> 1->class second2 extends second1 { 2 > } -1->Emitted(63, 5) Source(14, 33) + SourceIndex(3) -2 >Emitted(63, 6) Source(14, 34) + SourceIndex(3) +1->Emitted(64, 5) Source(14, 33) + SourceIndex(3) +2 >Emitted(64, 6) Source(14, 34) + SourceIndex(3) --- >>> return second2; 1->^^^^ 2 > ^^^^^^^^^^^^^^ 1-> 2 > } -1->Emitted(64, 5) Source(14, 33) + SourceIndex(3) -2 >Emitted(64, 19) Source(14, 34) + SourceIndex(3) +1->Emitted(65, 5) Source(14, 33) + SourceIndex(3) +2 >Emitted(65, 19) Source(14, 34) + SourceIndex(3) --- >>>}(second1)); 1 > @@ -2179,12 +2216,12 @@ sourceFile:../../../second/second_part1.ts 4 > class second2 extends 5 > second1 6 > { } -1 >Emitted(65, 1) Source(14, 33) + SourceIndex(3) -2 >Emitted(65, 2) Source(14, 34) + SourceIndex(3) -3 >Emitted(65, 2) Source(14, 1) + SourceIndex(3) -4 >Emitted(65, 3) Source(14, 23) + SourceIndex(3) -5 >Emitted(65, 10) Source(14, 30) + SourceIndex(3) -6 >Emitted(65, 13) Source(14, 34) + SourceIndex(3) +1 >Emitted(66, 1) Source(14, 33) + SourceIndex(3) +2 >Emitted(66, 2) Source(14, 34) + SourceIndex(3) +3 >Emitted(66, 2) Source(14, 1) + SourceIndex(3) +4 >Emitted(66, 3) Source(14, 23) + SourceIndex(3) +5 >Emitted(66, 10) Source(14, 30) + SourceIndex(3) +6 >Emitted(66, 13) Source(14, 34) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2194,13 +2231,13 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(66, 1) Source(1, 1) + SourceIndex(4) +1->Emitted(67, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(67, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(68, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -2212,8 +2249,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(68, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(68, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(69, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(69, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -2223,9 +2260,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(69, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(69, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(69, 31) Source(2, 5) + SourceIndex(4) +1->Emitted(70, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(70, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(70, 31) Source(2, 5) + SourceIndex(4) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -2245,14 +2282,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(70, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(70, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(70, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(70, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(70, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(70, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(70, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(70, 43) Source(3, 43) + SourceIndex(4) +1->Emitted(71, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(71, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(71, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(71, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(71, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(71, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(71, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(71, 43) Source(3, 43) + SourceIndex(4) --- >>> }; 1 >^^^^ @@ -2261,8 +2298,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(71, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(71, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(72, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(72, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -2270,15 +2307,15 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(72, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(72, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(73, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(73, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >} 3 > @@ -2287,15 +2324,16 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(73, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(73, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(73, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(73, 6) Source(5, 2) + SourceIndex(4) +1 >Emitted(74, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(74, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(74, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(74, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.js.map >>>var c = new C(); 1-> 2 >^^^^ @@ -2314,14 +2352,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1->Emitted(74, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(74, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(74, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(74, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(74, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(74, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(74, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(74, 17) Source(1, 17) + SourceIndex(5) +1->Emitted(76, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(76, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(76, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(76, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(76, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(76, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(76, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(76, 17) Source(1, 17) + SourceIndex(5) --- >>>c.doSomething(); 1-> @@ -2338,12 +2376,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(75, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(75, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(75, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(75, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(75, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(75, 17) Source(2, 17) + SourceIndex(5) +1->Emitted(77, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(77, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(77, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(77, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(77, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(77, 17) Source(2, 17) + SourceIndex(5) --- >>>function thirdthird_part1Spread() { 1-> @@ -2354,9 +2392,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > thirdthird_part1Spread -1->Emitted(76, 1) Source(4, 1) + SourceIndex(5) -2 >Emitted(76, 10) Source(4, 10) + SourceIndex(5) -3 >Emitted(76, 32) Source(4, 32) + SourceIndex(5) +1->Emitted(78, 1) Source(4, 1) + SourceIndex(5) +2 >Emitted(78, 10) Source(4, 10) + SourceIndex(5) +3 >Emitted(78, 32) Source(4, 32) + SourceIndex(5) --- >>> var b = []; 1 >^^^^ @@ -2364,8 +2402,8 @@ sourceFile:../../third_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(77, 5) Source(4, 33) + SourceIndex(5) -2 >Emitted(77, 16) Source(4, 47) + SourceIndex(5) +1 >Emitted(79, 5) Source(4, 33) + SourceIndex(5) +2 >Emitted(79, 16) Source(4, 47) + SourceIndex(5) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -2380,20 +2418,20 @@ sourceFile:../../third_part1.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(78, 10) Source(4, 33) + SourceIndex(5) -2 >Emitted(78, 20) Source(4, 47) + SourceIndex(5) -3 >Emitted(78, 22) Source(4, 33) + SourceIndex(5) -4 >Emitted(78, 43) Source(4, 47) + SourceIndex(5) -5 >Emitted(78, 45) Source(4, 33) + SourceIndex(5) -6 >Emitted(78, 49) Source(4, 47) + SourceIndex(5) +1->Emitted(80, 10) Source(4, 33) + SourceIndex(5) +2 >Emitted(80, 20) Source(4, 47) + SourceIndex(5) +3 >Emitted(80, 22) Source(4, 33) + SourceIndex(5) +4 >Emitted(80, 43) Source(4, 47) + SourceIndex(5) +5 >Emitted(80, 45) Source(4, 33) + SourceIndex(5) +6 >Emitted(80, 49) Source(4, 47) + SourceIndex(5) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(79, 9) Source(4, 33) + SourceIndex(5) -2 >Emitted(79, 31) Source(4, 47) + SourceIndex(5) +1 >Emitted(81, 9) Source(4, 33) + SourceIndex(5) +2 >Emitted(81, 31) Source(4, 47) + SourceIndex(5) --- >>> } >>>} @@ -2402,8 +2440,8 @@ sourceFile:../../third_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(81, 1) Source(4, 51) + SourceIndex(5) -2 >Emitted(81, 2) Source(4, 52) + SourceIndex(5) +1 >Emitted(83, 1) Source(4, 51) + SourceIndex(5) +2 >Emitted(83, 2) Source(4, 52) + SourceIndex(5) --- >>>thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); 1-> @@ -2429,17 +2467,17 @@ sourceFile:../../third_part1.ts 9 > 30 10> ] 11> ); -1->Emitted(82, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(82, 23) Source(5, 23) + SourceIndex(5) -3 >Emitted(82, 47) Source(5, 27) + SourceIndex(5) -4 >Emitted(82, 48) Source(5, 28) + SourceIndex(5) -5 >Emitted(82, 50) Source(5, 30) + SourceIndex(5) -6 >Emitted(82, 52) Source(5, 32) + SourceIndex(5) -7 >Emitted(82, 54) Source(5, 34) + SourceIndex(5) -8 >Emitted(82, 56) Source(5, 36) + SourceIndex(5) -9 >Emitted(82, 58) Source(5, 38) + SourceIndex(5) -10>Emitted(82, 59) Source(5, 39) + SourceIndex(5) -11>Emitted(82, 62) Source(5, 41) + SourceIndex(5) +1->Emitted(84, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(84, 23) Source(5, 23) + SourceIndex(5) +3 >Emitted(84, 47) Source(5, 27) + SourceIndex(5) +4 >Emitted(84, 48) Source(5, 28) + SourceIndex(5) +5 >Emitted(84, 50) Source(5, 30) + SourceIndex(5) +6 >Emitted(84, 52) Source(5, 32) + SourceIndex(5) +7 >Emitted(84, 54) Source(5, 34) + SourceIndex(5) +8 >Emitted(84, 56) Source(5, 36) + SourceIndex(5) +9 >Emitted(84, 58) Source(5, 38) + SourceIndex(5) +10>Emitted(84, 59) Source(5, 39) + SourceIndex(5) +11>Emitted(84, 62) Source(5, 41) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map diff --git a/tests/baselines/reference/outFile-multiple-prologues-in-all-projects.js b/tests/baselines/reference/outFile-multiple-prologues-in-all-projects.js index 458f0749e66..0c1c3d734d4 100644 --- a/tests/baselines/reference/outFile-multiple-prologues-in-all-projects.js +++ b/tests/baselines/reference/outFile-multiple-prologues-in-all-projects.js @@ -23,6 +23,11 @@ "pos": 46, "end": 331, "kind": "text" + }, + { + "pos": 331, + "end": 372, + "kind": "sourceMapUrl" } ], "dts": [ @@ -30,6 +35,11 @@ "pos": 0, "end": 100, "kind": "text" + }, + { + "pos": 100, + "end": 143, + "kind": "sourceMapUrl" } ] } @@ -477,6 +487,11 @@ sourceFile:../second/second_part2.ts "pos": 30, "end": 140, "kind": "text" + }, + { + "pos": 140, + "end": 180, + "kind": "sourceMapUrl" } ], "dts": [ @@ -484,6 +499,11 @@ sourceFile:../second/second_part2.ts "pos": 0, "end": 157, "kind": "text" + }, + { + "pos": 157, + "end": 199, + "kind": "sourceMapUrl" } ] } @@ -913,39 +933,49 @@ class C { }, { "pos": 62, - "end": 172, + "end": 212, "kind": "prepend", "fileName": "/src/first/bin/first-output.js" }, { - "pos": 172, - "end": 457, + "pos": 214, + "end": 540, "kind": "prepend", "fileName": "/src/2/second-output.js" }, { - "pos": 457, - "end": 493, + "pos": 542, + "end": 578, "kind": "text" + }, + { + "pos": 578, + "end": 618, + "kind": "sourceMapUrl" } ], "dts": [ { "pos": 0, - "end": 157, + "end": 199, "kind": "prepend", "fileName": "/src/first/bin/first-output.d.ts" }, { - "pos": 157, - "end": 257, + "pos": 201, + "end": 344, "kind": "prepend", "fileName": "/src/2/second-output.d.ts" }, { - "pos": 257, - "end": 276, + "pos": 346, + "end": 365, "kind": "text" + }, + { + "pos": 365, + "end": 407, + "kind": "sourceMapUrl" } ] } @@ -959,6 +989,7 @@ interface NoJsForHereEither { none: any; } declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map declare namespace N { } declare namespace N { @@ -966,11 +997,12 @@ declare namespace N { 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":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,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":"AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -1089,6 +1121,7 @@ sourceFile:../../../first/first_part3.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^-> 1-> 2 >function 3 > f @@ -1104,20 +1137,21 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.d.ts.map >>>declare namespace N { -1 > +1-> 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1 >"myPrologue" +1->"myPrologue" > 2 >namespace 3 > N 4 > -1 >Emitted(9, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(2, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(2, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(2, 13) + SourceIndex(2) +1->Emitted(10, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(10, 19) Source(2, 11) + SourceIndex(2) +3 >Emitted(10, 20) Source(2, 12) + SourceIndex(2) +4 >Emitted(10, 21) Source(2, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -1125,7 +1159,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) +1 >Emitted(11, 2) Source(4, 2) + SourceIndex(2) --- >>>declare namespace N { 1-> @@ -1138,10 +1172,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -1->Emitted(11, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(6, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(6, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(6, 13) + SourceIndex(2) +1->Emitted(12, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(6, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(6, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(6, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -1153,7 +1187,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) +1 >Emitted(13, 2) Source(12, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1168,9 +1202,9 @@ sourceFile:../../../second/second_part2.ts > 2 >class 3 > C -1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(2, 8) + SourceIndex(3) +1->Emitted(14, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(2, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(2, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -1178,22 +1212,23 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(3, 16) + SourceIndex(3) +1->Emitted(15, 5) Source(3, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(3, 16) + SourceIndex(3) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >() { > console.log("something got done"); > } >} -1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) +1 >Emitted(16, 2) Source(6, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.d.ts.map >>>declare var c: C; 1-> 2 >^^^^^^^^ @@ -1210,12 +1245,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(16, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(3, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(3, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(3, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(3, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(3, 17) + SourceIndex(4) +1->Emitted(18, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(18, 9) Source(3, 1) + SourceIndex(4) +3 >Emitted(18, 13) Source(3, 5) + SourceIndex(4) +4 >Emitted(18, 14) Source(3, 6) + SourceIndex(4) +5 >Emitted(18, 17) Source(3, 16) + SourceIndex(4) +6 >Emitted(18, 18) Source(3, 17) + SourceIndex(4) --- >>>//# sourceMappingURL=third-output.d.ts.map @@ -1230,6 +1265,7 @@ console.log(f()); function f() { return "JS does hoists"; } +//# sourceMappingURL=first-output.js.map var N; (function (N) { function f() { @@ -1245,12 +1281,13 @@ var C = (function () { }; return C; }()); +//# sourceMappingURL=second-output.js.map var c = new C(); c.doSomething(); //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part2.ts","../../third_part1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../second/second_part2.ts","../../third_part1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACAd,aAAa,CAAC;AFKd,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AGXf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AJVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -1437,7 +1474,7 @@ sourceFile:../../../first/first_part3.ts >>>} 1 > 2 >^ -3 > ^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -1448,6 +1485,7 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.js.map >>>var N; 1-> 2 >^^^^ @@ -1469,10 +1507,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(11, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(11, 5) Source(6, 11) + SourceIndex(5) -3 >Emitted(11, 6) Source(6, 12) + SourceIndex(5) -4 >Emitted(11, 7) Source(12, 2) + SourceIndex(5) +1->Emitted(12, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(12, 5) Source(6, 11) + SourceIndex(5) +3 >Emitted(12, 6) Source(6, 12) + SourceIndex(5) +4 >Emitted(12, 7) Source(12, 2) + SourceIndex(5) --- >>>(function (N) { 1-> @@ -1482,9 +1520,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(12, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(12, 12) Source(6, 11) + SourceIndex(5) -3 >Emitted(12, 13) Source(6, 12) + SourceIndex(5) +1->Emitted(13, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(13, 12) Source(6, 11) + SourceIndex(5) +3 >Emitted(13, 13) Source(6, 12) + SourceIndex(5) --- >>> function f() { 1->^^^^ @@ -1495,9 +1533,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(13, 5) Source(7, 5) + SourceIndex(5) -2 >Emitted(13, 14) Source(7, 14) + SourceIndex(5) -3 >Emitted(13, 15) Source(7, 15) + SourceIndex(5) +1->Emitted(14, 5) Source(7, 5) + SourceIndex(5) +2 >Emitted(14, 14) Source(7, 14) + SourceIndex(5) +3 >Emitted(14, 15) Source(7, 15) + SourceIndex(5) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -1517,14 +1555,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(14, 9) Source(8, 9) + SourceIndex(5) -2 >Emitted(14, 16) Source(8, 16) + SourceIndex(5) -3 >Emitted(14, 17) Source(8, 17) + SourceIndex(5) -4 >Emitted(14, 20) Source(8, 20) + SourceIndex(5) -5 >Emitted(14, 21) Source(8, 21) + SourceIndex(5) -6 >Emitted(14, 30) Source(8, 30) + SourceIndex(5) -7 >Emitted(14, 31) Source(8, 31) + SourceIndex(5) -8 >Emitted(14, 32) Source(8, 32) + SourceIndex(5) +1->Emitted(15, 9) Source(8, 9) + SourceIndex(5) +2 >Emitted(15, 16) Source(8, 16) + SourceIndex(5) +3 >Emitted(15, 17) Source(8, 17) + SourceIndex(5) +4 >Emitted(15, 20) Source(8, 20) + SourceIndex(5) +5 >Emitted(15, 21) Source(8, 21) + SourceIndex(5) +6 >Emitted(15, 30) Source(8, 30) + SourceIndex(5) +7 >Emitted(15, 31) Source(8, 31) + SourceIndex(5) +8 >Emitted(15, 32) Source(8, 32) + SourceIndex(5) --- >>> } 1 >^^^^ @@ -1533,8 +1571,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(15, 5) Source(9, 5) + SourceIndex(5) -2 >Emitted(15, 6) Source(9, 6) + SourceIndex(5) +1 >Emitted(16, 5) Source(9, 5) + SourceIndex(5) +2 >Emitted(16, 6) Source(9, 6) + SourceIndex(5) --- >>> f(); 1->^^^^ @@ -1548,10 +1586,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(16, 5) Source(11, 5) + SourceIndex(5) -2 >Emitted(16, 6) Source(11, 6) + SourceIndex(5) -3 >Emitted(16, 8) Source(11, 8) + SourceIndex(5) -4 >Emitted(16, 9) Source(11, 9) + SourceIndex(5) +1->Emitted(17, 5) Source(11, 5) + SourceIndex(5) +2 >Emitted(17, 6) Source(11, 6) + SourceIndex(5) +3 >Emitted(17, 8) Source(11, 8) + SourceIndex(5) +4 >Emitted(17, 9) Source(11, 9) + SourceIndex(5) --- >>>})(N || (N = {})); 1-> @@ -1576,13 +1614,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(17, 1) Source(12, 1) + SourceIndex(5) -2 >Emitted(17, 2) Source(12, 2) + SourceIndex(5) -3 >Emitted(17, 4) Source(6, 11) + SourceIndex(5) -4 >Emitted(17, 5) Source(6, 12) + SourceIndex(5) -5 >Emitted(17, 10) Source(6, 11) + SourceIndex(5) -6 >Emitted(17, 11) Source(6, 12) + SourceIndex(5) -7 >Emitted(17, 19) Source(12, 2) + SourceIndex(5) +1->Emitted(18, 1) Source(12, 1) + SourceIndex(5) +2 >Emitted(18, 2) Source(12, 2) + SourceIndex(5) +3 >Emitted(18, 4) Source(6, 11) + SourceIndex(5) +4 >Emitted(18, 5) Source(6, 12) + SourceIndex(5) +5 >Emitted(18, 10) Source(6, 11) + SourceIndex(5) +6 >Emitted(18, 11) Source(6, 12) + SourceIndex(5) +7 >Emitted(18, 19) Source(12, 2) + SourceIndex(5) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1593,13 +1631,13 @@ sourceFile:../../../second/second_part2.ts 2 >^^^^^^^^^^^^^^^^^^^-> 1->"myPrologue2"; > -1->Emitted(18, 1) Source(2, 1) + SourceIndex(1) +1->Emitted(19, 1) Source(2, 1) + SourceIndex(1) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(19, 5) Source(2, 1) + SourceIndex(1) +1->Emitted(20, 5) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -1611,8 +1649,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(20, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(20, 6) Source(6, 2) + SourceIndex(1) +1->Emitted(21, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(21, 6) Source(6, 2) + SourceIndex(1) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -1622,9 +1660,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(21, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(21, 28) Source(3, 16) + SourceIndex(1) -3 >Emitted(21, 31) Source(3, 5) + SourceIndex(1) +1->Emitted(22, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(22, 28) Source(3, 16) + SourceIndex(1) +3 >Emitted(22, 31) Source(3, 5) + SourceIndex(1) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -1644,14 +1682,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(22, 9) Source(4, 9) + SourceIndex(1) -2 >Emitted(22, 16) Source(4, 16) + SourceIndex(1) -3 >Emitted(22, 17) Source(4, 17) + SourceIndex(1) -4 >Emitted(22, 20) Source(4, 20) + SourceIndex(1) -5 >Emitted(22, 21) Source(4, 21) + SourceIndex(1) -6 >Emitted(22, 41) Source(4, 41) + SourceIndex(1) -7 >Emitted(22, 42) Source(4, 42) + SourceIndex(1) -8 >Emitted(22, 43) Source(4, 43) + SourceIndex(1) +1->Emitted(23, 9) Source(4, 9) + SourceIndex(1) +2 >Emitted(23, 16) Source(4, 16) + SourceIndex(1) +3 >Emitted(23, 17) Source(4, 17) + SourceIndex(1) +4 >Emitted(23, 20) Source(4, 20) + SourceIndex(1) +5 >Emitted(23, 21) Source(4, 21) + SourceIndex(1) +6 >Emitted(23, 41) Source(4, 41) + SourceIndex(1) +7 >Emitted(23, 42) Source(4, 42) + SourceIndex(1) +8 >Emitted(23, 43) Source(4, 43) + SourceIndex(1) --- >>> }; 1 >^^^^ @@ -1660,8 +1698,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(5, 5) + SourceIndex(1) -2 >Emitted(23, 6) Source(5, 6) + SourceIndex(1) +1 >Emitted(24, 5) Source(5, 5) + SourceIndex(1) +2 >Emitted(24, 6) Source(5, 6) + SourceIndex(1) --- >>> return C; 1->^^^^ @@ -1669,15 +1707,15 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(24, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(24, 13) Source(6, 2) + SourceIndex(1) +1->Emitted(25, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(25, 13) Source(6, 2) + SourceIndex(1) --- >>>}()); 1 > 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >} 3 > @@ -1686,15 +1724,16 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(25, 1) Source(6, 1) + SourceIndex(1) -2 >Emitted(25, 2) Source(6, 2) + SourceIndex(1) -3 >Emitted(25, 2) Source(2, 1) + SourceIndex(1) -4 >Emitted(25, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(26, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(26, 2) Source(6, 2) + SourceIndex(1) +3 >Emitted(26, 2) Source(2, 1) + SourceIndex(1) +4 >Emitted(26, 6) Source(6, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.js.map >>>var c = new C(); 1-> 2 >^^^^ @@ -1715,14 +1754,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1->Emitted(26, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(26, 5) Source(3, 5) + SourceIndex(2) -3 >Emitted(26, 6) Source(3, 6) + SourceIndex(2) -4 >Emitted(26, 9) Source(3, 9) + SourceIndex(2) -5 >Emitted(26, 13) Source(3, 13) + SourceIndex(2) -6 >Emitted(26, 14) Source(3, 14) + SourceIndex(2) -7 >Emitted(26, 16) Source(3, 16) + SourceIndex(2) -8 >Emitted(26, 17) Source(3, 17) + SourceIndex(2) +1->Emitted(28, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(28, 5) Source(3, 5) + SourceIndex(2) +3 >Emitted(28, 6) Source(3, 6) + SourceIndex(2) +4 >Emitted(28, 9) Source(3, 9) + SourceIndex(2) +5 >Emitted(28, 13) Source(3, 13) + SourceIndex(2) +6 >Emitted(28, 14) Source(3, 14) + SourceIndex(2) +7 >Emitted(28, 16) Source(3, 16) + SourceIndex(2) +8 >Emitted(28, 17) Source(3, 17) + SourceIndex(2) --- >>>c.doSomething(); 1-> @@ -1739,12 +1778,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(27, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(27, 2) Source(4, 2) + SourceIndex(2) -3 >Emitted(27, 3) Source(4, 3) + SourceIndex(2) -4 >Emitted(27, 14) Source(4, 14) + SourceIndex(2) -5 >Emitted(27, 16) Source(4, 16) + SourceIndex(2) -6 >Emitted(27, 17) Source(4, 17) + SourceIndex(2) +1->Emitted(29, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(29, 2) Source(4, 2) + SourceIndex(2) +3 >Emitted(29, 3) Source(4, 3) + SourceIndex(2) +4 >Emitted(29, 14) Source(4, 14) + SourceIndex(2) +5 >Emitted(29, 16) Source(4, 16) + SourceIndex(2) +6 >Emitted(29, 17) Source(4, 17) + SourceIndex(2) --- >>>//# sourceMappingURL=third-output.js.map diff --git a/tests/baselines/reference/outFile-multiple-prologues-in-different-projects.js b/tests/baselines/reference/outFile-multiple-prologues-in-different-projects.js index 5afefc3538e..d8484b9ea88 100644 --- a/tests/baselines/reference/outFile-multiple-prologues-in-different-projects.js +++ b/tests/baselines/reference/outFile-multiple-prologues-in-different-projects.js @@ -17,6 +17,11 @@ "pos": 31, "end": 316, "kind": "text" + }, + { + "pos": 316, + "end": 357, + "kind": "sourceMapUrl" } ], "dts": [ @@ -24,6 +29,11 @@ "pos": 0, "end": 100, "kind": "text" + }, + { + "pos": 100, + "end": 143, + "kind": "sourceMapUrl" } ] } @@ -463,6 +473,11 @@ sourceFile:../second/second_part2.ts "pos": 15, "end": 125, "kind": "text" + }, + { + "pos": 125, + "end": 165, + "kind": "sourceMapUrl" } ], "dts": [ @@ -470,6 +485,11 @@ sourceFile:../second/second_part2.ts "pos": 0, "end": 157, "kind": "text" + }, + { + "pos": 157, + "end": 199, + "kind": "sourceMapUrl" } ] } @@ -845,39 +865,49 @@ class C { }, { "pos": 46, - "end": 156, + "end": 196, "kind": "prepend", "fileName": "/src/first/bin/first-output.js" }, { - "pos": 156, - "end": 441, + "pos": 198, + "end": 524, "kind": "prepend", "fileName": "/src/2/second-output.js" }, { - "pos": 441, - "end": 477, + "pos": 526, + "end": 562, "kind": "text" + }, + { + "pos": 562, + "end": 602, + "kind": "sourceMapUrl" } ], "dts": [ { "pos": 0, - "end": 157, + "end": 199, "kind": "prepend", "fileName": "/src/first/bin/first-output.d.ts" }, { - "pos": 157, - "end": 257, + "pos": 201, + "end": 344, "kind": "prepend", "fileName": "/src/2/second-output.d.ts" }, { - "pos": 257, - "end": 276, + "pos": 346, + "end": 365, "kind": "text" + }, + { + "pos": 365, + "end": 407, + "kind": "sourceMapUrl" } ] } @@ -891,6 +921,7 @@ interface NoJsForHereEither { none: any; } declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map declare namespace N { } declare namespace N { @@ -898,11 +929,12 @@ declare namespace N { 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;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;ACLD,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;;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;;ACLD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -1020,6 +1052,7 @@ sourceFile:../../../first/first_part3.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^-> 1-> 2 >function 3 > f @@ -1035,20 +1068,21 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.d.ts.map >>>declare namespace N { -1 > +1-> 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1 >"myPrologue" +1->"myPrologue" > 2 >namespace 3 > N 4 > -1 >Emitted(9, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(2, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(2, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(2, 13) + SourceIndex(2) +1->Emitted(10, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(10, 19) Source(2, 11) + SourceIndex(2) +3 >Emitted(10, 20) Source(2, 12) + SourceIndex(2) +4 >Emitted(10, 21) Source(2, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -1056,7 +1090,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(10, 2) Source(4, 2) + SourceIndex(2) +1 >Emitted(11, 2) Source(4, 2) + SourceIndex(2) --- >>>declare namespace N { 1-> @@ -1069,10 +1103,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -1->Emitted(11, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(6, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(6, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(6, 13) + SourceIndex(2) +1->Emitted(12, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(6, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(6, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(6, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -1084,7 +1118,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(12, 2) Source(12, 2) + SourceIndex(2) +1 >Emitted(13, 2) Source(12, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1099,9 +1133,9 @@ sourceFile:../../../second/second_part2.ts > 2 >class 3 > C -1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(2, 8) + SourceIndex(3) +1->Emitted(14, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(2, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(2, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -1109,22 +1143,23 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(14, 5) Source(3, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(3, 16) + SourceIndex(3) +1->Emitted(15, 5) Source(3, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(3, 16) + SourceIndex(3) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >() { > console.log("something got done"); > } >} -1 >Emitted(15, 2) Source(6, 2) + SourceIndex(3) +1 >Emitted(16, 2) Source(6, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.d.ts.map >>>declare var c: C; 1-> 2 >^^^^^^^^ @@ -1139,12 +1174,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) --- >>>//# sourceMappingURL=third-output.d.ts.map @@ -1158,6 +1193,7 @@ console.log(f()); function f() { return "JS does hoists"; } +//# sourceMappingURL=first-output.js.map var N; (function (N) { function f() { @@ -1173,12 +1209,13 @@ var C = (function () { }; return C; }()); +//# sourceMappingURL=second-output.js.map var c = new C(); c.doSomething(); //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../second/second_part1.ts","../../../second/second_part2.ts","../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../second/second_part1.ts","../../../second/second_part2.ts","../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../third_part1.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;ACAZ,aAAa,CAAC;ACId,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;;AJGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;;AILD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -1348,7 +1385,7 @@ sourceFile:../../../first/first_part3.ts >>>} 1 > 2 >^ -3 > ^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -1359,6 +1396,7 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.js.map >>>var N; 1-> 2 >^^^^ @@ -1380,10 +1418,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(10, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(10, 5) Source(6, 11) + SourceIndex(0) -3 >Emitted(10, 6) Source(6, 12) + SourceIndex(0) -4 >Emitted(10, 7) Source(12, 2) + SourceIndex(0) +1->Emitted(11, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(11, 5) Source(6, 11) + SourceIndex(0) +3 >Emitted(11, 6) Source(6, 12) + SourceIndex(0) +4 >Emitted(11, 7) Source(12, 2) + SourceIndex(0) --- >>>(function (N) { 1-> @@ -1393,9 +1431,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(11, 1) Source(6, 1) + SourceIndex(0) -2 >Emitted(11, 12) Source(6, 11) + SourceIndex(0) -3 >Emitted(11, 13) Source(6, 12) + SourceIndex(0) +1->Emitted(12, 1) Source(6, 1) + SourceIndex(0) +2 >Emitted(12, 12) Source(6, 11) + SourceIndex(0) +3 >Emitted(12, 13) Source(6, 12) + SourceIndex(0) --- >>> function f() { 1->^^^^ @@ -1406,9 +1444,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(12, 5) Source(7, 5) + SourceIndex(0) -2 >Emitted(12, 14) Source(7, 14) + SourceIndex(0) -3 >Emitted(12, 15) Source(7, 15) + SourceIndex(0) +1->Emitted(13, 5) Source(7, 5) + SourceIndex(0) +2 >Emitted(13, 14) Source(7, 14) + SourceIndex(0) +3 >Emitted(13, 15) Source(7, 15) + SourceIndex(0) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -1428,14 +1466,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(13, 9) Source(8, 9) + SourceIndex(0) -2 >Emitted(13, 16) Source(8, 16) + SourceIndex(0) -3 >Emitted(13, 17) Source(8, 17) + SourceIndex(0) -4 >Emitted(13, 20) Source(8, 20) + SourceIndex(0) -5 >Emitted(13, 21) Source(8, 21) + SourceIndex(0) -6 >Emitted(13, 30) Source(8, 30) + SourceIndex(0) -7 >Emitted(13, 31) Source(8, 31) + SourceIndex(0) -8 >Emitted(13, 32) Source(8, 32) + SourceIndex(0) +1->Emitted(14, 9) Source(8, 9) + SourceIndex(0) +2 >Emitted(14, 16) Source(8, 16) + SourceIndex(0) +3 >Emitted(14, 17) Source(8, 17) + SourceIndex(0) +4 >Emitted(14, 20) Source(8, 20) + SourceIndex(0) +5 >Emitted(14, 21) Source(8, 21) + SourceIndex(0) +6 >Emitted(14, 30) Source(8, 30) + SourceIndex(0) +7 >Emitted(14, 31) Source(8, 31) + SourceIndex(0) +8 >Emitted(14, 32) Source(8, 32) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -1444,8 +1482,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(14, 5) Source(9, 5) + SourceIndex(0) -2 >Emitted(14, 6) Source(9, 6) + SourceIndex(0) +1 >Emitted(15, 5) Source(9, 5) + SourceIndex(0) +2 >Emitted(15, 6) Source(9, 6) + SourceIndex(0) --- >>> f(); 1->^^^^ @@ -1459,10 +1497,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(15, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(15, 6) Source(11, 6) + SourceIndex(0) -3 >Emitted(15, 8) Source(11, 8) + SourceIndex(0) -4 >Emitted(15, 9) Source(11, 9) + SourceIndex(0) +1->Emitted(16, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(16, 6) Source(11, 6) + SourceIndex(0) +3 >Emitted(16, 8) Source(11, 8) + SourceIndex(0) +4 >Emitted(16, 9) Source(11, 9) + SourceIndex(0) --- >>>})(N || (N = {})); 1-> @@ -1487,13 +1525,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(16, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(12, 2) + SourceIndex(0) -3 >Emitted(16, 4) Source(6, 11) + SourceIndex(0) -4 >Emitted(16, 5) Source(6, 12) + SourceIndex(0) -5 >Emitted(16, 10) Source(6, 11) + SourceIndex(0) -6 >Emitted(16, 11) Source(6, 12) + SourceIndex(0) -7 >Emitted(16, 19) Source(12, 2) + SourceIndex(0) +1->Emitted(17, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(17, 2) Source(12, 2) + SourceIndex(0) +3 >Emitted(17, 4) Source(6, 11) + SourceIndex(0) +4 >Emitted(17, 5) Source(6, 12) + SourceIndex(0) +5 >Emitted(17, 10) Source(6, 11) + SourceIndex(0) +6 >Emitted(17, 11) Source(6, 12) + SourceIndex(0) +7 >Emitted(17, 19) Source(12, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1504,13 +1542,13 @@ sourceFile:../../../second/second_part2.ts 2 >^^^^^^^^^^^^^^^^^^^-> 1->"myPrologue2"; > -1->Emitted(17, 1) Source(2, 1) + SourceIndex(1) +1->Emitted(18, 1) Source(2, 1) + SourceIndex(1) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(18, 5) Source(2, 1) + SourceIndex(1) +1->Emitted(19, 5) Source(2, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -1522,8 +1560,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(19, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(19, 6) Source(6, 2) + SourceIndex(1) +1->Emitted(20, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(20, 6) Source(6, 2) + SourceIndex(1) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -1533,9 +1571,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(20, 5) Source(3, 5) + SourceIndex(1) -2 >Emitted(20, 28) Source(3, 16) + SourceIndex(1) -3 >Emitted(20, 31) Source(3, 5) + SourceIndex(1) +1->Emitted(21, 5) Source(3, 5) + SourceIndex(1) +2 >Emitted(21, 28) Source(3, 16) + SourceIndex(1) +3 >Emitted(21, 31) Source(3, 5) + SourceIndex(1) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -1555,14 +1593,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(21, 9) Source(4, 9) + SourceIndex(1) -2 >Emitted(21, 16) Source(4, 16) + SourceIndex(1) -3 >Emitted(21, 17) Source(4, 17) + SourceIndex(1) -4 >Emitted(21, 20) Source(4, 20) + SourceIndex(1) -5 >Emitted(21, 21) Source(4, 21) + SourceIndex(1) -6 >Emitted(21, 41) Source(4, 41) + SourceIndex(1) -7 >Emitted(21, 42) Source(4, 42) + SourceIndex(1) -8 >Emitted(21, 43) Source(4, 43) + SourceIndex(1) +1->Emitted(22, 9) Source(4, 9) + SourceIndex(1) +2 >Emitted(22, 16) Source(4, 16) + SourceIndex(1) +3 >Emitted(22, 17) Source(4, 17) + SourceIndex(1) +4 >Emitted(22, 20) Source(4, 20) + SourceIndex(1) +5 >Emitted(22, 21) Source(4, 21) + SourceIndex(1) +6 >Emitted(22, 41) Source(4, 41) + SourceIndex(1) +7 >Emitted(22, 42) Source(4, 42) + SourceIndex(1) +8 >Emitted(22, 43) Source(4, 43) + SourceIndex(1) --- >>> }; 1 >^^^^ @@ -1571,8 +1609,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(22, 5) Source(5, 5) + SourceIndex(1) -2 >Emitted(22, 6) Source(5, 6) + SourceIndex(1) +1 >Emitted(23, 5) Source(5, 5) + SourceIndex(1) +2 >Emitted(23, 6) Source(5, 6) + SourceIndex(1) --- >>> return C; 1->^^^^ @@ -1580,15 +1618,15 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(23, 5) Source(6, 1) + SourceIndex(1) -2 >Emitted(23, 13) Source(6, 2) + SourceIndex(1) +1->Emitted(24, 5) Source(6, 1) + SourceIndex(1) +2 >Emitted(24, 13) Source(6, 2) + SourceIndex(1) --- >>>}()); 1 > 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >} 3 > @@ -1597,15 +1635,16 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(24, 1) Source(6, 1) + SourceIndex(1) -2 >Emitted(24, 2) Source(6, 2) + SourceIndex(1) -3 >Emitted(24, 2) Source(2, 1) + SourceIndex(1) -4 >Emitted(24, 6) Source(6, 2) + SourceIndex(1) +1 >Emitted(25, 1) Source(6, 1) + SourceIndex(1) +2 >Emitted(25, 2) Source(6, 2) + SourceIndex(1) +3 >Emitted(25, 2) Source(2, 1) + SourceIndex(1) +4 >Emitted(25, 6) Source(6, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.js.map >>>var c = new C(); 1-> 2 >^^^^ @@ -1624,14 +1663,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1->Emitted(25, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(25, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(25, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(25, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(25, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(25, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(25, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(25, 17) Source(1, 17) + SourceIndex(5) +1->Emitted(27, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(27, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(27, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(27, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(27, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(27, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(27, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(27, 17) Source(1, 17) + SourceIndex(5) --- >>>c.doSomething(); 1-> @@ -1648,12 +1687,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(26, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(26, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(26, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(26, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(26, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(26, 17) Source(2, 17) + SourceIndex(5) +1->Emitted(28, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(28, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(28, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(28, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(28, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(28, 17) Source(2, 17) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map diff --git a/tests/baselines/reference/outFile-shebang-in-all-projects.js b/tests/baselines/reference/outFile-shebang-in-all-projects.js index d71309338f6..402ac6167d7 100644 --- a/tests/baselines/reference/outFile-shebang-in-all-projects.js +++ b/tests/baselines/reference/outFile-shebang-in-all-projects.js @@ -5,6 +5,11 @@ "pos": 35, "end": 320, "kind": "text" + }, + { + "pos": 320, + "end": 361, + "kind": "sourceMapUrl" } ], "dts": [ @@ -12,6 +17,11 @@ "pos": 35, "end": 135, "kind": "text" + }, + { + "pos": 135, + "end": 178, + "kind": "sourceMapUrl" } ] } @@ -414,6 +424,11 @@ sourceFile:../second/second_part2.ts "pos": 33, "end": 143, "kind": "text" + }, + { + "pos": 143, + "end": 183, + "kind": "sourceMapUrl" } ], "dts": [ @@ -421,6 +436,11 @@ sourceFile:../second/second_part2.ts "pos": 33, "end": 190, "kind": "text" + }, + { + "pos": 190, + "end": 232, + "kind": "sourceMapUrl" } ] } @@ -772,39 +792,49 @@ namespace N { "js": [ { "pos": 33, - "end": 143, + "end": 183, "kind": "prepend", "fileName": "/src/first/bin/first-output.js" }, { - "pos": 143, - "end": 428, + "pos": 185, + "end": 511, "kind": "prepend", "fileName": "/src/2/second-output.js" }, { - "pos": 428, - "end": 464, + "pos": 513, + "end": 549, "kind": "text" + }, + { + "pos": 549, + "end": 589, + "kind": "sourceMapUrl" } ], "dts": [ { "pos": 33, - "end": 190, + "end": 232, "kind": "prepend", "fileName": "/src/first/bin/first-output.d.ts" }, { - "pos": 190, - "end": 290, + "pos": 234, + "end": 377, "kind": "prepend", "fileName": "/src/2/second-output.d.ts" }, { - "pos": 290, - "end": 309, + "pos": 379, + "end": 398, "kind": "text" + }, + { + "pos": 398, + "end": 440, + "kind": "sourceMapUrl" } ] } @@ -819,6 +849,7 @@ interface NoJsForHereEither { none: any; } declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map declare namespace N { } declare namespace N { @@ -826,11 +857,12 @@ declare namespace N { 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":";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,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":";AACA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACTD,iBAAS,CAAC,WAET;;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;;ACHD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -950,6 +982,7 @@ sourceFile:../../../first/first_part3.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^-> 1-> 2 >function 3 > f @@ -965,20 +998,21 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.d.ts.map >>>declare namespace N { -1 > +1-> 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1 >#!someshebang second second_part1 +1->#!someshebang second second_part1 > 2 >namespace 3 > N 4 > -1 >Emitted(10, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(10, 19) Source(2, 11) + SourceIndex(2) -3 >Emitted(10, 20) Source(2, 12) + SourceIndex(2) -4 >Emitted(10, 21) Source(2, 13) + SourceIndex(2) +1->Emitted(11, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(2, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(2, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(2, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -986,7 +1020,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(11, 2) Source(4, 2) + SourceIndex(2) +1 >Emitted(12, 2) Source(4, 2) + SourceIndex(2) --- >>>declare namespace N { 1-> @@ -999,10 +1033,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -1->Emitted(12, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(6, 11) + SourceIndex(2) -3 >Emitted(12, 20) Source(6, 12) + SourceIndex(2) -4 >Emitted(12, 21) Source(6, 13) + SourceIndex(2) +1->Emitted(13, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(13, 19) Source(6, 11) + SourceIndex(2) +3 >Emitted(13, 20) Source(6, 12) + SourceIndex(2) +4 >Emitted(13, 21) Source(6, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -1014,7 +1048,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(13, 2) Source(12, 2) + SourceIndex(2) +1 >Emitted(14, 2) Source(12, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1028,9 +1062,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >class 3 > C -1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) +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->^^^^ @@ -1038,22 +1072,23 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(15, 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 >^ -2 > ^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >() { > console.log("something got done"); > } >} -1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.d.ts.map >>>declare var c: C; 1-> 2 >^^^^^^^^ @@ -1069,12 +1104,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(17, 1) Source(2, 1) + SourceIndex(4) -2 >Emitted(17, 9) Source(2, 1) + SourceIndex(4) -3 >Emitted(17, 13) Source(2, 5) + SourceIndex(4) -4 >Emitted(17, 14) Source(2, 6) + SourceIndex(4) -5 >Emitted(17, 17) Source(2, 16) + SourceIndex(4) -6 >Emitted(17, 18) Source(2, 17) + SourceIndex(4) +1->Emitted(19, 1) Source(2, 1) + SourceIndex(4) +2 >Emitted(19, 9) Source(2, 1) + SourceIndex(4) +3 >Emitted(19, 13) Source(2, 5) + SourceIndex(4) +4 >Emitted(19, 14) Source(2, 6) + SourceIndex(4) +5 >Emitted(19, 17) Source(2, 16) + SourceIndex(4) +6 >Emitted(19, 18) Source(2, 17) + SourceIndex(4) --- >>>//# sourceMappingURL=third-output.d.ts.map @@ -1086,6 +1121,7 @@ console.log(f()); function f() { return "JS does hoists"; } +//# sourceMappingURL=first-output.js.map var N; (function (N) { function f() { @@ -1101,12 +1137,13 @@ var C = (function () { }; return C; }()); +//# sourceMappingURL=second-output.js.map var c = new C(); c.doSomething(); //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAKA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACDjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;;ACHD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -1246,7 +1283,7 @@ sourceFile:../../../first/first_part3.ts >>>} 1 > 2 >^ -3 > ^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -1257,6 +1294,7 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.js.map >>>var N; 1-> 2 >^^^^ @@ -1278,10 +1316,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(8, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(6, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(6, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(12, 2) + SourceIndex(3) +1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(6, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(6, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(12, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -1291,9 +1329,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(6, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(6, 12) + SourceIndex(3) +1->Emitted(10, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(6, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(6, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -1304,9 +1342,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(10, 5) Source(7, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(7, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(7, 15) + SourceIndex(3) +1->Emitted(11, 5) Source(7, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(7, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(7, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -1326,14 +1364,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(11, 9) Source(8, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(8, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(8, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(8, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(8, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(8, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(8, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(8, 32) + SourceIndex(3) +1->Emitted(12, 9) Source(8, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(8, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(8, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(8, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(8, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(8, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(8, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(8, 32) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -1342,8 +1380,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(12, 5) Source(9, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(9, 6) + SourceIndex(3) +1 >Emitted(13, 5) Source(9, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(9, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -1357,10 +1395,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(13, 5) Source(11, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(11, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(11, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(11, 9) + SourceIndex(3) +1->Emitted(14, 5) Source(11, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(11, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(11, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(11, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -1385,13 +1423,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(12, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(6, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(6, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(6, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(6, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(12, 2) + SourceIndex(3) +1->Emitted(15, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(12, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(6, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(6, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(6, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(6, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(12, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1401,13 +1439,13 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -1419,8 +1457,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -1430,9 +1468,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -1452,14 +1490,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) --- >>> }; 1 >^^^^ @@ -1468,8 +1506,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -1477,15 +1515,15 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >} 3 > @@ -1494,15 +1532,16 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.js.map >>>var c = new C(); 1-> 2 >^^^^ @@ -1522,14 +1561,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(2, 5) + SourceIndex(5) -3 >Emitted(23, 6) Source(2, 6) + SourceIndex(5) -4 >Emitted(23, 9) Source(2, 9) + SourceIndex(5) -5 >Emitted(23, 13) Source(2, 13) + SourceIndex(5) -6 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) -7 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) -8 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) +1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(25, 5) Source(2, 5) + SourceIndex(5) +3 >Emitted(25, 6) Source(2, 6) + SourceIndex(5) +4 >Emitted(25, 9) Source(2, 9) + SourceIndex(5) +5 >Emitted(25, 13) Source(2, 13) + SourceIndex(5) +6 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) +7 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) +8 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) --- >>>c.doSomething(); 1-> @@ -1546,12 +1585,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(24, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(24, 2) Source(3, 2) + SourceIndex(5) -3 >Emitted(24, 3) Source(3, 3) + SourceIndex(5) -4 >Emitted(24, 14) Source(3, 14) + SourceIndex(5) -5 >Emitted(24, 16) Source(3, 16) + SourceIndex(5) -6 >Emitted(24, 17) Source(3, 17) + SourceIndex(5) +1->Emitted(26, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(26, 2) Source(3, 2) + SourceIndex(5) +3 >Emitted(26, 3) Source(3, 3) + SourceIndex(5) +4 >Emitted(26, 14) Source(3, 14) + SourceIndex(5) +5 >Emitted(26, 16) Source(3, 16) + SourceIndex(5) +6 >Emitted(26, 17) Source(3, 17) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map diff --git a/tests/baselines/reference/outFile-shebang-in-only-one-dependency-project.js b/tests/baselines/reference/outFile-shebang-in-only-one-dependency-project.js index 57a54039c0d..6b9b40c2664 100644 --- a/tests/baselines/reference/outFile-shebang-in-only-one-dependency-project.js +++ b/tests/baselines/reference/outFile-shebang-in-only-one-dependency-project.js @@ -5,6 +5,11 @@ "pos": 35, "end": 320, "kind": "text" + }, + { + "pos": 320, + "end": 361, + "kind": "sourceMapUrl" } ], "dts": [ @@ -12,6 +17,11 @@ "pos": 35, "end": 135, "kind": "text" + }, + { + "pos": 135, + "end": 178, + "kind": "sourceMapUrl" } ] } @@ -414,6 +424,11 @@ sourceFile:../second/second_part2.ts "pos": 0, "end": 110, "kind": "text" + }, + { + "pos": 110, + "end": 150, + "kind": "sourceMapUrl" } ], "dts": [ @@ -421,6 +436,11 @@ sourceFile:../second/second_part2.ts "pos": 0, "end": 157, "kind": "text" + }, + { + "pos": 157, + "end": 199, + "kind": "sourceMapUrl" } ] } @@ -745,39 +765,49 @@ namespace N { "js": [ { "pos": 35, - "end": 145, + "end": 185, "kind": "prepend", "fileName": "/src/first/bin/first-output.js" }, { - "pos": 145, - "end": 430, + "pos": 187, + "end": 513, "kind": "prepend", "fileName": "/src/2/second-output.js" }, { - "pos": 430, - "end": 466, + "pos": 515, + "end": 551, "kind": "text" + }, + { + "pos": 551, + "end": 591, + "kind": "sourceMapUrl" } ], "dts": [ { "pos": 35, - "end": 192, + "end": 234, "kind": "prepend", "fileName": "/src/first/bin/first-output.d.ts" }, { - "pos": 192, - "end": 292, + "pos": 236, + "end": 379, "kind": "prepend", "fileName": "/src/2/second-output.d.ts" }, { - "pos": 292, - "end": 311, + "pos": 381, + "end": 400, "kind": "text" + }, + { + "pos": 400, + "end": 442, + "kind": "sourceMapUrl" } ] } @@ -792,6 +822,7 @@ interface NoJsForHereEither { none: any; } declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map declare namespace N { } declare namespace N { @@ -799,11 +830,12 @@ declare namespace N { 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;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,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;;ACDD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACXD,cAAM,CAAC;IACH,WAAW;CAGd;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -922,6 +954,7 @@ sourceFile:../../../first/first_part3.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^-> 1-> 2 >function 3 > f @@ -937,20 +970,21 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.d.ts.map >>>declare namespace N { -1 > +1-> 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1 >#!someshebang second second_part1 +1->#!someshebang second second_part1 > 2 >namespace 3 > N 4 > -1 >Emitted(10, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(10, 19) Source(2, 11) + SourceIndex(2) -3 >Emitted(10, 20) Source(2, 12) + SourceIndex(2) -4 >Emitted(10, 21) Source(2, 13) + SourceIndex(2) +1->Emitted(11, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(11, 19) Source(2, 11) + SourceIndex(2) +3 >Emitted(11, 20) Source(2, 12) + SourceIndex(2) +4 >Emitted(11, 21) Source(2, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -958,7 +992,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(11, 2) Source(4, 2) + SourceIndex(2) +1 >Emitted(12, 2) Source(4, 2) + SourceIndex(2) --- >>>declare namespace N { 1-> @@ -971,10 +1005,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -1->Emitted(12, 1) Source(6, 1) + SourceIndex(2) -2 >Emitted(12, 19) Source(6, 11) + SourceIndex(2) -3 >Emitted(12, 20) Source(6, 12) + SourceIndex(2) -4 >Emitted(12, 21) Source(6, 13) + SourceIndex(2) +1->Emitted(13, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(13, 19) Source(6, 11) + SourceIndex(2) +3 >Emitted(13, 20) Source(6, 12) + SourceIndex(2) +4 >Emitted(13, 21) Source(6, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -986,7 +1020,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(13, 2) Source(12, 2) + SourceIndex(2) +1 >Emitted(14, 2) Source(12, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1000,9 +1034,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >class 3 > C -1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) +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->^^^^ @@ -1010,22 +1044,23 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(15, 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 >^ -2 > ^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >() { > console.log("something got done"); > } >} -1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.d.ts.map >>>declare var c: C; 1-> 2 >^^^^^^^^ @@ -1040,12 +1075,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(17, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(17, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(17, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(17, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(17, 18) Source(1, 17) + SourceIndex(4) +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 @@ -1057,6 +1092,7 @@ console.log(f()); function f() { return "JS does hoists"; } +//# sourceMappingURL=first-output.js.map var N; (function (N) { function f() { @@ -1072,12 +1108,13 @@ var C = (function () { }; return C; }()); +//# sourceMappingURL=second-output.js.map var c = new C(); c.doSomething(); //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;;ACGD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACXD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -1215,7 +1252,7 @@ sourceFile:../../../first/first_part3.ts >>>} 1 > 2 >^ -3 > ^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -1226,6 +1263,7 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.js.map >>>var N; 1-> 2 >^^^^ @@ -1247,10 +1285,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(8, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(6, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(6, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(12, 2) + SourceIndex(3) +1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(6, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(6, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(12, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -1260,9 +1298,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(9, 1) Source(6, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(6, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(6, 12) + SourceIndex(3) +1->Emitted(10, 1) Source(6, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(6, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(6, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -1273,9 +1311,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(10, 5) Source(7, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(7, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(7, 15) + SourceIndex(3) +1->Emitted(11, 5) Source(7, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(7, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(7, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -1295,14 +1333,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(11, 9) Source(8, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(8, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(8, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(8, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(8, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(8, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(8, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(8, 32) + SourceIndex(3) +1->Emitted(12, 9) Source(8, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(8, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(8, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(8, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(8, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(8, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(8, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(8, 32) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -1311,8 +1349,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(12, 5) Source(9, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(9, 6) + SourceIndex(3) +1 >Emitted(13, 5) Source(9, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(9, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -1326,10 +1364,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(13, 5) Source(11, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(11, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(11, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(11, 9) + SourceIndex(3) +1->Emitted(14, 5) Source(11, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(11, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(11, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(11, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -1354,13 +1392,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(12, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(6, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(6, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(6, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(6, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(12, 2) + SourceIndex(3) +1->Emitted(15, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(12, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(6, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(6, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(6, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(6, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(12, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1370,13 +1408,13 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -1388,8 +1426,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -1399,9 +1437,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -1421,14 +1459,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) --- >>> }; 1 >^^^^ @@ -1437,8 +1475,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -1446,15 +1484,15 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >} 3 > @@ -1463,15 +1501,16 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.js.map >>>var c = new C(); 1-> 2 >^^^^ @@ -1490,14 +1529,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) +1->Emitted(25, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(25, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(25, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(25, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(25, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(25, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(25, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(25, 17) Source(1, 17) + SourceIndex(5) --- >>>c.doSomething(); 1-> @@ -1514,12 +1553,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) +1->Emitted(26, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(26, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(26, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(26, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(26, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(26, 17) Source(2, 17) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map diff --git a/tests/baselines/reference/outFile-strict-in-all-projects.js b/tests/baselines/reference/outFile-strict-in-all-projects.js index 72933016f4a..90bfc0d6c67 100644 --- a/tests/baselines/reference/outFile-strict-in-all-projects.js +++ b/tests/baselines/reference/outFile-strict-in-all-projects.js @@ -11,6 +11,11 @@ "pos": 15, "end": 300, "kind": "text" + }, + { + "pos": 300, + "end": 341, + "kind": "sourceMapUrl" } ], "dts": [ @@ -18,6 +23,11 @@ "pos": 0, "end": 100, "kind": "text" + }, + { + "pos": 100, + "end": 143, + "kind": "sourceMapUrl" } ] } @@ -422,6 +432,11 @@ sourceFile:../second/second_part2.ts "pos": 15, "end": 125, "kind": "text" + }, + { + "pos": 125, + "end": 165, + "kind": "sourceMapUrl" } ], "dts": [ @@ -429,6 +444,11 @@ sourceFile:../second/second_part2.ts "pos": 0, "end": 157, "kind": "text" + }, + { + "pos": 157, + "end": 199, + "kind": "sourceMapUrl" } ] } @@ -786,39 +806,49 @@ sourceFile:../first_part3.ts }, { "pos": 15, - "end": 125, + "end": 165, "kind": "prepend", "fileName": "/src/first/bin/first-output.js" }, { - "pos": 125, - "end": 410, + "pos": 167, + "end": 493, "kind": "prepend", "fileName": "/src/2/second-output.js" }, { - "pos": 410, - "end": 446, + "pos": 495, + "end": 531, "kind": "text" + }, + { + "pos": 531, + "end": 571, + "kind": "sourceMapUrl" } ], "dts": [ { "pos": 0, - "end": 157, + "end": 199, "kind": "prepend", "fileName": "/src/first/bin/first-output.d.ts" }, { - "pos": 157, - "end": 257, + "pos": 201, + "end": 344, "kind": "prepend", "fileName": "/src/2/second-output.d.ts" }, { - "pos": 257, - "end": 276, + "pos": 346, + "end": 365, "kind": "text" + }, + { + "pos": 365, + "end": 407, + "kind": "sourceMapUrl" } ] } @@ -832,6 +862,7 @@ interface NoJsForHereEither { none: any; } declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map declare namespace N { } declare namespace N { @@ -839,11 +870,12 @@ declare namespace N { 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;ACVD,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;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -961,6 +993,7 @@ sourceFile:../../../first/first_part3.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^-> 1-> 2 >function 3 > f @@ -976,19 +1009,20 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.d.ts.map >>>declare namespace N { -1 > +1-> 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1 > +1-> 2 >namespace 3 > N 4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +1->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 >^ @@ -996,7 +1030,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) --- >>>declare namespace N { 1-> @@ -1009,10 +1043,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +1->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 >^ @@ -1024,7 +1058,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1038,9 +1072,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >class 3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -1048,22 +1082,23 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >() { > console.log("something got done"); > } >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.d.ts.map >>>declare var c: C; 1-> 2 >^^^^^^^^ @@ -1078,12 +1113,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) --- >>>//# sourceMappingURL=third-output.d.ts.map @@ -1095,6 +1130,7 @@ console.log(f()); function f() { return "JS does hoists"; } +//# sourceMappingURL=first-output.js.map var N; (function (N) { function f() { @@ -1110,12 +1146,13 @@ var C = (function () { }; return C; }()); +//# sourceMappingURL=second-output.js.map var c = new C(); c.doSomething(); //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -1253,7 +1290,7 @@ sourceFile:../../../first/first_part3.ts >>>} 1 > 2 >^ -3 > ^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -1264,6 +1301,7 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.js.map >>>var N; 1-> 2 >^^^^ @@ -1284,10 +1322,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(11, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -1297,9 +1335,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(5, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -1310,9 +1348,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +1->Emitted(11, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(6, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -1332,14 +1370,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +1->Emitted(12, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(7, 32) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -1348,8 +1386,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(8, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -1363,10 +1401,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +1->Emitted(14, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(10, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -1391,13 +1429,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(11, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1407,13 +1445,13 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -1425,8 +1463,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -1436,9 +1474,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -1458,14 +1496,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) --- >>> }; 1 >^^^^ @@ -1474,8 +1512,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -1483,15 +1521,15 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >} 3 > @@ -1500,15 +1538,16 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.js.map >>>var c = new C(); 1-> 2 >^^^^ @@ -1527,14 +1566,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) +1->Emitted(25, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(25, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(25, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(25, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(25, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(25, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(25, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(25, 17) Source(1, 17) + SourceIndex(5) --- >>>c.doSomething(); 1-> @@ -1551,12 +1590,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) +1->Emitted(26, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(26, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(26, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(26, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(26, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(26, 17) Source(2, 17) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map diff --git a/tests/baselines/reference/outFile-strict-in-one-dependency.js b/tests/baselines/reference/outFile-strict-in-one-dependency.js index 2acfe4ddb84..5641f84a8b8 100644 --- a/tests/baselines/reference/outFile-strict-in-one-dependency.js +++ b/tests/baselines/reference/outFile-strict-in-one-dependency.js @@ -11,6 +11,11 @@ "pos": 15, "end": 300, "kind": "text" + }, + { + "pos": 300, + "end": 341, + "kind": "sourceMapUrl" } ], "dts": [ @@ -18,6 +23,11 @@ "pos": 0, "end": 100, "kind": "text" + }, + { + "pos": 100, + "end": 143, + "kind": "sourceMapUrl" } ] } @@ -416,6 +426,11 @@ sourceFile:../second/second_part2.ts "pos": 0, "end": 110, "kind": "text" + }, + { + "pos": 110, + "end": 150, + "kind": "sourceMapUrl" } ], "dts": [ @@ -423,6 +438,11 @@ sourceFile:../second/second_part2.ts "pos": 0, "end": 157, "kind": "text" + }, + { + "pos": 157, + "end": 199, + "kind": "sourceMapUrl" } ] } @@ -756,39 +776,49 @@ sourceFile:../first_part3.ts }, { "pos": 15, - "end": 125, + "end": 165, "kind": "prepend", "fileName": "/src/first/bin/first-output.js" }, { - "pos": 125, - "end": 410, + "pos": 167, + "end": 493, "kind": "prepend", "fileName": "/src/2/second-output.js" }, { - "pos": 410, - "end": 446, + "pos": 495, + "end": 531, "kind": "text" + }, + { + "pos": 531, + "end": 571, + "kind": "sourceMapUrl" } ], "dts": [ { "pos": 0, - "end": 157, + "end": 199, "kind": "prepend", "fileName": "/src/first/bin/first-output.d.ts" }, { - "pos": 157, - "end": 257, + "pos": 201, + "end": 344, "kind": "prepend", "fileName": "/src/2/second-output.d.ts" }, { - "pos": 257, - "end": 276, + "pos": 346, + "end": 365, "kind": "text" + }, + { + "pos": 365, + "end": 407, + "kind": "sourceMapUrl" } ] } @@ -802,6 +832,7 @@ interface NoJsForHereEither { none: any; } declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map declare namespace N { } declare namespace N { @@ -809,11 +840,12 @@ declare namespace N { 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;ACVD,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;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -931,6 +963,7 @@ sourceFile:../../../first/first_part3.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^-> 1-> 2 >function 3 > f @@ -946,19 +979,20 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.d.ts.map >>>declare namespace N { -1 > +1-> 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1 > +1-> 2 >namespace 3 > N 4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +1->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 >^ @@ -966,7 +1000,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) --- >>>declare namespace N { 1-> @@ -979,10 +1013,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +1->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 >^ @@ -994,7 +1028,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1008,9 +1042,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >class 3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -1018,22 +1052,23 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >() { > console.log("something got done"); > } >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.d.ts.map >>>declare var c: C; 1-> 2 >^^^^^^^^ @@ -1048,12 +1083,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) --- >>>//# sourceMappingURL=third-output.d.ts.map @@ -1065,6 +1100,7 @@ console.log(f()); function f() { return "JS does hoists"; } +//# sourceMappingURL=first-output.js.map var N; (function (N) { function f() { @@ -1080,12 +1116,13 @@ var C = (function () { }; return C; }()); +//# sourceMappingURL=second-output.js.map var c = new C(); c.doSomething(); //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -1223,7 +1260,7 @@ sourceFile:../../../first/first_part3.ts >>>} 1 > 2 >^ -3 > ^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -1234,6 +1271,7 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.js.map >>>var N; 1-> 2 >^^^^ @@ -1254,10 +1292,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(11, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -1267,9 +1305,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) +1->Emitted(10, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(5, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -1280,9 +1318,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) +1->Emitted(11, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(6, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -1302,14 +1340,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) +1->Emitted(12, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(7, 32) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -1318,8 +1356,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) +1 >Emitted(13, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(8, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -1333,10 +1371,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) +1->Emitted(14, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(10, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -1361,13 +1399,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) +1->Emitted(15, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(11, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1377,13 +1415,13 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -1395,8 +1433,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -1406,9 +1444,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -1428,14 +1466,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) --- >>> }; 1 >^^^^ @@ -1444,8 +1482,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -1453,15 +1491,15 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >} 3 > @@ -1470,15 +1508,16 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.js.map >>>var c = new C(); 1-> 2 >^^^^ @@ -1497,14 +1536,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) +1->Emitted(25, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(25, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(25, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(25, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(25, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(25, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(25, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(25, 17) Source(1, 17) + SourceIndex(5) --- >>>c.doSomething(); 1-> @@ -1521,12 +1560,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) +1->Emitted(26, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(26, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(26, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(26, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(26, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(26, 17) Source(2, 17) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map diff --git a/tests/baselines/reference/outFile-triple-slash-refs-in-all-projects.js b/tests/baselines/reference/outFile-triple-slash-refs-in-all-projects.js index 27612c556fb..910184c119b 100644 --- a/tests/baselines/reference/outFile-triple-slash-refs-in-all-projects.js +++ b/tests/baselines/reference/outFile-triple-slash-refs-in-all-projects.js @@ -5,6 +5,11 @@ "pos": 0, "end": 336, "kind": "text" + }, + { + "pos": 336, + "end": 377, + "kind": "sourceMapUrl" } ], "dts": [ @@ -18,6 +23,11 @@ "pos": 51, "end": 205, "kind": "text" + }, + { + "pos": 205, + "end": 248, + "kind": "sourceMapUrl" } ] } @@ -468,6 +478,11 @@ sourceFile:../second/second_part2.ts "pos": 0, "end": 158, "kind": "text" + }, + { + "pos": 158, + "end": 198, + "kind": "sourceMapUrl" } ], "dts": [ @@ -481,6 +496,11 @@ sourceFile:../second/second_part2.ts "pos": 44, "end": 252, "kind": "text" + }, + { + "pos": 252, + "end": 294, + "kind": "sourceMapUrl" } ] } @@ -875,20 +895,25 @@ declare class secondsecond_part1 { } "js": [ { "pos": 0, - "end": 158, + "end": 198, "kind": "prepend", "fileName": "/src/first/bin/first-output.js" }, { - "pos": 158, - "end": 494, + "pos": 200, + "end": 577, "kind": "prepend", "fileName": "/src/2/second-output.js" }, { - "pos": 494, - "end": 578, + "pos": 579, + "end": 663, "kind": "text" + }, + { + "pos": 663, + "end": 703, + "kind": "sourceMapUrl" } ], "dts": [ @@ -912,20 +937,25 @@ declare class secondsecond_part1 { } }, { "pos": 160, - "end": 368, + "end": 410, "kind": "prepend", "fileName": "/src/first/bin/first-output.d.ts" }, { - "pos": 368, - "end": 522, + "pos": 412, + "end": 609, "kind": "prepend", "fileName": "/src/2/second-output.d.ts" }, { - "pos": 522, - "end": 592, + "pos": 611, + "end": 681, "kind": "text" + }, + { + "pos": 681, + "end": 723, + "kind": "sourceMapUrl" } ] } @@ -943,6 +973,7 @@ interface NoJsForHereEither { } declare const first_part2Const: firstfirst_part2; declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map declare const second_part1Const: secondsecond_part1; declare namespace N { } @@ -951,12 +982,13 @@ declare namespace N { declare class C { doSomething(): void; } +//# sourceMappingURL=second-output.d.ts.map declare const third_part1Const: thirdthird_part1; declare var c: C; //# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC"} +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;ACPD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;ACDhD,iBAAS,CAAC,WAET;;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;;ACHD,QAAA,MAAM,gBAAgB,kBAAyB,CAAC;AAChD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -1102,7 +1134,7 @@ sourceFile:../../../first/first_part3.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^-> 1 > 2 >function 3 > f @@ -1118,6 +1150,7 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.d.ts.map >>>declare const second_part1Const: secondsecond_part1; 1-> 2 >^^^^^^^^ @@ -1132,12 +1165,12 @@ sourceFile:../../../second/second_part1.ts 4 > second_part1Const 5 > = new secondsecond_part1() 6 > ; -1->Emitted(13, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(13, 9) Source(2, 1) + SourceIndex(3) -3 >Emitted(13, 15) Source(2, 7) + SourceIndex(3) -4 >Emitted(13, 32) Source(2, 24) + SourceIndex(3) -5 >Emitted(13, 52) Source(2, 51) + SourceIndex(3) -6 >Emitted(13, 53) Source(2, 52) + SourceIndex(3) +1->Emitted(14, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(14, 9) Source(2, 1) + SourceIndex(3) +3 >Emitted(14, 15) Source(2, 7) + SourceIndex(3) +4 >Emitted(14, 32) Source(2, 24) + SourceIndex(3) +5 >Emitted(14, 52) Source(2, 51) + SourceIndex(3) +6 >Emitted(14, 53) Source(2, 52) + SourceIndex(3) --- >>>declare namespace N { 1 > @@ -1149,10 +1182,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -1 >Emitted(14, 1) Source(3, 1) + SourceIndex(3) -2 >Emitted(14, 19) Source(3, 11) + SourceIndex(3) -3 >Emitted(14, 20) Source(3, 12) + SourceIndex(3) -4 >Emitted(14, 21) Source(3, 13) + SourceIndex(3) +1 >Emitted(15, 1) Source(3, 1) + SourceIndex(3) +2 >Emitted(15, 19) Source(3, 11) + SourceIndex(3) +3 >Emitted(15, 20) Source(3, 12) + SourceIndex(3) +4 >Emitted(15, 21) Source(3, 13) + SourceIndex(3) --- >>>} 1 >^ @@ -1160,7 +1193,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- >>>declare namespace N { 1-> @@ -1173,10 +1206,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -1->Emitted(16, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(16, 19) Source(7, 11) + SourceIndex(3) -3 >Emitted(16, 20) Source(7, 12) + SourceIndex(3) -4 >Emitted(16, 21) Source(7, 13) + SourceIndex(3) +1->Emitted(17, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(17, 19) Source(7, 11) + SourceIndex(3) +3 >Emitted(17, 20) Source(7, 12) + SourceIndex(3) +4 >Emitted(17, 21) Source(7, 13) + SourceIndex(3) --- >>>} 1 >^ @@ -1188,7 +1221,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(17, 2) Source(13, 2) + SourceIndex(3) +1 >Emitted(18, 2) Source(13, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1202,9 +1235,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >class 3 > C -1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(18, 15) Source(1, 7) + SourceIndex(4) -3 >Emitted(18, 16) Source(1, 8) + SourceIndex(4) +1->Emitted(19, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(19, 15) Source(1, 7) + SourceIndex(4) +3 >Emitted(19, 16) Source(1, 8) + SourceIndex(4) --- >>> doSomething(): void; 1->^^^^ @@ -1212,22 +1245,23 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 16) Source(2, 16) + SourceIndex(4) +1->Emitted(20, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(20, 16) Source(2, 16) + SourceIndex(4) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >() { > console.log("something got done"); > } >} -1 >Emitted(20, 2) Source(5, 2) + SourceIndex(4) +1 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.d.ts.map >>>declare const third_part1Const: thirdthird_part1; 1-> 2 >^^^^^^^^ @@ -1242,12 +1276,12 @@ sourceFile:../../third_part1.ts 4 > third_part1Const 5 > = new thirdthird_part1() 6 > ; -1->Emitted(21, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(21, 9) Source(2, 1) + SourceIndex(5) -3 >Emitted(21, 15) Source(2, 7) + SourceIndex(5) -4 >Emitted(21, 31) Source(2, 23) + SourceIndex(5) -5 >Emitted(21, 49) Source(2, 48) + SourceIndex(5) -6 >Emitted(21, 50) Source(2, 49) + SourceIndex(5) +1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(23, 9) Source(2, 1) + SourceIndex(5) +3 >Emitted(23, 15) Source(2, 7) + SourceIndex(5) +4 >Emitted(23, 31) Source(2, 23) + SourceIndex(5) +5 >Emitted(23, 49) Source(2, 48) + SourceIndex(5) +6 >Emitted(23, 50) Source(2, 49) + SourceIndex(5) --- >>>declare var c: C; 1 > @@ -1264,12 +1298,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1 >Emitted(22, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(22, 9) Source(3, 1) + SourceIndex(5) -3 >Emitted(22, 13) Source(3, 5) + SourceIndex(5) -4 >Emitted(22, 14) Source(3, 6) + SourceIndex(5) -5 >Emitted(22, 17) Source(3, 16) + SourceIndex(5) -6 >Emitted(22, 18) Source(3, 17) + SourceIndex(5) +1 >Emitted(24, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(24, 9) Source(3, 1) + SourceIndex(5) +3 >Emitted(24, 13) Source(3, 5) + SourceIndex(5) +4 >Emitted(24, 14) Source(3, 6) + SourceIndex(5) +5 >Emitted(24, 17) Source(3, 16) + SourceIndex(5) +6 >Emitted(24, 18) Source(3, 17) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.d.ts.map @@ -1281,6 +1315,7 @@ console.log(f()); function f() { return "JS does hoists"; } +//# sourceMappingURL=first-output.js.map var second_part1Const = new secondsecond_part1(); var N; (function (N) { @@ -1297,13 +1332,14 @@ var C = (function () { }; return C; }()); +//# sourceMappingURL=second-output.js.map var third_part1Const = new thirdthird_part1(); var c = new C(); c.doSomething(); //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACTf,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACFjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;;ACHD,IAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAChD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -1468,7 +1504,7 @@ sourceFile:../../../first/first_part3.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -1479,6 +1515,7 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.js.map >>>var second_part1Const = new secondsecond_part1(); 1-> 2 >^^^^ @@ -1497,14 +1534,14 @@ sourceFile:../../../second/second_part1.ts 6 > secondsecond_part1 7 > () 8 > ; -1->Emitted(8, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(2, 7) + SourceIndex(3) -3 >Emitted(8, 22) Source(2, 24) + SourceIndex(3) -4 >Emitted(8, 25) Source(2, 27) + SourceIndex(3) -5 >Emitted(8, 29) Source(2, 31) + SourceIndex(3) -6 >Emitted(8, 47) Source(2, 49) + SourceIndex(3) -7 >Emitted(8, 49) Source(2, 51) + SourceIndex(3) -8 >Emitted(8, 50) Source(2, 52) + SourceIndex(3) +1->Emitted(9, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(2, 7) + SourceIndex(3) +3 >Emitted(9, 22) Source(2, 24) + SourceIndex(3) +4 >Emitted(9, 25) Source(2, 27) + SourceIndex(3) +5 >Emitted(9, 29) Source(2, 31) + SourceIndex(3) +6 >Emitted(9, 47) Source(2, 49) + SourceIndex(3) +7 >Emitted(9, 49) Source(2, 51) + SourceIndex(3) +8 >Emitted(9, 50) Source(2, 52) + SourceIndex(3) --- >>>var N; 1 > @@ -1527,10 +1564,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1 >Emitted(9, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(9, 5) Source(7, 11) + SourceIndex(3) -3 >Emitted(9, 6) Source(7, 12) + SourceIndex(3) -4 >Emitted(9, 7) Source(13, 2) + SourceIndex(3) +1 >Emitted(10, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(10, 5) Source(7, 11) + SourceIndex(3) +3 >Emitted(10, 6) Source(7, 12) + SourceIndex(3) +4 >Emitted(10, 7) Source(13, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -1540,9 +1577,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(10, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(10, 12) Source(7, 11) + SourceIndex(3) -3 >Emitted(10, 13) Source(7, 12) + SourceIndex(3) +1->Emitted(11, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(11, 12) Source(7, 11) + SourceIndex(3) +3 >Emitted(11, 13) Source(7, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -1553,9 +1590,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 14) Source(8, 14) + SourceIndex(3) -3 >Emitted(11, 15) Source(8, 15) + SourceIndex(3) +1->Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 14) Source(8, 14) + SourceIndex(3) +3 >Emitted(12, 15) Source(8, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -1575,14 +1612,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(12, 9) Source(9, 9) + SourceIndex(3) -2 >Emitted(12, 16) Source(9, 16) + SourceIndex(3) -3 >Emitted(12, 17) Source(9, 17) + SourceIndex(3) -4 >Emitted(12, 20) Source(9, 20) + SourceIndex(3) -5 >Emitted(12, 21) Source(9, 21) + SourceIndex(3) -6 >Emitted(12, 30) Source(9, 30) + SourceIndex(3) -7 >Emitted(12, 31) Source(9, 31) + SourceIndex(3) -8 >Emitted(12, 32) Source(9, 32) + SourceIndex(3) +1->Emitted(13, 9) Source(9, 9) + SourceIndex(3) +2 >Emitted(13, 16) Source(9, 16) + SourceIndex(3) +3 >Emitted(13, 17) Source(9, 17) + SourceIndex(3) +4 >Emitted(13, 20) Source(9, 20) + SourceIndex(3) +5 >Emitted(13, 21) Source(9, 21) + SourceIndex(3) +6 >Emitted(13, 30) Source(9, 30) + SourceIndex(3) +7 >Emitted(13, 31) Source(9, 31) + SourceIndex(3) +8 >Emitted(13, 32) Source(9, 32) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -1591,8 +1628,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(13, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +1 >Emitted(14, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(10, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -1606,10 +1643,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(14, 5) Source(12, 5) + SourceIndex(3) -2 >Emitted(14, 6) Source(12, 6) + SourceIndex(3) -3 >Emitted(14, 8) Source(12, 8) + SourceIndex(3) -4 >Emitted(14, 9) Source(12, 9) + SourceIndex(3) +1->Emitted(15, 5) Source(12, 5) + SourceIndex(3) +2 >Emitted(15, 6) Source(12, 6) + SourceIndex(3) +3 >Emitted(15, 8) Source(12, 8) + SourceIndex(3) +4 >Emitted(15, 9) Source(12, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -1634,13 +1671,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(15, 2) Source(13, 2) + SourceIndex(3) -3 >Emitted(15, 4) Source(7, 11) + SourceIndex(3) -4 >Emitted(15, 5) Source(7, 12) + SourceIndex(3) -5 >Emitted(15, 10) Source(7, 11) + SourceIndex(3) -6 >Emitted(15, 11) Source(7, 12) + SourceIndex(3) -7 >Emitted(15, 19) Source(13, 2) + SourceIndex(3) +1->Emitted(16, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(16, 2) Source(13, 2) + SourceIndex(3) +3 >Emitted(16, 4) Source(7, 11) + SourceIndex(3) +4 >Emitted(16, 5) Source(7, 12) + SourceIndex(3) +5 >Emitted(16, 10) Source(7, 11) + SourceIndex(3) +6 >Emitted(16, 11) Source(7, 12) + SourceIndex(3) +7 >Emitted(16, 19) Source(13, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1650,13 +1687,13 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) +1->Emitted(17, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(18, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -1668,8 +1705,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(19, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(19, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -1679,9 +1716,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) +1->Emitted(20, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(20, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(20, 31) Source(2, 5) + SourceIndex(4) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -1701,14 +1738,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) +1->Emitted(21, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(21, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(21, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(21, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(21, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(21, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(21, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(21, 43) Source(3, 43) + SourceIndex(4) --- >>> }; 1 >^^^^ @@ -1717,8 +1754,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(22, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(22, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -1726,15 +1763,15 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(23, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >} 3 > @@ -1743,15 +1780,16 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) +1 >Emitted(24, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(24, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(24, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(24, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.js.map >>>var third_part1Const = new thirdthird_part1(); 1-> 2 >^^^^ @@ -1770,14 +1808,14 @@ sourceFile:../../third_part1.ts 6 > thirdthird_part1 7 > () 8 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 5) Source(2, 7) + SourceIndex(5) -3 >Emitted(24, 21) Source(2, 23) + SourceIndex(5) -4 >Emitted(24, 24) Source(2, 26) + SourceIndex(5) -5 >Emitted(24, 28) Source(2, 30) + SourceIndex(5) -6 >Emitted(24, 44) Source(2, 46) + SourceIndex(5) -7 >Emitted(24, 46) Source(2, 48) + SourceIndex(5) -8 >Emitted(24, 47) Source(2, 49) + SourceIndex(5) +1->Emitted(26, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(26, 5) Source(2, 7) + SourceIndex(5) +3 >Emitted(26, 21) Source(2, 23) + SourceIndex(5) +4 >Emitted(26, 24) Source(2, 26) + SourceIndex(5) +5 >Emitted(26, 28) Source(2, 30) + SourceIndex(5) +6 >Emitted(26, 44) Source(2, 46) + SourceIndex(5) +7 >Emitted(26, 46) Source(2, 48) + SourceIndex(5) +8 >Emitted(26, 47) Source(2, 49) + SourceIndex(5) --- >>>var c = new C(); 1 > @@ -1798,14 +1836,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1 >Emitted(25, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(25, 5) Source(3, 5) + SourceIndex(5) -3 >Emitted(25, 6) Source(3, 6) + SourceIndex(5) -4 >Emitted(25, 9) Source(3, 9) + SourceIndex(5) -5 >Emitted(25, 13) Source(3, 13) + SourceIndex(5) -6 >Emitted(25, 14) Source(3, 14) + SourceIndex(5) -7 >Emitted(25, 16) Source(3, 16) + SourceIndex(5) -8 >Emitted(25, 17) Source(3, 17) + SourceIndex(5) +1 >Emitted(27, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(27, 5) Source(3, 5) + SourceIndex(5) +3 >Emitted(27, 6) Source(3, 6) + SourceIndex(5) +4 >Emitted(27, 9) Source(3, 9) + SourceIndex(5) +5 >Emitted(27, 13) Source(3, 13) + SourceIndex(5) +6 >Emitted(27, 14) Source(3, 14) + SourceIndex(5) +7 >Emitted(27, 16) Source(3, 16) + SourceIndex(5) +8 >Emitted(27, 17) Source(3, 17) + SourceIndex(5) --- >>>c.doSomething(); 1-> @@ -1822,12 +1860,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(26, 1) Source(4, 1) + SourceIndex(5) -2 >Emitted(26, 2) Source(4, 2) + SourceIndex(5) -3 >Emitted(26, 3) Source(4, 3) + SourceIndex(5) -4 >Emitted(26, 14) Source(4, 14) + SourceIndex(5) -5 >Emitted(26, 16) Source(4, 16) + SourceIndex(5) -6 >Emitted(26, 17) Source(4, 17) + SourceIndex(5) +1->Emitted(28, 1) Source(4, 1) + SourceIndex(5) +2 >Emitted(28, 2) Source(4, 2) + SourceIndex(5) +3 >Emitted(28, 3) Source(4, 3) + SourceIndex(5) +4 >Emitted(28, 14) Source(4, 14) + SourceIndex(5) +5 >Emitted(28, 16) Source(4, 16) + SourceIndex(5) +6 >Emitted(28, 17) Source(4, 17) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map diff --git a/tests/baselines/reference/outFile-triple-slash-refs-in-one-project.js b/tests/baselines/reference/outFile-triple-slash-refs-in-one-project.js index ea7ba214ac2..cdd73b68dd8 100644 --- a/tests/baselines/reference/outFile-triple-slash-refs-in-one-project.js +++ b/tests/baselines/reference/outFile-triple-slash-refs-in-one-project.js @@ -5,6 +5,11 @@ "pos": 0, "end": 336, "kind": "text" + }, + { + "pos": 336, + "end": 377, + "kind": "sourceMapUrl" } ], "dts": [ @@ -18,6 +23,11 @@ "pos": 51, "end": 205, "kind": "text" + }, + { + "pos": 205, + "end": 248, + "kind": "sourceMapUrl" } ] } @@ -468,6 +478,11 @@ sourceFile:../second/second_part2.ts "pos": 0, "end": 110, "kind": "text" + }, + { + "pos": 110, + "end": 150, + "kind": "sourceMapUrl" } ], "dts": [ @@ -475,6 +490,11 @@ sourceFile:../second/second_part2.ts "pos": 0, "end": 157, "kind": "text" + }, + { + "pos": 157, + "end": 199, + "kind": "sourceMapUrl" } ] } @@ -803,20 +823,25 @@ declare class secondsecond_part1 { } "js": [ { "pos": 0, - "end": 110, + "end": 150, "kind": "prepend", "fileName": "/src/first/bin/first-output.js" }, { - "pos": 110, - "end": 446, + "pos": 152, + "end": 529, "kind": "prepend", "fileName": "/src/2/second-output.js" }, { - "pos": 446, - "end": 482, + "pos": 531, + "end": 567, "kind": "text" + }, + { + "pos": 567, + "end": 607, + "kind": "sourceMapUrl" } ], "dts": [ @@ -828,20 +853,25 @@ declare class secondsecond_part1 { } }, { "pos": 57, - "end": 214, + "end": 256, "kind": "prepend", "fileName": "/src/first/bin/first-output.d.ts" }, { - "pos": 214, - "end": 368, + "pos": 258, + "end": 455, "kind": "prepend", "fileName": "/src/2/second-output.d.ts" }, { - "pos": 368, - "end": 387, + "pos": 457, + "end": 476, "kind": "text" + }, + { + "pos": 476, + "end": 518, + "kind": "sourceMapUrl" } ] } @@ -856,6 +886,7 @@ interface NoJsForHereEither { none: any; } declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map declare const second_part1Const: secondsecond_part1; declare namespace N { } @@ -864,11 +895,12 @@ declare namespace N { 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;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,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;;ACDD,QAAA,MAAM,iBAAiB,oBAA2B,CAAC;AACnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACZD,cAAM,CAAC;IACH,WAAW;CAGd;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -987,7 +1019,7 @@ sourceFile:../../../first/first_part3.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^ -5 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^-> 1-> 2 >function 3 > f @@ -1003,6 +1035,7 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.d.ts.map >>>declare const second_part1Const: secondsecond_part1; 1-> 2 >^^^^^^^^ @@ -1017,12 +1050,12 @@ sourceFile:../../../second/second_part1.ts 4 > second_part1Const 5 > = new secondsecond_part1() 6 > ; -1->Emitted(10, 1) Source(2, 1) + SourceIndex(2) -2 >Emitted(10, 9) Source(2, 1) + SourceIndex(2) -3 >Emitted(10, 15) Source(2, 7) + SourceIndex(2) -4 >Emitted(10, 32) Source(2, 24) + SourceIndex(2) -5 >Emitted(10, 52) Source(2, 51) + SourceIndex(2) -6 >Emitted(10, 53) Source(2, 52) + SourceIndex(2) +1->Emitted(11, 1) Source(2, 1) + SourceIndex(2) +2 >Emitted(11, 9) Source(2, 1) + SourceIndex(2) +3 >Emitted(11, 15) Source(2, 7) + SourceIndex(2) +4 >Emitted(11, 32) Source(2, 24) + SourceIndex(2) +5 >Emitted(11, 52) Source(2, 51) + SourceIndex(2) +6 >Emitted(11, 53) Source(2, 52) + SourceIndex(2) --- >>>declare namespace N { 1 > @@ -1034,10 +1067,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -1 >Emitted(11, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(3, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(3, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(3, 13) + SourceIndex(2) +1 >Emitted(12, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(3, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(3, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(3, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -1045,7 +1078,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(12, 2) Source(5, 2) + SourceIndex(2) +1 >Emitted(13, 2) Source(5, 2) + SourceIndex(2) --- >>>declare namespace N { 1-> @@ -1058,10 +1091,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -1->Emitted(13, 1) Source(7, 1) + SourceIndex(2) -2 >Emitted(13, 19) Source(7, 11) + SourceIndex(2) -3 >Emitted(13, 20) Source(7, 12) + SourceIndex(2) -4 >Emitted(13, 21) Source(7, 13) + SourceIndex(2) +1->Emitted(14, 1) Source(7, 1) + SourceIndex(2) +2 >Emitted(14, 19) Source(7, 11) + SourceIndex(2) +3 >Emitted(14, 20) Source(7, 12) + SourceIndex(2) +4 >Emitted(14, 21) Source(7, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -1073,7 +1106,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(14, 2) Source(13, 2) + SourceIndex(2) +1 >Emitted(15, 2) Source(13, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1087,9 +1120,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >class 3 > C -1->Emitted(15, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(15, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(15, 16) Source(1, 8) + SourceIndex(3) +1->Emitted(16, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(16, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(16, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -1097,22 +1130,23 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(16, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(16, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(17, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(17, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >() { > console.log("something got done"); > } >} -1 >Emitted(17, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(18, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.d.ts.map >>>declare var c: C; 1-> 2 >^^^^^^^^ @@ -1127,12 +1161,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) +1->Emitted(20, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(20, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(20, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(20, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(20, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(20, 18) Source(1, 17) + SourceIndex(4) --- >>>//# sourceMappingURL=third-output.d.ts.map @@ -1143,6 +1177,7 @@ console.log(f()); function f() { return "JS does hoists"; } +//# sourceMappingURL=first-output.js.map var second_part1Const = new secondsecond_part1(); var N; (function (N) { @@ -1159,12 +1194,13 @@ var C = (function () { }; return C; }()); +//# sourceMappingURL=second-output.js.map var c = new C(); c.doSomething(); //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;;ACDD,IAAM,iBAAiB,GAAG,IAAI,kBAAkB,EAAE,CAAC;AAKnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACZD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -1301,7 +1337,7 @@ sourceFile:../../../first/first_part3.ts >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -1312,6 +1348,7 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.js.map >>>var second_part1Const = new secondsecond_part1(); 1-> 2 >^^^^ @@ -1330,14 +1367,14 @@ sourceFile:../../../second/second_part1.ts 6 > secondsecond_part1 7 > () 8 > ; -1->Emitted(7, 1) Source(2, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(2, 7) + SourceIndex(3) -3 >Emitted(7, 22) Source(2, 24) + SourceIndex(3) -4 >Emitted(7, 25) Source(2, 27) + SourceIndex(3) -5 >Emitted(7, 29) Source(2, 31) + SourceIndex(3) -6 >Emitted(7, 47) Source(2, 49) + SourceIndex(3) -7 >Emitted(7, 49) Source(2, 51) + SourceIndex(3) -8 >Emitted(7, 50) Source(2, 52) + SourceIndex(3) +1->Emitted(8, 1) Source(2, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(2, 7) + SourceIndex(3) +3 >Emitted(8, 22) Source(2, 24) + SourceIndex(3) +4 >Emitted(8, 25) Source(2, 27) + SourceIndex(3) +5 >Emitted(8, 29) Source(2, 31) + SourceIndex(3) +6 >Emitted(8, 47) Source(2, 49) + SourceIndex(3) +7 >Emitted(8, 49) Source(2, 51) + SourceIndex(3) +8 >Emitted(8, 50) Source(2, 52) + SourceIndex(3) --- >>>var N; 1 > @@ -1360,10 +1397,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1 >Emitted(8, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(8, 5) Source(7, 11) + SourceIndex(3) -3 >Emitted(8, 6) Source(7, 12) + SourceIndex(3) -4 >Emitted(8, 7) Source(13, 2) + SourceIndex(3) +1 >Emitted(9, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(9, 5) Source(7, 11) + SourceIndex(3) +3 >Emitted(9, 6) Source(7, 12) + SourceIndex(3) +4 >Emitted(9, 7) Source(13, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -1373,9 +1410,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(9, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(9, 12) Source(7, 11) + SourceIndex(3) -3 >Emitted(9, 13) Source(7, 12) + SourceIndex(3) +1->Emitted(10, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(10, 12) Source(7, 11) + SourceIndex(3) +3 >Emitted(10, 13) Source(7, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -1386,9 +1423,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(10, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(10, 14) Source(8, 14) + SourceIndex(3) -3 >Emitted(10, 15) Source(8, 15) + SourceIndex(3) +1->Emitted(11, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(11, 14) Source(8, 14) + SourceIndex(3) +3 >Emitted(11, 15) Source(8, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -1408,14 +1445,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(11, 9) Source(9, 9) + SourceIndex(3) -2 >Emitted(11, 16) Source(9, 16) + SourceIndex(3) -3 >Emitted(11, 17) Source(9, 17) + SourceIndex(3) -4 >Emitted(11, 20) Source(9, 20) + SourceIndex(3) -5 >Emitted(11, 21) Source(9, 21) + SourceIndex(3) -6 >Emitted(11, 30) Source(9, 30) + SourceIndex(3) -7 >Emitted(11, 31) Source(9, 31) + SourceIndex(3) -8 >Emitted(11, 32) Source(9, 32) + SourceIndex(3) +1->Emitted(12, 9) Source(9, 9) + SourceIndex(3) +2 >Emitted(12, 16) Source(9, 16) + SourceIndex(3) +3 >Emitted(12, 17) Source(9, 17) + SourceIndex(3) +4 >Emitted(12, 20) Source(9, 20) + SourceIndex(3) +5 >Emitted(12, 21) Source(9, 21) + SourceIndex(3) +6 >Emitted(12, 30) Source(9, 30) + SourceIndex(3) +7 >Emitted(12, 31) Source(9, 31) + SourceIndex(3) +8 >Emitted(12, 32) Source(9, 32) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -1424,8 +1461,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) +1 >Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -1439,10 +1476,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(13, 5) Source(12, 5) + SourceIndex(3) -2 >Emitted(13, 6) Source(12, 6) + SourceIndex(3) -3 >Emitted(13, 8) Source(12, 8) + SourceIndex(3) -4 >Emitted(13, 9) Source(12, 9) + SourceIndex(3) +1->Emitted(14, 5) Source(12, 5) + SourceIndex(3) +2 >Emitted(14, 6) Source(12, 6) + SourceIndex(3) +3 >Emitted(14, 8) Source(12, 8) + SourceIndex(3) +4 >Emitted(14, 9) Source(12, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -1467,13 +1504,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(14, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(14, 2) Source(13, 2) + SourceIndex(3) -3 >Emitted(14, 4) Source(7, 11) + SourceIndex(3) -4 >Emitted(14, 5) Source(7, 12) + SourceIndex(3) -5 >Emitted(14, 10) Source(7, 11) + SourceIndex(3) -6 >Emitted(14, 11) Source(7, 12) + SourceIndex(3) -7 >Emitted(14, 19) Source(13, 2) + SourceIndex(3) +1->Emitted(15, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(15, 2) Source(13, 2) + SourceIndex(3) +3 >Emitted(15, 4) Source(7, 11) + SourceIndex(3) +4 >Emitted(15, 5) Source(7, 12) + SourceIndex(3) +5 >Emitted(15, 10) Source(7, 11) + SourceIndex(3) +6 >Emitted(15, 11) Source(7, 12) + SourceIndex(3) +7 >Emitted(15, 19) Source(13, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1483,13 +1520,13 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) +1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(17, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -1501,8 +1538,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(18, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(18, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -1512,9 +1549,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) +1->Emitted(19, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(19, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(19, 31) Source(2, 5) + SourceIndex(4) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -1534,14 +1571,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) +1->Emitted(20, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(20, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(20, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(20, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(20, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(20, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(20, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(20, 43) Source(3, 43) + SourceIndex(4) --- >>> }; 1 >^^^^ @@ -1550,8 +1587,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(21, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(21, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -1559,15 +1596,15 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(22, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >} 3 > @@ -1576,15 +1613,16 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) +1 >Emitted(23, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(23, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(23, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(23, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.js.map >>>var c = new C(); 1-> 2 >^^^^ @@ -1603,14 +1641,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1->Emitted(23, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(23, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(23, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(23, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(23, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(23, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(23, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(23, 17) Source(1, 17) + SourceIndex(5) +1->Emitted(25, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(25, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(25, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(25, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(25, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(25, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(25, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(25, 17) Source(1, 17) + SourceIndex(5) --- >>>c.doSomething(); 1-> @@ -1627,12 +1665,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(24, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(24, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(24, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(24, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(24, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(24, 17) Source(2, 17) + SourceIndex(5) +1->Emitted(26, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(26, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(26, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(26, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(26, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(26, 17) Source(2, 17) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map diff --git a/tests/baselines/reference/outFile-when-final-project-is-not-composite-but-uses-project-references.js b/tests/baselines/reference/outFile-when-final-project-is-not-composite-but-uses-project-references.js index d177ec46145..3599c4affdb 100644 --- a/tests/baselines/reference/outFile-when-final-project-is-not-composite-but-uses-project-references.js +++ b/tests/baselines/reference/outFile-when-final-project-is-not-composite-but-uses-project-references.js @@ -5,6 +5,11 @@ "pos": 0, "end": 285, "kind": "text" + }, + { + "pos": 285, + "end": 326, + "kind": "sourceMapUrl" } ], "dts": [ @@ -12,6 +17,11 @@ "pos": 0, "end": 100, "kind": "text" + }, + { + "pos": 100, + "end": 143, + "kind": "sourceMapUrl" } ] } @@ -408,6 +418,11 @@ sourceFile:../second/second_part2.ts "pos": 0, "end": 110, "kind": "text" + }, + { + "pos": 110, + "end": 150, + "kind": "sourceMapUrl" } ], "dts": [ @@ -415,6 +430,11 @@ sourceFile:../second/second_part2.ts "pos": 0, "end": 157, "kind": "text" + }, + { + "pos": 157, + "end": 199, + "kind": "sourceMapUrl" } ] } @@ -724,39 +744,49 @@ sourceFile:../first_part3.ts "js": [ { "pos": 0, - "end": 110, + "end": 150, "kind": "prepend", "fileName": "/src/first/bin/first-output.js" }, { - "pos": 110, - "end": 395, + "pos": 152, + "end": 478, "kind": "prepend", "fileName": "/src/2/second-output.js" }, { - "pos": 395, - "end": 431, + "pos": 480, + "end": 516, "kind": "text" + }, + { + "pos": 516, + "end": 556, + "kind": "sourceMapUrl" } ], "dts": [ { "pos": 0, - "end": 157, + "end": 199, "kind": "prepend", "fileName": "/src/first/bin/first-output.d.ts" }, { - "pos": 157, - "end": 257, + "pos": 201, + "end": 344, "kind": "prepend", "fileName": "/src/2/second-output.d.ts" }, { - "pos": 257, - "end": 276, + "pos": 346, + "end": 365, "kind": "text" + }, + { + "pos": 365, + "end": 407, + "kind": "sourceMapUrl" } ] } @@ -770,6 +800,7 @@ interface NoJsForHereEither { none: any; } declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map declare namespace N { } declare namespace N { @@ -777,11 +808,12 @@ declare namespace N { 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;ACVD,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;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -899,6 +931,7 @@ sourceFile:../../../first/first_part3.ts 2 >^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^-> 1-> 2 >function 3 > f @@ -914,19 +947,20 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.d.ts.map >>>declare namespace N { -1 > +1-> 2 >^^^^^^^^^^^^^^^^^^ 3 > ^ 4 > ^ -1 > +1-> 2 >namespace 3 > N 4 > -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(9, 19) Source(1, 11) + SourceIndex(2) -3 >Emitted(9, 20) Source(1, 12) + SourceIndex(2) -4 >Emitted(9, 21) Source(1, 13) + SourceIndex(2) +1->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 >^ @@ -934,7 +968,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(10, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(11, 2) Source(3, 2) + SourceIndex(2) --- >>>declare namespace N { 1-> @@ -947,10 +981,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -1->Emitted(11, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(11, 19) Source(5, 11) + SourceIndex(2) -3 >Emitted(11, 20) Source(5, 12) + SourceIndex(2) -4 >Emitted(11, 21) Source(5, 13) + SourceIndex(2) +1->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 >^ @@ -962,7 +996,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(12, 2) Source(11, 2) + SourceIndex(2) +1 >Emitted(13, 2) Source(11, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -976,9 +1010,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >class 3 > C -1->Emitted(13, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(13, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(13, 16) Source(1, 8) + SourceIndex(3) +1->Emitted(14, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(14, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(14, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -986,22 +1020,23 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(14, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(14, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(15, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(15, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ -2 > ^^^^^^^^^^^^^^^^^-> +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >() { > console.log("something got done"); > } >} -1 >Emitted(15, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(16, 2) Source(5, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.d.ts.map >>>declare var c: C; 1-> 2 >^^^^^^^^ @@ -1016,12 +1051,12 @@ sourceFile:../../third_part1.ts 4 > c 5 > = new C() 6 > ; -1->Emitted(16, 1) Source(1, 1) + SourceIndex(4) -2 >Emitted(16, 9) Source(1, 1) + SourceIndex(4) -3 >Emitted(16, 13) Source(1, 5) + SourceIndex(4) -4 >Emitted(16, 14) Source(1, 6) + SourceIndex(4) -5 >Emitted(16, 17) Source(1, 16) + SourceIndex(4) -6 >Emitted(16, 18) Source(1, 17) + SourceIndex(4) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(18, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(18, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(18, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(18, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(18, 18) Source(1, 17) + SourceIndex(4) --- >>>//# sourceMappingURL=third-output.d.ts.map @@ -1032,6 +1067,7 @@ console.log(f()); function f() { return "JS does hoists"; } +//# sourceMappingURL=first-output.js.map var N; (function (N) { function f() { @@ -1047,12 +1083,13 @@ var C = (function () { }; return C; }()); +//# sourceMappingURL=second-output.js.map var c = new C(); c.doSomething(); //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACVf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -1189,7 +1226,7 @@ sourceFile:../../../first/first_part3.ts >>>} 1 > 2 >^ -3 > ^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > > 2 >} @@ -1200,6 +1237,7 @@ sourceFile:../../../first/first_part3.ts emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../../second/second_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.js.map >>>var N; 1-> 2 >^^^^ @@ -1220,10 +1258,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(7, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(7, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(7, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(7, 7) Source(11, 2) + SourceIndex(3) +1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(8, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(8, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(8, 7) Source(11, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -1233,9 +1271,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(8, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(8, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(8, 13) Source(5, 12) + SourceIndex(3) +1->Emitted(9, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(9, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(9, 13) Source(5, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -1246,9 +1284,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(9, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(9, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(9, 15) Source(6, 15) + SourceIndex(3) +1->Emitted(10, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(10, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(10, 15) Source(6, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -1268,14 +1306,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(10, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(10, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(10, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(10, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(10, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(10, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(10, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(10, 32) Source(7, 32) + SourceIndex(3) +1->Emitted(11, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(11, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(11, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(11, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(11, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(11, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(11, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(11, 32) Source(7, 32) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -1284,8 +1322,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(11, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(11, 6) Source(8, 6) + SourceIndex(3) +1 >Emitted(12, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(12, 6) Source(8, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -1299,10 +1337,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(12, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(12, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(12, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(12, 9) Source(10, 9) + SourceIndex(3) +1->Emitted(13, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(13, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(13, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(13, 9) Source(10, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -1327,13 +1365,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(13, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(13, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(13, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(13, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(13, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(13, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(13, 19) Source(11, 2) + SourceIndex(3) +1->Emitted(14, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(14, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(14, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(14, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(14, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(14, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(14, 19) Source(11, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1343,13 +1381,13 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(14, 1) Source(1, 1) + SourceIndex(4) +1->Emitted(15, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(15, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(16, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -1361,8 +1399,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(16, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(16, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(17, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(17, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -1372,9 +1410,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(17, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(17, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(17, 31) Source(2, 5) + SourceIndex(4) +1->Emitted(18, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(18, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(18, 31) Source(2, 5) + SourceIndex(4) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -1394,14 +1432,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(18, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(18, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(18, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(18, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(18, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(18, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(18, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(18, 43) Source(3, 43) + SourceIndex(4) +1->Emitted(19, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(19, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(19, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(19, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(19, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(19, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(19, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(19, 43) Source(3, 43) + SourceIndex(4) --- >>> }; 1 >^^^^ @@ -1410,8 +1448,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(19, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(19, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -1419,15 +1457,15 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(20, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(20, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(21, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(21, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > 2 >^ 3 > 4 > ^^^^ -5 > ^^^^^^^^^^^^-> +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 > 2 >} 3 > @@ -1436,15 +1474,16 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(21, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(21, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(21, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(21, 6) Source(5, 2) + SourceIndex(4) +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(22, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(22, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(22, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../third_part1.ts ------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.js.map >>>var c = new C(); 1-> 2 >^^^^ @@ -1463,14 +1502,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1->Emitted(22, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(22, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(22, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(22, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(22, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(22, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(22, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(22, 17) Source(1, 17) + SourceIndex(5) +1->Emitted(24, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(24, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(24, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(24, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(24, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(24, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(24, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(24, 17) Source(1, 17) + SourceIndex(5) --- >>>c.doSomething(); 1-> @@ -1487,12 +1526,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(23, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(23, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(23, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(23, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(23, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(23, 17) Source(2, 17) + SourceIndex(5) +1->Emitted(25, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(25, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(25, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(25, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(25, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(25, 17) Source(2, 17) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map