diff --git a/src/testRunner/unittests/tsbuild/outFile.ts b/src/testRunner/unittests/tsbuild/outFile.ts index 5eb947b613..d6b32fc641 100644 --- a/src/testRunner/unittests/tsbuild/outFile.ts +++ b/src/testRunner/unittests/tsbuild/outFile.ts @@ -930,5 +930,40 @@ ${internal} enum internalEnum { a, b, c }`); ignoreDtsUnchanged: true, baselineOnly: true }); + + // only baseline + verifyOutFileScenario({ + scenario: "stripInternal when few members of enum are internal", + modifyFs: fs => { + stripInternalOfThird(fs); + prependText(fs, sources[project.first][source.ts][part.one], `enum TokenFlags { + None = 0, + /* @internal */ + PrecedingLineBreak = 1 << 0, + /* @internal */ + PrecedingJSDocComment = 1 << 1, + /* @internal */ + Unterminated = 1 << 2, + /* @internal */ + ExtendedUnicodeEscape = 1 << 3, + Scientific = 1 << 4, + Octal = 1 << 5, + HexSpecifier = 1 << 6, + BinarySpecifier = 1 << 7, + OctalSpecifier = 1 << 8, + /* @internal */ + ContainsSeparator = 1 << 9, + /* @internal */ + BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, + /* @internal */ + NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator +} +`); + }, + ignoreWithoutBuildInfo: true, + ignoreDtsChanged: true, + ignoreDtsUnchanged: true, + baselineOnly: true + }); }); } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-when-few-members-of-enum-are-internal.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-when-few-members-of-enum-are-internal.js new file mode 100644 index 0000000000..f4f0699dd6 --- /dev/null +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/buildInfo/stripInternal-when-few-members-of-enum-are-internal.js @@ -0,0 +1,2904 @@ +//// [/src/2/.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/second/", + "sourceFiles": [ + "/src/second/second_part1.ts", + "/src/second/second_part2.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 285, + "kind": "text" + }, + { + "pos": 285, + "end": 326, + "kind": "sourceMapUrl" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 100, + "kind": "text" + }, + { + "pos": 100, + "end": 143, + "kind": "sourceMapUrl" + } + ] + } + } +} + +//// [/src/2/.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/2/second-output.js +---------------------------------------------------------------------- +text: (0-285) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +---------------------------------------------------------------------- +sourceMapUrl: (285-326) +//# sourceMappingURL=second-output.js.map +====================================================================== +====================================================================== +File:: /src/2/second-output.d.ts +---------------------------------------------------------------------- +text: (0-100) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +---------------------------------------------------------------------- +sourceMapUrl: (100-143) +//# sourceMappingURL=second-output.d.ts.map +====================================================================== + +//// [/src/2/second-output.d.ts] +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} +//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.d.ts.map] +{"version":3,"file":"second-output.d.ts","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAAA,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd"} + +//// [/src/2/second-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: second-output.d.ts +mapUrl: second-output.d.ts.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>declare namespace N { +1 > +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1 > +2 >namespace +3 > N +4 > +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 19) Source(1, 11) + SourceIndex(0) +3 >Emitted(1, 20) Source(1, 12) + SourceIndex(0) +4 >Emitted(1, 21) Source(1, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(2, 2) Source(3, 2) + SourceIndex(0) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(3, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(3, 19) Source(5, 11) + SourceIndex(0) +3 >Emitted(3, 20) Source(5, 12) + SourceIndex(0) +4 >Emitted(3, 21) Source(5, 13) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(4, 2) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.d.ts +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(5, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(5, 16) Source(1, 8) + SourceIndex(1) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(6, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(6, 16) Source(2, 16) + SourceIndex(1) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(7, 2) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.d.ts.map + +//// [/src/2/second-output.js] +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=second-output.js.map + +//// [/src/2/second-output.js.map] +{"version":3,"file":"second-output.js","sourceRoot":"","sources":["../second/second_part1.ts","../second/second_part2.ts"],"names":[],"mappings":"AAIA,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} + +//// [/src/2/second-output.js.map.baseline.txt] +=================================================================== +JsFile: second-output.js +mapUrl: second-output.js.map +sourceRoot: +sources: ../second/second_part1.ts,../second/second_part2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part1.ts +------------------------------------------------------------------- +>>>var N; +1 > +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1 >namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(4, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(4, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(4, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(4, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(4, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(4, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(4, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(4, 32) Source(7, 32) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(7, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(7, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(7, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(7, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(7, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(7, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(7, 19) Source(11, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/2/second-output.js +sourceFile:../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(8, 1) Source(1, 1) + SourceIndex(1) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(9, 5) Source(1, 1) + SourceIndex(1) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(10, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(10, 6) Source(5, 2) + SourceIndex(1) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(11, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(11, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(11, 31) Source(2, 5) + SourceIndex(1) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(12, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(12, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(12, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(12, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(12, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(12, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(12, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(12, 43) Source(3, 43) + SourceIndex(1) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(13, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(13, 6) Source(4, 6) + SourceIndex(1) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(14, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(14, 13) Source(5, 2) + SourceIndex(1) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(15, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(15, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(15, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(15, 6) Source(5, 2) + SourceIndex(1) +--- +>>>//# sourceMappingURL=second-output.js.map + +//// [/src/first/bin/.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/first/", + "sourceFiles": [ + "/src/first/first_PART1.ts", + "/src/first/first_part2.ts", + "/src/first/first_part3.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1131, + "kind": "text" + }, + { + "pos": 1131, + "end": 1171, + "kind": "sourceMapUrl" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 42, + "kind": "text" + }, + { + "pos": 42, + "end": 68, + "kind": "internal" + }, + { + "pos": 70, + "end": 71, + "kind": "text" + }, + { + "pos": 71, + "end": 100, + "kind": "internal" + }, + { + "pos": 102, + "end": 103, + "kind": "text" + }, + { + "pos": 103, + "end": 123, + "kind": "internal" + }, + { + "pos": 125, + "end": 126, + "kind": "text" + }, + { + "pos": 126, + "end": 155, + "kind": "internal" + }, + { + "pos": 157, + "end": 276, + "kind": "text" + }, + { + "pos": 276, + "end": 303, + "kind": "internal" + }, + { + "pos": 305, + "end": 306, + "kind": "text" + }, + { + "pos": 306, + "end": 338, + "kind": "internal" + }, + { + "pos": 340, + "end": 341, + "kind": "text" + }, + { + "pos": 341, + "end": 371, + "kind": "internal" + }, + { + "pos": 373, + "end": 533, + "kind": "text" + }, + { + "pos": 533, + "end": 575, + "kind": "sourceMapUrl" + } + ] + } + } +} + +//// [/src/first/bin/.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/first/bin/first-output.js +---------------------------------------------------------------------- +text: (0-1131) +var TokenFlags; +(function (TokenFlags) { + TokenFlags[TokenFlags["None"] = 0] = "None"; + TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; + TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; + TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; + TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; + TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; + TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; + TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; + TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; + TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; + TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; + TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; + TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; +})(TokenFlags || (TokenFlags = {})); +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +---------------------------------------------------------------------- +sourceMapUrl: (1131-1171) +//# sourceMappingURL=first-output.js.map +====================================================================== +====================================================================== +File:: /src/first/bin/first-output.d.ts +---------------------------------------------------------------------- +text: (0-42) +declare enum TokenFlags { + None = 0, + +---------------------------------------------------------------------- +internal: (42-68) + PrecedingLineBreak = 1 +---------------------------------------------------------------------- +text: (70-71) + + +---------------------------------------------------------------------- +internal: (71-100) + PrecedingJSDocComment = 2 +---------------------------------------------------------------------- +text: (102-103) + + +---------------------------------------------------------------------- +internal: (103-123) + Unterminated = 4 +---------------------------------------------------------------------- +text: (125-126) + + +---------------------------------------------------------------------- +internal: (126-155) + ExtendedUnicodeEscape = 8 +---------------------------------------------------------------------- +text: (157-276) + + Scientific = 16, + Octal = 32, + HexSpecifier = 64, + BinarySpecifier = 128, + OctalSpecifier = 256, + +---------------------------------------------------------------------- +internal: (276-303) + ContainsSeparator = 512 +---------------------------------------------------------------------- +text: (305-306) + + +---------------------------------------------------------------------- +internal: (306-338) + BinaryOrOctalSpecifier = 384 +---------------------------------------------------------------------- +text: (340-341) + + +---------------------------------------------------------------------- +internal: (341-371) + NumericLiteralFlags = 1008 +---------------------------------------------------------------------- +text: (373-533) +} +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +---------------------------------------------------------------------- +sourceMapUrl: (533-575) +//# sourceMappingURL=first-output.d.ts.map +====================================================================== + +//// [/src/first/bin/first-output.d.ts] +declare enum TokenFlags { + None = 0, + PrecedingLineBreak = 1, + PrecedingJSDocComment = 2, + Unterminated = 4, + ExtendedUnicodeEscape = 8, + Scientific = 16, + Octal = 32, + HexSpecifier = 64, + BinarySpecifier = 128, + OctalSpecifier = 256, + ContainsSeparator = 512, + BinaryOrOctalSpecifier = 384, + NumericLiteralFlags = 1008 +} +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.d.ts.map] +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,aAAK,UAAU;IACX,IAAI,IAAI;IAER,kBAAkB,IAAS;IAE3B,qBAAqB,IAAS;IAE9B,YAAY,IAAS;IAErB,qBAAqB,IAAS;IAC9B,UAAU,KAAS;IACnB,KAAK,KAAS;IACd,YAAY,KAAS;IACrB,eAAe,MAAS;IACxB,cAAc,MAAS;IAEvB,iBAAiB,MAAS;IAE1B,sBAAsB,MAAmC;IAEzD,mBAAmB,OAAiF;CACvG;AACD,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AE9BD,iBAAS,CAAC,WAET"} + +//// [/src/first/bin/first-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: first-output.d.ts +mapUrl: first-output.d.ts.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>declare enum TokenFlags { +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^ +1 > +2 >enum +3 > TokenFlags +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 14) Source(1, 6) + SourceIndex(0) +3 >Emitted(1, 24) Source(1, 16) + SourceIndex(0) +--- +>>> None = 0, +1 >^^^^ +2 > ^^^^ +3 > ^^^^ +4 > ^^^^^^^^^^^^^^^^-> +1 > { + > +2 > None +3 > = 0 +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) +--- +>>> PrecedingLineBreak = 1, +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^^^^^-> +1->, + > /* @internal */ + > +2 > PrecedingLineBreak +3 > = 1 << 0 +1->Emitted(3, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(3, 23) Source(4, 23) + SourceIndex(0) +3 >Emitted(3, 27) Source(4, 32) + SourceIndex(0) +--- +>>> PrecedingJSDocComment = 2, +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^ +1->, + > /* @internal */ + > +2 > PrecedingJSDocComment +3 > = 1 << 1 +1->Emitted(4, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(4, 26) Source(6, 26) + SourceIndex(0) +3 >Emitted(4, 30) Source(6, 35) + SourceIndex(0) +--- +>>> Unterminated = 4, +1 >^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^^^ +4 > ^^^^^^^^^^^-> +1 >, + > /* @internal */ + > +2 > Unterminated +3 > = 1 << 2 +1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(5, 17) Source(8, 17) + SourceIndex(0) +3 >Emitted(5, 21) Source(8, 26) + SourceIndex(0) +--- +>>> ExtendedUnicodeEscape = 8, +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^ +1->, + > /* @internal */ + > +2 > ExtendedUnicodeEscape +3 > = 1 << 3 +1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 26) Source(10, 26) + SourceIndex(0) +3 >Emitted(6, 30) Source(10, 35) + SourceIndex(0) +--- +>>> Scientific = 16, +1 >^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^ +1 >, + > +2 > Scientific +3 > = 1 << 4 +1 >Emitted(7, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(7, 15) Source(11, 15) + SourceIndex(0) +3 >Emitted(7, 20) Source(11, 24) + SourceIndex(0) +--- +>>> Octal = 32, +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^ +4 > ^^^^^^^^^-> +1 >, + > +2 > Octal +3 > = 1 << 5 +1 >Emitted(8, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(8, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 15) Source(12, 19) + SourceIndex(0) +--- +>>> HexSpecifier = 64, +1->^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^^^^ +4 > ^^^^^^-> +1->, + > +2 > HexSpecifier +3 > = 1 << 6 +1->Emitted(9, 5) Source(13, 5) + SourceIndex(0) +2 >Emitted(9, 17) Source(13, 17) + SourceIndex(0) +3 >Emitted(9, 22) Source(13, 26) + SourceIndex(0) +--- +>>> BinarySpecifier = 128, +1->^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^-> +1->, + > +2 > BinarySpecifier +3 > = 1 << 7 +1->Emitted(10, 5) Source(14, 5) + SourceIndex(0) +2 >Emitted(10, 20) Source(14, 20) + SourceIndex(0) +3 >Emitted(10, 26) Source(14, 29) + SourceIndex(0) +--- +>>> OctalSpecifier = 256, +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^-> +1->, + > +2 > OctalSpecifier +3 > = 1 << 8 +1->Emitted(11, 5) Source(15, 5) + SourceIndex(0) +2 >Emitted(11, 19) Source(15, 19) + SourceIndex(0) +3 >Emitted(11, 25) Source(15, 28) + SourceIndex(0) +--- +>>> ContainsSeparator = 512, +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^-> +1->, + > /* @internal */ + > +2 > ContainsSeparator +3 > = 1 << 9 +1->Emitted(12, 5) Source(17, 5) + SourceIndex(0) +2 >Emitted(12, 22) Source(17, 22) + SourceIndex(0) +3 >Emitted(12, 28) Source(17, 31) + SourceIndex(0) +--- +>>> BinaryOrOctalSpecifier = 384, +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^ +1->, + > /* @internal */ + > +2 > BinaryOrOctalSpecifier +3 > = BinarySpecifier | OctalSpecifier +1->Emitted(13, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(13, 27) Source(19, 27) + SourceIndex(0) +3 >Emitted(13, 33) Source(19, 62) + SourceIndex(0) +--- +>>> NumericLiteralFlags = 1008 +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^ +1 >, + > /* @internal */ + > +2 > NumericLiteralFlags +3 > = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator +1 >Emitted(14, 5) Source(21, 5) + SourceIndex(0) +2 >Emitted(14, 24) Source(21, 24) + SourceIndex(0) +3 >Emitted(14, 31) Source(21, 105) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(15, 2) Source(22, 2) + SourceIndex(0) +--- +>>>interface TheFirst { +1-> +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1-> + > +2 >interface +3 > TheFirst +1->Emitted(16, 1) Source(23, 1) + SourceIndex(0) +2 >Emitted(16, 11) Source(23, 11) + SourceIndex(0) +3 >Emitted(16, 19) Source(23, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(17, 5) Source(24, 5) + SourceIndex(0) +2 >Emitted(17, 9) Source(24, 9) + SourceIndex(0) +3 >Emitted(17, 11) Source(24, 11) + SourceIndex(0) +4 >Emitted(17, 14) Source(24, 14) + SourceIndex(0) +5 >Emitted(17, 15) Source(24, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(18, 2) Source(25, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(19, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(19, 9) Source(27, 1) + SourceIndex(0) +3 >Emitted(19, 15) Source(27, 7) + SourceIndex(0) +4 >Emitted(19, 16) Source(27, 8) + SourceIndex(0) +5 >Emitted(19, 33) Source(27, 25) + SourceIndex(0) +6 >Emitted(19, 34) Source(27, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(20, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(20, 11) Source(29, 11) + SourceIndex(0) +3 >Emitted(20, 28) Source(29, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(21, 5) Source(30, 5) + SourceIndex(0) +2 >Emitted(21, 9) Source(30, 9) + SourceIndex(0) +3 >Emitted(21, 11) Source(30, 11) + SourceIndex(0) +4 >Emitted(21, 14) Source(30, 14) + SourceIndex(0) +5 >Emitted(21, 15) Source(30, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(22, 2) Source(31, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.d.ts +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(23, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(23, 18) Source(1, 10) + SourceIndex(2) +3 >Emitted(23, 19) Source(1, 11) + SourceIndex(2) +4 >Emitted(23, 30) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.d.ts.map + +//// [/src/first/bin/first-output.js] +var TokenFlags; +(function (TokenFlags) { + TokenFlags[TokenFlags["None"] = 0] = "None"; + TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; + TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; + TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; + TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; + TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; + TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; + TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; + TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; + TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; + TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; + TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; + TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; +})(TokenFlags || (TokenFlags = {})); +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map + +//// [/src/first/bin/first-output.js.map] +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,IAAK,UAqBJ;AArBD,WAAK,UAAU;IACX,2CAAQ,CAAA;IAER,uEAA2B,CAAA;IAE3B,6EAA8B,CAAA;IAE9B,2DAAqB,CAAA;IAErB,6EAA8B,CAAA;IAC9B,wDAAmB,CAAA;IACnB,8CAAc,CAAA;IACd,4DAAqB,CAAA;IACrB,mEAAwB,CAAA;IACxB,iEAAuB,CAAA;IAEvB,uEAA0B,CAAA;IAE1B,iFAAyD,CAAA;IAEzD,4EAAoG,CAAA;AACxG,CAAC,EArBI,UAAU,KAAV,UAAU,QAqBd;AAKD,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AChCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"} + +//// [/src/first/bin/first-output.js.map.baseline.txt] +=================================================================== +JsFile: first-output.js +mapUrl: first-output.js.map +sourceRoot: +sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_PART1.ts +------------------------------------------------------------------- +>>>var TokenFlags; +1 > +2 >^^^^ +3 > ^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > +2 >enum +3 > TokenFlags { + > None = 0, + > /* @internal */ + > PrecedingLineBreak = 1 << 0, + > /* @internal */ + > PrecedingJSDocComment = 1 << 1, + > /* @internal */ + > Unterminated = 1 << 2, + > /* @internal */ + > ExtendedUnicodeEscape = 1 << 3, + > Scientific = 1 << 4, + > Octal = 1 << 5, + > HexSpecifier = 1 << 6, + > BinarySpecifier = 1 << 7, + > OctalSpecifier = 1 << 8, + > /* @internal */ + > ContainsSeparator = 1 << 9, + > /* @internal */ + > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, + > /* @internal */ + > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator + > } +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 6) + SourceIndex(0) +3 >Emitted(1, 15) Source(22, 2) + SourceIndex(0) +--- +>>>(function (TokenFlags) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > TokenFlags +1->Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(1, 6) + SourceIndex(0) +3 >Emitted(2, 22) Source(1, 16) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["None"] = 0] = "None"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > None = 0 +3 > +1->Emitted(3, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(3, 48) Source(2, 13) + SourceIndex(0) +3 >Emitted(3, 49) Source(2, 13) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1->, + > /* @internal */ + > +2 > PrecedingLineBreak = 1 << 0 +3 > +1->Emitted(4, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(4, 76) Source(4, 32) + SourceIndex(0) +3 >Emitted(4, 77) Source(4, 32) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, + > /* @internal */ + > +2 > PrecedingJSDocComment = 1 << 1 +3 > +1->Emitted(5, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(5, 82) Source(6, 35) + SourceIndex(0) +3 >Emitted(5, 83) Source(6, 35) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 >, + > /* @internal */ + > +2 > Unterminated = 1 << 2 +3 > +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 64) Source(8, 26) + SourceIndex(0) +3 >Emitted(6, 65) Source(8, 26) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, + > /* @internal */ + > +2 > ExtendedUnicodeEscape = 1 << 3 +3 > +1->Emitted(7, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(7, 82) Source(10, 35) + SourceIndex(0) +3 >Emitted(7, 83) Source(10, 35) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1 >, + > +2 > Scientific = 1 << 4 +3 > +1 >Emitted(8, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(8, 61) Source(11, 24) + SourceIndex(0) +3 >Emitted(8, 62) Source(11, 24) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^-> +1 >, + > +2 > Octal = 1 << 5 +3 > +1 >Emitted(9, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(9, 51) Source(12, 19) + SourceIndex(0) +3 >Emitted(9, 52) Source(12, 19) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^-> +1->, + > +2 > HexSpecifier = 1 << 6 +3 > +1->Emitted(10, 5) Source(13, 5) + SourceIndex(0) +2 >Emitted(10, 65) Source(13, 26) + SourceIndex(0) +3 >Emitted(10, 66) Source(13, 26) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, + > +2 > BinarySpecifier = 1 << 7 +3 > +1->Emitted(11, 5) Source(14, 5) + SourceIndex(0) +2 >Emitted(11, 72) Source(14, 29) + SourceIndex(0) +3 >Emitted(11, 73) Source(14, 29) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1 >, + > +2 > OctalSpecifier = 1 << 8 +3 > +1 >Emitted(12, 5) Source(15, 5) + SourceIndex(0) +2 >Emitted(12, 70) Source(15, 28) + SourceIndex(0) +3 >Emitted(12, 71) Source(15, 28) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^-> +1->, + > /* @internal */ + > +2 > ContainsSeparator = 1 << 9 +3 > +1->Emitted(13, 5) Source(17, 5) + SourceIndex(0) +2 >Emitted(13, 76) Source(17, 31) + SourceIndex(0) +3 >Emitted(13, 77) Source(17, 31) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, + > /* @internal */ + > +2 > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier +3 > +1->Emitted(14, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(14, 86) Source(19, 62) + SourceIndex(0) +3 >Emitted(14, 87) Source(19, 62) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1 >, + > /* @internal */ + > +2 > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator +3 > +1 >Emitted(15, 5) Source(21, 5) + SourceIndex(0) +2 >Emitted(15, 81) Source(21, 105) + SourceIndex(0) +3 >Emitted(15, 82) Source(21, 105) + SourceIndex(0) +--- +>>>})(TokenFlags || (TokenFlags = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^ +7 > ^^^^^^^^ +1 > + > +2 >} +3 > +4 > TokenFlags +5 > +6 > TokenFlags +7 > { + > None = 0, + > /* @internal */ + > PrecedingLineBreak = 1 << 0, + > /* @internal */ + > PrecedingJSDocComment = 1 << 1, + > /* @internal */ + > Unterminated = 1 << 2, + > /* @internal */ + > ExtendedUnicodeEscape = 1 << 3, + > Scientific = 1 << 4, + > Octal = 1 << 5, + > HexSpecifier = 1 << 6, + > BinarySpecifier = 1 << 7, + > OctalSpecifier = 1 << 8, + > /* @internal */ + > ContainsSeparator = 1 << 9, + > /* @internal */ + > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, + > /* @internal */ + > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator + > } +1 >Emitted(16, 1) Source(22, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(22, 2) + SourceIndex(0) +3 >Emitted(16, 4) Source(1, 6) + SourceIndex(0) +4 >Emitted(16, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(16, 19) Source(1, 6) + SourceIndex(0) +6 >Emitted(16, 29) Source(1, 16) + SourceIndex(0) +7 >Emitted(16, 37) Source(22, 2) + SourceIndex(0) +--- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 > + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(17, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(17, 5) Source(27, 7) + SourceIndex(0) +3 >Emitted(17, 6) Source(27, 8) + SourceIndex(0) +4 >Emitted(17, 9) Source(27, 11) + SourceIndex(0) +5 >Emitted(17, 23) Source(27, 25) + SourceIndex(0) +6 >Emitted(17, 24) Source(27, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(18, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(18, 8) Source(33, 8) + SourceIndex(0) +3 >Emitted(18, 9) Source(33, 9) + SourceIndex(0) +4 >Emitted(18, 12) Source(33, 12) + SourceIndex(0) +5 >Emitted(18, 13) Source(33, 13) + SourceIndex(0) +6 >Emitted(18, 14) Source(33, 14) + SourceIndex(0) +7 >Emitted(18, 15) Source(33, 15) + SourceIndex(0) +8 >Emitted(18, 16) Source(33, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(19, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(19, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(19, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(19, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(19, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(19, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(19, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(19, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(19, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/first/bin/first-output.js +sourceFile:../first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(20, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(20, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(20, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(21, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(21, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(21, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(21, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(22, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(3, 2) + SourceIndex(2) +--- +>>>//# sourceMappingURL=first-output.js.map + +//// [/src/first/first_PART1.ts] +enum TokenFlags { + None = 0, + /* @internal */ + PrecedingLineBreak = 1 << 0, + /* @internal */ + PrecedingJSDocComment = 1 << 1, + /* @internal */ + Unterminated = 1 << 2, + /* @internal */ + ExtendedUnicodeEscape = 1 << 3, + Scientific = 1 << 4, + Octal = 1 << 5, + HexSpecifier = 1 << 6, + BinarySpecifier = 1 << 7, + OctalSpecifier = 1 << 8, + /* @internal */ + ContainsSeparator = 1 << 9, + /* @internal */ + BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, + /* @internal */ + NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator +} +interface TheFirst { + none: any; +} + +const s = "Hello, world"; + +interface NoJsForHereEither { + none: any; +} + +console.log(s); + + +//// [/src/third/thirdjs/output/.tsbuildinfo] +{ + "bundle": { + "commonSourceDirectory": "/src/third/", + "sourceFiles": [ + "/src/third/third_part1.ts" + ], + "js": { + "sections": [ + { + "pos": 0, + "end": 1171, + "kind": "prepend", + "data": "/src/first/bin/first-output.js", + "texts": [ + { + "pos": 0, + "end": 1131, + "kind": "text" + }, + { + "pos": 1131, + "end": 1171, + "kind": "sourceMapUrl" + } + ] + }, + { + "pos": 1173, + "end": 1499, + "kind": "prepend", + "data": "/src/2/second-output.js", + "texts": [ + { + "pos": 1173, + "end": 1458, + "kind": "text" + }, + { + "pos": 1458, + "end": 1499, + "kind": "sourceMapUrl" + } + ] + }, + { + "pos": 1501, + "end": 1537, + "kind": "text" + }, + { + "pos": 1537, + "end": 1577, + "kind": "sourceMapUrl" + } + ] + }, + "dts": { + "sections": [ + { + "pos": 0, + "end": 368, + "kind": "prepend", + "data": "/src/first/bin/first-output.d.ts", + "texts": [ + { + "pos": 0, + "end": 326, + "kind": "text" + }, + { + "pos": 326, + "end": 368, + "kind": "sourceMapUrl" + } + ] + }, + { + "pos": 370, + "end": 513, + "kind": "prepend", + "data": "/src/2/second-output.d.ts", + "texts": [ + { + "pos": 370, + "end": 470, + "kind": "text" + }, + { + "pos": 470, + "end": 513, + "kind": "sourceMapUrl" + } + ] + }, + { + "pos": 515, + "end": 534, + "kind": "text" + }, + { + "pos": 534, + "end": 576, + "kind": "sourceMapUrl" + } + ] + } + } +} + +//// [/src/third/thirdjs/output/.tsbuildinfo.baseline.txt] +====================================================================== +File:: /src/third/thirdjs/output/third-output.js +---------------------------------------------------------------------- +prepend: (0-1171):: /src/first/bin/first-output.js texts:: 2 +>>-------------------------------------------------------------------- +text: (0-1131) +var TokenFlags; +(function (TokenFlags) { + TokenFlags[TokenFlags["None"] = 0] = "None"; + TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; + TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; + TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; + TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; + TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; + TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; + TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; + TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; + TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; + TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; + TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; + TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; +})(TokenFlags || (TokenFlags = {})); +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} + +>>-------------------------------------------------------------------- +sourceMapUrl: (1131-1171) +//# sourceMappingURL=first-output.js.map +---------------------------------------------------------------------- +prepend: (1173-1499):: /src/2/second-output.js texts:: 2 +>>-------------------------------------------------------------------- +text: (1173-1458) +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); + +>>-------------------------------------------------------------------- +sourceMapUrl: (1458-1499) +//# sourceMappingURL=second-output.js.map +---------------------------------------------------------------------- +text: (1501-1537) +var c = new C(); +c.doSomething(); + +---------------------------------------------------------------------- +sourceMapUrl: (1537-1577) +//# sourceMappingURL=third-output.js.map +====================================================================== +====================================================================== +File:: /src/third/thirdjs/output/third-output.d.ts +---------------------------------------------------------------------- +prepend: (0-368):: /src/first/bin/first-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +text: (0-326) +declare enum TokenFlags { + None = 0, + + + + + Scientific = 16, + Octal = 32, + HexSpecifier = 64, + BinarySpecifier = 128, + OctalSpecifier = 256, + + +} +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; + +>>-------------------------------------------------------------------- +sourceMapUrl: (326-368) +//# sourceMappingURL=first-output.d.ts.map +---------------------------------------------------------------------- +prepend: (370-513):: /src/2/second-output.d.ts texts:: 2 +>>-------------------------------------------------------------------- +text: (370-470) +declare namespace N { +} +declare namespace N { +} +declare class C { + doSomething(): void; +} + +>>-------------------------------------------------------------------- +sourceMapUrl: (470-513) +//# sourceMappingURL=second-output.d.ts.map +---------------------------------------------------------------------- +text: (515-534) +declare var c: C; + +---------------------------------------------------------------------- +sourceMapUrl: (534-576) +//# sourceMappingURL=third-output.d.ts.map +====================================================================== + +//// [/src/third/thirdjs/output/third-output.d.ts] +declare enum TokenFlags { + None = 0, + + + + + Scientific = 16, + Octal = 32, + HexSpecifier = 64, + BinarySpecifier = 128, + OctalSpecifier = 256, + + +} +interface TheFirst { + none: any; +} +declare const s = "Hello, world"; +interface NoJsForHereEither { + none: any; +} +declare function f(): string; +//# sourceMappingURL=first-output.d.ts.map +declare namespace N { +} +declare namespace N { +} +declare class 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,aAAK,UAAU;IACX,IAAI,IAAI;;;;;IASR,UAAU,KAAS;IACnB,KAAK,KAAS;IACd,YAAY,KAAS;IACrB,eAAe,MAAS;IACxB,cAAc,MAAS;;;CAO1B;AACD,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AC9BD,iBAAS,CAAC,WAET;;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;ACVD,cAAM,CAAC;IACH,WAAW;CAGd;;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC"} + +//// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] +=================================================================== +JsFile: third-output.d.ts +mapUrl: third-output.d.ts.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>declare enum TokenFlags { +1 > +2 >^^^^^^^^^^^^^ +3 > ^^^^^^^^^^ +1 > +2 >enum +3 > TokenFlags +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 14) Source(1, 6) + SourceIndex(0) +3 >Emitted(1, 24) Source(1, 16) + SourceIndex(0) +--- +>>> None = 0, +1 >^^^^ +2 > ^^^^ +3 > ^^^^ +1 > { + > +2 > None +3 > = 0 +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +3 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) +--- +>>> +>>> +>>> +>>> +>>> Scientific = 16, +1 >^^^^ +2 > ^^^^^^^^^^ +3 > ^^^^^ +1 >, + > /* @internal */ + > PrecedingLineBreak = 1 << 0, + > /* @internal */ + > PrecedingJSDocComment = 1 << 1, + > /* @internal */ + > Unterminated = 1 << 2, + > /* @internal */ + > ExtendedUnicodeEscape = 1 << 3, + > +2 > Scientific +3 > = 1 << 4 +1 >Emitted(7, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(7, 15) Source(11, 15) + SourceIndex(0) +3 >Emitted(7, 20) Source(11, 24) + SourceIndex(0) +--- +>>> Octal = 32, +1 >^^^^ +2 > ^^^^^ +3 > ^^^^^ +4 > ^^^^^^^^^-> +1 >, + > +2 > Octal +3 > = 1 << 5 +1 >Emitted(8, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(8, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(8, 15) Source(12, 19) + SourceIndex(0) +--- +>>> HexSpecifier = 64, +1->^^^^ +2 > ^^^^^^^^^^^^ +3 > ^^^^^ +4 > ^^^^^^-> +1->, + > +2 > HexSpecifier +3 > = 1 << 6 +1->Emitted(9, 5) Source(13, 5) + SourceIndex(0) +2 >Emitted(9, 17) Source(13, 17) + SourceIndex(0) +3 >Emitted(9, 22) Source(13, 26) + SourceIndex(0) +--- +>>> BinarySpecifier = 128, +1->^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^^^ +4 > ^-> +1->, + > +2 > BinarySpecifier +3 > = 1 << 7 +1->Emitted(10, 5) Source(14, 5) + SourceIndex(0) +2 >Emitted(10, 20) Source(14, 20) + SourceIndex(0) +3 >Emitted(10, 26) Source(14, 29) + SourceIndex(0) +--- +>>> OctalSpecifier = 256, +1->^^^^ +2 > ^^^^^^^^^^^^^^ +3 > ^^^^^^ +1->, + > +2 > OctalSpecifier +3 > = 1 << 8 +1->Emitted(11, 5) Source(15, 5) + SourceIndex(0) +2 >Emitted(11, 19) Source(15, 19) + SourceIndex(0) +3 >Emitted(11, 25) Source(15, 28) + SourceIndex(0) +--- +>>> +>>> +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^-> +1 >, + > /* @internal */ + > ContainsSeparator = 1 << 9, + > /* @internal */ + > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, + > /* @internal */ + > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator + >} +1 >Emitted(14, 2) Source(22, 2) + SourceIndex(0) +--- +>>>interface TheFirst { +1-> +2 >^^^^^^^^^^ +3 > ^^^^^^^^ +1-> + > +2 >interface +3 > TheFirst +1->Emitted(15, 1) Source(23, 1) + SourceIndex(0) +2 >Emitted(15, 11) Source(23, 11) + SourceIndex(0) +3 >Emitted(15, 19) Source(23, 19) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(16, 5) Source(24, 5) + SourceIndex(0) +2 >Emitted(16, 9) Source(24, 9) + SourceIndex(0) +3 >Emitted(16, 11) Source(24, 11) + SourceIndex(0) +4 >Emitted(16, 14) Source(24, 14) + SourceIndex(0) +5 >Emitted(16, 15) Source(24, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(17, 2) Source(25, 2) + SourceIndex(0) +--- +>>>declare const s = "Hello, world"; +1-> +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^ +6 > ^ +1-> + > + > +2 > +3 > const +4 > s +5 > = "Hello, world" +6 > ; +1->Emitted(18, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(18, 9) Source(27, 1) + SourceIndex(0) +3 >Emitted(18, 15) Source(27, 7) + SourceIndex(0) +4 >Emitted(18, 16) Source(27, 8) + SourceIndex(0) +5 >Emitted(18, 33) Source(27, 25) + SourceIndex(0) +6 >Emitted(18, 34) Source(27, 26) + SourceIndex(0) +--- +>>>interface NoJsForHereEither { +1 > +2 >^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^ +1 > + > + > +2 >interface +3 > NoJsForHereEither +1 >Emitted(19, 1) Source(29, 1) + SourceIndex(0) +2 >Emitted(19, 11) Source(29, 11) + SourceIndex(0) +3 >Emitted(19, 28) Source(29, 28) + SourceIndex(0) +--- +>>> none: any; +1 >^^^^ +2 > ^^^^ +3 > ^^ +4 > ^^^ +5 > ^ +1 > { + > +2 > none +3 > : +4 > any +5 > ; +1 >Emitted(20, 5) Source(30, 5) + SourceIndex(0) +2 >Emitted(20, 9) Source(30, 9) + SourceIndex(0) +3 >Emitted(20, 11) Source(30, 11) + SourceIndex(0) +4 >Emitted(20, 14) Source(30, 14) + SourceIndex(0) +5 >Emitted(20, 15) Source(30, 15) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(21, 2) Source(31, 2) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>declare function f(): string; +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^^^^^-> +1-> +2 >function +3 > f +4 > () { + > return "JS does hoists"; + > } +1->Emitted(22, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(22, 18) Source(1, 10) + SourceIndex(1) +3 >Emitted(22, 19) Source(1, 11) + SourceIndex(1) +4 >Emitted(22, 30) Source(3, 2) + SourceIndex(1) +--- +------------------------------------------------------------------- +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 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> +2 >namespace +3 > N +4 > +1->Emitted(24, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(24, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(24, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(24, 21) Source(1, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^-> +1 >{ + > // Comment text + >} +1 >Emitted(25, 2) Source(3, 2) + SourceIndex(2) +--- +>>>declare namespace N { +1-> +2 >^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^ +1-> + > + > +2 >namespace +3 > N +4 > +1->Emitted(26, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(26, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(26, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(26, 21) Source(5, 13) + SourceIndex(2) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^-> +1 >{ + > function f() { + > console.log('testing'); + > } + > + > f(); + >} +1 >Emitted(27, 2) Source(11, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.d.ts +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>declare class C { +1-> +2 >^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^-> +1-> +2 >class +3 > C +1->Emitted(28, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(28, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(28, 16) Source(1, 8) + SourceIndex(3) +--- +>>> doSomething(): void; +1->^^^^ +2 > ^^^^^^^^^^^ +1-> { + > +2 > doSomething +1->Emitted(29, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(29, 16) Source(2, 16) + SourceIndex(3) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 >() { + > console.log("something got done"); + > } + >} +1 >Emitted(30, 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 >^^^^^^^^ +3 > ^^^^ +4 > ^ +5 > ^^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > +3 > var +4 > c +5 > = new C() +6 > ; +1->Emitted(32, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(32, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(32, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(32, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(32, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(32, 18) Source(1, 17) + SourceIndex(4) +--- +>>>//# sourceMappingURL=third-output.d.ts.map + +//// [/src/third/thirdjs/output/third-output.js] +var TokenFlags; +(function (TokenFlags) { + TokenFlags[TokenFlags["None"] = 0] = "None"; + TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; + TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; + TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; + TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; + TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; + TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; + TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; + TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; + TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; + TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; + TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; + TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; +})(TokenFlags || (TokenFlags = {})); +var s = "Hello, world"; +console.log(s); +console.log(f()); +function f() { + return "JS does hoists"; +} +//# sourceMappingURL=first-output.js.map +var N; +(function (N) { + function f() { + console.log('testing'); + } + f(); +})(N || (N = {})); +var C = (function () { + function C() { + } + C.prototype.doSomething = function () { + console.log("something got done"); + }; + return C; +}()); +//# sourceMappingURL=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":"AAAA,IAAK,UAqBJ;AArBD,WAAK,UAAU;IACX,2CAAQ,CAAA;IAER,uEAA2B,CAAA;IAE3B,6EAA8B,CAAA;IAE9B,2DAAqB,CAAA;IAErB,6EAA8B,CAAA;IAC9B,wDAAmB,CAAA;IACnB,8CAAc,CAAA;IACd,4DAAqB,CAAA;IACrB,mEAAwB,CAAA;IACxB,iEAAuB,CAAA;IAEvB,uEAA0B,CAAA;IAE1B,iFAAyD,CAAA;IAEzD,4EAAoG,CAAA;AACxG,CAAC,EArBI,UAAU,KAAV,UAAU,QAqBd;AAKD,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AChCf,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;ACVD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"} + +//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] +=================================================================== +JsFile: third-output.js +mapUrl: third-output.js.map +sourceRoot: +sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../first/first_part3.ts,../../../second/second_part1.ts,../../../second/second_part2.ts,../../third_part1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_PART1.ts +------------------------------------------------------------------- +>>>var TokenFlags; +1 > +2 >^^^^ +3 > ^^^^^^^^^^ +4 > ^^^^^^^^^^^-> +1 > +2 >enum +3 > TokenFlags { + > None = 0, + > /* @internal */ + > PrecedingLineBreak = 1 << 0, + > /* @internal */ + > PrecedingJSDocComment = 1 << 1, + > /* @internal */ + > Unterminated = 1 << 2, + > /* @internal */ + > ExtendedUnicodeEscape = 1 << 3, + > Scientific = 1 << 4, + > Octal = 1 << 5, + > HexSpecifier = 1 << 6, + > BinarySpecifier = 1 << 7, + > OctalSpecifier = 1 << 8, + > /* @internal */ + > ContainsSeparator = 1 << 9, + > /* @internal */ + > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, + > /* @internal */ + > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator + > } +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(1, 6) + SourceIndex(0) +3 >Emitted(1, 15) Source(22, 2) + SourceIndex(0) +--- +>>>(function (TokenFlags) { +1-> +2 >^^^^^^^^^^^ +3 > ^^^^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 >enum +3 > TokenFlags +1->Emitted(2, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(1, 6) + SourceIndex(0) +3 >Emitted(2, 22) Source(1, 16) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["None"] = 0] = "None"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > None = 0 +3 > +1->Emitted(3, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(3, 48) Source(2, 13) + SourceIndex(0) +3 >Emitted(3, 49) Source(2, 13) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["PrecedingLineBreak"] = 1] = "PrecedingLineBreak"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1->, + > /* @internal */ + > +2 > PrecedingLineBreak = 1 << 0 +3 > +1->Emitted(4, 5) Source(4, 5) + SourceIndex(0) +2 >Emitted(4, 76) Source(4, 32) + SourceIndex(0) +3 >Emitted(4, 77) Source(4, 32) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["PrecedingJSDocComment"] = 2] = "PrecedingJSDocComment"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, + > /* @internal */ + > +2 > PrecedingJSDocComment = 1 << 1 +3 > +1->Emitted(5, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(5, 82) Source(6, 35) + SourceIndex(0) +3 >Emitted(5, 83) Source(6, 35) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["Unterminated"] = 4] = "Unterminated"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 >, + > /* @internal */ + > +2 > Unterminated = 1 << 2 +3 > +1 >Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 64) Source(8, 26) + SourceIndex(0) +3 >Emitted(6, 65) Source(8, 26) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["ExtendedUnicodeEscape"] = 8] = "ExtendedUnicodeEscape"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, + > /* @internal */ + > +2 > ExtendedUnicodeEscape = 1 << 3 +3 > +1->Emitted(7, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(7, 82) Source(10, 35) + SourceIndex(0) +3 >Emitted(7, 83) Source(10, 35) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["Scientific"] = 16] = "Scientific"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1 >, + > +2 > Scientific = 1 << 4 +3 > +1 >Emitted(8, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(8, 61) Source(11, 24) + SourceIndex(0) +3 >Emitted(8, 62) Source(11, 24) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["Octal"] = 32] = "Octal"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^-> +1 >, + > +2 > Octal = 1 << 5 +3 > +1 >Emitted(9, 5) Source(12, 5) + SourceIndex(0) +2 >Emitted(9, 51) Source(12, 19) + SourceIndex(0) +3 >Emitted(9, 52) Source(12, 19) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["HexSpecifier"] = 64] = "HexSpecifier"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^-> +1->, + > +2 > HexSpecifier = 1 << 6 +3 > +1->Emitted(10, 5) Source(13, 5) + SourceIndex(0) +2 >Emitted(10, 65) Source(13, 26) + SourceIndex(0) +3 >Emitted(10, 66) Source(13, 26) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["BinarySpecifier"] = 128] = "BinarySpecifier"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, + > +2 > BinarySpecifier = 1 << 7 +3 > +1->Emitted(11, 5) Source(14, 5) + SourceIndex(0) +2 >Emitted(11, 72) Source(14, 29) + SourceIndex(0) +3 >Emitted(11, 73) Source(14, 29) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["OctalSpecifier"] = 256] = "OctalSpecifier"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1 >, + > +2 > OctalSpecifier = 1 << 8 +3 > +1 >Emitted(12, 5) Source(15, 5) + SourceIndex(0) +2 >Emitted(12, 70) Source(15, 28) + SourceIndex(0) +3 >Emitted(12, 71) Source(15, 28) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["ContainsSeparator"] = 512] = "ContainsSeparator"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^-> +1->, + > /* @internal */ + > +2 > ContainsSeparator = 1 << 9 +3 > +1->Emitted(13, 5) Source(17, 5) + SourceIndex(0) +2 >Emitted(13, 76) Source(17, 31) + SourceIndex(0) +3 >Emitted(13, 77) Source(17, 31) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["BinaryOrOctalSpecifier"] = 384] = "BinaryOrOctalSpecifier"; +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1->, + > /* @internal */ + > +2 > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier +3 > +1->Emitted(14, 5) Source(19, 5) + SourceIndex(0) +2 >Emitted(14, 86) Source(19, 62) + SourceIndex(0) +3 >Emitted(14, 87) Source(19, 62) + SourceIndex(0) +--- +>>> TokenFlags[TokenFlags["NumericLiteralFlags"] = 1008] = "NumericLiteralFlags"; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^ +1 >, + > /* @internal */ + > +2 > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator +3 > +1 >Emitted(15, 5) Source(21, 5) + SourceIndex(0) +2 >Emitted(15, 81) Source(21, 105) + SourceIndex(0) +3 >Emitted(15, 82) Source(21, 105) + SourceIndex(0) +--- +>>>})(TokenFlags || (TokenFlags = {})); +1 > +2 >^ +3 > ^^ +4 > ^^^^^^^^^^ +5 > ^^^^^ +6 > ^^^^^^^^^^ +7 > ^^^^^^^^ +1 > + > +2 >} +3 > +4 > TokenFlags +5 > +6 > TokenFlags +7 > { + > None = 0, + > /* @internal */ + > PrecedingLineBreak = 1 << 0, + > /* @internal */ + > PrecedingJSDocComment = 1 << 1, + > /* @internal */ + > Unterminated = 1 << 2, + > /* @internal */ + > ExtendedUnicodeEscape = 1 << 3, + > Scientific = 1 << 4, + > Octal = 1 << 5, + > HexSpecifier = 1 << 6, + > BinarySpecifier = 1 << 7, + > OctalSpecifier = 1 << 8, + > /* @internal */ + > ContainsSeparator = 1 << 9, + > /* @internal */ + > BinaryOrOctalSpecifier = BinarySpecifier | OctalSpecifier, + > /* @internal */ + > NumericLiteralFlags = Scientific | Octal | HexSpecifier | BinaryOrOctalSpecifier | ContainsSeparator + > } +1 >Emitted(16, 1) Source(22, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(22, 2) + SourceIndex(0) +3 >Emitted(16, 4) Source(1, 6) + SourceIndex(0) +4 >Emitted(16, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(16, 19) Source(1, 6) + SourceIndex(0) +6 >Emitted(16, 29) Source(1, 16) + SourceIndex(0) +7 >Emitted(16, 37) Source(22, 2) + SourceIndex(0) +--- +>>>var s = "Hello, world"; +1 > +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^^^^^^^^^^^ +6 > ^ +1 > + >interface TheFirst { + > none: any; + >} + > + > +2 >const +3 > s +4 > = +5 > "Hello, world" +6 > ; +1 >Emitted(17, 1) Source(27, 1) + SourceIndex(0) +2 >Emitted(17, 5) Source(27, 7) + SourceIndex(0) +3 >Emitted(17, 6) Source(27, 8) + SourceIndex(0) +4 >Emitted(17, 9) Source(27, 11) + SourceIndex(0) +5 >Emitted(17, 23) Source(27, 25) + SourceIndex(0) +6 >Emitted(17, 24) Source(27, 26) + SourceIndex(0) +--- +>>>console.log(s); +1 > +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^ +8 > ^ +9 > ^^^-> +1 > + > + >interface NoJsForHereEither { + > none: any; + >} + > + > +2 >console +3 > . +4 > log +5 > ( +6 > s +7 > ) +8 > ; +1 >Emitted(18, 1) Source(33, 1) + SourceIndex(0) +2 >Emitted(18, 8) Source(33, 8) + SourceIndex(0) +3 >Emitted(18, 9) Source(33, 9) + SourceIndex(0) +4 >Emitted(18, 12) Source(33, 12) + SourceIndex(0) +5 >Emitted(18, 13) Source(33, 13) + SourceIndex(0) +6 >Emitted(18, 14) Source(33, 14) + SourceIndex(0) +7 >Emitted(18, 15) Source(33, 15) + SourceIndex(0) +8 >Emitted(18, 16) Source(33, 16) + SourceIndex(0) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part2.ts +------------------------------------------------------------------- +>>>console.log(f()); +1-> +2 >^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^ +1-> +2 >console +3 > . +4 > log +5 > ( +6 > f +7 > () +8 > ) +9 > ; +1->Emitted(19, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(19, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(19, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(19, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(19, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(19, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(19, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(19, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(19, 18) Source(1, 18) + SourceIndex(1) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../first/first_part3.ts +------------------------------------------------------------------- +>>>function f() { +1 > +2 >^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^-> +1 > +2 >function +3 > f +1 >Emitted(20, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(20, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(20, 11) Source(1, 11) + SourceIndex(2) +--- +>>> return "JS does hoists"; +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^ +4 > ^ +1->() { + > +2 > return +3 > "JS does hoists" +4 > ; +1->Emitted(21, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(21, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(21, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(21, 29) Source(2, 29) + SourceIndex(2) +--- +>>>} +1 > +2 >^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >} +1 >Emitted(22, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(22, 2) Source(3, 2) + SourceIndex(2) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part1.ts +------------------------------------------------------------------- +>>>//# sourceMappingURL=first-output.js.map +>>>var N; +1-> +2 >^^^^ +3 > ^ +4 > ^ +5 > ^^^^^^^^^^-> +1->namespace N { + > // Comment text + >} + > + > +2 >namespace +3 > N +4 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(24, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(24, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(24, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(24, 7) Source(11, 2) + SourceIndex(3) +--- +>>>(function (N) { +1-> +2 >^^^^^^^^^^^ +3 > ^ +4 > ^^^^^^^-> +1-> +2 >namespace +3 > N +1->Emitted(25, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(25, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(25, 13) Source(5, 12) + SourceIndex(3) +--- +>>> function f() { +1->^^^^ +2 > ^^^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^-> +1-> { + > +2 > function +3 > f +1->Emitted(26, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(26, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(26, 15) Source(6, 15) + SourceIndex(3) +--- +>>> console.log('testing'); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^ +7 > ^ +8 > ^ +1->() { + > +2 > console +3 > . +4 > log +5 > ( +6 > 'testing' +7 > ) +8 > ; +1->Emitted(27, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(27, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(27, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(27, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(27, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(27, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(27, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(27, 32) Source(7, 32) + SourceIndex(3) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^-> +1 > + > +2 > } +1 >Emitted(28, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(28, 6) Source(8, 6) + SourceIndex(3) +--- +>>> f(); +1->^^^^ +2 > ^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^-> +1-> + > + > +2 > f +3 > () +4 > ; +1->Emitted(29, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(29, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(29, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(29, 9) Source(10, 9) + SourceIndex(3) +--- +>>>})(N || (N = {})); +1-> +2 >^ +3 > ^^ +4 > ^ +5 > ^^^^^ +6 > ^ +7 > ^^^^^^^^ +8 > ^^^^^-> +1-> + > +2 >} +3 > +4 > N +5 > +6 > N +7 > { + > function f() { + > console.log('testing'); + > } + > + > f(); + > } +1->Emitted(30, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(30, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(30, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(30, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(30, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(30, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(30, 19) Source(11, 2) + SourceIndex(3) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../../second/second_part2.ts +------------------------------------------------------------------- +>>>var C = (function () { +1-> +2 >^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(31, 1) Source(1, 1) + SourceIndex(4) +--- +>>> function C() { +1->^^^^ +2 > ^^-> +1-> +1->Emitted(32, 5) Source(1, 1) + SourceIndex(4) +--- +>>> } +1->^^^^ +2 > ^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1->class C { + > doSomething() { + > console.log("something got done"); + > } + > +2 > } +1->Emitted(33, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(33, 6) Source(5, 2) + SourceIndex(4) +--- +>>> C.prototype.doSomething = function () { +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^ +4 > ^^^^^^^^^^^^^-> +1-> +2 > doSomething +3 > +1->Emitted(34, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(34, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(34, 31) Source(2, 5) + SourceIndex(4) +--- +>>> console.log("something got done"); +1->^^^^^^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^ +5 > ^ +6 > ^^^^^^^^^^^^^^^^^^^^ +7 > ^ +8 > ^ +1->doSomething() { + > +2 > console +3 > . +4 > log +5 > ( +6 > "something got done" +7 > ) +8 > ; +1->Emitted(35, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(35, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(35, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(35, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(35, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(35, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(35, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(35, 43) Source(3, 43) + SourceIndex(4) +--- +>>> }; +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(36, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(36, 6) Source(4, 6) + SourceIndex(4) +--- +>>> return C; +1->^^^^ +2 > ^^^^^^^^ +1-> + > +2 > } +1->Emitted(37, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(37, 13) Source(5, 2) + SourceIndex(4) +--- +>>>}()); +1 > +2 >^ +3 > +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 >} +3 > +4 > class C { + > doSomething() { + > console.log("something got done"); + > } + > } +1 >Emitted(38, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(38, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(38, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(38, 6) Source(5, 2) + SourceIndex(4) +--- +------------------------------------------------------------------- +emittedFile:/src/third/thirdjs/output/third-output.js +sourceFile:../../third_part1.ts +------------------------------------------------------------------- +>>>//# sourceMappingURL=second-output.js.map +>>>var c = new C(); +1-> +2 >^^^^ +3 > ^ +4 > ^^^ +5 > ^^^^ +6 > ^ +7 > ^^ +8 > ^ +9 > ^-> +1-> +2 >var +3 > c +4 > = +5 > new +6 > C +7 > () +8 > ; +1->Emitted(40, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(40, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(40, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(40, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(40, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(40, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(40, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(40, 17) Source(1, 17) + SourceIndex(5) +--- +>>>c.doSomething(); +1-> +2 >^ +3 > ^ +4 > ^^^^^^^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >c +3 > . +4 > doSomething +5 > () +6 > ; +1->Emitted(41, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(41, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(41, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(41, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(41, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(41, 17) Source(2, 17) + SourceIndex(5) +--- +>>>//# sourceMappingURL=third-output.js.map + +//// [/src/third/tsconfig.json] +{ + "compilerOptions": { + "target": "es5", + "composite": true, + "removeComments": true, + "strict": false, + "sourceMap": true, + "declarationMap": true, + "declaration": true, +"stripInternal": true + "outFile": "./thirdjs/output/third-output.js", + "skipDefaultLibCheck": true + }, + "files": [ + "third_part1.ts" + ], + "references": [ + { "path": "../first", "prepend": true }, + { "path": "../second", "prepend": true }, + ] +} + +