diff --git a/package-lock.json b/package-lock.json index 395e6283c3aa1..301c65556b746 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1592,21 +1592,13 @@ } }, "browserify-rsa": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", - "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.0.tgz", + "integrity": "sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog==", "dev": true, "requires": { - "bn.js": "^4.1.0", + "bn.js": "^5.0.0", "randombytes": "^2.0.1" - }, - "dependencies": { - "bn.js": { - "version": "4.11.9", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", - "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", - "dev": true - } } }, "browserify-sign": { diff --git a/src/compiler/factory/emitHelpers.ts b/src/compiler/factory/emitHelpers.ts index c1e62d4bea6a1..3f95efc9c7c71 100644 --- a/src/compiler/factory/emitHelpers.ts +++ b/src/compiler/factory/emitHelpers.ts @@ -615,34 +615,6 @@ namespace ts { };` }; - /** @deprecated To be removed in TS >= 4.3, as it may be referenced in a tsbuildinfo */ - export const spreadHelper: UnscopedEmitHelper = { - name: "typescript:spread", - importName: "__spread", - scoped: false, - dependencies: [readHelper], - text: ` - var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; - };` - }; - - /** @deprecated To be removed in TS >= 4.3, as it may be referenced in a tsbuildinfo */ - export const spreadArraysHelper: UnscopedEmitHelper = { - name: "typescript:spreadArrays", - importName: "__spreadArrays", - scoped: false, - text: ` - var __spreadArrays = (this && this.__spreadArrays) || function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; - };` - }; - export const spreadArrayHelper: UnscopedEmitHelper = { name: "typescript:spreadArray", importName: "__spreadArray", @@ -886,8 +858,6 @@ namespace ts { awaiterHelper, extendsHelper, templateObjectHelper, - spreadHelper, - spreadArraysHelper, spreadArrayHelper, valuesHelper, readHelper, @@ -918,4 +888,11 @@ namespace ts { return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); })(name => super[name], (name, value) => super[name] = value);` }; + + export function isCallToHelper(firstSegment: Expression, helperName: __String) { + return isCallExpression(firstSegment) + && isIdentifier(firstSegment.expression) + && (getEmitFlags(firstSegment.expression) & EmitFlags.HelperName) + && firstSegment.expression.escapedText === helperName; + } } \ No newline at end of file diff --git a/src/compiler/transformers/es2015.ts b/src/compiler/transformers/es2015.ts index 7eb2dd856afa4..ef7faf9d2ae8b 100644 --- a/src/compiler/transformers/es2015.ts +++ b/src/compiler/transformers/es2015.ts @@ -3892,6 +3892,8 @@ namespace ts { * * @param elements The array of Expression nodes. * @param needsUniqueCopy A value indicating whether to ensure that the result is a fresh array. + * This should be `true` when spreading into an `ArrayLiteral`, and `false` when spreading into an + * argument list. * @param multiLine A value indicating whether the result should be emitted on multiple lines. */ function transformAndSpreadElements(elements: NodeArray, needsUniqueCopy: boolean, multiLine: boolean, hasTrailingComma: boolean): Expression { @@ -3916,6 +3918,15 @@ namespace ts { // // [output] // __spreadArray(__spreadArray([], a), [b]) + // + // NOTE: We use `isPackedArrayLiteral` below rather than just `isArrayLiteral` + // because ES2015 spread will replace _missing_ array elements with `undefined`, + // so we cannot just use an array as is. For example: + // + // `[1, ...[2, , 3]]` becomes `[1, 2, undefined, 3]` + // + // However, for packed array literals (i.e., an array literal with no OmittedExpression + // elements), we can use the array as-is. // Map spans of spread expressions into their expressions and spans of other // expressions into an array literal. @@ -3926,16 +3937,20 @@ namespace ts { ) ); - const helpers = emitHelpers(); if (segments.length === 1) { const firstSegment = segments[0]; - if (!needsUniqueCopy - || isPackedArrayLiteral(firstSegment) + // If we don't need a unique copy, then we are spreading into an argument list for + // a CallExpression or NewExpression. When using `--downlevelIteration`, we need + // to coerce this into an array for use with `apply`, so we will use the code path + // that follows instead. + if (!needsUniqueCopy && !compilerOptions.downlevelIteration + || isPackedArrayLiteral(firstSegment) // see NOTE (above) || isCallToHelper(firstSegment, "___spreadArray" as __String)) { return segments[0]; } } + const helpers = emitHelpers(); const startsWithSpread = isSpreadElement(elements[0]); let expression: Expression = startsWithSpread ? factory.createArrayLiteralExpression() : @@ -3943,7 +3958,7 @@ namespace ts { for (let i = startsWithSpread ? 0 : 1; i < segments.length; i++) { expression = helpers.createSpreadArrayHelper( expression, - compilerOptions.downlevelIteration && !isArrayLiteralExpression(segments[i]) ? + compilerOptions.downlevelIteration && !isPackedArrayLiteral(segments[i]) ? // see NOTE (above) helpers.createReadHelper(segments[i], /*count*/ undefined) : segments[i]); } @@ -3951,21 +3966,6 @@ namespace ts { return expression; } - function isPackedElement(node: Expression) { - return !isOmittedExpression(node); - } - - function isPackedArrayLiteral(node: Expression) { - return isArrayLiteralExpression(node) && every(node.elements, isPackedElement); - } - - function isCallToHelper(firstSegment: Expression, helperName: __String) { - return isCallExpression(firstSegment) - && isIdentifier(firstSegment.expression) - && (getEmitFlags(firstSegment.expression) & EmitFlags.HelperName) - && firstSegment.expression.escapedText === helperName; - } - function partitionSpread(node: Expression) { return isSpreadElement(node) ? visitSpanOfSpreads diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 31293d2e81bb8..a39a4de6b3b9b 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -6991,4 +6991,15 @@ namespace ts { return bindParentToChildIgnoringJSDoc(child, parent) || bindJSDoc(child); } } + + function isPackedElement(node: Expression) { + return !isOmittedExpression(node); + } + + /** + * Determines whether the provided node is an ArrayLiteralExpression that contains no missing elements. + */ + export function isPackedArrayLiteral(node: Expression) { + return isArrayLiteralExpression(node) && every(node.elements, isPackedElement); + } } diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index e8ae55b88c54c..b3822de33fe5e 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -583,7 +583,8 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; const content = fs.readFileSync(path, "utf8"); fs.writeFileSync(path, `${content} function ${project}${file}Spread(...b: number[]) { } -${project}${file}Spread(...[10, 20, 30]);`); +const ${project}${file}_ar = [20, 30]; +${project}${file}Spread(10, ...${project}${file}_ar);`); replaceText(fs, `src/${project}/tsconfig.json`, `"strict": false,`, `"strict": false, "downlevelIteration": true,`); diff --git a/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable.js b/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable.js index 777568fdcbd57..228177c391dc3 100644 --- a/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable.js +++ b/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable.js @@ -111,7 +111,7 @@ function a11(_a) { var array = [1, 2, 3]; var array2 = [true, false, "hello"]; a2(__spreadArray([], __read(array))); -a1.apply(void 0, array); +a1.apply(void 0, __spreadArray([], __read(array))); a9([1, 2, [["string"]], false, true]); // Parameter type is [any, any, [[any]]] a10([1, 2, [["string"]], false, true]); // Parameter type is any[] a10([1, 2, 3, false, true]); // Parameter type is any[] diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js index 0d3c8cc31c487..934ba9227c391 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js @@ -26,6 +26,27 @@ exitCode:: ExitStatus.Success //// [/src/app/module.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -44,7 +65,8 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, [10, 20, 30]); +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar))); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -78,11 +100,12 @@ function appfile4Spread() { b[_i] = arguments[_i]; } } -appfile4Spread.apply(void 0, [10, 20, 30]); +var appfile4_ar = [20, 30]; +appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar))); //# sourceMappingURL=module.js.map //// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE"} +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,IAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,IAAE"} //// [/src/app/module.js.map.baseline.txt] =================================================================== @@ -95,6 +118,27 @@ sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3. emittedFile:/src/app/module.js sourceFile:../lib/file0.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spreadArray = (this && this.__spreadArray) || function (to, from) { +>>> for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) +>>> to[j] = from[i]; +>>> return to; +>>>}; >>>var __rest = (this && this.__rest) || function (s, e) { >>> var t = {}; >>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -120,12 +164,12 @@ sourceFile:../lib/file0.ts 4 > = 5 > 20 6 > ; -1 >Emitted(12, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(12, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(12, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(12, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(12, 17) Source(1, 19) + SourceIndex(0) +1 >Emitted(33, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(33, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(33, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(33, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(33, 17) Source(1, 19) + SourceIndex(0) --- >>>function libfile0Spread() { 1-> @@ -135,9 +179,9 @@ sourceFile:../lib/file0.ts > 2 >function 3 > libfile0Spread -1->Emitted(13, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(13, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(13, 24) Source(2, 24) + SourceIndex(0) +1->Emitted(34, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(34, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(34, 24) Source(2, 24) + SourceIndex(0) --- >>> var b = []; 1 >^^^^ @@ -145,8 +189,8 @@ sourceFile:../lib/file0.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(14, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(14, 16) Source(2, 39) + SourceIndex(0) +1 >Emitted(35, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(35, 16) Source(2, 39) + SourceIndex(0) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -161,67 +205,88 @@ sourceFile:../lib/file0.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(15, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(15, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(15, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(15, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(15, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(15, 49) Source(2, 39) + SourceIndex(0) +1->Emitted(36, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(36, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(36, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(36, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(36, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(36, 49) Source(2, 39) + SourceIndex(0) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(16, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(16, 31) Source(2, 39) + SourceIndex(0) +1 >Emitted(37, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(37, 31) Source(2, 39) + SourceIndex(0) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(18, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(18, 2) Source(2, 44) + SourceIndex(0) +1 >Emitted(39, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(39, 2) Source(2, 44) + SourceIndex(0) --- ->>>libfile0Spread.apply(void 0, [10, 20, 30]); +>>>var libfile0_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > libfile0_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(40, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(40, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(40, 16) Source(3, 18) + SourceIndex(0) +4 >Emitted(40, 19) Source(3, 21) + SourceIndex(0) +5 >Emitted(40, 20) Source(3, 22) + SourceIndex(0) +6 >Emitted(40, 22) Source(3, 24) + SourceIndex(0) +7 >Emitted(40, 24) Source(3, 26) + SourceIndex(0) +8 >Emitted(40, 26) Source(3, 28) + SourceIndex(0) +9 >Emitted(40, 27) Source(3, 29) + SourceIndex(0) +10>Emitted(40, 28) Source(3, 30) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar))); 1-> 2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >libfile0Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(19, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(19, 15) Source(3, 15) + SourceIndex(0) -3 >Emitted(19, 30) Source(3, 19) + SourceIndex(0) -4 >Emitted(19, 31) Source(3, 20) + SourceIndex(0) -5 >Emitted(19, 33) Source(3, 22) + SourceIndex(0) -6 >Emitted(19, 35) Source(3, 24) + SourceIndex(0) -7 >Emitted(19, 37) Source(3, 26) + SourceIndex(0) -8 >Emitted(19, 39) Source(3, 28) + SourceIndex(0) -9 >Emitted(19, 41) Source(3, 30) + SourceIndex(0) -10>Emitted(19, 42) Source(3, 31) + SourceIndex(0) -11>Emitted(19, 44) Source(3, 33) + SourceIndex(0) +3 > ( +4 > 10 +5 > , ... +6 > libfile0_ar +7 > ); +1->Emitted(41, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(41, 15) Source(4, 15) + SourceIndex(0) +3 >Emitted(41, 45) Source(4, 16) + SourceIndex(0) +4 >Emitted(41, 47) Source(4, 18) + SourceIndex(0) +5 >Emitted(41, 57) Source(4, 23) + SourceIndex(0) +6 >Emitted(41, 68) Source(4, 34) + SourceIndex(0) +7 >Emitted(41, 72) Source(4, 36) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -232,25 +297,25 @@ sourceFile:../lib/file1.ts >>> Object.defineProperty(exports, "__esModule", { value: true }); >>> exports.x = void 0; >>> exports.x = 10; -1->^^^^ +1 >^^^^ 2 > ^^^^^^^^ 3 > ^ 4 > ^^^ 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^-> -1->export const +1 >export const 2 > 3 > x 4 > = 5 > 10 6 > ; -1->Emitted(24, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(24, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(24, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(24, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(24, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(24, 20) Source(1, 21) + SourceIndex(1) +1 >Emitted(46, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(46, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(46, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(46, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(46, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(46, 20) Source(1, 21) + SourceIndex(1) --- >>> function forlibfile1Rest() { 1->^^^^ @@ -260,9 +325,9 @@ sourceFile:../lib/file1.ts 1-> 2 > function 3 > forlibfile1Rest -1->Emitted(25, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(25, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(25, 29) Source(1, 45) + SourceIndex(1) +1->Emitted(47, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(47, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(47, 29) Source(1, 45) + SourceIndex(1) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -316,31 +381,31 @@ sourceFile:../lib/file1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(26, 9) Source(2, 1) + SourceIndex(1) -2 >Emitted(26, 13) Source(2, 7) + SourceIndex(1) -3 >Emitted(26, 18) Source(2, 24) + SourceIndex(1) -4 >Emitted(26, 20) Source(2, 26) + SourceIndex(1) -5 >Emitted(26, 21) Source(2, 27) + SourceIndex(1) -6 >Emitted(26, 23) Source(2, 29) + SourceIndex(1) -7 >Emitted(26, 25) Source(2, 31) + SourceIndex(1) -8 >Emitted(26, 27) Source(2, 33) + SourceIndex(1) -9 >Emitted(26, 28) Source(2, 34) + SourceIndex(1) -10>Emitted(26, 30) Source(2, 36) + SourceIndex(1) -11>Emitted(26, 32) Source(2, 38) + SourceIndex(1) -12>Emitted(26, 34) Source(2, 40) + SourceIndex(1) -13>Emitted(26, 36) Source(2, 42) + SourceIndex(1) -14>Emitted(26, 38) Source(2, 44) + SourceIndex(1) -15>Emitted(26, 40) Source(2, 46) + SourceIndex(1) -16>Emitted(26, 42) Source(2, 48) + SourceIndex(1) -17>Emitted(26, 44) Source(2, 9) + SourceIndex(1) -18>Emitted(26, 45) Source(2, 10) + SourceIndex(1) -19>Emitted(26, 52) Source(2, 10) + SourceIndex(1) -20>Emitted(26, 54) Source(2, 15) + SourceIndex(1) -21>Emitted(26, 58) Source(2, 19) + SourceIndex(1) -22>Emitted(26, 72) Source(2, 7) + SourceIndex(1) -23>Emitted(26, 77) Source(2, 21) + SourceIndex(1) -24>Emitted(26, 78) Source(2, 48) + SourceIndex(1) -25>Emitted(26, 79) Source(2, 49) + SourceIndex(1) +1->Emitted(48, 9) Source(2, 1) + SourceIndex(1) +2 >Emitted(48, 13) Source(2, 7) + SourceIndex(1) +3 >Emitted(48, 18) Source(2, 24) + SourceIndex(1) +4 >Emitted(48, 20) Source(2, 26) + SourceIndex(1) +5 >Emitted(48, 21) Source(2, 27) + SourceIndex(1) +6 >Emitted(48, 23) Source(2, 29) + SourceIndex(1) +7 >Emitted(48, 25) Source(2, 31) + SourceIndex(1) +8 >Emitted(48, 27) Source(2, 33) + SourceIndex(1) +9 >Emitted(48, 28) Source(2, 34) + SourceIndex(1) +10>Emitted(48, 30) Source(2, 36) + SourceIndex(1) +11>Emitted(48, 32) Source(2, 38) + SourceIndex(1) +12>Emitted(48, 34) Source(2, 40) + SourceIndex(1) +13>Emitted(48, 36) Source(2, 42) + SourceIndex(1) +14>Emitted(48, 38) Source(2, 44) + SourceIndex(1) +15>Emitted(48, 40) Source(2, 46) + SourceIndex(1) +16>Emitted(48, 42) Source(2, 48) + SourceIndex(1) +17>Emitted(48, 44) Source(2, 9) + SourceIndex(1) +18>Emitted(48, 45) Source(2, 10) + SourceIndex(1) +19>Emitted(48, 52) Source(2, 10) + SourceIndex(1) +20>Emitted(48, 54) Source(2, 15) + SourceIndex(1) +21>Emitted(48, 58) Source(2, 19) + SourceIndex(1) +22>Emitted(48, 72) Source(2, 7) + SourceIndex(1) +23>Emitted(48, 77) Source(2, 21) + SourceIndex(1) +24>Emitted(48, 78) Source(2, 48) + SourceIndex(1) +25>Emitted(48, 79) Source(2, 49) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -349,8 +414,8 @@ sourceFile:../lib/file1.ts 1 > > 2 > } -1 >Emitted(27, 5) Source(3, 1) + SourceIndex(1) -2 >Emitted(27, 6) Source(3, 2) + SourceIndex(1) +1 >Emitted(49, 5) Source(3, 1) + SourceIndex(1) +2 >Emitted(49, 6) Source(3, 2) + SourceIndex(1) --- >>> console.log(exports.x); 1->^^^^ @@ -369,14 +434,14 @@ sourceFile:../lib/file1.ts 6 > x 7 > ) 8 > ; -1->Emitted(28, 5) Source(3, 2) + SourceIndex(1) -2 >Emitted(28, 12) Source(3, 9) + SourceIndex(1) -3 >Emitted(28, 13) Source(3, 10) + SourceIndex(1) -4 >Emitted(28, 16) Source(3, 13) + SourceIndex(1) -5 >Emitted(28, 17) Source(3, 14) + SourceIndex(1) -6 >Emitted(28, 26) Source(3, 15) + SourceIndex(1) -7 >Emitted(28, 27) Source(3, 16) + SourceIndex(1) -8 >Emitted(28, 28) Source(3, 17) + SourceIndex(1) +1->Emitted(50, 5) Source(3, 2) + SourceIndex(1) +2 >Emitted(50, 12) Source(3, 9) + SourceIndex(1) +3 >Emitted(50, 13) Source(3, 10) + SourceIndex(1) +4 >Emitted(50, 16) Source(3, 13) + SourceIndex(1) +5 >Emitted(50, 17) Source(3, 14) + SourceIndex(1) +6 >Emitted(50, 26) Source(3, 15) + SourceIndex(1) +7 >Emitted(50, 27) Source(3, 16) + SourceIndex(1) +8 >Emitted(50, 28) Source(3, 17) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -400,12 +465,12 @@ sourceFile:../lib/file2.ts 4 > = 5 > 20 6 > ; -1 >Emitted(34, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(34, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(34, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(34, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(34, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(34, 20) Source(1, 21) + SourceIndex(2) +1 >Emitted(56, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(56, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(56, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(56, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(56, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(56, 20) Source(1, 21) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -426,12 +491,12 @@ sourceFile:../lib/global.ts 4 > = 5 > 10 6 > ; -1 >Emitted(36, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(36, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(36, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(36, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(36, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(36, 22) Source(1, 24) + SourceIndex(3) +1 >Emitted(58, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(58, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(58, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(58, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(58, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(58, 22) Source(1, 24) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -455,12 +520,12 @@ sourceFile:file3.ts 4 > = 5 > 30 6 > ; -1->Emitted(41, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(41, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(41, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(41, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(41, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(41, 20) Source(1, 21) + SourceIndex(4) +1->Emitted(63, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(63, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(63, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(63, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(63, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(63, 20) Source(1, 21) + SourceIndex(4) --- >>> function forappfile3Rest() { 1->^^^^ @@ -471,9 +536,9 @@ sourceFile:file3.ts >import { x } from "file1"; 2 > function 3 > forappfile3Rest -1->Emitted(42, 5) Source(2, 27) + SourceIndex(4) -2 >Emitted(42, 14) Source(2, 36) + SourceIndex(4) -3 >Emitted(42, 29) Source(2, 51) + SourceIndex(4) +1->Emitted(64, 5) Source(2, 27) + SourceIndex(4) +2 >Emitted(64, 14) Source(2, 36) + SourceIndex(4) +3 >Emitted(64, 29) Source(2, 51) + SourceIndex(4) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -527,31 +592,31 @@ sourceFile:file3.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(43, 9) Source(3, 1) + SourceIndex(4) -2 >Emitted(43, 13) Source(3, 7) + SourceIndex(4) -3 >Emitted(43, 18) Source(3, 24) + SourceIndex(4) -4 >Emitted(43, 20) Source(3, 26) + SourceIndex(4) -5 >Emitted(43, 21) Source(3, 27) + SourceIndex(4) -6 >Emitted(43, 23) Source(3, 29) + SourceIndex(4) -7 >Emitted(43, 25) Source(3, 31) + SourceIndex(4) -8 >Emitted(43, 27) Source(3, 33) + SourceIndex(4) -9 >Emitted(43, 28) Source(3, 34) + SourceIndex(4) -10>Emitted(43, 30) Source(3, 36) + SourceIndex(4) -11>Emitted(43, 32) Source(3, 38) + SourceIndex(4) -12>Emitted(43, 34) Source(3, 40) + SourceIndex(4) -13>Emitted(43, 36) Source(3, 42) + SourceIndex(4) -14>Emitted(43, 38) Source(3, 44) + SourceIndex(4) -15>Emitted(43, 40) Source(3, 46) + SourceIndex(4) -16>Emitted(43, 42) Source(3, 48) + SourceIndex(4) -17>Emitted(43, 44) Source(3, 9) + SourceIndex(4) -18>Emitted(43, 45) Source(3, 10) + SourceIndex(4) -19>Emitted(43, 52) Source(3, 10) + SourceIndex(4) -20>Emitted(43, 54) Source(3, 15) + SourceIndex(4) -21>Emitted(43, 58) Source(3, 19) + SourceIndex(4) -22>Emitted(43, 72) Source(3, 7) + SourceIndex(4) -23>Emitted(43, 77) Source(3, 21) + SourceIndex(4) -24>Emitted(43, 78) Source(3, 48) + SourceIndex(4) -25>Emitted(43, 79) Source(3, 49) + SourceIndex(4) +1->Emitted(65, 9) Source(3, 1) + SourceIndex(4) +2 >Emitted(65, 13) Source(3, 7) + SourceIndex(4) +3 >Emitted(65, 18) Source(3, 24) + SourceIndex(4) +4 >Emitted(65, 20) Source(3, 26) + SourceIndex(4) +5 >Emitted(65, 21) Source(3, 27) + SourceIndex(4) +6 >Emitted(65, 23) Source(3, 29) + SourceIndex(4) +7 >Emitted(65, 25) Source(3, 31) + SourceIndex(4) +8 >Emitted(65, 27) Source(3, 33) + SourceIndex(4) +9 >Emitted(65, 28) Source(3, 34) + SourceIndex(4) +10>Emitted(65, 30) Source(3, 36) + SourceIndex(4) +11>Emitted(65, 32) Source(3, 38) + SourceIndex(4) +12>Emitted(65, 34) Source(3, 40) + SourceIndex(4) +13>Emitted(65, 36) Source(3, 42) + SourceIndex(4) +14>Emitted(65, 38) Source(3, 44) + SourceIndex(4) +15>Emitted(65, 40) Source(3, 46) + SourceIndex(4) +16>Emitted(65, 42) Source(3, 48) + SourceIndex(4) +17>Emitted(65, 44) Source(3, 9) + SourceIndex(4) +18>Emitted(65, 45) Source(3, 10) + SourceIndex(4) +19>Emitted(65, 52) Source(3, 10) + SourceIndex(4) +20>Emitted(65, 54) Source(3, 15) + SourceIndex(4) +21>Emitted(65, 58) Source(3, 19) + SourceIndex(4) +22>Emitted(65, 72) Source(3, 7) + SourceIndex(4) +23>Emitted(65, 77) Source(3, 21) + SourceIndex(4) +24>Emitted(65, 78) Source(3, 48) + SourceIndex(4) +25>Emitted(65, 79) Source(3, 49) + SourceIndex(4) --- >>> } 1 >^^^^ @@ -559,8 +624,8 @@ sourceFile:file3.ts 1 > > 2 > } -1 >Emitted(44, 5) Source(4, 1) + SourceIndex(4) -2 >Emitted(44, 6) Source(4, 2) + SourceIndex(4) +1 >Emitted(66, 5) Source(4, 1) + SourceIndex(4) +2 >Emitted(66, 6) Source(4, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -581,12 +646,12 @@ sourceFile:file4.ts 4 > = 5 > 30 6 > ; -1 >Emitted(46, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(46, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(46, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(46, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(46, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(46, 16) Source(1, 18) + SourceIndex(5) +1 >Emitted(68, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(68, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(68, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(68, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(68, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(68, 16) Source(1, 18) + SourceIndex(5) --- >>>function appfile4Spread() { 1-> @@ -596,9 +661,9 @@ sourceFile:file4.ts > 2 >function 3 > appfile4Spread -1->Emitted(47, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(47, 10) Source(2, 10) + SourceIndex(5) -3 >Emitted(47, 24) Source(2, 24) + SourceIndex(5) +1->Emitted(69, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(69, 10) Source(2, 10) + SourceIndex(5) +3 >Emitted(69, 24) Source(2, 24) + SourceIndex(5) --- >>> var b = []; 1 >^^^^ @@ -606,8 +671,8 @@ sourceFile:file4.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(48, 5) Source(2, 25) + SourceIndex(5) -2 >Emitted(48, 16) Source(2, 39) + SourceIndex(5) +1 >Emitted(70, 5) Source(2, 25) + SourceIndex(5) +2 >Emitted(70, 16) Source(2, 39) + SourceIndex(5) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -622,66 +687,88 @@ sourceFile:file4.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(49, 10) Source(2, 25) + SourceIndex(5) -2 >Emitted(49, 20) Source(2, 39) + SourceIndex(5) -3 >Emitted(49, 22) Source(2, 25) + SourceIndex(5) -4 >Emitted(49, 43) Source(2, 39) + SourceIndex(5) -5 >Emitted(49, 45) Source(2, 25) + SourceIndex(5) -6 >Emitted(49, 49) Source(2, 39) + SourceIndex(5) +1->Emitted(71, 10) Source(2, 25) + SourceIndex(5) +2 >Emitted(71, 20) Source(2, 39) + SourceIndex(5) +3 >Emitted(71, 22) Source(2, 25) + SourceIndex(5) +4 >Emitted(71, 43) Source(2, 39) + SourceIndex(5) +5 >Emitted(71, 45) Source(2, 25) + SourceIndex(5) +6 >Emitted(71, 49) Source(2, 39) + SourceIndex(5) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(50, 9) Source(2, 25) + SourceIndex(5) -2 >Emitted(50, 31) Source(2, 39) + SourceIndex(5) +1 >Emitted(72, 9) Source(2, 25) + SourceIndex(5) +2 >Emitted(72, 31) Source(2, 39) + SourceIndex(5) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(52, 1) Source(2, 43) + SourceIndex(5) -2 >Emitted(52, 2) Source(2, 44) + SourceIndex(5) +1 >Emitted(74, 1) Source(2, 43) + SourceIndex(5) +2 >Emitted(74, 2) Source(2, 44) + SourceIndex(5) +--- +>>>var appfile4_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > appfile4_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(75, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(75, 5) Source(3, 7) + SourceIndex(5) +3 >Emitted(75, 16) Source(3, 18) + SourceIndex(5) +4 >Emitted(75, 19) Source(3, 21) + SourceIndex(5) +5 >Emitted(75, 20) Source(3, 22) + SourceIndex(5) +6 >Emitted(75, 22) Source(3, 24) + SourceIndex(5) +7 >Emitted(75, 24) Source(3, 26) + SourceIndex(5) +8 >Emitted(75, 26) Source(3, 28) + SourceIndex(5) +9 >Emitted(75, 27) Source(3, 29) + SourceIndex(5) +10>Emitted(75, 28) Source(3, 30) + SourceIndex(5) --- ->>>appfile4Spread.apply(void 0, [10, 20, 30]); +>>>appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar))); 1-> 2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >appfile4Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(53, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(53, 15) Source(3, 15) + SourceIndex(5) -3 >Emitted(53, 30) Source(3, 19) + SourceIndex(5) -4 >Emitted(53, 31) Source(3, 20) + SourceIndex(5) -5 >Emitted(53, 33) Source(3, 22) + SourceIndex(5) -6 >Emitted(53, 35) Source(3, 24) + SourceIndex(5) -7 >Emitted(53, 37) Source(3, 26) + SourceIndex(5) -8 >Emitted(53, 39) Source(3, 28) + SourceIndex(5) -9 >Emitted(53, 41) Source(3, 30) + SourceIndex(5) -10>Emitted(53, 42) Source(3, 31) + SourceIndex(5) -11>Emitted(53, 44) Source(3, 33) + SourceIndex(5) +3 > ( +4 > 10 +5 > , ... +6 > appfile4_ar +7 > ); +1->Emitted(76, 1) Source(4, 1) + SourceIndex(5) +2 >Emitted(76, 15) Source(4, 15) + SourceIndex(5) +3 >Emitted(76, 45) Source(4, 16) + SourceIndex(5) +4 >Emitted(76, 47) Source(4, 18) + SourceIndex(5) +5 >Emitted(76, 57) Source(4, 23) + SourceIndex(5) +6 >Emitted(76, 68) Source(4, 34) + SourceIndex(5) +7 >Emitted(76, 72) Source(4, 36) + SourceIndex(5) --- >>>//# sourceMappingURL=module.js.map @@ -697,32 +784,46 @@ sourceFile:file4.ts "sections": [ { "pos": 0, - "end": 500, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 697, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 699, + "end": 1199, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 502, - "end": 1297, + "pos": 1201, + "end": 2053, "kind": "prepend", "data": "../lib/module.js", "texts": [ { - "pos": 502, - "end": 1297, + "pos": 1201, + "end": 2053, "kind": "text" } ] }, { - "pos": 1297, - "end": 1830, + "pos": 2053, + "end": 2643, "kind": "text" } ], "sources": { "helpers": [ - "typescript:rest" + "typescript:rest", + "typescript:read", + "typescript:spreadArray" ] } }, @@ -730,20 +831,20 @@ sourceFile:file4.ts "sections": [ { "pos": 0, - "end": 227, + "end": 265, "kind": "prepend", "data": "../lib/module.d.ts", "texts": [ { "pos": 0, - "end": 227, + "end": 265, "kind": "text" } ] }, { - "pos": 227, - "end": 365, + "pos": 265, + "end": 441, "kind": "text" } ] @@ -756,7 +857,32 @@ sourceFile:file4.ts ====================================================================== File:: /src/app/module.js ---------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-697):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +---------------------------------------------------------------------- +emitHelpers: (699-1199):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -769,9 +895,9 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -prepend: (502-1297):: ../lib/module.js texts:: 1 +prepend: (1201-2053):: ../lib/module.js texts:: 1 >>-------------------------------------------------------------------- -text: (502-1297) +text: (1201-2053) var myGlob = 20; function libfile0Spread() { var b = []; @@ -779,7 +905,8 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, [10, 20, 30]); +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar))); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -799,7 +926,7 @@ define("file2", ["require", "exports"], function (require, exports) { var globalConst = 10; ---------------------------------------------------------------------- -text: (1297-1830) +text: (2053-2643) define("file3", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -816,17 +943,19 @@ function appfile4Spread() { b[_i] = arguments[_i]; } } -appfile4Spread.apply(void 0, [10, 20, 30]); +var appfile4_ar = [20, 30]; +appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar))); ====================================================================== ====================================================================== File:: /src/app/module.d.ts ---------------------------------------------------------------------- -prepend: (0-227):: ../lib/module.d.ts texts:: 1 +prepend: (0-265):: ../lib/module.d.ts texts:: 1 >>-------------------------------------------------------------------- -text: (0-227) +text: (0-265) declare const myGlob = 20; declare function libfile0Spread(...b: number[]): void; +declare const libfile0_ar: number[]; declare module "file1" { export const x = 10; } @@ -836,12 +965,13 @@ declare module "file2" { declare const globalConst = 10; ---------------------------------------------------------------------- -text: (227-365) +text: (265-441) declare module "file3" { export const z = 30; } declare const myVar = 30; declare function appfile4Spread(...b: number[]): void; +declare const appfile4_ar: number[]; ====================================================================== @@ -849,6 +979,27 @@ declare function appfile4Spread(...b: number[]): void; //// [/src/lib/module.d.ts.map] file written with same contents //// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents //// [/src/lib/module.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -867,7 +1018,8 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, [10, 20, 30]); +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar))); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -888,7 +1040,7 @@ var globalConst = 10; //# sourceMappingURL=module.js.map //// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,IAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} //// [/src/lib/module.js.map.baseline.txt] =================================================================== @@ -901,6 +1053,27 @@ sources: file0.ts,file1.ts,file2.ts,global.ts emittedFile:/src/lib/module.js sourceFile:file0.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spreadArray = (this && this.__spreadArray) || function (to, from) { +>>> for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) +>>> to[j] = from[i]; +>>> return to; +>>>}; >>>var __rest = (this && this.__rest) || function (s, e) { >>> var t = {}; >>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -926,12 +1099,12 @@ sourceFile:file0.ts 4 > = 5 > 20 6 > ; -1 >Emitted(12, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(12, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(12, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(12, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(12, 17) Source(1, 19) + SourceIndex(0) +1 >Emitted(33, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(33, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(33, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(33, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(33, 17) Source(1, 19) + SourceIndex(0) --- >>>function libfile0Spread() { 1-> @@ -941,9 +1114,9 @@ sourceFile:file0.ts > 2 >function 3 > libfile0Spread -1->Emitted(13, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(13, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(13, 24) Source(2, 24) + SourceIndex(0) +1->Emitted(34, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(34, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(34, 24) Source(2, 24) + SourceIndex(0) --- >>> var b = []; 1 >^^^^ @@ -951,8 +1124,8 @@ sourceFile:file0.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(14, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(14, 16) Source(2, 39) + SourceIndex(0) +1 >Emitted(35, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(35, 16) Source(2, 39) + SourceIndex(0) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -967,67 +1140,88 @@ sourceFile:file0.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(15, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(15, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(15, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(15, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(15, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(15, 49) Source(2, 39) + SourceIndex(0) +1->Emitted(36, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(36, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(36, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(36, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(36, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(36, 49) Source(2, 39) + SourceIndex(0) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(16, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(16, 31) Source(2, 39) + SourceIndex(0) +1 >Emitted(37, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(37, 31) Source(2, 39) + SourceIndex(0) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(18, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(18, 2) Source(2, 44) + SourceIndex(0) +1 >Emitted(39, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(39, 2) Source(2, 44) + SourceIndex(0) --- ->>>libfile0Spread.apply(void 0, [10, 20, 30]); +>>>var libfile0_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > libfile0_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(40, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(40, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(40, 16) Source(3, 18) + SourceIndex(0) +4 >Emitted(40, 19) Source(3, 21) + SourceIndex(0) +5 >Emitted(40, 20) Source(3, 22) + SourceIndex(0) +6 >Emitted(40, 22) Source(3, 24) + SourceIndex(0) +7 >Emitted(40, 24) Source(3, 26) + SourceIndex(0) +8 >Emitted(40, 26) Source(3, 28) + SourceIndex(0) +9 >Emitted(40, 27) Source(3, 29) + SourceIndex(0) +10>Emitted(40, 28) Source(3, 30) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar))); 1-> 2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >libfile0Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(19, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(19, 15) Source(3, 15) + SourceIndex(0) -3 >Emitted(19, 30) Source(3, 19) + SourceIndex(0) -4 >Emitted(19, 31) Source(3, 20) + SourceIndex(0) -5 >Emitted(19, 33) Source(3, 22) + SourceIndex(0) -6 >Emitted(19, 35) Source(3, 24) + SourceIndex(0) -7 >Emitted(19, 37) Source(3, 26) + SourceIndex(0) -8 >Emitted(19, 39) Source(3, 28) + SourceIndex(0) -9 >Emitted(19, 41) Source(3, 30) + SourceIndex(0) -10>Emitted(19, 42) Source(3, 31) + SourceIndex(0) -11>Emitted(19, 44) Source(3, 33) + SourceIndex(0) +3 > ( +4 > 10 +5 > , ... +6 > libfile0_ar +7 > ); +1->Emitted(41, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(41, 15) Source(4, 15) + SourceIndex(0) +3 >Emitted(41, 45) Source(4, 16) + SourceIndex(0) +4 >Emitted(41, 47) Source(4, 18) + SourceIndex(0) +5 >Emitted(41, 57) Source(4, 23) + SourceIndex(0) +6 >Emitted(41, 68) Source(4, 34) + SourceIndex(0) +7 >Emitted(41, 72) Source(4, 36) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.js @@ -1038,25 +1232,25 @@ sourceFile:file1.ts >>> Object.defineProperty(exports, "__esModule", { value: true }); >>> exports.x = void 0; >>> exports.x = 10; -1->^^^^ +1 >^^^^ 2 > ^^^^^^^^ 3 > ^ 4 > ^^^ 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^-> -1->export const +1 >export const 2 > 3 > x 4 > = 5 > 10 6 > ; -1->Emitted(24, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(24, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(24, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(24, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(24, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(24, 20) Source(1, 21) + SourceIndex(1) +1 >Emitted(46, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(46, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(46, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(46, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(46, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(46, 20) Source(1, 21) + SourceIndex(1) --- >>> function forlibfile1Rest() { 1->^^^^ @@ -1066,9 +1260,9 @@ sourceFile:file1.ts 1-> 2 > function 3 > forlibfile1Rest -1->Emitted(25, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(25, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(25, 29) Source(1, 45) + SourceIndex(1) +1->Emitted(47, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(47, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(47, 29) Source(1, 45) + SourceIndex(1) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -1122,31 +1316,31 @@ sourceFile:file1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(26, 9) Source(2, 1) + SourceIndex(1) -2 >Emitted(26, 13) Source(2, 7) + SourceIndex(1) -3 >Emitted(26, 18) Source(2, 24) + SourceIndex(1) -4 >Emitted(26, 20) Source(2, 26) + SourceIndex(1) -5 >Emitted(26, 21) Source(2, 27) + SourceIndex(1) -6 >Emitted(26, 23) Source(2, 29) + SourceIndex(1) -7 >Emitted(26, 25) Source(2, 31) + SourceIndex(1) -8 >Emitted(26, 27) Source(2, 33) + SourceIndex(1) -9 >Emitted(26, 28) Source(2, 34) + SourceIndex(1) -10>Emitted(26, 30) Source(2, 36) + SourceIndex(1) -11>Emitted(26, 32) Source(2, 38) + SourceIndex(1) -12>Emitted(26, 34) Source(2, 40) + SourceIndex(1) -13>Emitted(26, 36) Source(2, 42) + SourceIndex(1) -14>Emitted(26, 38) Source(2, 44) + SourceIndex(1) -15>Emitted(26, 40) Source(2, 46) + SourceIndex(1) -16>Emitted(26, 42) Source(2, 48) + SourceIndex(1) -17>Emitted(26, 44) Source(2, 9) + SourceIndex(1) -18>Emitted(26, 45) Source(2, 10) + SourceIndex(1) -19>Emitted(26, 52) Source(2, 10) + SourceIndex(1) -20>Emitted(26, 54) Source(2, 15) + SourceIndex(1) -21>Emitted(26, 58) Source(2, 19) + SourceIndex(1) -22>Emitted(26, 72) Source(2, 7) + SourceIndex(1) -23>Emitted(26, 77) Source(2, 21) + SourceIndex(1) -24>Emitted(26, 78) Source(2, 48) + SourceIndex(1) -25>Emitted(26, 79) Source(2, 49) + SourceIndex(1) +1->Emitted(48, 9) Source(2, 1) + SourceIndex(1) +2 >Emitted(48, 13) Source(2, 7) + SourceIndex(1) +3 >Emitted(48, 18) Source(2, 24) + SourceIndex(1) +4 >Emitted(48, 20) Source(2, 26) + SourceIndex(1) +5 >Emitted(48, 21) Source(2, 27) + SourceIndex(1) +6 >Emitted(48, 23) Source(2, 29) + SourceIndex(1) +7 >Emitted(48, 25) Source(2, 31) + SourceIndex(1) +8 >Emitted(48, 27) Source(2, 33) + SourceIndex(1) +9 >Emitted(48, 28) Source(2, 34) + SourceIndex(1) +10>Emitted(48, 30) Source(2, 36) + SourceIndex(1) +11>Emitted(48, 32) Source(2, 38) + SourceIndex(1) +12>Emitted(48, 34) Source(2, 40) + SourceIndex(1) +13>Emitted(48, 36) Source(2, 42) + SourceIndex(1) +14>Emitted(48, 38) Source(2, 44) + SourceIndex(1) +15>Emitted(48, 40) Source(2, 46) + SourceIndex(1) +16>Emitted(48, 42) Source(2, 48) + SourceIndex(1) +17>Emitted(48, 44) Source(2, 9) + SourceIndex(1) +18>Emitted(48, 45) Source(2, 10) + SourceIndex(1) +19>Emitted(48, 52) Source(2, 10) + SourceIndex(1) +20>Emitted(48, 54) Source(2, 15) + SourceIndex(1) +21>Emitted(48, 58) Source(2, 19) + SourceIndex(1) +22>Emitted(48, 72) Source(2, 7) + SourceIndex(1) +23>Emitted(48, 77) Source(2, 21) + SourceIndex(1) +24>Emitted(48, 78) Source(2, 48) + SourceIndex(1) +25>Emitted(48, 79) Source(2, 49) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -1155,8 +1349,8 @@ sourceFile:file1.ts 1 > > 2 > } -1 >Emitted(27, 5) Source(3, 1) + SourceIndex(1) -2 >Emitted(27, 6) Source(3, 2) + SourceIndex(1) +1 >Emitted(49, 5) Source(3, 1) + SourceIndex(1) +2 >Emitted(49, 6) Source(3, 2) + SourceIndex(1) --- >>> console.log(exports.x); 1->^^^^ @@ -1175,14 +1369,14 @@ sourceFile:file1.ts 6 > x 7 > ) 8 > ; -1->Emitted(28, 5) Source(3, 2) + SourceIndex(1) -2 >Emitted(28, 12) Source(3, 9) + SourceIndex(1) -3 >Emitted(28, 13) Source(3, 10) + SourceIndex(1) -4 >Emitted(28, 16) Source(3, 13) + SourceIndex(1) -5 >Emitted(28, 17) Source(3, 14) + SourceIndex(1) -6 >Emitted(28, 26) Source(3, 15) + SourceIndex(1) -7 >Emitted(28, 27) Source(3, 16) + SourceIndex(1) -8 >Emitted(28, 28) Source(3, 17) + SourceIndex(1) +1->Emitted(50, 5) Source(3, 2) + SourceIndex(1) +2 >Emitted(50, 12) Source(3, 9) + SourceIndex(1) +3 >Emitted(50, 13) Source(3, 10) + SourceIndex(1) +4 >Emitted(50, 16) Source(3, 13) + SourceIndex(1) +5 >Emitted(50, 17) Source(3, 14) + SourceIndex(1) +6 >Emitted(50, 26) Source(3, 15) + SourceIndex(1) +7 >Emitted(50, 27) Source(3, 16) + SourceIndex(1) +8 >Emitted(50, 28) Source(3, 17) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.js @@ -1206,12 +1400,12 @@ sourceFile:file2.ts 4 > = 5 > 20 6 > ; -1 >Emitted(34, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(34, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(34, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(34, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(34, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(34, 20) Source(1, 21) + SourceIndex(2) +1 >Emitted(56, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(56, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(56, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(56, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(56, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(56, 20) Source(1, 21) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.js @@ -1232,12 +1426,12 @@ sourceFile:global.ts 4 > = 5 > 10 6 > ; -1 >Emitted(36, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(36, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(36, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(36, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(36, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(36, 22) Source(1, 24) + SourceIndex(3) +1 >Emitted(58, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(58, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(58, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(58, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(58, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(58, 22) Source(1, 24) + SourceIndex(3) --- >>>//# sourceMappingURL=module.js.map @@ -1255,18 +1449,32 @@ sourceFile:global.ts "sections": [ { "pos": 0, - "end": 500, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 697, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 699, + "end": 1199, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 502, - "end": 1297, + "pos": 1201, + "end": 2053, "kind": "text" } ], "sources": { "helpers": [ + "typescript:read", + "typescript:spreadArray", "typescript:rest" ] } @@ -1275,7 +1483,7 @@ sourceFile:global.ts "sections": [ { "pos": 0, - "end": 227, + "end": 265, "kind": "text" } ] @@ -1288,7 +1496,32 @@ sourceFile:global.ts ====================================================================== File:: /src/lib/module.js ---------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-697):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +---------------------------------------------------------------------- +emitHelpers: (699-1199):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -1301,7 +1534,7 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -text: (502-1297) +text: (1201-2053) var myGlob = 20; function libfile0Spread() { var b = []; @@ -1309,7 +1542,8 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, [10, 20, 30]); +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar))); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1332,9 +1566,10 @@ var globalConst = 10; ====================================================================== File:: /src/lib/module.d.ts ---------------------------------------------------------------------- -text: (0-227) +text: (0-265) declare const myGlob = 20; declare function libfile0Spread(...b: number[]): void; +declare const libfile0_ar: number[]; declare module "file1" { export const x = 10; } diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js index 0a43b5fb539fd..e3587365b2819 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js @@ -24,6 +24,27 @@ exitCode:: ExitStatus.Success //// [/src/app/module.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -42,7 +63,8 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, [10, 20, 30]); +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar))); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -73,11 +95,12 @@ function appfile4Spread() { b[_i] = arguments[_i]; } } -appfile4Spread.apply(void 0, [10, 20, 30]); +var appfile4_ar = [20, 30]; +appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar))); //# sourceMappingURL=module.js.map //// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;;;;;;ICArC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE"} +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,IAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;;;;;;ICArC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,IAAE"} //// [/src/app/module.js.map.baseline.txt] =================================================================== @@ -90,6 +113,27 @@ sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3. emittedFile:/src/app/module.js sourceFile:../lib/file0.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spreadArray = (this && this.__spreadArray) || function (to, from) { +>>> for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) +>>> to[j] = from[i]; +>>> return to; +>>>}; >>>var __rest = (this && this.__rest) || function (s, e) { >>> var t = {}; >>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -115,12 +159,12 @@ sourceFile:../lib/file0.ts 4 > = 5 > 20 6 > ; -1 >Emitted(12, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(12, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(12, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(12, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(12, 17) Source(1, 19) + SourceIndex(0) +1 >Emitted(33, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(33, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(33, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(33, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(33, 17) Source(1, 19) + SourceIndex(0) --- >>>function libfile0Spread() { 1-> @@ -130,9 +174,9 @@ sourceFile:../lib/file0.ts > 2 >function 3 > libfile0Spread -1->Emitted(13, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(13, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(13, 24) Source(2, 24) + SourceIndex(0) +1->Emitted(34, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(34, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(34, 24) Source(2, 24) + SourceIndex(0) --- >>> var b = []; 1 >^^^^ @@ -140,8 +184,8 @@ sourceFile:../lib/file0.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(14, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(14, 16) Source(2, 39) + SourceIndex(0) +1 >Emitted(35, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(35, 16) Source(2, 39) + SourceIndex(0) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -156,67 +200,88 @@ sourceFile:../lib/file0.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(15, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(15, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(15, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(15, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(15, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(15, 49) Source(2, 39) + SourceIndex(0) +1->Emitted(36, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(36, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(36, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(36, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(36, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(36, 49) Source(2, 39) + SourceIndex(0) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(16, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(16, 31) Source(2, 39) + SourceIndex(0) +1 >Emitted(37, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(37, 31) Source(2, 39) + SourceIndex(0) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(18, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(18, 2) Source(2, 44) + SourceIndex(0) +1 >Emitted(39, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(39, 2) Source(2, 44) + SourceIndex(0) +--- +>>>var libfile0_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > libfile0_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(40, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(40, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(40, 16) Source(3, 18) + SourceIndex(0) +4 >Emitted(40, 19) Source(3, 21) + SourceIndex(0) +5 >Emitted(40, 20) Source(3, 22) + SourceIndex(0) +6 >Emitted(40, 22) Source(3, 24) + SourceIndex(0) +7 >Emitted(40, 24) Source(3, 26) + SourceIndex(0) +8 >Emitted(40, 26) Source(3, 28) + SourceIndex(0) +9 >Emitted(40, 27) Source(3, 29) + SourceIndex(0) +10>Emitted(40, 28) Source(3, 30) + SourceIndex(0) --- ->>>libfile0Spread.apply(void 0, [10, 20, 30]); +>>>libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar))); 1-> 2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >libfile0Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(19, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(19, 15) Source(3, 15) + SourceIndex(0) -3 >Emitted(19, 30) Source(3, 19) + SourceIndex(0) -4 >Emitted(19, 31) Source(3, 20) + SourceIndex(0) -5 >Emitted(19, 33) Source(3, 22) + SourceIndex(0) -6 >Emitted(19, 35) Source(3, 24) + SourceIndex(0) -7 >Emitted(19, 37) Source(3, 26) + SourceIndex(0) -8 >Emitted(19, 39) Source(3, 28) + SourceIndex(0) -9 >Emitted(19, 41) Source(3, 30) + SourceIndex(0) -10>Emitted(19, 42) Source(3, 31) + SourceIndex(0) -11>Emitted(19, 44) Source(3, 33) + SourceIndex(0) +3 > ( +4 > 10 +5 > , ... +6 > libfile0_ar +7 > ); +1->Emitted(41, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(41, 15) Source(4, 15) + SourceIndex(0) +3 >Emitted(41, 45) Source(4, 16) + SourceIndex(0) +4 >Emitted(41, 47) Source(4, 18) + SourceIndex(0) +5 >Emitted(41, 57) Source(4, 23) + SourceIndex(0) +6 >Emitted(41, 68) Source(4, 34) + SourceIndex(0) +7 >Emitted(41, 72) Source(4, 36) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -227,25 +292,25 @@ sourceFile:../lib/file1.ts >>> Object.defineProperty(exports, "__esModule", { value: true }); >>> exports.x = void 0; >>> exports.x = 10; -1->^^^^ +1 >^^^^ 2 > ^^^^^^^^ 3 > ^ 4 > ^^^ 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^-> -1->export const +1 >export const 2 > 3 > x 4 > = 5 > 10 6 > ; -1->Emitted(24, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(24, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(24, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(24, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(24, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(24, 20) Source(1, 21) + SourceIndex(1) +1 >Emitted(46, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(46, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(46, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(46, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(46, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(46, 20) Source(1, 21) + SourceIndex(1) --- >>> function forlibfile1Rest() { } 1->^^^^ @@ -258,11 +323,11 @@ sourceFile:../lib/file1.ts 3 > forlibfile1Rest 4 > () { 5 > } -1->Emitted(25, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(25, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(25, 29) Source(1, 45) + SourceIndex(1) -4 >Emitted(25, 34) Source(1, 50) + SourceIndex(1) -5 >Emitted(25, 35) Source(1, 51) + SourceIndex(1) +1->Emitted(47, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(47, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(47, 29) Source(1, 45) + SourceIndex(1) +4 >Emitted(47, 34) Source(1, 50) + SourceIndex(1) +5 >Emitted(47, 35) Source(1, 51) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -286,12 +351,12 @@ sourceFile:../lib/file2.ts 4 > = 5 > 20 6 > ; -1 >Emitted(31, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(31, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(31, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(31, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(31, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(31, 20) Source(1, 21) + SourceIndex(2) +1 >Emitted(53, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(53, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(53, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(53, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(53, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(53, 20) Source(1, 21) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -312,12 +377,12 @@ sourceFile:../lib/global.ts 4 > = 5 > 10 6 > ; -1 >Emitted(33, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(33, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(33, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(33, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(33, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(33, 22) Source(1, 24) + SourceIndex(3) +1 >Emitted(55, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(55, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(55, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(55, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(55, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(55, 22) Source(1, 24) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -341,12 +406,12 @@ sourceFile:file3.ts 4 > = 5 > 30 6 > ; -1->Emitted(38, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(38, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(38, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(38, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(38, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(38, 20) Source(1, 21) + SourceIndex(4) +1->Emitted(60, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(60, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(60, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(60, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(60, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(60, 20) Source(1, 21) + SourceIndex(4) --- >>> function forappfile3Rest() { 1->^^^^ @@ -357,9 +422,9 @@ sourceFile:file3.ts >import { x } from "file1"; 2 > function 3 > forappfile3Rest -1->Emitted(39, 5) Source(2, 27) + SourceIndex(4) -2 >Emitted(39, 14) Source(2, 36) + SourceIndex(4) -3 >Emitted(39, 29) Source(2, 51) + SourceIndex(4) +1->Emitted(61, 5) Source(2, 27) + SourceIndex(4) +2 >Emitted(61, 14) Source(2, 36) + SourceIndex(4) +3 >Emitted(61, 29) Source(2, 51) + SourceIndex(4) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -413,31 +478,31 @@ sourceFile:file3.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(40, 9) Source(3, 1) + SourceIndex(4) -2 >Emitted(40, 13) Source(3, 7) + SourceIndex(4) -3 >Emitted(40, 18) Source(3, 24) + SourceIndex(4) -4 >Emitted(40, 20) Source(3, 26) + SourceIndex(4) -5 >Emitted(40, 21) Source(3, 27) + SourceIndex(4) -6 >Emitted(40, 23) Source(3, 29) + SourceIndex(4) -7 >Emitted(40, 25) Source(3, 31) + SourceIndex(4) -8 >Emitted(40, 27) Source(3, 33) + SourceIndex(4) -9 >Emitted(40, 28) Source(3, 34) + SourceIndex(4) -10>Emitted(40, 30) Source(3, 36) + SourceIndex(4) -11>Emitted(40, 32) Source(3, 38) + SourceIndex(4) -12>Emitted(40, 34) Source(3, 40) + SourceIndex(4) -13>Emitted(40, 36) Source(3, 42) + SourceIndex(4) -14>Emitted(40, 38) Source(3, 44) + SourceIndex(4) -15>Emitted(40, 40) Source(3, 46) + SourceIndex(4) -16>Emitted(40, 42) Source(3, 48) + SourceIndex(4) -17>Emitted(40, 44) Source(3, 9) + SourceIndex(4) -18>Emitted(40, 45) Source(3, 10) + SourceIndex(4) -19>Emitted(40, 52) Source(3, 10) + SourceIndex(4) -20>Emitted(40, 54) Source(3, 15) + SourceIndex(4) -21>Emitted(40, 58) Source(3, 19) + SourceIndex(4) -22>Emitted(40, 72) Source(3, 7) + SourceIndex(4) -23>Emitted(40, 77) Source(3, 21) + SourceIndex(4) -24>Emitted(40, 78) Source(3, 48) + SourceIndex(4) -25>Emitted(40, 79) Source(3, 49) + SourceIndex(4) +1->Emitted(62, 9) Source(3, 1) + SourceIndex(4) +2 >Emitted(62, 13) Source(3, 7) + SourceIndex(4) +3 >Emitted(62, 18) Source(3, 24) + SourceIndex(4) +4 >Emitted(62, 20) Source(3, 26) + SourceIndex(4) +5 >Emitted(62, 21) Source(3, 27) + SourceIndex(4) +6 >Emitted(62, 23) Source(3, 29) + SourceIndex(4) +7 >Emitted(62, 25) Source(3, 31) + SourceIndex(4) +8 >Emitted(62, 27) Source(3, 33) + SourceIndex(4) +9 >Emitted(62, 28) Source(3, 34) + SourceIndex(4) +10>Emitted(62, 30) Source(3, 36) + SourceIndex(4) +11>Emitted(62, 32) Source(3, 38) + SourceIndex(4) +12>Emitted(62, 34) Source(3, 40) + SourceIndex(4) +13>Emitted(62, 36) Source(3, 42) + SourceIndex(4) +14>Emitted(62, 38) Source(3, 44) + SourceIndex(4) +15>Emitted(62, 40) Source(3, 46) + SourceIndex(4) +16>Emitted(62, 42) Source(3, 48) + SourceIndex(4) +17>Emitted(62, 44) Source(3, 9) + SourceIndex(4) +18>Emitted(62, 45) Source(3, 10) + SourceIndex(4) +19>Emitted(62, 52) Source(3, 10) + SourceIndex(4) +20>Emitted(62, 54) Source(3, 15) + SourceIndex(4) +21>Emitted(62, 58) Source(3, 19) + SourceIndex(4) +22>Emitted(62, 72) Source(3, 7) + SourceIndex(4) +23>Emitted(62, 77) Source(3, 21) + SourceIndex(4) +24>Emitted(62, 78) Source(3, 48) + SourceIndex(4) +25>Emitted(62, 79) Source(3, 49) + SourceIndex(4) --- >>> } 1 >^^^^ @@ -445,8 +510,8 @@ sourceFile:file3.ts 1 > > 2 > } -1 >Emitted(41, 5) Source(4, 1) + SourceIndex(4) -2 >Emitted(41, 6) Source(4, 2) + SourceIndex(4) +1 >Emitted(63, 5) Source(4, 1) + SourceIndex(4) +2 >Emitted(63, 6) Source(4, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -467,12 +532,12 @@ sourceFile:file4.ts 4 > = 5 > 30 6 > ; -1 >Emitted(43, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(43, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(43, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(43, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(43, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(43, 16) Source(1, 18) + SourceIndex(5) +1 >Emitted(65, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(65, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(65, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(65, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(65, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(65, 16) Source(1, 18) + SourceIndex(5) --- >>>function appfile4Spread() { 1-> @@ -482,9 +547,9 @@ sourceFile:file4.ts > 2 >function 3 > appfile4Spread -1->Emitted(44, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(44, 10) Source(2, 10) + SourceIndex(5) -3 >Emitted(44, 24) Source(2, 24) + SourceIndex(5) +1->Emitted(66, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(66, 10) Source(2, 10) + SourceIndex(5) +3 >Emitted(66, 24) Source(2, 24) + SourceIndex(5) --- >>> var b = []; 1 >^^^^ @@ -492,8 +557,8 @@ sourceFile:file4.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(45, 5) Source(2, 25) + SourceIndex(5) -2 >Emitted(45, 16) Source(2, 39) + SourceIndex(5) +1 >Emitted(67, 5) Source(2, 25) + SourceIndex(5) +2 >Emitted(67, 16) Source(2, 39) + SourceIndex(5) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -508,66 +573,88 @@ sourceFile:file4.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(46, 10) Source(2, 25) + SourceIndex(5) -2 >Emitted(46, 20) Source(2, 39) + SourceIndex(5) -3 >Emitted(46, 22) Source(2, 25) + SourceIndex(5) -4 >Emitted(46, 43) Source(2, 39) + SourceIndex(5) -5 >Emitted(46, 45) Source(2, 25) + SourceIndex(5) -6 >Emitted(46, 49) Source(2, 39) + SourceIndex(5) +1->Emitted(68, 10) Source(2, 25) + SourceIndex(5) +2 >Emitted(68, 20) Source(2, 39) + SourceIndex(5) +3 >Emitted(68, 22) Source(2, 25) + SourceIndex(5) +4 >Emitted(68, 43) Source(2, 39) + SourceIndex(5) +5 >Emitted(68, 45) Source(2, 25) + SourceIndex(5) +6 >Emitted(68, 49) Source(2, 39) + SourceIndex(5) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(47, 9) Source(2, 25) + SourceIndex(5) -2 >Emitted(47, 31) Source(2, 39) + SourceIndex(5) +1 >Emitted(69, 9) Source(2, 25) + SourceIndex(5) +2 >Emitted(69, 31) Source(2, 39) + SourceIndex(5) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(49, 1) Source(2, 43) + SourceIndex(5) -2 >Emitted(49, 2) Source(2, 44) + SourceIndex(5) +1 >Emitted(71, 1) Source(2, 43) + SourceIndex(5) +2 >Emitted(71, 2) Source(2, 44) + SourceIndex(5) --- ->>>appfile4Spread.apply(void 0, [10, 20, 30]); +>>>var appfile4_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > appfile4_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(72, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(72, 5) Source(3, 7) + SourceIndex(5) +3 >Emitted(72, 16) Source(3, 18) + SourceIndex(5) +4 >Emitted(72, 19) Source(3, 21) + SourceIndex(5) +5 >Emitted(72, 20) Source(3, 22) + SourceIndex(5) +6 >Emitted(72, 22) Source(3, 24) + SourceIndex(5) +7 >Emitted(72, 24) Source(3, 26) + SourceIndex(5) +8 >Emitted(72, 26) Source(3, 28) + SourceIndex(5) +9 >Emitted(72, 27) Source(3, 29) + SourceIndex(5) +10>Emitted(72, 28) Source(3, 30) + SourceIndex(5) +--- +>>>appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar))); 1-> 2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >appfile4Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(50, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(50, 15) Source(3, 15) + SourceIndex(5) -3 >Emitted(50, 30) Source(3, 19) + SourceIndex(5) -4 >Emitted(50, 31) Source(3, 20) + SourceIndex(5) -5 >Emitted(50, 33) Source(3, 22) + SourceIndex(5) -6 >Emitted(50, 35) Source(3, 24) + SourceIndex(5) -7 >Emitted(50, 37) Source(3, 26) + SourceIndex(5) -8 >Emitted(50, 39) Source(3, 28) + SourceIndex(5) -9 >Emitted(50, 41) Source(3, 30) + SourceIndex(5) -10>Emitted(50, 42) Source(3, 31) + SourceIndex(5) -11>Emitted(50, 44) Source(3, 33) + SourceIndex(5) +3 > ( +4 > 10 +5 > , ... +6 > appfile4_ar +7 > ); +1->Emitted(73, 1) Source(4, 1) + SourceIndex(5) +2 >Emitted(73, 15) Source(4, 15) + SourceIndex(5) +3 >Emitted(73, 45) Source(4, 16) + SourceIndex(5) +4 >Emitted(73, 47) Source(4, 18) + SourceIndex(5) +5 >Emitted(73, 57) Source(4, 23) + SourceIndex(5) +6 >Emitted(73, 68) Source(4, 34) + SourceIndex(5) +7 >Emitted(73, 72) Source(4, 36) + SourceIndex(5) --- >>>//# sourceMappingURL=module.js.map @@ -583,32 +670,46 @@ sourceFile:file4.ts "sections": [ { "pos": 0, - "end": 500, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 697, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 699, + "end": 1199, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 502, - "end": 1183, + "pos": 1201, + "end": 1939, "kind": "prepend", "data": "../lib/module.js", "texts": [ { - "pos": 502, - "end": 1183, + "pos": 1201, + "end": 1939, "kind": "text" } ] }, { - "pos": 1183, - "end": 1716, + "pos": 1939, + "end": 2529, "kind": "text" } ], "sources": { "helpers": [ - "typescript:rest" + "typescript:rest", + "typescript:read", + "typescript:spreadArray" ] } }, @@ -616,20 +717,20 @@ sourceFile:file4.ts "sections": [ { "pos": 0, - "end": 227, + "end": 265, "kind": "prepend", "data": "../lib/module.d.ts", "texts": [ { "pos": 0, - "end": 227, + "end": 265, "kind": "text" } ] }, { - "pos": 227, - "end": 365, + "pos": 265, + "end": 441, "kind": "text" } ] @@ -642,7 +743,32 @@ sourceFile:file4.ts ====================================================================== File:: /src/app/module.js ---------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-697):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +---------------------------------------------------------------------- +emitHelpers: (699-1199):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -655,9 +781,9 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -prepend: (502-1183):: ../lib/module.js texts:: 1 +prepend: (1201-1939):: ../lib/module.js texts:: 1 >>-------------------------------------------------------------------- -text: (502-1183) +text: (1201-1939) var myGlob = 20; function libfile0Spread() { var b = []; @@ -665,7 +791,8 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, [10, 20, 30]); +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar))); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -682,7 +809,7 @@ define("file2", ["require", "exports"], function (require, exports) { var globalConst = 10; ---------------------------------------------------------------------- -text: (1183-1716) +text: (1939-2529) define("file3", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -699,17 +826,19 @@ function appfile4Spread() { b[_i] = arguments[_i]; } } -appfile4Spread.apply(void 0, [10, 20, 30]); +var appfile4_ar = [20, 30]; +appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar))); ====================================================================== ====================================================================== File:: /src/app/module.d.ts ---------------------------------------------------------------------- -prepend: (0-227):: ../lib/module.d.ts texts:: 1 +prepend: (0-265):: ../lib/module.d.ts texts:: 1 >>-------------------------------------------------------------------- -text: (0-227) +text: (0-265) declare const myGlob = 20; declare function libfile0Spread(...b: number[]): void; +declare const libfile0_ar: number[]; declare module "file1" { export const x = 10; } @@ -719,12 +848,13 @@ declare module "file2" { declare const globalConst = 10; ---------------------------------------------------------------------- -text: (227-365) +text: (265-441) declare module "file3" { export const z = 30; } declare const myVar = 30; declare function appfile4Spread(...b: number[]): void; +declare const appfile4_ar: number[]; ====================================================================== @@ -732,6 +862,27 @@ declare function appfile4Spread(...b: number[]): void; //// [/src/lib/module.d.ts.map] file written with same contents //// [/src/lib/module.d.ts.map.baseline.txt] file written with same contents //// [/src/lib/module.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; var myGlob = 20; function libfile0Spread() { var b = []; @@ -739,7 +890,8 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, [10, 20, 30]); +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar))); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -757,7 +909,7 @@ var globalConst = 10; //# sourceMappingURL=module.js.map //// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;;;;;;ICArC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,IAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;;;;;;ICArC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} //// [/src/lib/module.js.map.baseline.txt] =================================================================== @@ -770,6 +922,27 @@ sources: file0.ts,file1.ts,file2.ts,global.ts emittedFile:/src/lib/module.js sourceFile:file0.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spreadArray = (this && this.__spreadArray) || function (to, from) { +>>> for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) +>>> to[j] = from[i]; +>>> return to; +>>>}; >>>var myGlob = 20; 1 > 2 >^^^^ @@ -784,12 +957,12 @@ sourceFile:file0.ts 4 > = 5 > 20 6 > ; -1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(1, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(1, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(1, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(1, 17) Source(1, 19) + SourceIndex(0) +1 >Emitted(22, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(22, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(22, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(22, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(22, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(22, 17) Source(1, 19) + SourceIndex(0) --- >>>function libfile0Spread() { 1-> @@ -799,9 +972,9 @@ sourceFile:file0.ts > 2 >function 3 > libfile0Spread -1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(2, 24) Source(2, 24) + SourceIndex(0) +1->Emitted(23, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(23, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(23, 24) Source(2, 24) + SourceIndex(0) --- >>> var b = []; 1 >^^^^ @@ -809,8 +982,8 @@ sourceFile:file0.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(3, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(3, 16) Source(2, 39) + SourceIndex(0) +1 >Emitted(24, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(24, 16) Source(2, 39) + SourceIndex(0) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -825,67 +998,88 @@ sourceFile:file0.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(4, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(4, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(4, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(4, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(4, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(4, 49) Source(2, 39) + SourceIndex(0) +1->Emitted(25, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(25, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(25, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(25, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(25, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(25, 49) Source(2, 39) + SourceIndex(0) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(5, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(5, 31) Source(2, 39) + SourceIndex(0) +1 >Emitted(26, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(26, 31) Source(2, 39) + SourceIndex(0) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(7, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(7, 2) Source(2, 44) + SourceIndex(0) +1 >Emitted(28, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(28, 2) Source(2, 44) + SourceIndex(0) --- ->>>libfile0Spread.apply(void 0, [10, 20, 30]); +>>>var libfile0_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > libfile0_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(29, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(29, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(29, 16) Source(3, 18) + SourceIndex(0) +4 >Emitted(29, 19) Source(3, 21) + SourceIndex(0) +5 >Emitted(29, 20) Source(3, 22) + SourceIndex(0) +6 >Emitted(29, 22) Source(3, 24) + SourceIndex(0) +7 >Emitted(29, 24) Source(3, 26) + SourceIndex(0) +8 >Emitted(29, 26) Source(3, 28) + SourceIndex(0) +9 >Emitted(29, 27) Source(3, 29) + SourceIndex(0) +10>Emitted(29, 28) Source(3, 30) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar))); 1-> 2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >libfile0Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(8, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(8, 15) Source(3, 15) + SourceIndex(0) -3 >Emitted(8, 30) Source(3, 19) + SourceIndex(0) -4 >Emitted(8, 31) Source(3, 20) + SourceIndex(0) -5 >Emitted(8, 33) Source(3, 22) + SourceIndex(0) -6 >Emitted(8, 35) Source(3, 24) + SourceIndex(0) -7 >Emitted(8, 37) Source(3, 26) + SourceIndex(0) -8 >Emitted(8, 39) Source(3, 28) + SourceIndex(0) -9 >Emitted(8, 41) Source(3, 30) + SourceIndex(0) -10>Emitted(8, 42) Source(3, 31) + SourceIndex(0) -11>Emitted(8, 44) Source(3, 33) + SourceIndex(0) +3 > ( +4 > 10 +5 > , ... +6 > libfile0_ar +7 > ); +1->Emitted(30, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(30, 15) Source(4, 15) + SourceIndex(0) +3 >Emitted(30, 45) Source(4, 16) + SourceIndex(0) +4 >Emitted(30, 47) Source(4, 18) + SourceIndex(0) +5 >Emitted(30, 57) Source(4, 23) + SourceIndex(0) +6 >Emitted(30, 68) Source(4, 34) + SourceIndex(0) +7 >Emitted(30, 72) Source(4, 36) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.js @@ -896,25 +1090,25 @@ sourceFile:file1.ts >>> Object.defineProperty(exports, "__esModule", { value: true }); >>> exports.x = void 0; >>> exports.x = 10; -1->^^^^ +1 >^^^^ 2 > ^^^^^^^^ 3 > ^ 4 > ^^^ 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^^^-> -1->export const +1 >export const 2 > 3 > x 4 > = 5 > 10 6 > ; -1->Emitted(13, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(13, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(13, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(13, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(13, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(13, 20) Source(1, 21) + SourceIndex(1) +1 >Emitted(35, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(35, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(35, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(35, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(35, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(35, 20) Source(1, 21) + SourceIndex(1) --- >>> function forlibfile1Rest() { } 1->^^^^ @@ -927,11 +1121,11 @@ sourceFile:file1.ts 3 > forlibfile1Rest 4 > () { 5 > } -1->Emitted(14, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(14, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(14, 29) Source(1, 45) + SourceIndex(1) -4 >Emitted(14, 34) Source(1, 50) + SourceIndex(1) -5 >Emitted(14, 35) Source(1, 51) + SourceIndex(1) +1->Emitted(36, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(36, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(36, 29) Source(1, 45) + SourceIndex(1) +4 >Emitted(36, 34) Source(1, 50) + SourceIndex(1) +5 >Emitted(36, 35) Source(1, 51) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.js @@ -955,12 +1149,12 @@ sourceFile:file2.ts 4 > = 5 > 20 6 > ; -1 >Emitted(20, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(20, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(20, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(20, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(20, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(20, 20) Source(1, 21) + SourceIndex(2) +1 >Emitted(42, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(42, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(42, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(42, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(42, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(42, 20) Source(1, 21) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.js @@ -981,12 +1175,12 @@ sourceFile:global.ts 4 > = 5 > 10 6 > ; -1 >Emitted(22, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(22, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(22, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(22, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(22, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(22, 22) Source(1, 24) + SourceIndex(3) +1 >Emitted(44, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(44, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(44, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(44, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(44, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(44, 22) Source(1, 24) + SourceIndex(3) --- >>>//# sourceMappingURL=module.js.map @@ -1004,16 +1198,34 @@ sourceFile:global.ts "sections": [ { "pos": 0, - "end": 681, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 697, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 699, + "end": 1437, "kind": "text" } - ] + ], + "sources": { + "helpers": [ + "typescript:read", + "typescript:spreadArray" + ] + } }, "dts": { "sections": [ { "pos": 0, - "end": 227, + "end": 265, "kind": "text" } ] @@ -1026,7 +1238,32 @@ sourceFile:global.ts ====================================================================== File:: /src/lib/module.js ---------------------------------------------------------------------- -text: (0-681) +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-697):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +---------------------------------------------------------------------- +text: (699-1437) var myGlob = 20; function libfile0Spread() { var b = []; @@ -1034,7 +1271,8 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, [10, 20, 30]); +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar))); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1054,9 +1292,10 @@ var globalConst = 10; ====================================================================== File:: /src/lib/module.d.ts ---------------------------------------------------------------------- -text: (0-227) +text: (0-265) declare const myGlob = 20; declare function libfile0Spread(...b: number[]): void; +declare const libfile0_ar: number[]; declare module "file1" { export const x = 10; } diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-emitHelpers-in-all-projects.js index 809191beab917..e345345d029ca 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-build/multiple-emitHelpers-in-all-projects.js @@ -23,7 +23,8 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 }; //// [/src/app/file4.ts] const myVar = 30; function appfile4Spread(...b: number[]) { } -appfile4Spread(...[10, 20, 30]); +const appfile4_ar = [20, 30]; +appfile4Spread(10, ...appfile4_ar); //// [/src/app/tsconfig.json] { @@ -46,7 +47,8 @@ appfile4Spread(...[10, 20, 30]); //// [/src/lib/file0.ts] const myGlob = 20; function libfile0Spread(...b: number[]) { } -libfile0Spread(...[10, 20, 30]); +const libfile0_ar = [20, 30]; +libfile0Spread(10, ...libfile0_ar); //// [/src/lib/file1.ts] export const x = 10;function forlibfile1Rest() { @@ -97,6 +99,7 @@ exitCode:: ExitStatus.Success //// [/src/app/module.d.ts] declare const myGlob = 20; declare function libfile0Spread(...b: number[]): void; +declare const libfile0_ar: number[]; declare module "file1" { export const x = 10; } @@ -109,10 +112,11 @@ declare module "file3" { } declare const myVar = 30; declare function appfile4Spread(...b: number[]): void; +declare const appfile4_ar: number[]; //# sourceMappingURL=module.d.ts.map //// [/src/app/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;;ICD3C,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC;;ICAvB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,KAAK,KAAK,CAAC;AACjB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC"} //// [/src/app/module.d.ts.map.baseline.txt] =================================================================== @@ -176,6 +180,27 @@ sourceFile:../lib/file0.ts 8 >Emitted(2, 47) Source(2, 39) + SourceIndex(0) 9 >Emitted(2, 55) Source(2, 44) + SourceIndex(0) --- +>>>declare const libfile0_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > libfile0_ar +5 > = [20, 30] +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 9) Source(3, 1) + SourceIndex(0) +3 >Emitted(3, 15) Source(3, 7) + SourceIndex(0) +4 >Emitted(3, 26) Source(3, 18) + SourceIndex(0) +5 >Emitted(3, 36) Source(3, 29) + SourceIndex(0) +6 >Emitted(3, 37) Source(3, 30) + SourceIndex(0) +--- ------------------------------------------------------------------- emittedFile:/src/app/module.d.ts sourceFile:../lib/file1.ts @@ -196,13 +221,13 @@ sourceFile:../lib/file1.ts 5 > x 6 > = 10 7 > ; -1 >Emitted(4, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 11) Source(1, 7) + SourceIndex(1) -3 >Emitted(4, 12) Source(1, 8) + SourceIndex(1) -4 >Emitted(4, 18) Source(1, 14) + SourceIndex(1) -5 >Emitted(4, 19) Source(1, 15) + SourceIndex(1) -6 >Emitted(4, 24) Source(1, 20) + SourceIndex(1) -7 >Emitted(4, 25) Source(1, 21) + SourceIndex(1) +1 >Emitted(5, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(5, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(5, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(5, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(5, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(5, 25) Source(1, 21) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/app/module.d.ts @@ -225,13 +250,13 @@ sourceFile:../lib/file2.ts 5 > y 6 > = 20 7 > ; -1 >Emitted(7, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(7, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(7, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(7, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(7, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(7, 25) Source(1, 21) + SourceIndex(2) +1 >Emitted(8, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(8, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(8, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(8, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(8, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(8, 25) Source(1, 21) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/app/module.d.ts @@ -251,12 +276,12 @@ sourceFile:../lib/global.ts 4 > globalConst 5 > = 10 6 > ; -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(9, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(9, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(9, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(9, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(9, 32) Source(1, 24) + SourceIndex(3) +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(10, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(10, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(10, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(10, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(10, 32) Source(1, 24) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/app/module.d.ts @@ -278,13 +303,13 @@ sourceFile:file3.ts 5 > z 6 > = 30 7 > ; -1 >Emitted(11, 5) Source(1, 1) + SourceIndex(4) -2 >Emitted(11, 11) Source(1, 7) + SourceIndex(4) -3 >Emitted(11, 12) Source(1, 8) + SourceIndex(4) -4 >Emitted(11, 18) Source(1, 14) + SourceIndex(4) -5 >Emitted(11, 19) Source(1, 15) + SourceIndex(4) -6 >Emitted(11, 24) Source(1, 20) + SourceIndex(4) -7 >Emitted(11, 25) Source(1, 21) + SourceIndex(4) +1 >Emitted(12, 5) Source(1, 1) + SourceIndex(4) +2 >Emitted(12, 11) Source(1, 7) + SourceIndex(4) +3 >Emitted(12, 12) Source(1, 8) + SourceIndex(4) +4 >Emitted(12, 18) Source(1, 14) + SourceIndex(4) +5 >Emitted(12, 19) Source(1, 15) + SourceIndex(4) +6 >Emitted(12, 24) Source(1, 20) + SourceIndex(4) +7 >Emitted(12, 25) Source(1, 21) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/app/module.d.ts @@ -305,12 +330,12 @@ sourceFile:file4.ts 4 > myVar 5 > = 30 6 > ; -1 >Emitted(13, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(13, 9) Source(1, 1) + SourceIndex(5) -3 >Emitted(13, 15) Source(1, 7) + SourceIndex(5) -4 >Emitted(13, 20) Source(1, 12) + SourceIndex(5) -5 >Emitted(13, 25) Source(1, 17) + SourceIndex(5) -6 >Emitted(13, 26) Source(1, 18) + SourceIndex(5) +1 >Emitted(14, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(14, 9) Source(1, 1) + SourceIndex(5) +3 >Emitted(14, 15) Source(1, 7) + SourceIndex(5) +4 >Emitted(14, 20) Source(1, 12) + SourceIndex(5) +5 >Emitted(14, 25) Source(1, 17) + SourceIndex(5) +6 >Emitted(14, 26) Source(1, 18) + SourceIndex(5) --- >>>declare function appfile4Spread(...b: number[]): void; 1-> @@ -332,19 +357,61 @@ sourceFile:file4.ts 7 > number 8 > [] 9 > ) { } -1->Emitted(14, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(14, 18) Source(2, 10) + SourceIndex(5) -3 >Emitted(14, 32) Source(2, 24) + SourceIndex(5) -4 >Emitted(14, 33) Source(2, 25) + SourceIndex(5) -5 >Emitted(14, 36) Source(2, 28) + SourceIndex(5) -6 >Emitted(14, 39) Source(2, 31) + SourceIndex(5) -7 >Emitted(14, 45) Source(2, 37) + SourceIndex(5) -8 >Emitted(14, 47) Source(2, 39) + SourceIndex(5) -9 >Emitted(14, 55) Source(2, 44) + SourceIndex(5) +1->Emitted(15, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(15, 18) Source(2, 10) + SourceIndex(5) +3 >Emitted(15, 32) Source(2, 24) + SourceIndex(5) +4 >Emitted(15, 33) Source(2, 25) + SourceIndex(5) +5 >Emitted(15, 36) Source(2, 28) + SourceIndex(5) +6 >Emitted(15, 39) Source(2, 31) + SourceIndex(5) +7 >Emitted(15, 45) Source(2, 37) + SourceIndex(5) +8 >Emitted(15, 47) Source(2, 39) + SourceIndex(5) +9 >Emitted(15, 55) Source(2, 44) + SourceIndex(5) +--- +>>>declare const appfile4_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > appfile4_ar +5 > = [20, 30] +6 > ; +1 >Emitted(16, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(16, 9) Source(3, 1) + SourceIndex(5) +3 >Emitted(16, 15) Source(3, 7) + SourceIndex(5) +4 >Emitted(16, 26) Source(3, 18) + SourceIndex(5) +5 >Emitted(16, 36) Source(3, 29) + SourceIndex(5) +6 >Emitted(16, 37) Source(3, 30) + SourceIndex(5) --- >>>//# sourceMappingURL=module.d.ts.map //// [/src/app/module.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -363,7 +430,8 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, [10, 20, 30]); +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar))); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -396,11 +464,12 @@ function appfile4Spread() { b[_i] = arguments[_i]; } } -appfile4Spread.apply(void 0, [10, 20, 30]); +var appfile4_ar = [20, 30]; +appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar))); //# sourceMappingURL=module.js.map //// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE"} +{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,IAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,IAAE"} //// [/src/app/module.js.map.baseline.txt] =================================================================== @@ -413,6 +482,27 @@ sources: ../lib/file0.ts,../lib/file1.ts,../lib/file2.ts,../lib/global.ts,file3. emittedFile:/src/app/module.js sourceFile:../lib/file0.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spreadArray = (this && this.__spreadArray) || function (to, from) { +>>> for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) +>>> to[j] = from[i]; +>>> return to; +>>>}; >>>var __rest = (this && this.__rest) || function (s, e) { >>> var t = {}; >>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -438,12 +528,12 @@ sourceFile:../lib/file0.ts 4 > = 5 > 20 6 > ; -1 >Emitted(12, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(12, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(12, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(12, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(12, 17) Source(1, 19) + SourceIndex(0) +1 >Emitted(33, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(33, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(33, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(33, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(33, 17) Source(1, 19) + SourceIndex(0) --- >>>function libfile0Spread() { 1-> @@ -453,9 +543,9 @@ sourceFile:../lib/file0.ts > 2 >function 3 > libfile0Spread -1->Emitted(13, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(13, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(13, 24) Source(2, 24) + SourceIndex(0) +1->Emitted(34, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(34, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(34, 24) Source(2, 24) + SourceIndex(0) --- >>> var b = []; 1 >^^^^ @@ -463,8 +553,8 @@ sourceFile:../lib/file0.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(14, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(14, 16) Source(2, 39) + SourceIndex(0) +1 >Emitted(35, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(35, 16) Source(2, 39) + SourceIndex(0) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -479,67 +569,88 @@ sourceFile:../lib/file0.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(15, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(15, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(15, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(15, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(15, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(15, 49) Source(2, 39) + SourceIndex(0) +1->Emitted(36, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(36, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(36, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(36, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(36, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(36, 49) Source(2, 39) + SourceIndex(0) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(16, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(16, 31) Source(2, 39) + SourceIndex(0) +1 >Emitted(37, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(37, 31) Source(2, 39) + SourceIndex(0) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(18, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(18, 2) Source(2, 44) + SourceIndex(0) +1 >Emitted(39, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(39, 2) Source(2, 44) + SourceIndex(0) --- ->>>libfile0Spread.apply(void 0, [10, 20, 30]); +>>>var libfile0_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > libfile0_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(40, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(40, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(40, 16) Source(3, 18) + SourceIndex(0) +4 >Emitted(40, 19) Source(3, 21) + SourceIndex(0) +5 >Emitted(40, 20) Source(3, 22) + SourceIndex(0) +6 >Emitted(40, 22) Source(3, 24) + SourceIndex(0) +7 >Emitted(40, 24) Source(3, 26) + SourceIndex(0) +8 >Emitted(40, 26) Source(3, 28) + SourceIndex(0) +9 >Emitted(40, 27) Source(3, 29) + SourceIndex(0) +10>Emitted(40, 28) Source(3, 30) + SourceIndex(0) +--- +>>>libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar))); 1-> 2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >libfile0Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(19, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(19, 15) Source(3, 15) + SourceIndex(0) -3 >Emitted(19, 30) Source(3, 19) + SourceIndex(0) -4 >Emitted(19, 31) Source(3, 20) + SourceIndex(0) -5 >Emitted(19, 33) Source(3, 22) + SourceIndex(0) -6 >Emitted(19, 35) Source(3, 24) + SourceIndex(0) -7 >Emitted(19, 37) Source(3, 26) + SourceIndex(0) -8 >Emitted(19, 39) Source(3, 28) + SourceIndex(0) -9 >Emitted(19, 41) Source(3, 30) + SourceIndex(0) -10>Emitted(19, 42) Source(3, 31) + SourceIndex(0) -11>Emitted(19, 44) Source(3, 33) + SourceIndex(0) +3 > ( +4 > 10 +5 > , ... +6 > libfile0_ar +7 > ); +1->Emitted(41, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(41, 15) Source(4, 15) + SourceIndex(0) +3 >Emitted(41, 45) Source(4, 16) + SourceIndex(0) +4 >Emitted(41, 47) Source(4, 18) + SourceIndex(0) +5 >Emitted(41, 57) Source(4, 23) + SourceIndex(0) +6 >Emitted(41, 68) Source(4, 34) + SourceIndex(0) +7 >Emitted(41, 72) Source(4, 36) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -550,25 +661,25 @@ sourceFile:../lib/file1.ts >>> Object.defineProperty(exports, "__esModule", { value: true }); >>> exports.x = void 0; >>> exports.x = 10; -1->^^^^ +1 >^^^^ 2 > ^^^^^^^^ 3 > ^ 4 > ^^^ 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^-> -1->export const +1 >export const 2 > 3 > x 4 > = 5 > 10 6 > ; -1->Emitted(24, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(24, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(24, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(24, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(24, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(24, 20) Source(1, 21) + SourceIndex(1) +1 >Emitted(46, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(46, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(46, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(46, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(46, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(46, 20) Source(1, 21) + SourceIndex(1) --- >>> function forlibfile1Rest() { 1->^^^^ @@ -578,9 +689,9 @@ sourceFile:../lib/file1.ts 1-> 2 > function 3 > forlibfile1Rest -1->Emitted(25, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(25, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(25, 29) Source(1, 45) + SourceIndex(1) +1->Emitted(47, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(47, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(47, 29) Source(1, 45) + SourceIndex(1) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -634,31 +745,31 @@ sourceFile:../lib/file1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(26, 9) Source(2, 1) + SourceIndex(1) -2 >Emitted(26, 13) Source(2, 7) + SourceIndex(1) -3 >Emitted(26, 18) Source(2, 24) + SourceIndex(1) -4 >Emitted(26, 20) Source(2, 26) + SourceIndex(1) -5 >Emitted(26, 21) Source(2, 27) + SourceIndex(1) -6 >Emitted(26, 23) Source(2, 29) + SourceIndex(1) -7 >Emitted(26, 25) Source(2, 31) + SourceIndex(1) -8 >Emitted(26, 27) Source(2, 33) + SourceIndex(1) -9 >Emitted(26, 28) Source(2, 34) + SourceIndex(1) -10>Emitted(26, 30) Source(2, 36) + SourceIndex(1) -11>Emitted(26, 32) Source(2, 38) + SourceIndex(1) -12>Emitted(26, 34) Source(2, 40) + SourceIndex(1) -13>Emitted(26, 36) Source(2, 42) + SourceIndex(1) -14>Emitted(26, 38) Source(2, 44) + SourceIndex(1) -15>Emitted(26, 40) Source(2, 46) + SourceIndex(1) -16>Emitted(26, 42) Source(2, 48) + SourceIndex(1) -17>Emitted(26, 44) Source(2, 9) + SourceIndex(1) -18>Emitted(26, 45) Source(2, 10) + SourceIndex(1) -19>Emitted(26, 52) Source(2, 10) + SourceIndex(1) -20>Emitted(26, 54) Source(2, 15) + SourceIndex(1) -21>Emitted(26, 58) Source(2, 19) + SourceIndex(1) -22>Emitted(26, 72) Source(2, 7) + SourceIndex(1) -23>Emitted(26, 77) Source(2, 21) + SourceIndex(1) -24>Emitted(26, 78) Source(2, 48) + SourceIndex(1) -25>Emitted(26, 79) Source(2, 49) + SourceIndex(1) +1->Emitted(48, 9) Source(2, 1) + SourceIndex(1) +2 >Emitted(48, 13) Source(2, 7) + SourceIndex(1) +3 >Emitted(48, 18) Source(2, 24) + SourceIndex(1) +4 >Emitted(48, 20) Source(2, 26) + SourceIndex(1) +5 >Emitted(48, 21) Source(2, 27) + SourceIndex(1) +6 >Emitted(48, 23) Source(2, 29) + SourceIndex(1) +7 >Emitted(48, 25) Source(2, 31) + SourceIndex(1) +8 >Emitted(48, 27) Source(2, 33) + SourceIndex(1) +9 >Emitted(48, 28) Source(2, 34) + SourceIndex(1) +10>Emitted(48, 30) Source(2, 36) + SourceIndex(1) +11>Emitted(48, 32) Source(2, 38) + SourceIndex(1) +12>Emitted(48, 34) Source(2, 40) + SourceIndex(1) +13>Emitted(48, 36) Source(2, 42) + SourceIndex(1) +14>Emitted(48, 38) Source(2, 44) + SourceIndex(1) +15>Emitted(48, 40) Source(2, 46) + SourceIndex(1) +16>Emitted(48, 42) Source(2, 48) + SourceIndex(1) +17>Emitted(48, 44) Source(2, 9) + SourceIndex(1) +18>Emitted(48, 45) Source(2, 10) + SourceIndex(1) +19>Emitted(48, 52) Source(2, 10) + SourceIndex(1) +20>Emitted(48, 54) Source(2, 15) + SourceIndex(1) +21>Emitted(48, 58) Source(2, 19) + SourceIndex(1) +22>Emitted(48, 72) Source(2, 7) + SourceIndex(1) +23>Emitted(48, 77) Source(2, 21) + SourceIndex(1) +24>Emitted(48, 78) Source(2, 48) + SourceIndex(1) +25>Emitted(48, 79) Source(2, 49) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -666,8 +777,8 @@ sourceFile:../lib/file1.ts 1 > > 2 > } -1 >Emitted(27, 5) Source(3, 1) + SourceIndex(1) -2 >Emitted(27, 6) Source(3, 2) + SourceIndex(1) +1 >Emitted(49, 5) Source(3, 1) + SourceIndex(1) +2 >Emitted(49, 6) Source(3, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -691,12 +802,12 @@ sourceFile:../lib/file2.ts 4 > = 5 > 20 6 > ; -1 >Emitted(33, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(33, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(33, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(33, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(33, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(33, 20) Source(1, 21) + SourceIndex(2) +1 >Emitted(55, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(55, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(55, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(55, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(55, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(55, 20) Source(1, 21) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -717,12 +828,12 @@ sourceFile:../lib/global.ts 4 > = 5 > 10 6 > ; -1 >Emitted(35, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(35, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(35, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(35, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(35, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(35, 22) Source(1, 24) + SourceIndex(3) +1 >Emitted(57, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(57, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(57, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(57, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(57, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(57, 22) Source(1, 24) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -746,12 +857,12 @@ sourceFile:file3.ts 4 > = 5 > 30 6 > ; -1->Emitted(40, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(40, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(40, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(40, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(40, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(40, 20) Source(1, 21) + SourceIndex(4) +1->Emitted(62, 5) Source(1, 14) + SourceIndex(4) +2 >Emitted(62, 13) Source(1, 14) + SourceIndex(4) +3 >Emitted(62, 14) Source(1, 15) + SourceIndex(4) +4 >Emitted(62, 17) Source(1, 18) + SourceIndex(4) +5 >Emitted(62, 19) Source(1, 20) + SourceIndex(4) +6 >Emitted(62, 20) Source(1, 21) + SourceIndex(4) --- >>> function forappfile3Rest() { 1->^^^^ @@ -762,9 +873,9 @@ sourceFile:file3.ts >import { x } from "file1"; 2 > function 3 > forappfile3Rest -1->Emitted(41, 5) Source(2, 27) + SourceIndex(4) -2 >Emitted(41, 14) Source(2, 36) + SourceIndex(4) -3 >Emitted(41, 29) Source(2, 51) + SourceIndex(4) +1->Emitted(63, 5) Source(2, 27) + SourceIndex(4) +2 >Emitted(63, 14) Source(2, 36) + SourceIndex(4) +3 >Emitted(63, 29) Source(2, 51) + SourceIndex(4) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -818,31 +929,31 @@ sourceFile:file3.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(42, 9) Source(3, 1) + SourceIndex(4) -2 >Emitted(42, 13) Source(3, 7) + SourceIndex(4) -3 >Emitted(42, 18) Source(3, 24) + SourceIndex(4) -4 >Emitted(42, 20) Source(3, 26) + SourceIndex(4) -5 >Emitted(42, 21) Source(3, 27) + SourceIndex(4) -6 >Emitted(42, 23) Source(3, 29) + SourceIndex(4) -7 >Emitted(42, 25) Source(3, 31) + SourceIndex(4) -8 >Emitted(42, 27) Source(3, 33) + SourceIndex(4) -9 >Emitted(42, 28) Source(3, 34) + SourceIndex(4) -10>Emitted(42, 30) Source(3, 36) + SourceIndex(4) -11>Emitted(42, 32) Source(3, 38) + SourceIndex(4) -12>Emitted(42, 34) Source(3, 40) + SourceIndex(4) -13>Emitted(42, 36) Source(3, 42) + SourceIndex(4) -14>Emitted(42, 38) Source(3, 44) + SourceIndex(4) -15>Emitted(42, 40) Source(3, 46) + SourceIndex(4) -16>Emitted(42, 42) Source(3, 48) + SourceIndex(4) -17>Emitted(42, 44) Source(3, 9) + SourceIndex(4) -18>Emitted(42, 45) Source(3, 10) + SourceIndex(4) -19>Emitted(42, 52) Source(3, 10) + SourceIndex(4) -20>Emitted(42, 54) Source(3, 15) + SourceIndex(4) -21>Emitted(42, 58) Source(3, 19) + SourceIndex(4) -22>Emitted(42, 72) Source(3, 7) + SourceIndex(4) -23>Emitted(42, 77) Source(3, 21) + SourceIndex(4) -24>Emitted(42, 78) Source(3, 48) + SourceIndex(4) -25>Emitted(42, 79) Source(3, 49) + SourceIndex(4) +1->Emitted(64, 9) Source(3, 1) + SourceIndex(4) +2 >Emitted(64, 13) Source(3, 7) + SourceIndex(4) +3 >Emitted(64, 18) Source(3, 24) + SourceIndex(4) +4 >Emitted(64, 20) Source(3, 26) + SourceIndex(4) +5 >Emitted(64, 21) Source(3, 27) + SourceIndex(4) +6 >Emitted(64, 23) Source(3, 29) + SourceIndex(4) +7 >Emitted(64, 25) Source(3, 31) + SourceIndex(4) +8 >Emitted(64, 27) Source(3, 33) + SourceIndex(4) +9 >Emitted(64, 28) Source(3, 34) + SourceIndex(4) +10>Emitted(64, 30) Source(3, 36) + SourceIndex(4) +11>Emitted(64, 32) Source(3, 38) + SourceIndex(4) +12>Emitted(64, 34) Source(3, 40) + SourceIndex(4) +13>Emitted(64, 36) Source(3, 42) + SourceIndex(4) +14>Emitted(64, 38) Source(3, 44) + SourceIndex(4) +15>Emitted(64, 40) Source(3, 46) + SourceIndex(4) +16>Emitted(64, 42) Source(3, 48) + SourceIndex(4) +17>Emitted(64, 44) Source(3, 9) + SourceIndex(4) +18>Emitted(64, 45) Source(3, 10) + SourceIndex(4) +19>Emitted(64, 52) Source(3, 10) + SourceIndex(4) +20>Emitted(64, 54) Source(3, 15) + SourceIndex(4) +21>Emitted(64, 58) Source(3, 19) + SourceIndex(4) +22>Emitted(64, 72) Source(3, 7) + SourceIndex(4) +23>Emitted(64, 77) Source(3, 21) + SourceIndex(4) +24>Emitted(64, 78) Source(3, 48) + SourceIndex(4) +25>Emitted(64, 79) Source(3, 49) + SourceIndex(4) --- >>> } 1 >^^^^ @@ -850,8 +961,8 @@ sourceFile:file3.ts 1 > > 2 > } -1 >Emitted(43, 5) Source(4, 1) + SourceIndex(4) -2 >Emitted(43, 6) Source(4, 2) + SourceIndex(4) +1 >Emitted(65, 5) Source(4, 1) + SourceIndex(4) +2 >Emitted(65, 6) Source(4, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -872,12 +983,12 @@ sourceFile:file4.ts 4 > = 5 > 30 6 > ; -1 >Emitted(45, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(45, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(45, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(45, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(45, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(45, 16) Source(1, 18) + SourceIndex(5) +1 >Emitted(67, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(67, 5) Source(1, 7) + SourceIndex(5) +3 >Emitted(67, 10) Source(1, 12) + SourceIndex(5) +4 >Emitted(67, 13) Source(1, 15) + SourceIndex(5) +5 >Emitted(67, 15) Source(1, 17) + SourceIndex(5) +6 >Emitted(67, 16) Source(1, 18) + SourceIndex(5) --- >>>function appfile4Spread() { 1-> @@ -887,9 +998,9 @@ sourceFile:file4.ts > 2 >function 3 > appfile4Spread -1->Emitted(46, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(46, 10) Source(2, 10) + SourceIndex(5) -3 >Emitted(46, 24) Source(2, 24) + SourceIndex(5) +1->Emitted(68, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(68, 10) Source(2, 10) + SourceIndex(5) +3 >Emitted(68, 24) Source(2, 24) + SourceIndex(5) --- >>> var b = []; 1 >^^^^ @@ -897,8 +1008,8 @@ sourceFile:file4.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(47, 5) Source(2, 25) + SourceIndex(5) -2 >Emitted(47, 16) Source(2, 39) + SourceIndex(5) +1 >Emitted(69, 5) Source(2, 25) + SourceIndex(5) +2 >Emitted(69, 16) Source(2, 39) + SourceIndex(5) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -913,66 +1024,88 @@ sourceFile:file4.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(48, 10) Source(2, 25) + SourceIndex(5) -2 >Emitted(48, 20) Source(2, 39) + SourceIndex(5) -3 >Emitted(48, 22) Source(2, 25) + SourceIndex(5) -4 >Emitted(48, 43) Source(2, 39) + SourceIndex(5) -5 >Emitted(48, 45) Source(2, 25) + SourceIndex(5) -6 >Emitted(48, 49) Source(2, 39) + SourceIndex(5) +1->Emitted(70, 10) Source(2, 25) + SourceIndex(5) +2 >Emitted(70, 20) Source(2, 39) + SourceIndex(5) +3 >Emitted(70, 22) Source(2, 25) + SourceIndex(5) +4 >Emitted(70, 43) Source(2, 39) + SourceIndex(5) +5 >Emitted(70, 45) Source(2, 25) + SourceIndex(5) +6 >Emitted(70, 49) Source(2, 39) + SourceIndex(5) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(49, 9) Source(2, 25) + SourceIndex(5) -2 >Emitted(49, 31) Source(2, 39) + SourceIndex(5) +1 >Emitted(71, 9) Source(2, 25) + SourceIndex(5) +2 >Emitted(71, 31) Source(2, 39) + SourceIndex(5) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(51, 1) Source(2, 43) + SourceIndex(5) -2 >Emitted(51, 2) Source(2, 44) + SourceIndex(5) +1 >Emitted(73, 1) Source(2, 43) + SourceIndex(5) +2 >Emitted(73, 2) Source(2, 44) + SourceIndex(5) --- ->>>appfile4Spread.apply(void 0, [10, 20, 30]); +>>>var appfile4_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > appfile4_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(74, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(74, 5) Source(3, 7) + SourceIndex(5) +3 >Emitted(74, 16) Source(3, 18) + SourceIndex(5) +4 >Emitted(74, 19) Source(3, 21) + SourceIndex(5) +5 >Emitted(74, 20) Source(3, 22) + SourceIndex(5) +6 >Emitted(74, 22) Source(3, 24) + SourceIndex(5) +7 >Emitted(74, 24) Source(3, 26) + SourceIndex(5) +8 >Emitted(74, 26) Source(3, 28) + SourceIndex(5) +9 >Emitted(74, 27) Source(3, 29) + SourceIndex(5) +10>Emitted(74, 28) Source(3, 30) + SourceIndex(5) +--- +>>>appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar))); 1-> 2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >appfile4Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(52, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(52, 15) Source(3, 15) + SourceIndex(5) -3 >Emitted(52, 30) Source(3, 19) + SourceIndex(5) -4 >Emitted(52, 31) Source(3, 20) + SourceIndex(5) -5 >Emitted(52, 33) Source(3, 22) + SourceIndex(5) -6 >Emitted(52, 35) Source(3, 24) + SourceIndex(5) -7 >Emitted(52, 37) Source(3, 26) + SourceIndex(5) -8 >Emitted(52, 39) Source(3, 28) + SourceIndex(5) -9 >Emitted(52, 41) Source(3, 30) + SourceIndex(5) -10>Emitted(52, 42) Source(3, 31) + SourceIndex(5) -11>Emitted(52, 44) Source(3, 33) + SourceIndex(5) +3 > ( +4 > 10 +5 > , ... +6 > appfile4_ar +7 > ); +1->Emitted(75, 1) Source(4, 1) + SourceIndex(5) +2 >Emitted(75, 15) Source(4, 15) + SourceIndex(5) +3 >Emitted(75, 45) Source(4, 16) + SourceIndex(5) +4 >Emitted(75, 47) Source(4, 18) + SourceIndex(5) +5 >Emitted(75, 57) Source(4, 23) + SourceIndex(5) +6 >Emitted(75, 68) Source(4, 34) + SourceIndex(5) +7 >Emitted(75, 72) Source(4, 36) + SourceIndex(5) --- >>>//# sourceMappingURL=module.js.map @@ -988,32 +1121,46 @@ sourceFile:file4.ts "sections": [ { "pos": 0, - "end": 500, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 697, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 699, + "end": 1199, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 502, - "end": 1268, + "pos": 1201, + "end": 2024, "kind": "prepend", "data": "../lib/module.js", "texts": [ { - "pos": 502, - "end": 1268, + "pos": 1201, + "end": 2024, "kind": "text" } ] }, { - "pos": 1268, - "end": 1801, + "pos": 2024, + "end": 2614, "kind": "text" } ], "sources": { "helpers": [ - "typescript:rest" + "typescript:rest", + "typescript:read", + "typescript:spreadArray" ] } }, @@ -1021,20 +1168,20 @@ sourceFile:file4.ts "sections": [ { "pos": 0, - "end": 227, + "end": 265, "kind": "prepend", "data": "../lib/module.d.ts", "texts": [ { "pos": 0, - "end": 227, + "end": 265, "kind": "text" } ] }, { - "pos": 227, - "end": 365, + "pos": 265, + "end": 441, "kind": "text" } ] @@ -1047,7 +1194,32 @@ sourceFile:file4.ts ====================================================================== File:: /src/app/module.js ---------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-697):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +---------------------------------------------------------------------- +emitHelpers: (699-1199):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -1060,9 +1232,9 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -prepend: (502-1268):: ../lib/module.js texts:: 1 +prepend: (1201-2024):: ../lib/module.js texts:: 1 >>-------------------------------------------------------------------- -text: (502-1268) +text: (1201-2024) var myGlob = 20; function libfile0Spread() { var b = []; @@ -1070,7 +1242,8 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, [10, 20, 30]); +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar))); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1089,7 +1262,7 @@ define("file2", ["require", "exports"], function (require, exports) { var globalConst = 10; ---------------------------------------------------------------------- -text: (1268-1801) +text: (2024-2614) define("file3", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1106,17 +1279,19 @@ function appfile4Spread() { b[_i] = arguments[_i]; } } -appfile4Spread.apply(void 0, [10, 20, 30]); +var appfile4_ar = [20, 30]; +appfile4Spread.apply(void 0, __spreadArray([10], __read(appfile4_ar))); ====================================================================== ====================================================================== File:: /src/app/module.d.ts ---------------------------------------------------------------------- -prepend: (0-227):: ../lib/module.d.ts texts:: 1 +prepend: (0-265):: ../lib/module.d.ts texts:: 1 >>-------------------------------------------------------------------- -text: (0-227) +text: (0-265) declare const myGlob = 20; declare function libfile0Spread(...b: number[]): void; +declare const libfile0_ar: number[]; declare module "file1" { export const x = 10; } @@ -1126,18 +1301,20 @@ declare module "file2" { declare const globalConst = 10; ---------------------------------------------------------------------- -text: (227-365) +text: (265-441) declare module "file3" { export const z = 30; } declare const myVar = 30; declare function appfile4Spread(...b: number[]): void; +declare const appfile4_ar: number[]; ====================================================================== //// [/src/lib/module.d.ts] declare const myGlob = 20; declare function libfile0Spread(...b: number[]): void; +declare const libfile0_ar: number[]; declare module "file1" { export const x = 10; } @@ -1148,7 +1325,7 @@ declare const globalConst = 10; //# sourceMappingURL=module.d.ts.map //// [/src/lib/module.d.ts.map] -{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;;ICD3C,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} +{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,KAAK,CAAC;AAClB,iBAAS,cAAc,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AAC3C,QAAA,MAAM,WAAW,UAAW,CAAC;;ICF7B,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;;ICApB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;;ACApB,QAAA,MAAM,WAAW,KAAK,CAAC"} //// [/src/lib/module.d.ts.map.baseline.txt] =================================================================== @@ -1212,6 +1389,27 @@ sourceFile:file0.ts 8 >Emitted(2, 47) Source(2, 39) + SourceIndex(0) 9 >Emitted(2, 55) Source(2, 44) + SourceIndex(0) --- +>>>declare const libfile0_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > libfile0_ar +5 > = [20, 30] +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 9) Source(3, 1) + SourceIndex(0) +3 >Emitted(3, 15) Source(3, 7) + SourceIndex(0) +4 >Emitted(3, 26) Source(3, 18) + SourceIndex(0) +5 >Emitted(3, 36) Source(3, 29) + SourceIndex(0) +6 >Emitted(3, 37) Source(3, 30) + SourceIndex(0) +--- ------------------------------------------------------------------- emittedFile:/src/lib/module.d.ts sourceFile:file1.ts @@ -1232,13 +1430,13 @@ sourceFile:file1.ts 5 > x 6 > = 10 7 > ; -1 >Emitted(4, 5) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 11) Source(1, 7) + SourceIndex(1) -3 >Emitted(4, 12) Source(1, 8) + SourceIndex(1) -4 >Emitted(4, 18) Source(1, 14) + SourceIndex(1) -5 >Emitted(4, 19) Source(1, 15) + SourceIndex(1) -6 >Emitted(4, 24) Source(1, 20) + SourceIndex(1) -7 >Emitted(4, 25) Source(1, 21) + SourceIndex(1) +1 >Emitted(5, 5) Source(1, 1) + SourceIndex(1) +2 >Emitted(5, 11) Source(1, 7) + SourceIndex(1) +3 >Emitted(5, 12) Source(1, 8) + SourceIndex(1) +4 >Emitted(5, 18) Source(1, 14) + SourceIndex(1) +5 >Emitted(5, 19) Source(1, 15) + SourceIndex(1) +6 >Emitted(5, 24) Source(1, 20) + SourceIndex(1) +7 >Emitted(5, 25) Source(1, 21) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.d.ts @@ -1261,13 +1459,13 @@ sourceFile:file2.ts 5 > y 6 > = 20 7 > ; -1 >Emitted(7, 5) Source(1, 1) + SourceIndex(2) -2 >Emitted(7, 11) Source(1, 7) + SourceIndex(2) -3 >Emitted(7, 12) Source(1, 8) + SourceIndex(2) -4 >Emitted(7, 18) Source(1, 14) + SourceIndex(2) -5 >Emitted(7, 19) Source(1, 15) + SourceIndex(2) -6 >Emitted(7, 24) Source(1, 20) + SourceIndex(2) -7 >Emitted(7, 25) Source(1, 21) + SourceIndex(2) +1 >Emitted(8, 5) Source(1, 1) + SourceIndex(2) +2 >Emitted(8, 11) Source(1, 7) + SourceIndex(2) +3 >Emitted(8, 12) Source(1, 8) + SourceIndex(2) +4 >Emitted(8, 18) Source(1, 14) + SourceIndex(2) +5 >Emitted(8, 19) Source(1, 15) + SourceIndex(2) +6 >Emitted(8, 24) Source(1, 20) + SourceIndex(2) +7 >Emitted(8, 25) Source(1, 21) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.d.ts @@ -1288,16 +1486,37 @@ sourceFile:global.ts 4 > globalConst 5 > = 10 6 > ; -1 >Emitted(9, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(9, 9) Source(1, 1) + SourceIndex(3) -3 >Emitted(9, 15) Source(1, 7) + SourceIndex(3) -4 >Emitted(9, 26) Source(1, 18) + SourceIndex(3) -5 >Emitted(9, 31) Source(1, 23) + SourceIndex(3) -6 >Emitted(9, 32) Source(1, 24) + SourceIndex(3) +1 >Emitted(10, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(10, 9) Source(1, 1) + SourceIndex(3) +3 >Emitted(10, 15) Source(1, 7) + SourceIndex(3) +4 >Emitted(10, 26) Source(1, 18) + SourceIndex(3) +5 >Emitted(10, 31) Source(1, 23) + SourceIndex(3) +6 >Emitted(10, 32) Source(1, 24) + SourceIndex(3) --- >>>//# sourceMappingURL=module.d.ts.map //// [/src/lib/module.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -1316,7 +1535,8 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, [10, 20, 30]); +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar))); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1336,7 +1556,7 @@ var globalConst = 10; //# sourceMappingURL=module.js.map //// [/src/lib/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} +{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,IAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC7B,cAAc,8BAAC,EAAE,UAAK,WAAW,IAAE;;;;;ICHtB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;IAChD,CAAC;;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"} //// [/src/lib/module.js.map.baseline.txt] =================================================================== @@ -1349,6 +1569,27 @@ sources: file0.ts,file1.ts,file2.ts,global.ts emittedFile:/src/lib/module.js sourceFile:file0.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spreadArray = (this && this.__spreadArray) || function (to, from) { +>>> for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) +>>> to[j] = from[i]; +>>> return to; +>>>}; >>>var __rest = (this && this.__rest) || function (s, e) { >>> var t = {}; >>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -1374,12 +1615,12 @@ sourceFile:file0.ts 4 > = 5 > 20 6 > ; -1 >Emitted(12, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(12, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(12, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(12, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(12, 17) Source(1, 19) + SourceIndex(0) +1 >Emitted(33, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(1, 7) + SourceIndex(0) +3 >Emitted(33, 11) Source(1, 13) + SourceIndex(0) +4 >Emitted(33, 14) Source(1, 16) + SourceIndex(0) +5 >Emitted(33, 16) Source(1, 18) + SourceIndex(0) +6 >Emitted(33, 17) Source(1, 19) + SourceIndex(0) --- >>>function libfile0Spread() { 1-> @@ -1389,9 +1630,9 @@ sourceFile:file0.ts > 2 >function 3 > libfile0Spread -1->Emitted(13, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(13, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(13, 24) Source(2, 24) + SourceIndex(0) +1->Emitted(34, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(34, 10) Source(2, 10) + SourceIndex(0) +3 >Emitted(34, 24) Source(2, 24) + SourceIndex(0) --- >>> var b = []; 1 >^^^^ @@ -1399,8 +1640,8 @@ sourceFile:file0.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(14, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(14, 16) Source(2, 39) + SourceIndex(0) +1 >Emitted(35, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(35, 16) Source(2, 39) + SourceIndex(0) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -1415,67 +1656,88 @@ sourceFile:file0.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(15, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(15, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(15, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(15, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(15, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(15, 49) Source(2, 39) + SourceIndex(0) +1->Emitted(36, 10) Source(2, 25) + SourceIndex(0) +2 >Emitted(36, 20) Source(2, 39) + SourceIndex(0) +3 >Emitted(36, 22) Source(2, 25) + SourceIndex(0) +4 >Emitted(36, 43) Source(2, 39) + SourceIndex(0) +5 >Emitted(36, 45) Source(2, 25) + SourceIndex(0) +6 >Emitted(36, 49) Source(2, 39) + SourceIndex(0) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(16, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(16, 31) Source(2, 39) + SourceIndex(0) +1 >Emitted(37, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(37, 31) Source(2, 39) + SourceIndex(0) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(18, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(18, 2) Source(2, 44) + SourceIndex(0) +1 >Emitted(39, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(39, 2) Source(2, 44) + SourceIndex(0) +--- +>>>var libfile0_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > libfile0_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(40, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(40, 5) Source(3, 7) + SourceIndex(0) +3 >Emitted(40, 16) Source(3, 18) + SourceIndex(0) +4 >Emitted(40, 19) Source(3, 21) + SourceIndex(0) +5 >Emitted(40, 20) Source(3, 22) + SourceIndex(0) +6 >Emitted(40, 22) Source(3, 24) + SourceIndex(0) +7 >Emitted(40, 24) Source(3, 26) + SourceIndex(0) +8 >Emitted(40, 26) Source(3, 28) + SourceIndex(0) +9 >Emitted(40, 27) Source(3, 29) + SourceIndex(0) +10>Emitted(40, 28) Source(3, 30) + SourceIndex(0) --- ->>>libfile0Spread.apply(void 0, [10, 20, 30]); +>>>libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar))); 1-> 2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ -12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >libfile0Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(19, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(19, 15) Source(3, 15) + SourceIndex(0) -3 >Emitted(19, 30) Source(3, 19) + SourceIndex(0) -4 >Emitted(19, 31) Source(3, 20) + SourceIndex(0) -5 >Emitted(19, 33) Source(3, 22) + SourceIndex(0) -6 >Emitted(19, 35) Source(3, 24) + SourceIndex(0) -7 >Emitted(19, 37) Source(3, 26) + SourceIndex(0) -8 >Emitted(19, 39) Source(3, 28) + SourceIndex(0) -9 >Emitted(19, 41) Source(3, 30) + SourceIndex(0) -10>Emitted(19, 42) Source(3, 31) + SourceIndex(0) -11>Emitted(19, 44) Source(3, 33) + SourceIndex(0) +3 > ( +4 > 10 +5 > , ... +6 > libfile0_ar +7 > ); +1->Emitted(41, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(41, 15) Source(4, 15) + SourceIndex(0) +3 >Emitted(41, 45) Source(4, 16) + SourceIndex(0) +4 >Emitted(41, 47) Source(4, 18) + SourceIndex(0) +5 >Emitted(41, 57) Source(4, 23) + SourceIndex(0) +6 >Emitted(41, 68) Source(4, 34) + SourceIndex(0) +7 >Emitted(41, 72) Source(4, 36) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.js @@ -1486,25 +1748,25 @@ sourceFile:file1.ts >>> Object.defineProperty(exports, "__esModule", { value: true }); >>> exports.x = void 0; >>> exports.x = 10; -1->^^^^ +1 >^^^^ 2 > ^^^^^^^^ 3 > ^ 4 > ^^^ 5 > ^^ 6 > ^ 7 > ^^^^^^^^^^^^^^-> -1->export const +1 >export const 2 > 3 > x 4 > = 5 > 10 6 > ; -1->Emitted(24, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(24, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(24, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(24, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(24, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(24, 20) Source(1, 21) + SourceIndex(1) +1 >Emitted(46, 5) Source(1, 14) + SourceIndex(1) +2 >Emitted(46, 13) Source(1, 14) + SourceIndex(1) +3 >Emitted(46, 14) Source(1, 15) + SourceIndex(1) +4 >Emitted(46, 17) Source(1, 18) + SourceIndex(1) +5 >Emitted(46, 19) Source(1, 20) + SourceIndex(1) +6 >Emitted(46, 20) Source(1, 21) + SourceIndex(1) --- >>> function forlibfile1Rest() { 1->^^^^ @@ -1514,9 +1776,9 @@ sourceFile:file1.ts 1-> 2 > function 3 > forlibfile1Rest -1->Emitted(25, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(25, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(25, 29) Source(1, 45) + SourceIndex(1) +1->Emitted(47, 5) Source(1, 21) + SourceIndex(1) +2 >Emitted(47, 14) Source(1, 30) + SourceIndex(1) +3 >Emitted(47, 29) Source(1, 45) + SourceIndex(1) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -1570,31 +1832,31 @@ sourceFile:file1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(26, 9) Source(2, 1) + SourceIndex(1) -2 >Emitted(26, 13) Source(2, 7) + SourceIndex(1) -3 >Emitted(26, 18) Source(2, 24) + SourceIndex(1) -4 >Emitted(26, 20) Source(2, 26) + SourceIndex(1) -5 >Emitted(26, 21) Source(2, 27) + SourceIndex(1) -6 >Emitted(26, 23) Source(2, 29) + SourceIndex(1) -7 >Emitted(26, 25) Source(2, 31) + SourceIndex(1) -8 >Emitted(26, 27) Source(2, 33) + SourceIndex(1) -9 >Emitted(26, 28) Source(2, 34) + SourceIndex(1) -10>Emitted(26, 30) Source(2, 36) + SourceIndex(1) -11>Emitted(26, 32) Source(2, 38) + SourceIndex(1) -12>Emitted(26, 34) Source(2, 40) + SourceIndex(1) -13>Emitted(26, 36) Source(2, 42) + SourceIndex(1) -14>Emitted(26, 38) Source(2, 44) + SourceIndex(1) -15>Emitted(26, 40) Source(2, 46) + SourceIndex(1) -16>Emitted(26, 42) Source(2, 48) + SourceIndex(1) -17>Emitted(26, 44) Source(2, 9) + SourceIndex(1) -18>Emitted(26, 45) Source(2, 10) + SourceIndex(1) -19>Emitted(26, 52) Source(2, 10) + SourceIndex(1) -20>Emitted(26, 54) Source(2, 15) + SourceIndex(1) -21>Emitted(26, 58) Source(2, 19) + SourceIndex(1) -22>Emitted(26, 72) Source(2, 7) + SourceIndex(1) -23>Emitted(26, 77) Source(2, 21) + SourceIndex(1) -24>Emitted(26, 78) Source(2, 48) + SourceIndex(1) -25>Emitted(26, 79) Source(2, 49) + SourceIndex(1) +1->Emitted(48, 9) Source(2, 1) + SourceIndex(1) +2 >Emitted(48, 13) Source(2, 7) + SourceIndex(1) +3 >Emitted(48, 18) Source(2, 24) + SourceIndex(1) +4 >Emitted(48, 20) Source(2, 26) + SourceIndex(1) +5 >Emitted(48, 21) Source(2, 27) + SourceIndex(1) +6 >Emitted(48, 23) Source(2, 29) + SourceIndex(1) +7 >Emitted(48, 25) Source(2, 31) + SourceIndex(1) +8 >Emitted(48, 27) Source(2, 33) + SourceIndex(1) +9 >Emitted(48, 28) Source(2, 34) + SourceIndex(1) +10>Emitted(48, 30) Source(2, 36) + SourceIndex(1) +11>Emitted(48, 32) Source(2, 38) + SourceIndex(1) +12>Emitted(48, 34) Source(2, 40) + SourceIndex(1) +13>Emitted(48, 36) Source(2, 42) + SourceIndex(1) +14>Emitted(48, 38) Source(2, 44) + SourceIndex(1) +15>Emitted(48, 40) Source(2, 46) + SourceIndex(1) +16>Emitted(48, 42) Source(2, 48) + SourceIndex(1) +17>Emitted(48, 44) Source(2, 9) + SourceIndex(1) +18>Emitted(48, 45) Source(2, 10) + SourceIndex(1) +19>Emitted(48, 52) Source(2, 10) + SourceIndex(1) +20>Emitted(48, 54) Source(2, 15) + SourceIndex(1) +21>Emitted(48, 58) Source(2, 19) + SourceIndex(1) +22>Emitted(48, 72) Source(2, 7) + SourceIndex(1) +23>Emitted(48, 77) Source(2, 21) + SourceIndex(1) +24>Emitted(48, 78) Source(2, 48) + SourceIndex(1) +25>Emitted(48, 79) Source(2, 49) + SourceIndex(1) --- >>> } 1 >^^^^ @@ -1602,8 +1864,8 @@ sourceFile:file1.ts 1 > > 2 > } -1 >Emitted(27, 5) Source(3, 1) + SourceIndex(1) -2 >Emitted(27, 6) Source(3, 2) + SourceIndex(1) +1 >Emitted(49, 5) Source(3, 1) + SourceIndex(1) +2 >Emitted(49, 6) Source(3, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.js @@ -1627,12 +1889,12 @@ sourceFile:file2.ts 4 > = 5 > 20 6 > ; -1 >Emitted(33, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(33, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(33, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(33, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(33, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(33, 20) Source(1, 21) + SourceIndex(2) +1 >Emitted(55, 5) Source(1, 14) + SourceIndex(2) +2 >Emitted(55, 13) Source(1, 14) + SourceIndex(2) +3 >Emitted(55, 14) Source(1, 15) + SourceIndex(2) +4 >Emitted(55, 17) Source(1, 18) + SourceIndex(2) +5 >Emitted(55, 19) Source(1, 20) + SourceIndex(2) +6 >Emitted(55, 20) Source(1, 21) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.js @@ -1653,12 +1915,12 @@ sourceFile:global.ts 4 > = 5 > 10 6 > ; -1 >Emitted(35, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(35, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(35, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(35, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(35, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(35, 22) Source(1, 24) + SourceIndex(3) +1 >Emitted(57, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(57, 5) Source(1, 7) + SourceIndex(3) +3 >Emitted(57, 16) Source(1, 18) + SourceIndex(3) +4 >Emitted(57, 19) Source(1, 21) + SourceIndex(3) +5 >Emitted(57, 21) Source(1, 23) + SourceIndex(3) +6 >Emitted(57, 22) Source(1, 24) + SourceIndex(3) --- >>>//# sourceMappingURL=module.js.map @@ -1676,18 +1938,32 @@ sourceFile:global.ts "sections": [ { "pos": 0, - "end": 500, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 697, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 699, + "end": 1199, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 502, - "end": 1268, + "pos": 1201, + "end": 2024, "kind": "text" } ], "sources": { "helpers": [ + "typescript:read", + "typescript:spreadArray", "typescript:rest" ] } @@ -1696,7 +1972,7 @@ sourceFile:global.ts "sections": [ { "pos": 0, - "end": 227, + "end": 265, "kind": "text" } ] @@ -1709,7 +1985,32 @@ sourceFile:global.ts ====================================================================== File:: /src/lib/module.js ---------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-697):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +---------------------------------------------------------------------- +emitHelpers: (699-1199):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -1722,7 +2023,7 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -text: (502-1268) +text: (1201-2024) var myGlob = 20; function libfile0Spread() { var b = []; @@ -1730,7 +2031,8 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, [10, 20, 30]); +var libfile0_ar = [20, 30]; +libfile0Spread.apply(void 0, __spreadArray([10], __read(libfile0_ar))); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1752,9 +2054,10 @@ var globalConst = 10; ====================================================================== File:: /src/lib/module.d.ts ---------------------------------------------------------------------- -text: (0-227) +text: (0-265) declare const myGlob = 20; declare function libfile0Spread(...b: number[]): void; +declare const libfile0_ar: number[]; declare module "file1" { export const x = 10; } diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js index f809353f1f543..6d98efb107924 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js @@ -54,6 +54,27 @@ var __rest = (this && this.__rest) || function (s, e) { } return t; }; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -70,11 +91,12 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, [10, 20, 30]); +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar))); //# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE"} +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,IAAE"} //// [/src/first/bin/first-output.js.map.baseline.txt] =================================================================== @@ -98,6 +120,27 @@ sourceFile:../first_PART1.ts >>> } >>> return t; >>>}; +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spreadArray = (this && this.__spreadArray) || function (to, from) { +>>> for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) +>>> to[j] = from[i]; +>>> return to; +>>>}; >>>var s = "Hello, world"; 1 > 2 >^^^^ @@ -115,12 +158,12 @@ sourceFile:../first_PART1.ts 4 > = 5 > "Hello, world" 6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +1 >Emitted(33, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(33, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(33, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(33, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(33, 24) Source(5, 26) + SourceIndex(0) --- >>>console.log(s); 1 > @@ -146,14 +189,14 @@ sourceFile:../first_PART1.ts 6 > s 7 > ) 8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +1 >Emitted(34, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(34, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(34, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(34, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(34, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(34, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(34, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(34, 16) Source(11, 16) + SourceIndex(0) --- >>>function forfirstfirst_PART1Rest() { 1-> @@ -164,9 +207,9 @@ sourceFile:../first_PART1.ts > 2 >function 3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +1->Emitted(35, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(35, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(35, 33) Source(12, 33) + SourceIndex(0) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -220,31 +263,31 @@ sourceFile:../first_PART1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) +1->Emitted(36, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(36, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(36, 14) Source(13, 24) + SourceIndex(0) +4 >Emitted(36, 16) Source(13, 26) + SourceIndex(0) +5 >Emitted(36, 17) Source(13, 27) + SourceIndex(0) +6 >Emitted(36, 19) Source(13, 29) + SourceIndex(0) +7 >Emitted(36, 21) Source(13, 31) + SourceIndex(0) +8 >Emitted(36, 23) Source(13, 33) + SourceIndex(0) +9 >Emitted(36, 24) Source(13, 34) + SourceIndex(0) +10>Emitted(36, 26) Source(13, 36) + SourceIndex(0) +11>Emitted(36, 28) Source(13, 38) + SourceIndex(0) +12>Emitted(36, 30) Source(13, 40) + SourceIndex(0) +13>Emitted(36, 32) Source(13, 42) + SourceIndex(0) +14>Emitted(36, 34) Source(13, 44) + SourceIndex(0) +15>Emitted(36, 36) Source(13, 46) + SourceIndex(0) +16>Emitted(36, 38) Source(13, 48) + SourceIndex(0) +17>Emitted(36, 40) Source(13, 9) + SourceIndex(0) +18>Emitted(36, 41) Source(13, 10) + SourceIndex(0) +19>Emitted(36, 48) Source(13, 10) + SourceIndex(0) +20>Emitted(36, 50) Source(13, 15) + SourceIndex(0) +21>Emitted(36, 54) Source(13, 19) + SourceIndex(0) +22>Emitted(36, 68) Source(13, 7) + SourceIndex(0) +23>Emitted(36, 73) Source(13, 21) + SourceIndex(0) +24>Emitted(36, 74) Source(13, 48) + SourceIndex(0) +25>Emitted(36, 75) Source(13, 49) + SourceIndex(0) --- >>>} 1 > @@ -253,8 +296,8 @@ sourceFile:../first_PART1.ts 1 > > 2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +1 >Emitted(37, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(37, 2) Source(14, 2) + SourceIndex(0) --- >>>console.log(s); 1-> @@ -274,14 +317,14 @@ sourceFile:../first_PART1.ts 6 > s 7 > ) 8 > ; -1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) +1->Emitted(38, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(38, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(38, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(38, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(38, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(38, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(38, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(38, 16) Source(14, 17) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/first/bin/first-output.js @@ -306,15 +349,15 @@ sourceFile:../first_part2.ts 7 > () 8 > ) 9 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) +1->Emitted(39, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(39, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(39, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(39, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(39, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(39, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(39, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(39, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(39, 18) Source(1, 18) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/first/bin/first-output.js @@ -328,9 +371,9 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) +1 >Emitted(40, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(40, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(40, 11) Source(1, 11) + SourceIndex(2) --- >>> return "JS does hoists"; 1->^^^^ @@ -342,10 +385,10 @@ sourceFile:../first_part3.ts 2 > return 3 > "JS does hoists" 4 > ; -1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) +1->Emitted(41, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(41, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(41, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(41, 29) Source(2, 29) + SourceIndex(2) --- >>>} 1 > @@ -354,8 +397,8 @@ sourceFile:../first_part3.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(42, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(42, 2) Source(3, 2) + SourceIndex(2) --- >>>function firstfirst_part3Spread() { 1-> @@ -365,9 +408,9 @@ sourceFile:../first_part3.ts > 2 >function 3 > firstfirst_part3Spread -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(22, 32) Source(4, 32) + SourceIndex(2) +1->Emitted(43, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(43, 10) Source(4, 10) + SourceIndex(2) +3 >Emitted(43, 32) Source(4, 32) + SourceIndex(2) --- >>> var b = []; 1 >^^^^ @@ -375,8 +418,8 @@ sourceFile:../first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(23, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(23, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(44, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(44, 16) Source(4, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -391,66 +434,88 @@ sourceFile:../first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(24, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(24, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(24, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(24, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(24, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(24, 49) Source(4, 47) + SourceIndex(2) +1->Emitted(45, 10) Source(4, 33) + SourceIndex(2) +2 >Emitted(45, 20) Source(4, 47) + SourceIndex(2) +3 >Emitted(45, 22) Source(4, 33) + SourceIndex(2) +4 >Emitted(45, 43) Source(4, 47) + SourceIndex(2) +5 >Emitted(45, 45) Source(4, 33) + SourceIndex(2) +6 >Emitted(45, 49) Source(4, 47) + SourceIndex(2) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(25, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(25, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(46, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(46, 31) Source(4, 47) + SourceIndex(2) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(27, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(27, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(48, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(48, 2) Source(4, 52) + SourceIndex(2) --- ->>>firstfirst_part3Spread.apply(void 0, [10, 20, 30]); +>>>var firstfirst_part3_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > firstfirst_part3_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(49, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(49, 5) Source(5, 7) + SourceIndex(2) +3 >Emitted(49, 24) Source(5, 26) + SourceIndex(2) +4 >Emitted(49, 27) Source(5, 29) + SourceIndex(2) +5 >Emitted(49, 28) Source(5, 30) + SourceIndex(2) +6 >Emitted(49, 30) Source(5, 32) + SourceIndex(2) +7 >Emitted(49, 32) Source(5, 34) + SourceIndex(2) +8 >Emitted(49, 34) Source(5, 36) + SourceIndex(2) +9 >Emitted(49, 35) Source(5, 37) + SourceIndex(2) +10>Emitted(49, 36) Source(5, 38) + SourceIndex(2) +--- +>>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar))); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >firstfirst_part3Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(28, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(28, 23) Source(5, 23) + SourceIndex(2) -3 >Emitted(28, 38) Source(5, 27) + SourceIndex(2) -4 >Emitted(28, 39) Source(5, 28) + SourceIndex(2) -5 >Emitted(28, 41) Source(5, 30) + SourceIndex(2) -6 >Emitted(28, 43) Source(5, 32) + SourceIndex(2) -7 >Emitted(28, 45) Source(5, 34) + SourceIndex(2) -8 >Emitted(28, 47) Source(5, 36) + SourceIndex(2) -9 >Emitted(28, 49) Source(5, 38) + SourceIndex(2) -10>Emitted(28, 50) Source(5, 39) + SourceIndex(2) -11>Emitted(28, 52) Source(5, 41) + SourceIndex(2) +3 > ( +4 > 10 +5 > , ... +6 > firstfirst_part3_ar +7 > ); +1->Emitted(50, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(50, 23) Source(6, 23) + SourceIndex(2) +3 >Emitted(50, 53) Source(6, 24) + SourceIndex(2) +4 >Emitted(50, 55) Source(6, 26) + SourceIndex(2) +5 >Emitted(50, 65) Source(6, 31) + SourceIndex(2) +6 >Emitted(50, 84) Source(6, 50) + SourceIndex(2) +7 >Emitted(50, 88) Source(6, 52) + SourceIndex(2) --- >>>//# sourceMappingURL=first-output.js.map @@ -473,13 +538,27 @@ sourceFile:../first_part3.ts }, { "pos": 502, - "end": 948, + "end": 1006, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 1008, + "end": 1199, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 1201, + "end": 1720, "kind": "text" } ], "sources": { "helpers": [ - "typescript:rest" + "typescript:rest", + "typescript:read", + "typescript:spreadArray" ] } }, @@ -487,7 +566,7 @@ sourceFile:../first_part3.ts "sections": [ { "pos": 0, - "end": 272, + "end": 318, "kind": "text" } ] @@ -513,7 +592,32 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -text: (502-948) +emitHelpers: (502-1006):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (1008-1199):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +---------------------------------------------------------------------- +text: (1201-1720) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -530,13 +634,14 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, [10, 20, 30]); +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar))); ====================================================================== ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-272) +text: (0-318) interface TheFirst { none: any; } @@ -547,6 +652,7 @@ interface NoJsForHereEither { declare function forfirstfirst_PART1Rest(): void; declare function f(): string; declare function firstfirst_part3Spread(...b: number[]): void; +declare const firstfirst_part3_ar: number[]; ====================================================================== @@ -562,6 +668,27 @@ var __rest = (this && this.__rest) || function (s, e) { } return t; }; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -578,7 +705,8 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, [10, 20, 30]); +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar))); var N; (function (N) { function f() { @@ -603,7 +731,8 @@ function secondsecond_part2Spread() { b[_i] = arguments[_i]; } } -secondsecond_part2Spread.apply(void 0, [10, 20, 30]); +var secondsecond_part2_ar = [20, 30]; +secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar))); var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { @@ -615,11 +744,12 @@ function thirdthird_part1Spread() { b[_i] = arguments[_i]; } } -thirdthird_part1Spread.apply(void 0, [10, 20, 30]); +var thirdthird_part1_ar = [20, 30]; +thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar))); //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;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;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;ACP1C,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,IAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,IAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,IAAE"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -643,6 +773,27 @@ sourceFile:../../../first/first_PART1.ts >>> } >>> return t; >>>}; +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spreadArray = (this && this.__spreadArray) || function (to, from) { +>>> for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) +>>> to[j] = from[i]; +>>> return to; +>>>}; >>>var s = "Hello, world"; 1 > 2 >^^^^ @@ -660,12 +811,12 @@ sourceFile:../../../first/first_PART1.ts 4 > = 5 > "Hello, world" 6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +1 >Emitted(33, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(33, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(33, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(33, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(33, 24) Source(5, 26) + SourceIndex(0) --- >>>console.log(s); 1 > @@ -691,14 +842,14 @@ sourceFile:../../../first/first_PART1.ts 6 > s 7 > ) 8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +1 >Emitted(34, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(34, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(34, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(34, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(34, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(34, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(34, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(34, 16) Source(11, 16) + SourceIndex(0) --- >>>function forfirstfirst_PART1Rest() { 1-> @@ -709,9 +860,9 @@ sourceFile:../../../first/first_PART1.ts > 2 >function 3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +1->Emitted(35, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(35, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(35, 33) Source(12, 33) + SourceIndex(0) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -765,31 +916,31 @@ sourceFile:../../../first/first_PART1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) +1->Emitted(36, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(36, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(36, 14) Source(13, 24) + SourceIndex(0) +4 >Emitted(36, 16) Source(13, 26) + SourceIndex(0) +5 >Emitted(36, 17) Source(13, 27) + SourceIndex(0) +6 >Emitted(36, 19) Source(13, 29) + SourceIndex(0) +7 >Emitted(36, 21) Source(13, 31) + SourceIndex(0) +8 >Emitted(36, 23) Source(13, 33) + SourceIndex(0) +9 >Emitted(36, 24) Source(13, 34) + SourceIndex(0) +10>Emitted(36, 26) Source(13, 36) + SourceIndex(0) +11>Emitted(36, 28) Source(13, 38) + SourceIndex(0) +12>Emitted(36, 30) Source(13, 40) + SourceIndex(0) +13>Emitted(36, 32) Source(13, 42) + SourceIndex(0) +14>Emitted(36, 34) Source(13, 44) + SourceIndex(0) +15>Emitted(36, 36) Source(13, 46) + SourceIndex(0) +16>Emitted(36, 38) Source(13, 48) + SourceIndex(0) +17>Emitted(36, 40) Source(13, 9) + SourceIndex(0) +18>Emitted(36, 41) Source(13, 10) + SourceIndex(0) +19>Emitted(36, 48) Source(13, 10) + SourceIndex(0) +20>Emitted(36, 50) Source(13, 15) + SourceIndex(0) +21>Emitted(36, 54) Source(13, 19) + SourceIndex(0) +22>Emitted(36, 68) Source(13, 7) + SourceIndex(0) +23>Emitted(36, 73) Source(13, 21) + SourceIndex(0) +24>Emitted(36, 74) Source(13, 48) + SourceIndex(0) +25>Emitted(36, 75) Source(13, 49) + SourceIndex(0) --- >>>} 1 > @@ -798,8 +949,8 @@ sourceFile:../../../first/first_PART1.ts 1 > > 2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +1 >Emitted(37, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(37, 2) Source(14, 2) + SourceIndex(0) --- >>>console.log(s); 1-> @@ -819,14 +970,14 @@ sourceFile:../../../first/first_PART1.ts 6 > s 7 > ) 8 > ; -1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) +1->Emitted(38, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(38, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(38, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(38, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(38, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(38, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(38, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(38, 16) Source(14, 17) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -851,15 +1002,15 @@ sourceFile:../../../first/first_part2.ts 7 > () 8 > ) 9 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) +1->Emitted(39, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(39, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(39, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(39, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(39, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(39, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(39, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(39, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(39, 18) Source(1, 18) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -873,9 +1024,9 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) +1 >Emitted(40, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(40, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(40, 11) Source(1, 11) + SourceIndex(2) --- >>> return "JS does hoists"; 1->^^^^ @@ -887,10 +1038,10 @@ sourceFile:../../../first/first_part3.ts 2 > return 3 > "JS does hoists" 4 > ; -1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) +1->Emitted(41, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(41, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(41, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(41, 29) Source(2, 29) + SourceIndex(2) --- >>>} 1 > @@ -899,8 +1050,8 @@ sourceFile:../../../first/first_part3.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(42, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(42, 2) Source(3, 2) + SourceIndex(2) --- >>>function firstfirst_part3Spread() { 1-> @@ -910,9 +1061,9 @@ sourceFile:../../../first/first_part3.ts > 2 >function 3 > firstfirst_part3Spread -1->Emitted(22, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(22, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(22, 32) Source(4, 32) + SourceIndex(2) +1->Emitted(43, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(43, 10) Source(4, 10) + SourceIndex(2) +3 >Emitted(43, 32) Source(4, 32) + SourceIndex(2) --- >>> var b = []; 1 >^^^^ @@ -920,8 +1071,8 @@ sourceFile:../../../first/first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(23, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(23, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(44, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(44, 16) Source(4, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -936,66 +1087,88 @@ sourceFile:../../../first/first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(24, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(24, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(24, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(24, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(24, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(24, 49) Source(4, 47) + SourceIndex(2) +1->Emitted(45, 10) Source(4, 33) + SourceIndex(2) +2 >Emitted(45, 20) Source(4, 47) + SourceIndex(2) +3 >Emitted(45, 22) Source(4, 33) + SourceIndex(2) +4 >Emitted(45, 43) Source(4, 47) + SourceIndex(2) +5 >Emitted(45, 45) Source(4, 33) + SourceIndex(2) +6 >Emitted(45, 49) Source(4, 47) + SourceIndex(2) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(25, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(25, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(46, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(46, 31) Source(4, 47) + SourceIndex(2) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(27, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(27, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(48, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(48, 2) Source(4, 52) + SourceIndex(2) --- ->>>firstfirst_part3Spread.apply(void 0, [10, 20, 30]); +>>>var firstfirst_part3_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > firstfirst_part3_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(49, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(49, 5) Source(5, 7) + SourceIndex(2) +3 >Emitted(49, 24) Source(5, 26) + SourceIndex(2) +4 >Emitted(49, 27) Source(5, 29) + SourceIndex(2) +5 >Emitted(49, 28) Source(5, 30) + SourceIndex(2) +6 >Emitted(49, 30) Source(5, 32) + SourceIndex(2) +7 >Emitted(49, 32) Source(5, 34) + SourceIndex(2) +8 >Emitted(49, 34) Source(5, 36) + SourceIndex(2) +9 >Emitted(49, 35) Source(5, 37) + SourceIndex(2) +10>Emitted(49, 36) Source(5, 38) + SourceIndex(2) +--- +>>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar))); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >firstfirst_part3Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(28, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(28, 23) Source(5, 23) + SourceIndex(2) -3 >Emitted(28, 38) Source(5, 27) + SourceIndex(2) -4 >Emitted(28, 39) Source(5, 28) + SourceIndex(2) -5 >Emitted(28, 41) Source(5, 30) + SourceIndex(2) -6 >Emitted(28, 43) Source(5, 32) + SourceIndex(2) -7 >Emitted(28, 45) Source(5, 34) + SourceIndex(2) -8 >Emitted(28, 47) Source(5, 36) + SourceIndex(2) -9 >Emitted(28, 49) Source(5, 38) + SourceIndex(2) -10>Emitted(28, 50) Source(5, 39) + SourceIndex(2) -11>Emitted(28, 52) Source(5, 41) + SourceIndex(2) +3 > ( +4 > 10 +5 > , ... +6 > firstfirst_part3_ar +7 > ); +1->Emitted(50, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(50, 23) Source(6, 23) + SourceIndex(2) +3 >Emitted(50, 53) Source(6, 24) + SourceIndex(2) +4 >Emitted(50, 55) Source(6, 26) + SourceIndex(2) +5 >Emitted(50, 65) Source(6, 31) + SourceIndex(2) +6 >Emitted(50, 84) Source(6, 50) + SourceIndex(2) +7 >Emitted(50, 88) Source(6, 52) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1021,10 +1194,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1 >Emitted(29, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(29, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(29, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(29, 7) Source(11, 2) + SourceIndex(3) +1 >Emitted(51, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(51, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(51, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(51, 7) Source(11, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -1034,9 +1207,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(30, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(30, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(30, 13) Source(5, 12) + SourceIndex(3) +1->Emitted(52, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(52, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(52, 13) Source(5, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -1047,9 +1220,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(31, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(31, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(31, 15) Source(6, 15) + SourceIndex(3) +1->Emitted(53, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(53, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(53, 15) Source(6, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -1069,14 +1242,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(32, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(32, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(32, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(32, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(32, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(32, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(32, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(32, 32) Source(7, 32) + SourceIndex(3) +1->Emitted(54, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(54, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(54, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(54, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(54, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(54, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(54, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(54, 32) Source(7, 32) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -1085,8 +1258,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(33, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(33, 6) Source(8, 6) + SourceIndex(3) +1 >Emitted(55, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(55, 6) Source(8, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -1100,10 +1273,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(34, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(34, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(34, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(34, 9) Source(10, 9) + SourceIndex(3) +1->Emitted(56, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(56, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(56, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(56, 9) Source(10, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -1128,13 +1301,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(35, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(35, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(35, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(35, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(35, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(35, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(35, 19) Source(11, 2) + SourceIndex(3) +1->Emitted(57, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(57, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(57, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(57, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(57, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(57, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(57, 19) Source(11, 2) + SourceIndex(3) --- >>>function forsecondsecond_part1Rest() { 1-> @@ -1145,9 +1318,9 @@ sourceFile:../../../second/second_part1.ts > 2 >function 3 > forsecondsecond_part1Rest -1->Emitted(36, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(36, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(36, 35) Source(12, 35) + SourceIndex(3) +1->Emitted(58, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(58, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(58, 35) Source(12, 35) + SourceIndex(3) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -1201,31 +1374,31 @@ sourceFile:../../../second/second_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(37, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(37, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(37, 14) Source(13, 24) + SourceIndex(3) -4 >Emitted(37, 16) Source(13, 26) + SourceIndex(3) -5 >Emitted(37, 17) Source(13, 27) + SourceIndex(3) -6 >Emitted(37, 19) Source(13, 29) + SourceIndex(3) -7 >Emitted(37, 21) Source(13, 31) + SourceIndex(3) -8 >Emitted(37, 23) Source(13, 33) + SourceIndex(3) -9 >Emitted(37, 24) Source(13, 34) + SourceIndex(3) -10>Emitted(37, 26) Source(13, 36) + SourceIndex(3) -11>Emitted(37, 28) Source(13, 38) + SourceIndex(3) -12>Emitted(37, 30) Source(13, 40) + SourceIndex(3) -13>Emitted(37, 32) Source(13, 42) + SourceIndex(3) -14>Emitted(37, 34) Source(13, 44) + SourceIndex(3) -15>Emitted(37, 36) Source(13, 46) + SourceIndex(3) -16>Emitted(37, 38) Source(13, 48) + SourceIndex(3) -17>Emitted(37, 40) Source(13, 9) + SourceIndex(3) -18>Emitted(37, 41) Source(13, 10) + SourceIndex(3) -19>Emitted(37, 48) Source(13, 10) + SourceIndex(3) -20>Emitted(37, 50) Source(13, 15) + SourceIndex(3) -21>Emitted(37, 54) Source(13, 19) + SourceIndex(3) -22>Emitted(37, 68) Source(13, 7) + SourceIndex(3) -23>Emitted(37, 73) Source(13, 21) + SourceIndex(3) -24>Emitted(37, 74) Source(13, 48) + SourceIndex(3) -25>Emitted(37, 75) Source(13, 49) + SourceIndex(3) +1->Emitted(59, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(59, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(59, 14) Source(13, 24) + SourceIndex(3) +4 >Emitted(59, 16) Source(13, 26) + SourceIndex(3) +5 >Emitted(59, 17) Source(13, 27) + SourceIndex(3) +6 >Emitted(59, 19) Source(13, 29) + SourceIndex(3) +7 >Emitted(59, 21) Source(13, 31) + SourceIndex(3) +8 >Emitted(59, 23) Source(13, 33) + SourceIndex(3) +9 >Emitted(59, 24) Source(13, 34) + SourceIndex(3) +10>Emitted(59, 26) Source(13, 36) + SourceIndex(3) +11>Emitted(59, 28) Source(13, 38) + SourceIndex(3) +12>Emitted(59, 30) Source(13, 40) + SourceIndex(3) +13>Emitted(59, 32) Source(13, 42) + SourceIndex(3) +14>Emitted(59, 34) Source(13, 44) + SourceIndex(3) +15>Emitted(59, 36) Source(13, 46) + SourceIndex(3) +16>Emitted(59, 38) Source(13, 48) + SourceIndex(3) +17>Emitted(59, 40) Source(13, 9) + SourceIndex(3) +18>Emitted(59, 41) Source(13, 10) + SourceIndex(3) +19>Emitted(59, 48) Source(13, 10) + SourceIndex(3) +20>Emitted(59, 50) Source(13, 15) + SourceIndex(3) +21>Emitted(59, 54) Source(13, 19) + SourceIndex(3) +22>Emitted(59, 68) Source(13, 7) + SourceIndex(3) +23>Emitted(59, 73) Source(13, 21) + SourceIndex(3) +24>Emitted(59, 74) Source(13, 48) + SourceIndex(3) +25>Emitted(59, 75) Source(13, 49) + SourceIndex(3) --- >>>} 1 > @@ -1234,8 +1407,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 >} -1 >Emitted(38, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(38, 2) Source(14, 2) + SourceIndex(3) +1 >Emitted(60, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(60, 2) Source(14, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1245,13 +1418,13 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(39, 1) Source(1, 1) + SourceIndex(4) +1->Emitted(61, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(40, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(62, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -1263,8 +1436,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(63, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(63, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -1274,9 +1447,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(64, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(64, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(64, 31) Source(2, 5) + SourceIndex(4) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -1296,14 +1469,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(65, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(65, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(65, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(65, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(65, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(65, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(65, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(65, 43) Source(3, 43) + SourceIndex(4) --- >>> }; 1 >^^^^ @@ -1312,8 +1485,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(66, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(66, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -1321,8 +1494,8 @@ 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(67, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(67, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > @@ -1338,10 +1511,10 @@ 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(68, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(68, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(68, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(68, 6) Source(5, 2) + SourceIndex(4) --- >>>function secondsecond_part2Spread() { 1-> @@ -1352,9 +1525,9 @@ sourceFile:../../../second/second_part2.ts > 2 >function 3 > secondsecond_part2Spread -1->Emitted(47, 1) Source(7, 1) + SourceIndex(4) -2 >Emitted(47, 10) Source(7, 10) + SourceIndex(4) -3 >Emitted(47, 34) Source(7, 34) + SourceIndex(4) +1->Emitted(69, 1) Source(7, 1) + SourceIndex(4) +2 >Emitted(69, 10) Source(7, 10) + SourceIndex(4) +3 >Emitted(69, 34) Source(7, 34) + SourceIndex(4) --- >>> var b = []; 1 >^^^^ @@ -1362,8 +1535,8 @@ sourceFile:../../../second/second_part2.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(48, 5) Source(7, 35) + SourceIndex(4) -2 >Emitted(48, 16) Source(7, 49) + SourceIndex(4) +1 >Emitted(70, 5) Source(7, 35) + SourceIndex(4) +2 >Emitted(70, 16) Source(7, 49) + SourceIndex(4) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -1378,66 +1551,88 @@ sourceFile:../../../second/second_part2.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(49, 10) Source(7, 35) + SourceIndex(4) -2 >Emitted(49, 20) Source(7, 49) + SourceIndex(4) -3 >Emitted(49, 22) Source(7, 35) + SourceIndex(4) -4 >Emitted(49, 43) Source(7, 49) + SourceIndex(4) -5 >Emitted(49, 45) Source(7, 35) + SourceIndex(4) -6 >Emitted(49, 49) Source(7, 49) + SourceIndex(4) +1->Emitted(71, 10) Source(7, 35) + SourceIndex(4) +2 >Emitted(71, 20) Source(7, 49) + SourceIndex(4) +3 >Emitted(71, 22) Source(7, 35) + SourceIndex(4) +4 >Emitted(71, 43) Source(7, 49) + SourceIndex(4) +5 >Emitted(71, 45) Source(7, 35) + SourceIndex(4) +6 >Emitted(71, 49) Source(7, 49) + SourceIndex(4) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(50, 9) Source(7, 35) + SourceIndex(4) -2 >Emitted(50, 31) Source(7, 49) + SourceIndex(4) +1 >Emitted(72, 9) Source(7, 35) + SourceIndex(4) +2 >Emitted(72, 31) Source(7, 49) + SourceIndex(4) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(52, 1) Source(7, 53) + SourceIndex(4) -2 >Emitted(52, 2) Source(7, 54) + SourceIndex(4) +1 >Emitted(74, 1) Source(7, 53) + SourceIndex(4) +2 >Emitted(74, 2) Source(7, 54) + SourceIndex(4) --- ->>>secondsecond_part2Spread.apply(void 0, [10, 20, 30]); +>>>var secondsecond_part2_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > secondsecond_part2_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(75, 1) Source(8, 1) + SourceIndex(4) +2 >Emitted(75, 5) Source(8, 7) + SourceIndex(4) +3 >Emitted(75, 26) Source(8, 28) + SourceIndex(4) +4 >Emitted(75, 29) Source(8, 31) + SourceIndex(4) +5 >Emitted(75, 30) Source(8, 32) + SourceIndex(4) +6 >Emitted(75, 32) Source(8, 34) + SourceIndex(4) +7 >Emitted(75, 34) Source(8, 36) + SourceIndex(4) +8 >Emitted(75, 36) Source(8, 38) + SourceIndex(4) +9 >Emitted(75, 37) Source(8, 39) + SourceIndex(4) +10>Emitted(75, 38) Source(8, 40) + SourceIndex(4) +--- +>>>secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar))); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >secondsecond_part2Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(53, 1) Source(8, 1) + SourceIndex(4) -2 >Emitted(53, 25) Source(8, 25) + SourceIndex(4) -3 >Emitted(53, 40) Source(8, 29) + SourceIndex(4) -4 >Emitted(53, 41) Source(8, 30) + SourceIndex(4) -5 >Emitted(53, 43) Source(8, 32) + SourceIndex(4) -6 >Emitted(53, 45) Source(8, 34) + SourceIndex(4) -7 >Emitted(53, 47) Source(8, 36) + SourceIndex(4) -8 >Emitted(53, 49) Source(8, 38) + SourceIndex(4) -9 >Emitted(53, 51) Source(8, 40) + SourceIndex(4) -10>Emitted(53, 52) Source(8, 41) + SourceIndex(4) -11>Emitted(53, 54) Source(8, 43) + SourceIndex(4) +3 > ( +4 > 10 +5 > , ... +6 > secondsecond_part2_ar +7 > ); +1->Emitted(76, 1) Source(9, 1) + SourceIndex(4) +2 >Emitted(76, 25) Source(9, 25) + SourceIndex(4) +3 >Emitted(76, 55) Source(9, 26) + SourceIndex(4) +4 >Emitted(76, 57) Source(9, 28) + SourceIndex(4) +5 >Emitted(76, 67) Source(9, 33) + SourceIndex(4) +6 >Emitted(76, 88) Source(9, 54) + SourceIndex(4) +7 >Emitted(76, 92) Source(9, 56) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1461,14 +1656,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1 >Emitted(54, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(54, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(54, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(54, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(54, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(54, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(54, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(54, 17) Source(1, 17) + SourceIndex(5) +1 >Emitted(77, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(77, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(77, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(77, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(77, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(77, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(77, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(77, 17) Source(1, 17) + SourceIndex(5) --- >>>c.doSomething(); 1-> @@ -1485,12 +1680,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(55, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(55, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(55, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(55, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(55, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(55, 17) Source(2, 17) + SourceIndex(5) +1->Emitted(78, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(78, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(78, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(78, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(78, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(78, 17) Source(2, 17) + SourceIndex(5) --- >>>function forthirdthird_part1Rest() { 1-> @@ -1501,9 +1696,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > forthirdthird_part1Rest -1->Emitted(56, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(56, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(56, 33) Source(3, 33) + SourceIndex(5) +1->Emitted(79, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(79, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(79, 33) Source(3, 33) + SourceIndex(5) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -1557,31 +1752,31 @@ sourceFile:../../third_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(57, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(57, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(57, 14) Source(4, 24) + SourceIndex(5) -4 >Emitted(57, 16) Source(4, 26) + SourceIndex(5) -5 >Emitted(57, 17) Source(4, 27) + SourceIndex(5) -6 >Emitted(57, 19) Source(4, 29) + SourceIndex(5) -7 >Emitted(57, 21) Source(4, 31) + SourceIndex(5) -8 >Emitted(57, 23) Source(4, 33) + SourceIndex(5) -9 >Emitted(57, 24) Source(4, 34) + SourceIndex(5) -10>Emitted(57, 26) Source(4, 36) + SourceIndex(5) -11>Emitted(57, 28) Source(4, 38) + SourceIndex(5) -12>Emitted(57, 30) Source(4, 40) + SourceIndex(5) -13>Emitted(57, 32) Source(4, 42) + SourceIndex(5) -14>Emitted(57, 34) Source(4, 44) + SourceIndex(5) -15>Emitted(57, 36) Source(4, 46) + SourceIndex(5) -16>Emitted(57, 38) Source(4, 48) + SourceIndex(5) -17>Emitted(57, 40) Source(4, 9) + SourceIndex(5) -18>Emitted(57, 41) Source(4, 10) + SourceIndex(5) -19>Emitted(57, 48) Source(4, 10) + SourceIndex(5) -20>Emitted(57, 50) Source(4, 15) + SourceIndex(5) -21>Emitted(57, 54) Source(4, 19) + SourceIndex(5) -22>Emitted(57, 68) Source(4, 7) + SourceIndex(5) -23>Emitted(57, 73) Source(4, 21) + SourceIndex(5) -24>Emitted(57, 74) Source(4, 48) + SourceIndex(5) -25>Emitted(57, 75) Source(4, 49) + SourceIndex(5) +1->Emitted(80, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(80, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(80, 14) Source(4, 24) + SourceIndex(5) +4 >Emitted(80, 16) Source(4, 26) + SourceIndex(5) +5 >Emitted(80, 17) Source(4, 27) + SourceIndex(5) +6 >Emitted(80, 19) Source(4, 29) + SourceIndex(5) +7 >Emitted(80, 21) Source(4, 31) + SourceIndex(5) +8 >Emitted(80, 23) Source(4, 33) + SourceIndex(5) +9 >Emitted(80, 24) Source(4, 34) + SourceIndex(5) +10>Emitted(80, 26) Source(4, 36) + SourceIndex(5) +11>Emitted(80, 28) Source(4, 38) + SourceIndex(5) +12>Emitted(80, 30) Source(4, 40) + SourceIndex(5) +13>Emitted(80, 32) Source(4, 42) + SourceIndex(5) +14>Emitted(80, 34) Source(4, 44) + SourceIndex(5) +15>Emitted(80, 36) Source(4, 46) + SourceIndex(5) +16>Emitted(80, 38) Source(4, 48) + SourceIndex(5) +17>Emitted(80, 40) Source(4, 9) + SourceIndex(5) +18>Emitted(80, 41) Source(4, 10) + SourceIndex(5) +19>Emitted(80, 48) Source(4, 10) + SourceIndex(5) +20>Emitted(80, 50) Source(4, 15) + SourceIndex(5) +21>Emitted(80, 54) Source(4, 19) + SourceIndex(5) +22>Emitted(80, 68) Source(4, 7) + SourceIndex(5) +23>Emitted(80, 73) Source(4, 21) + SourceIndex(5) +24>Emitted(80, 74) Source(4, 48) + SourceIndex(5) +25>Emitted(80, 75) Source(4, 49) + SourceIndex(5) --- >>>} 1 > @@ -1590,8 +1785,8 @@ sourceFile:../../third_part1.ts 1 > > 2 >} -1 >Emitted(58, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(58, 2) Source(5, 2) + SourceIndex(5) +1 >Emitted(81, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(81, 2) Source(5, 2) + SourceIndex(5) --- >>>function thirdthird_part1Spread() { 1-> @@ -1601,9 +1796,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > thirdthird_part1Spread -1->Emitted(59, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(59, 10) Source(6, 10) + SourceIndex(5) -3 >Emitted(59, 32) Source(6, 32) + SourceIndex(5) +1->Emitted(82, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(82, 10) Source(6, 10) + SourceIndex(5) +3 >Emitted(82, 32) Source(6, 32) + SourceIndex(5) --- >>> var b = []; 1 >^^^^ @@ -1611,8 +1806,8 @@ sourceFile:../../third_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(60, 5) Source(6, 33) + SourceIndex(5) -2 >Emitted(60, 16) Source(6, 47) + SourceIndex(5) +1 >Emitted(83, 5) Source(6, 33) + SourceIndex(5) +2 >Emitted(83, 16) Source(6, 47) + SourceIndex(5) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -1627,66 +1822,88 @@ sourceFile:../../third_part1.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(61, 10) Source(6, 33) + SourceIndex(5) -2 >Emitted(61, 20) Source(6, 47) + SourceIndex(5) -3 >Emitted(61, 22) Source(6, 33) + SourceIndex(5) -4 >Emitted(61, 43) Source(6, 47) + SourceIndex(5) -5 >Emitted(61, 45) Source(6, 33) + SourceIndex(5) -6 >Emitted(61, 49) Source(6, 47) + SourceIndex(5) +1->Emitted(84, 10) Source(6, 33) + SourceIndex(5) +2 >Emitted(84, 20) Source(6, 47) + SourceIndex(5) +3 >Emitted(84, 22) Source(6, 33) + SourceIndex(5) +4 >Emitted(84, 43) Source(6, 47) + SourceIndex(5) +5 >Emitted(84, 45) Source(6, 33) + SourceIndex(5) +6 >Emitted(84, 49) Source(6, 47) + SourceIndex(5) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(62, 9) Source(6, 33) + SourceIndex(5) -2 >Emitted(62, 31) Source(6, 47) + SourceIndex(5) +1 >Emitted(85, 9) Source(6, 33) + SourceIndex(5) +2 >Emitted(85, 31) Source(6, 47) + SourceIndex(5) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(64, 1) Source(6, 51) + SourceIndex(5) -2 >Emitted(64, 2) Source(6, 52) + SourceIndex(5) +1 >Emitted(87, 1) Source(6, 51) + SourceIndex(5) +2 >Emitted(87, 2) Source(6, 52) + SourceIndex(5) --- ->>>thirdthird_part1Spread.apply(void 0, [10, 20, 30]); +>>>var thirdthird_part1_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > thirdthird_part1_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(88, 1) Source(7, 1) + SourceIndex(5) +2 >Emitted(88, 5) Source(7, 7) + SourceIndex(5) +3 >Emitted(88, 24) Source(7, 26) + SourceIndex(5) +4 >Emitted(88, 27) Source(7, 29) + SourceIndex(5) +5 >Emitted(88, 28) Source(7, 30) + SourceIndex(5) +6 >Emitted(88, 30) Source(7, 32) + SourceIndex(5) +7 >Emitted(88, 32) Source(7, 34) + SourceIndex(5) +8 >Emitted(88, 34) Source(7, 36) + SourceIndex(5) +9 >Emitted(88, 35) Source(7, 37) + SourceIndex(5) +10>Emitted(88, 36) Source(7, 38) + SourceIndex(5) +--- +>>>thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar))); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >thirdthird_part1Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(65, 1) Source(7, 1) + SourceIndex(5) -2 >Emitted(65, 23) Source(7, 23) + SourceIndex(5) -3 >Emitted(65, 38) Source(7, 27) + SourceIndex(5) -4 >Emitted(65, 39) Source(7, 28) + SourceIndex(5) -5 >Emitted(65, 41) Source(7, 30) + SourceIndex(5) -6 >Emitted(65, 43) Source(7, 32) + SourceIndex(5) -7 >Emitted(65, 45) Source(7, 34) + SourceIndex(5) -8 >Emitted(65, 47) Source(7, 36) + SourceIndex(5) -9 >Emitted(65, 49) Source(7, 38) + SourceIndex(5) -10>Emitted(65, 50) Source(7, 39) + SourceIndex(5) -11>Emitted(65, 52) Source(7, 41) + SourceIndex(5) +3 > ( +4 > 10 +5 > , ... +6 > thirdthird_part1_ar +7 > ); +1->Emitted(89, 1) Source(8, 1) + SourceIndex(5) +2 >Emitted(89, 23) Source(8, 23) + SourceIndex(5) +3 >Emitted(89, 53) Source(8, 24) + SourceIndex(5) +4 >Emitted(89, 55) Source(8, 26) + SourceIndex(5) +5 >Emitted(89, 65) Source(8, 31) + SourceIndex(5) +6 >Emitted(89, 84) Source(8, 50) + SourceIndex(5) +7 >Emitted(89, 88) Source(8, 52) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map @@ -1707,39 +1924,53 @@ sourceFile:../../third_part1.ts }, { "pos": 502, - "end": 948, + "end": 1006, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 1008, + "end": 1199, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 1201, + "end": 1720, "kind": "prepend", "data": "../../../first/bin/first-output.js", "texts": [ { - "pos": 502, - "end": 948, + "pos": 1201, + "end": 1720, "kind": "text" } ] }, { - "pos": 948, - "end": 1558, + "pos": 1720, + "end": 2407, "kind": "prepend", "data": "../../../2/second-output.js", "texts": [ { - "pos": 948, - "end": 1558, + "pos": 1720, + "end": 2407, "kind": "text" } ] }, { - "pos": 1558, - "end": 1913, + "pos": 2407, + "end": 2835, "kind": "text" } ], "sources": { "helpers": [ - "typescript:rest" + "typescript:rest", + "typescript:read", + "typescript:spreadArray" ] } }, @@ -1747,33 +1978,33 @@ sourceFile:../../third_part1.ts "sections": [ { "pos": 0, - "end": 272, + "end": 318, "kind": "prepend", "data": "../../../first/bin/first-output.d.ts", "texts": [ { "pos": 0, - "end": 272, + "end": 318, "kind": "text" } ] }, { - "pos": 272, - "end": 491, + "pos": 318, + "end": 585, "kind": "prepend", "data": "../../../2/second-output.d.ts", "texts": [ { - "pos": 272, - "end": 491, + "pos": 318, + "end": 585, "kind": "text" } ] }, { - "pos": 491, - "end": 625, + "pos": 585, + "end": 765, "kind": "text" } ] @@ -1799,9 +2030,34 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -prepend: (502-948):: ../../../first/bin/first-output.js texts:: 1 +emitHelpers: (502-1006):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (1008-1199):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +---------------------------------------------------------------------- +prepend: (1201-1720):: ../../../first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (502-948) +text: (1201-1720) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -1818,12 +2074,13 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, [10, 20, 30]); +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar))); ---------------------------------------------------------------------- -prepend: (948-1558):: ../../../2/second-output.js texts:: 1 +prepend: (1720-2407):: ../../../2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (948-1558) +text: (1720-2407) var N; (function (N) { function f() { @@ -1848,10 +2105,11 @@ function secondsecond_part2Spread() { b[_i] = arguments[_i]; } } -secondsecond_part2Spread.apply(void 0, [10, 20, 30]); +var secondsecond_part2_ar = [20, 30]; +secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar))); ---------------------------------------------------------------------- -text: (1558-1913) +text: (2407-2835) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { @@ -1863,15 +2121,16 @@ function thirdthird_part1Spread() { b[_i] = arguments[_i]; } } -thirdthird_part1Spread.apply(void 0, [10, 20, 30]); +var thirdthird_part1_ar = [20, 30]; +thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar))); ====================================================================== ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-272):: ../../../first/bin/first-output.d.ts texts:: 1 +prepend: (0-318):: ../../../first/bin/first-output.d.ts texts:: 1 >>-------------------------------------------------------------------- -text: (0-272) +text: (0-318) interface TheFirst { none: any; } @@ -1882,11 +2141,12 @@ interface NoJsForHereEither { declare function forfirstfirst_PART1Rest(): void; declare function f(): string; declare function firstfirst_part3Spread(...b: number[]): void; +declare const firstfirst_part3_ar: number[]; ---------------------------------------------------------------------- -prepend: (272-491):: ../../../2/second-output.d.ts texts:: 1 +prepend: (318-585):: ../../../2/second-output.d.ts texts:: 1 >>-------------------------------------------------------------------- -text: (272-491) +text: (318-585) declare namespace N { } declare namespace N { @@ -1896,12 +2156,14 @@ declare class C { doSomething(): void; } declare function secondsecond_part2Spread(...b: number[]): void; +declare const secondsecond_part2_ar: number[]; ---------------------------------------------------------------------- -text: (491-625) +text: (585-765) declare var c: C; declare function forthirdthird_part1Rest(): void; declare function thirdthird_part1Spread(...b: number[]): void; +declare const thirdthird_part1_ar: number[]; ====================================================================== diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js index a41864180b9af..cfaa675fac053 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js @@ -452,6 +452,27 @@ var __rest = (this && this.__rest) || function (s, e) { } return t; }; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -475,7 +496,8 @@ function secondsecond_part1Spread() { b[_i] = arguments[_i]; } } -secondsecond_part1Spread.apply(void 0, [10, 20, 30]); +var secondsecond_part1_ar = [20, 30]; +secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar))); var C = (function () { function C() { } @@ -492,7 +514,7 @@ function forthirdthird_part1Rest() { //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;ACb1C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,IAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -516,6 +538,27 @@ sourceFile:../../../first/first_PART1.ts >>> } >>> return t; >>>}; +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spreadArray = (this && this.__spreadArray) || function (to, from) { +>>> for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) +>>> to[j] = from[i]; +>>> return to; +>>>}; >>>var s = "Hello, world"; 1 > 2 >^^^^ @@ -533,12 +576,12 @@ sourceFile:../../../first/first_PART1.ts 4 > = 5 > "Hello, world" 6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +1 >Emitted(33, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(33, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(33, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(33, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(33, 24) Source(5, 26) + SourceIndex(0) --- >>>console.log(s); 1 > @@ -564,14 +607,14 @@ sourceFile:../../../first/first_PART1.ts 6 > s 7 > ) 8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +1 >Emitted(34, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(34, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(34, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(34, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(34, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(34, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(34, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(34, 16) Source(11, 16) + SourceIndex(0) --- >>>function forfirstfirst_PART1Rest() { 1-> @@ -582,9 +625,9 @@ sourceFile:../../../first/first_PART1.ts > 2 >function 3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +1->Emitted(35, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(35, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(35, 33) Source(12, 33) + SourceIndex(0) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -638,31 +681,31 @@ sourceFile:../../../first/first_PART1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) +1->Emitted(36, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(36, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(36, 14) Source(13, 24) + SourceIndex(0) +4 >Emitted(36, 16) Source(13, 26) + SourceIndex(0) +5 >Emitted(36, 17) Source(13, 27) + SourceIndex(0) +6 >Emitted(36, 19) Source(13, 29) + SourceIndex(0) +7 >Emitted(36, 21) Source(13, 31) + SourceIndex(0) +8 >Emitted(36, 23) Source(13, 33) + SourceIndex(0) +9 >Emitted(36, 24) Source(13, 34) + SourceIndex(0) +10>Emitted(36, 26) Source(13, 36) + SourceIndex(0) +11>Emitted(36, 28) Source(13, 38) + SourceIndex(0) +12>Emitted(36, 30) Source(13, 40) + SourceIndex(0) +13>Emitted(36, 32) Source(13, 42) + SourceIndex(0) +14>Emitted(36, 34) Source(13, 44) + SourceIndex(0) +15>Emitted(36, 36) Source(13, 46) + SourceIndex(0) +16>Emitted(36, 38) Source(13, 48) + SourceIndex(0) +17>Emitted(36, 40) Source(13, 9) + SourceIndex(0) +18>Emitted(36, 41) Source(13, 10) + SourceIndex(0) +19>Emitted(36, 48) Source(13, 10) + SourceIndex(0) +20>Emitted(36, 50) Source(13, 15) + SourceIndex(0) +21>Emitted(36, 54) Source(13, 19) + SourceIndex(0) +22>Emitted(36, 68) Source(13, 7) + SourceIndex(0) +23>Emitted(36, 73) Source(13, 21) + SourceIndex(0) +24>Emitted(36, 74) Source(13, 48) + SourceIndex(0) +25>Emitted(36, 75) Source(13, 49) + SourceIndex(0) --- >>>} 1 > @@ -671,8 +714,8 @@ sourceFile:../../../first/first_PART1.ts 1 > > 2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +1 >Emitted(37, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(37, 2) Source(14, 2) + SourceIndex(0) --- >>>console.log(s); 1-> @@ -692,14 +735,14 @@ sourceFile:../../../first/first_PART1.ts 6 > s 7 > ) 8 > ; -1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) +1->Emitted(38, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(38, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(38, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(38, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(38, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(38, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(38, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(38, 16) Source(14, 17) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -724,15 +767,15 @@ sourceFile:../../../first/first_part2.ts 7 > () 8 > ) 9 > ; -1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) +1->Emitted(39, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(39, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(39, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(39, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(39, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(39, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(39, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(39, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(39, 18) Source(1, 18) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -746,9 +789,9 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) +1 >Emitted(40, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(40, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(40, 11) Source(1, 11) + SourceIndex(2) --- >>> return "JS does hoists"; 1->^^^^ @@ -760,10 +803,10 @@ sourceFile:../../../first/first_part3.ts 2 > return 3 > "JS does hoists" 4 > ; -1->Emitted(20, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2) +1->Emitted(41, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(41, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(41, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(41, 29) Source(2, 29) + SourceIndex(2) --- >>>} 1 > @@ -772,8 +815,8 @@ sourceFile:../../../first/first_part3.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(42, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(42, 2) Source(3, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -799,10 +842,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(22, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(22, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(22, 7) Source(11, 2) + SourceIndex(3) +1->Emitted(43, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(43, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(43, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(43, 7) Source(11, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -812,9 +855,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(23, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(23, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(23, 13) Source(5, 12) + SourceIndex(3) +1->Emitted(44, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(44, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(44, 13) Source(5, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -825,9 +868,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(24, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(24, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(24, 15) Source(6, 15) + SourceIndex(3) +1->Emitted(45, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(45, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(45, 15) Source(6, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -847,14 +890,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(25, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(25, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(25, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(25, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(25, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(25, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(25, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(25, 32) Source(7, 32) + SourceIndex(3) +1->Emitted(46, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(46, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(46, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(46, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(46, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(46, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(46, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(46, 32) Source(7, 32) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -863,8 +906,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(26, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(26, 6) Source(8, 6) + SourceIndex(3) +1 >Emitted(47, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(47, 6) Source(8, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -878,10 +921,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(27, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(27, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(27, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(27, 9) Source(10, 9) + SourceIndex(3) +1->Emitted(48, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(48, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(48, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(48, 9) Source(10, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -906,13 +949,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(28, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(28, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(28, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(28, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(28, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(28, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(28, 19) Source(11, 2) + SourceIndex(3) +1->Emitted(49, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(49, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(49, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(49, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(49, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(49, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(49, 19) Source(11, 2) + SourceIndex(3) --- >>>function secondsecond_part1Spread() { 1-> @@ -923,9 +966,9 @@ sourceFile:../../../second/second_part1.ts > 2 >function 3 > secondsecond_part1Spread -1->Emitted(29, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(29, 10) Source(13, 10) + SourceIndex(3) -3 >Emitted(29, 34) Source(13, 34) + SourceIndex(3) +1->Emitted(50, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(50, 10) Source(13, 10) + SourceIndex(3) +3 >Emitted(50, 34) Source(13, 34) + SourceIndex(3) --- >>> var b = []; 1 >^^^^ @@ -933,8 +976,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(30, 5) Source(13, 35) + SourceIndex(3) -2 >Emitted(30, 16) Source(13, 49) + SourceIndex(3) +1 >Emitted(51, 5) Source(13, 35) + SourceIndex(3) +2 >Emitted(51, 16) Source(13, 49) + SourceIndex(3) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -949,66 +992,88 @@ sourceFile:../../../second/second_part1.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(31, 10) Source(13, 35) + SourceIndex(3) -2 >Emitted(31, 20) Source(13, 49) + SourceIndex(3) -3 >Emitted(31, 22) Source(13, 35) + SourceIndex(3) -4 >Emitted(31, 43) Source(13, 49) + SourceIndex(3) -5 >Emitted(31, 45) Source(13, 35) + SourceIndex(3) -6 >Emitted(31, 49) Source(13, 49) + SourceIndex(3) +1->Emitted(52, 10) Source(13, 35) + SourceIndex(3) +2 >Emitted(52, 20) Source(13, 49) + SourceIndex(3) +3 >Emitted(52, 22) Source(13, 35) + SourceIndex(3) +4 >Emitted(52, 43) Source(13, 49) + SourceIndex(3) +5 >Emitted(52, 45) Source(13, 35) + SourceIndex(3) +6 >Emitted(52, 49) Source(13, 49) + SourceIndex(3) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(32, 9) Source(13, 35) + SourceIndex(3) -2 >Emitted(32, 31) Source(13, 49) + SourceIndex(3) +1 >Emitted(53, 9) Source(13, 35) + SourceIndex(3) +2 >Emitted(53, 31) Source(13, 49) + SourceIndex(3) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(34, 1) Source(13, 53) + SourceIndex(3) -2 >Emitted(34, 2) Source(13, 54) + SourceIndex(3) +1 >Emitted(55, 1) Source(13, 53) + SourceIndex(3) +2 >Emitted(55, 2) Source(13, 54) + SourceIndex(3) --- ->>>secondsecond_part1Spread.apply(void 0, [10, 20, 30]); +>>>var secondsecond_part1_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > secondsecond_part1_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(56, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(56, 5) Source(14, 7) + SourceIndex(3) +3 >Emitted(56, 26) Source(14, 28) + SourceIndex(3) +4 >Emitted(56, 29) Source(14, 31) + SourceIndex(3) +5 >Emitted(56, 30) Source(14, 32) + SourceIndex(3) +6 >Emitted(56, 32) Source(14, 34) + SourceIndex(3) +7 >Emitted(56, 34) Source(14, 36) + SourceIndex(3) +8 >Emitted(56, 36) Source(14, 38) + SourceIndex(3) +9 >Emitted(56, 37) Source(14, 39) + SourceIndex(3) +10>Emitted(56, 38) Source(14, 40) + SourceIndex(3) +--- +>>>secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar))); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >secondsecond_part1Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(35, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(35, 25) Source(14, 25) + SourceIndex(3) -3 >Emitted(35, 40) Source(14, 29) + SourceIndex(3) -4 >Emitted(35, 41) Source(14, 30) + SourceIndex(3) -5 >Emitted(35, 43) Source(14, 32) + SourceIndex(3) -6 >Emitted(35, 45) Source(14, 34) + SourceIndex(3) -7 >Emitted(35, 47) Source(14, 36) + SourceIndex(3) -8 >Emitted(35, 49) Source(14, 38) + SourceIndex(3) -9 >Emitted(35, 51) Source(14, 40) + SourceIndex(3) -10>Emitted(35, 52) Source(14, 41) + SourceIndex(3) -11>Emitted(35, 54) Source(14, 43) + SourceIndex(3) +3 > ( +4 > 10 +5 > , ... +6 > secondsecond_part1_ar +7 > ); +1->Emitted(57, 1) Source(15, 1) + SourceIndex(3) +2 >Emitted(57, 25) Source(15, 25) + SourceIndex(3) +3 >Emitted(57, 55) Source(15, 26) + SourceIndex(3) +4 >Emitted(57, 57) Source(15, 28) + SourceIndex(3) +5 >Emitted(57, 67) Source(15, 33) + SourceIndex(3) +6 >Emitted(57, 88) Source(15, 54) + SourceIndex(3) +7 >Emitted(57, 92) Source(15, 56) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1018,13 +1083,13 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(36, 1) Source(1, 1) + SourceIndex(4) +1 >Emitted(58, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(37, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(59, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -1036,8 +1101,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(38, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(38, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(60, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(60, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -1047,9 +1112,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(39, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(39, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(39, 31) Source(2, 5) + SourceIndex(4) +1->Emitted(61, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(61, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(61, 31) Source(2, 5) + SourceIndex(4) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -1069,14 +1134,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(40, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(40, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(40, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(40, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(40, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(40, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(40, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(40, 43) Source(3, 43) + SourceIndex(4) +1->Emitted(62, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(62, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(62, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(62, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(62, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(62, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(62, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(62, 43) Source(3, 43) + SourceIndex(4) --- >>> }; 1 >^^^^ @@ -1085,8 +1150,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(41, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(41, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(63, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(63, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -1094,8 +1159,8 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(42, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(42, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(64, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(64, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > @@ -1111,10 +1176,10 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(43, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(43, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(43, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(43, 6) Source(5, 2) + SourceIndex(4) +1 >Emitted(65, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(65, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(65, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(65, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1138,14 +1203,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1->Emitted(44, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(44, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(44, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(44, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(44, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(44, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(44, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(44, 17) Source(1, 17) + SourceIndex(5) +1->Emitted(66, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(66, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(66, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(66, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(66, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(66, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(66, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(66, 17) Source(1, 17) + SourceIndex(5) --- >>>c.doSomething(); 1-> @@ -1162,12 +1227,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(45, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(45, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(45, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(45, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(45, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(45, 17) Source(2, 17) + SourceIndex(5) +1->Emitted(67, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(67, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(67, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(67, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(67, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(67, 17) Source(2, 17) + SourceIndex(5) --- >>>function forthirdthird_part1Rest() { 1-> @@ -1178,9 +1243,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > forthirdthird_part1Rest -1->Emitted(46, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(46, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(46, 33) Source(3, 33) + SourceIndex(5) +1->Emitted(68, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(68, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(68, 33) Source(3, 33) + SourceIndex(5) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -1234,31 +1299,31 @@ sourceFile:../../third_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(47, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(47, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(47, 14) Source(4, 24) + SourceIndex(5) -4 >Emitted(47, 16) Source(4, 26) + SourceIndex(5) -5 >Emitted(47, 17) Source(4, 27) + SourceIndex(5) -6 >Emitted(47, 19) Source(4, 29) + SourceIndex(5) -7 >Emitted(47, 21) Source(4, 31) + SourceIndex(5) -8 >Emitted(47, 23) Source(4, 33) + SourceIndex(5) -9 >Emitted(47, 24) Source(4, 34) + SourceIndex(5) -10>Emitted(47, 26) Source(4, 36) + SourceIndex(5) -11>Emitted(47, 28) Source(4, 38) + SourceIndex(5) -12>Emitted(47, 30) Source(4, 40) + SourceIndex(5) -13>Emitted(47, 32) Source(4, 42) + SourceIndex(5) -14>Emitted(47, 34) Source(4, 44) + SourceIndex(5) -15>Emitted(47, 36) Source(4, 46) + SourceIndex(5) -16>Emitted(47, 38) Source(4, 48) + SourceIndex(5) -17>Emitted(47, 40) Source(4, 9) + SourceIndex(5) -18>Emitted(47, 41) Source(4, 10) + SourceIndex(5) -19>Emitted(47, 48) Source(4, 10) + SourceIndex(5) -20>Emitted(47, 50) Source(4, 15) + SourceIndex(5) -21>Emitted(47, 54) Source(4, 19) + SourceIndex(5) -22>Emitted(47, 68) Source(4, 7) + SourceIndex(5) -23>Emitted(47, 73) Source(4, 21) + SourceIndex(5) -24>Emitted(47, 74) Source(4, 48) + SourceIndex(5) -25>Emitted(47, 75) Source(4, 49) + SourceIndex(5) +1->Emitted(69, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(69, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(69, 14) Source(4, 24) + SourceIndex(5) +4 >Emitted(69, 16) Source(4, 26) + SourceIndex(5) +5 >Emitted(69, 17) Source(4, 27) + SourceIndex(5) +6 >Emitted(69, 19) Source(4, 29) + SourceIndex(5) +7 >Emitted(69, 21) Source(4, 31) + SourceIndex(5) +8 >Emitted(69, 23) Source(4, 33) + SourceIndex(5) +9 >Emitted(69, 24) Source(4, 34) + SourceIndex(5) +10>Emitted(69, 26) Source(4, 36) + SourceIndex(5) +11>Emitted(69, 28) Source(4, 38) + SourceIndex(5) +12>Emitted(69, 30) Source(4, 40) + SourceIndex(5) +13>Emitted(69, 32) Source(4, 42) + SourceIndex(5) +14>Emitted(69, 34) Source(4, 44) + SourceIndex(5) +15>Emitted(69, 36) Source(4, 46) + SourceIndex(5) +16>Emitted(69, 38) Source(4, 48) + SourceIndex(5) +17>Emitted(69, 40) Source(4, 9) + SourceIndex(5) +18>Emitted(69, 41) Source(4, 10) + SourceIndex(5) +19>Emitted(69, 48) Source(4, 10) + SourceIndex(5) +20>Emitted(69, 50) Source(4, 15) + SourceIndex(5) +21>Emitted(69, 54) Source(4, 19) + SourceIndex(5) +22>Emitted(69, 68) Source(4, 7) + SourceIndex(5) +23>Emitted(69, 73) Source(4, 21) + SourceIndex(5) +24>Emitted(69, 74) Source(4, 48) + SourceIndex(5) +25>Emitted(69, 75) Source(4, 49) + SourceIndex(5) --- >>>} 1 > @@ -1267,8 +1332,8 @@ sourceFile:../../third_part1.ts 1 > > 2 >} -1 >Emitted(48, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(48, 2) Source(5, 2) + SourceIndex(5) +1 >Emitted(70, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(70, 2) Source(5, 2) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map @@ -1289,33 +1354,45 @@ sourceFile:../../third_part1.ts }, { "pos": 502, - "end": 746, + "end": 1006, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 1008, + "end": 1199, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 1201, + "end": 1445, "kind": "prepend", "data": "../../../first/bin/first-output.js", "texts": [ { - "pos": 502, - "end": 746, + "pos": 1201, + "end": 1445, "kind": "text" } ] }, { - "pos": 746, - "end": 1237, + "pos": 1445, + "end": 2013, "kind": "prepend", "data": "../../../2/second-output.js", "texts": [ { - "pos": 746, - "end": 1237, + "pos": 1445, + "end": 2013, "kind": "text" } ] }, { - "pos": 1237, - "end": 1390, + "pos": 2013, + "end": 2166, "kind": "text" } ], @@ -1342,20 +1419,20 @@ sourceFile:../../third_part1.ts }, { "pos": 208, - "end": 374, + "end": 422, "kind": "prepend", "data": "../../../2/second-output.d.ts", "texts": [ { "pos": 208, - "end": 374, + "end": 422, "kind": "text" } ] }, { - "pos": 374, - "end": 444, + "pos": 422, + "end": 492, "kind": "text" } ] @@ -1381,9 +1458,34 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -prepend: (502-746):: ../../../first/bin/first-output.js texts:: 1 +emitHelpers: (502-1006):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (1008-1199):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +---------------------------------------------------------------------- +prepend: (1201-1445):: ../../../first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (502-746) +text: (1201-1445) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -1396,9 +1498,9 @@ function f() { } ---------------------------------------------------------------------- -prepend: (746-1237):: ../../../2/second-output.js texts:: 1 +prepend: (1445-2013):: ../../../2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (746-1237) +text: (1445-2013) var N; (function (N) { function f() { @@ -1412,7 +1514,8 @@ function secondsecond_part1Spread() { b[_i] = arguments[_i]; } } -secondsecond_part1Spread.apply(void 0, [10, 20, 30]); +var secondsecond_part1_ar = [20, 30]; +secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar))); var C = (function () { function C() { } @@ -1423,7 +1526,7 @@ var C = (function () { }()); ---------------------------------------------------------------------- -text: (1237-1390) +text: (2013-2166) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { @@ -1448,20 +1551,21 @@ declare function forfirstfirst_PART1Rest(): void; declare function f(): string; ---------------------------------------------------------------------- -prepend: (208-374):: ../../../2/second-output.d.ts texts:: 1 +prepend: (208-422):: ../../../2/second-output.d.ts texts:: 1 >>-------------------------------------------------------------------- -text: (208-374) +text: (208-422) declare namespace N { } declare namespace N { } declare function secondsecond_part1Spread(...b: number[]): void; +declare const secondsecond_part1_ar: number[]; declare class C { doSomething(): void; } ---------------------------------------------------------------------- -text: (374-444) +text: (422-492) declare var c: C; declare function forthirdthird_part1Rest(): void; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js index 1a5c17cdf1e0c..2c92353b214c0 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js @@ -39,7 +39,7 @@ exitCode:: ExitStatus.Success //// [/src/first/bin/first-output.d.ts] file written with same contents //// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;AEXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} //// [/src/first/bin/first-output.d.ts.map.baseline.txt] =================================================================== @@ -216,9 +216,51 @@ sourceFile:../first_part3.ts 8 >Emitted(10, 55) Source(4, 47) + SourceIndex(2) 9 >Emitted(10, 63) Source(4, 52) + SourceIndex(2) --- +>>>declare const firstfirst_part3_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > firstfirst_part3_ar +5 > = [20, 30] +6 > ; +1 >Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 9) Source(5, 1) + SourceIndex(2) +3 >Emitted(11, 15) Source(5, 7) + SourceIndex(2) +4 >Emitted(11, 34) Source(5, 26) + SourceIndex(2) +5 >Emitted(11, 44) Source(5, 37) + SourceIndex(2) +6 >Emitted(11, 45) Source(5, 38) + SourceIndex(2) +--- >>>//# sourceMappingURL=first-output.d.ts.map //// [/src/first/bin/first-output.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { } @@ -232,11 +274,12 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, [10, 20, 30]); +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar))); //# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE"} +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,IAAE"} //// [/src/first/bin/first-output.js.map.baseline.txt] =================================================================== @@ -249,6 +292,27 @@ sources: ../first_PART1.ts,../first_part2.ts,../first_part3.ts emittedFile:/src/first/bin/first-output.js sourceFile:../first_PART1.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spreadArray = (this && this.__spreadArray) || function (to, from) { +>>> for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) +>>> to[j] = from[i]; +>>> return to; +>>>}; >>>var s = "Hello, world"; 1 > 2 >^^^^ @@ -266,12 +330,12 @@ sourceFile:../first_PART1.ts 4 > = 5 > "Hello, world" 6 > ; -1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(22, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(22, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(22, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(22, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(22, 24) Source(5, 26) + SourceIndex(0) --- >>>console.log(s); 1 > @@ -297,14 +361,14 @@ sourceFile:../first_PART1.ts 6 > s 7 > ) 8 > ; -1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) +1 >Emitted(23, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(23, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(23, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(23, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(23, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(23, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(23, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(23, 16) Source(11, 16) + SourceIndex(0) --- >>>function forfirstfirst_PART1Rest() { } 1-> @@ -318,11 +382,11 @@ sourceFile:../first_PART1.ts 3 > forfirstfirst_PART1Rest 4 > () { 5 > } -1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) +1->Emitted(24, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(24, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(24, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(24, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(24, 39) Source(12, 39) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/first/bin/first-output.js @@ -347,15 +411,15 @@ sourceFile:../first_part2.ts 7 > () 8 > ) 9 > ; -1 >Emitted(4, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) +1 >Emitted(25, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(25, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(25, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(25, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(25, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(25, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(25, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(25, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(25, 18) Source(1, 18) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/first/bin/first-output.js @@ -369,9 +433,9 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) +1 >Emitted(26, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(26, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(26, 11) Source(1, 11) + SourceIndex(2) --- >>> return "JS does hoists"; 1->^^^^ @@ -383,10 +447,10 @@ sourceFile:../first_part3.ts 2 > return 3 > "JS does hoists" 4 > ; -1->Emitted(6, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(6, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(6, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(6, 29) Source(2, 29) + SourceIndex(2) +1->Emitted(27, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(27, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(27, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(27, 29) Source(2, 29) + SourceIndex(2) --- >>>} 1 > @@ -395,8 +459,8 @@ sourceFile:../first_part3.ts 1 > > 2 >} -1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(28, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(28, 2) Source(3, 2) + SourceIndex(2) --- >>>function firstfirst_part3Spread() { 1-> @@ -406,9 +470,9 @@ sourceFile:../first_part3.ts > 2 >function 3 > firstfirst_part3Spread -1->Emitted(8, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(8, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(8, 32) Source(4, 32) + SourceIndex(2) +1->Emitted(29, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(29, 10) Source(4, 10) + SourceIndex(2) +3 >Emitted(29, 32) Source(4, 32) + SourceIndex(2) --- >>> var b = []; 1 >^^^^ @@ -416,8 +480,8 @@ sourceFile:../first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(9, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(9, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(30, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(30, 16) Source(4, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -432,66 +496,88 @@ sourceFile:../first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(10, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(10, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(10, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(10, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(10, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(10, 49) Source(4, 47) + SourceIndex(2) +1->Emitted(31, 10) Source(4, 33) + SourceIndex(2) +2 >Emitted(31, 20) Source(4, 47) + SourceIndex(2) +3 >Emitted(31, 22) Source(4, 33) + SourceIndex(2) +4 >Emitted(31, 43) Source(4, 47) + SourceIndex(2) +5 >Emitted(31, 45) Source(4, 33) + SourceIndex(2) +6 >Emitted(31, 49) Source(4, 47) + SourceIndex(2) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(11, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(11, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(32, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(32, 31) Source(4, 47) + SourceIndex(2) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(13, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(13, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(34, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(34, 2) Source(4, 52) + SourceIndex(2) --- ->>>firstfirst_part3Spread.apply(void 0, [10, 20, 30]); +>>>var firstfirst_part3_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > firstfirst_part3_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(35, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(35, 5) Source(5, 7) + SourceIndex(2) +3 >Emitted(35, 24) Source(5, 26) + SourceIndex(2) +4 >Emitted(35, 27) Source(5, 29) + SourceIndex(2) +5 >Emitted(35, 28) Source(5, 30) + SourceIndex(2) +6 >Emitted(35, 30) Source(5, 32) + SourceIndex(2) +7 >Emitted(35, 32) Source(5, 34) + SourceIndex(2) +8 >Emitted(35, 34) Source(5, 36) + SourceIndex(2) +9 >Emitted(35, 35) Source(5, 37) + SourceIndex(2) +10>Emitted(35, 36) Source(5, 38) + SourceIndex(2) +--- +>>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar))); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >firstfirst_part3Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(14, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(14, 23) Source(5, 23) + SourceIndex(2) -3 >Emitted(14, 38) Source(5, 27) + SourceIndex(2) -4 >Emitted(14, 39) Source(5, 28) + SourceIndex(2) -5 >Emitted(14, 41) Source(5, 30) + SourceIndex(2) -6 >Emitted(14, 43) Source(5, 32) + SourceIndex(2) -7 >Emitted(14, 45) Source(5, 34) + SourceIndex(2) -8 >Emitted(14, 47) Source(5, 36) + SourceIndex(2) -9 >Emitted(14, 49) Source(5, 38) + SourceIndex(2) -10>Emitted(14, 50) Source(5, 39) + SourceIndex(2) -11>Emitted(14, 52) Source(5, 41) + SourceIndex(2) +3 > ( +4 > 10 +5 > , ... +6 > firstfirst_part3_ar +7 > ); +1->Emitted(36, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(36, 23) Source(6, 23) + SourceIndex(2) +3 >Emitted(36, 53) Source(6, 24) + SourceIndex(2) +4 >Emitted(36, 55) Source(6, 26) + SourceIndex(2) +5 >Emitted(36, 65) Source(6, 31) + SourceIndex(2) +6 >Emitted(36, 84) Source(6, 50) + SourceIndex(2) +7 >Emitted(36, 88) Source(6, 52) + SourceIndex(2) --- >>>//# sourceMappingURL=first-output.js.map @@ -508,16 +594,34 @@ sourceFile:../first_part3.ts "sections": [ { "pos": 0, - "end": 352, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 697, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 699, + "end": 1124, "kind": "text" } - ] + ], + "sources": { + "helpers": [ + "typescript:read", + "typescript:spreadArray" + ] + } }, "dts": { "sections": [ { "pos": 0, - "end": 272, + "end": 318, "kind": "text" } ] @@ -530,7 +634,32 @@ sourceFile:../first_part3.ts ====================================================================== File:: /src/first/bin/first-output.js ---------------------------------------------------------------------- -text: (0-352) +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-697):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +---------------------------------------------------------------------- +text: (699-1124) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { } @@ -544,13 +673,14 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, [10, 20, 30]); +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar))); ====================================================================== ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-272) +text: (0-318) interface TheFirst { none: any; } @@ -561,11 +691,12 @@ interface NoJsForHereEither { declare function forfirstfirst_PART1Rest(): void; declare function f(): string; declare function firstfirst_part3Spread(...b: number[]): void; +declare const firstfirst_part3_ar: number[]; ====================================================================== //// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACHnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACNrD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,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;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -742,6 +873,27 @@ sourceFile:../../../first/first_part3.ts 8 >Emitted(10, 55) Source(4, 47) + SourceIndex(1) 9 >Emitted(10, 63) Source(4, 52) + SourceIndex(1) --- +>>>declare const firstfirst_part3_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > firstfirst_part3_ar +5 > = [20, 30] +6 > ; +1 >Emitted(11, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(11, 9) Source(5, 1) + SourceIndex(1) +3 >Emitted(11, 15) Source(5, 7) + SourceIndex(1) +4 >Emitted(11, 34) Source(5, 26) + SourceIndex(1) +5 >Emitted(11, 44) Source(5, 37) + SourceIndex(1) +6 >Emitted(11, 45) Source(5, 38) + SourceIndex(1) +--- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../second/second_part1.ts @@ -755,10 +907,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -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 >Emitted(12, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(1, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -766,7 +918,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(12, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(13, 2) Source(3, 2) + SourceIndex(2) --- >>>declare namespace N { 1-> @@ -779,10 +931,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -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->Emitted(14, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(14, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(14, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(14, 21) Source(5, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -794,7 +946,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(14, 2) Source(11, 2) + SourceIndex(2) +1 >Emitted(15, 2) Source(11, 2) + SourceIndex(2) --- >>>declare function forsecondsecond_part1Rest(): void; 1-> @@ -808,10 +960,10 @@ sourceFile:../../../second/second_part1.ts 4 > () { > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; > } -1->Emitted(15, 1) Source(12, 1) + SourceIndex(2) -2 >Emitted(15, 18) Source(12, 10) + SourceIndex(2) -3 >Emitted(15, 43) Source(12, 35) + SourceIndex(2) -4 >Emitted(15, 52) Source(14, 2) + SourceIndex(2) +1->Emitted(16, 1) Source(12, 1) + SourceIndex(2) +2 >Emitted(16, 18) Source(12, 10) + SourceIndex(2) +3 >Emitted(16, 43) Source(12, 35) + SourceIndex(2) +4 >Emitted(16, 52) Source(14, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -825,9 +977,9 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >class 3 > C -1 >Emitted(16, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(16, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(16, 16) Source(1, 8) + SourceIndex(3) +1 >Emitted(17, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -835,8 +987,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(17, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(17, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -845,7 +997,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(18, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) --- >>>declare function secondsecond_part2Spread(...b: number[]): void; 1-> @@ -868,15 +1020,36 @@ sourceFile:../../../second/second_part2.ts 7 > number 8 > [] 9 > ) { } -1->Emitted(19, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(19, 18) Source(7, 10) + SourceIndex(3) -3 >Emitted(19, 42) Source(7, 34) + SourceIndex(3) -4 >Emitted(19, 43) Source(7, 35) + SourceIndex(3) -5 >Emitted(19, 46) Source(7, 38) + SourceIndex(3) -6 >Emitted(19, 49) Source(7, 41) + SourceIndex(3) -7 >Emitted(19, 55) Source(7, 47) + SourceIndex(3) -8 >Emitted(19, 57) Source(7, 49) + SourceIndex(3) -9 >Emitted(19, 65) Source(7, 54) + SourceIndex(3) +1->Emitted(20, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(20, 18) Source(7, 10) + SourceIndex(3) +3 >Emitted(20, 42) Source(7, 34) + SourceIndex(3) +4 >Emitted(20, 43) Source(7, 35) + SourceIndex(3) +5 >Emitted(20, 46) Source(7, 38) + SourceIndex(3) +6 >Emitted(20, 49) Source(7, 41) + SourceIndex(3) +7 >Emitted(20, 55) Source(7, 47) + SourceIndex(3) +8 >Emitted(20, 57) Source(7, 49) + SourceIndex(3) +9 >Emitted(20, 65) Source(7, 54) + SourceIndex(3) +--- +>>>declare const secondsecond_part2_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > secondsecond_part2_ar +5 > = [20, 30] +6 > ; +1 >Emitted(21, 1) Source(8, 1) + SourceIndex(3) +2 >Emitted(21, 9) Source(8, 1) + SourceIndex(3) +3 >Emitted(21, 15) Source(8, 7) + SourceIndex(3) +4 >Emitted(21, 36) Source(8, 28) + SourceIndex(3) +5 >Emitted(21, 46) Source(8, 39) + SourceIndex(3) +6 >Emitted(21, 47) Source(8, 40) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -896,12 +1069,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) --- >>>declare function forthirdthird_part1Rest(): void; 1-> @@ -917,10 +1090,10 @@ sourceFile:../../third_part1.ts 4 > () { > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; > } -1->Emitted(21, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(21, 18) Source(3, 10) + SourceIndex(4) -3 >Emitted(21, 41) Source(3, 33) + SourceIndex(4) -4 >Emitted(21, 50) Source(5, 2) + SourceIndex(4) +1->Emitted(23, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(23, 18) Source(3, 10) + SourceIndex(4) +3 >Emitted(23, 41) Source(3, 33) + SourceIndex(4) +4 >Emitted(23, 50) Source(5, 2) + SourceIndex(4) --- >>>declare function thirdthird_part1Spread(...b: number[]): void; 1-> @@ -942,19 +1115,61 @@ sourceFile:../../third_part1.ts 7 > number 8 > [] 9 > ) { } -1->Emitted(22, 1) Source(6, 1) + SourceIndex(4) -2 >Emitted(22, 18) Source(6, 10) + SourceIndex(4) -3 >Emitted(22, 40) Source(6, 32) + SourceIndex(4) -4 >Emitted(22, 41) Source(6, 33) + SourceIndex(4) -5 >Emitted(22, 44) Source(6, 36) + SourceIndex(4) -6 >Emitted(22, 47) Source(6, 39) + SourceIndex(4) -7 >Emitted(22, 53) Source(6, 45) + SourceIndex(4) -8 >Emitted(22, 55) Source(6, 47) + SourceIndex(4) -9 >Emitted(22, 63) Source(6, 52) + SourceIndex(4) +1->Emitted(24, 1) Source(6, 1) + SourceIndex(4) +2 >Emitted(24, 18) Source(6, 10) + SourceIndex(4) +3 >Emitted(24, 40) Source(6, 32) + SourceIndex(4) +4 >Emitted(24, 41) Source(6, 33) + SourceIndex(4) +5 >Emitted(24, 44) Source(6, 36) + SourceIndex(4) +6 >Emitted(24, 47) Source(6, 39) + SourceIndex(4) +7 >Emitted(24, 53) Source(6, 45) + SourceIndex(4) +8 >Emitted(24, 55) Source(6, 47) + SourceIndex(4) +9 >Emitted(24, 63) Source(6, 52) + SourceIndex(4) +--- +>>>declare const thirdthird_part1_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > thirdthird_part1_ar +5 > = [20, 30] +6 > ; +1 >Emitted(25, 1) Source(7, 1) + SourceIndex(4) +2 >Emitted(25, 9) Source(7, 1) + SourceIndex(4) +3 >Emitted(25, 15) Source(7, 7) + SourceIndex(4) +4 >Emitted(25, 34) Source(7, 26) + SourceIndex(4) +5 >Emitted(25, 44) Source(7, 37) + SourceIndex(4) +6 >Emitted(25, 45) Source(7, 38) + SourceIndex(4) --- >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -979,7 +1194,8 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, [10, 20, 30]); +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar))); var N; (function (N) { function f() { @@ -1004,7 +1220,8 @@ function secondsecond_part2Spread() { b[_i] = arguments[_i]; } } -secondsecond_part2Spread.apply(void 0, [10, 20, 30]); +var secondsecond_part2_ar = [20, 30]; +secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar))); var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { @@ -1016,11 +1233,12 @@ function thirdthird_part1Spread() { b[_i] = arguments[_i]; } } -thirdthird_part1Spread.apply(void 0, [10, 20, 30]); +var thirdthird_part1_ar = [20, 30]; +thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar))); //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;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;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;ACP1C,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,IAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,IAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,IAAE"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -1033,6 +1251,27 @@ sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../fi emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../../first/first_PART1.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spreadArray = (this && this.__spreadArray) || function (to, from) { +>>> for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) +>>> to[j] = from[i]; +>>> return to; +>>>}; >>>var __rest = (this && this.__rest) || function (s, e) { >>> var t = {}; >>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -1061,12 +1300,12 @@ sourceFile:../../../first/first_PART1.ts 4 > = 5 > "Hello, world" 6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +1 >Emitted(33, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(33, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(33, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(33, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(33, 24) Source(5, 26) + SourceIndex(0) --- >>>console.log(s); 1 > @@ -1092,14 +1331,14 @@ sourceFile:../../../first/first_PART1.ts 6 > s 7 > ) 8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +1 >Emitted(34, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(34, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(34, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(34, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(34, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(34, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(34, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(34, 16) Source(11, 16) + SourceIndex(0) --- >>>function forfirstfirst_PART1Rest() { } 1-> @@ -1113,11 +1352,11 @@ sourceFile:../../../first/first_PART1.ts 3 > forfirstfirst_PART1Rest 4 > () { 5 > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(14, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(14, 39) Source(12, 39) + SourceIndex(0) +1->Emitted(35, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(35, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(35, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(35, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(35, 39) Source(12, 39) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1142,15 +1381,15 @@ sourceFile:../../../first/first_part2.ts 7 > () 8 > ) 9 > ; -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(15, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(15, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(15, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(15, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(15, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(15, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(15, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(15, 18) Source(1, 18) + SourceIndex(1) +1 >Emitted(36, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(36, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(36, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(36, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(36, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(36, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(36, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(36, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(36, 18) Source(1, 18) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1164,9 +1403,9 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -1 >Emitted(16, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(16, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(16, 11) Source(1, 11) + SourceIndex(2) +1 >Emitted(37, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(37, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(37, 11) Source(1, 11) + SourceIndex(2) --- >>> return "JS does hoists"; 1->^^^^ @@ -1178,10 +1417,10 @@ sourceFile:../../../first/first_part3.ts 2 > return 3 > "JS does hoists" 4 > ; -1->Emitted(17, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(17, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(17, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(17, 29) Source(2, 29) + SourceIndex(2) +1->Emitted(38, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(38, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(38, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(38, 29) Source(2, 29) + SourceIndex(2) --- >>>} 1 > @@ -1190,8 +1429,8 @@ sourceFile:../../../first/first_part3.ts 1 > > 2 >} -1 >Emitted(18, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(18, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(39, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(39, 2) Source(3, 2) + SourceIndex(2) --- >>>function firstfirst_part3Spread() { 1-> @@ -1201,9 +1440,9 @@ sourceFile:../../../first/first_part3.ts > 2 >function 3 > firstfirst_part3Spread -1->Emitted(19, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(19, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(19, 32) Source(4, 32) + SourceIndex(2) +1->Emitted(40, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(40, 10) Source(4, 10) + SourceIndex(2) +3 >Emitted(40, 32) Source(4, 32) + SourceIndex(2) --- >>> var b = []; 1 >^^^^ @@ -1211,8 +1450,8 @@ sourceFile:../../../first/first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(20, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(20, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(41, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(41, 16) Source(4, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -1227,66 +1466,88 @@ sourceFile:../../../first/first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(21, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(21, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(21, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(21, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(21, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(21, 49) Source(4, 47) + SourceIndex(2) +1->Emitted(42, 10) Source(4, 33) + SourceIndex(2) +2 >Emitted(42, 20) Source(4, 47) + SourceIndex(2) +3 >Emitted(42, 22) Source(4, 33) + SourceIndex(2) +4 >Emitted(42, 43) Source(4, 47) + SourceIndex(2) +5 >Emitted(42, 45) Source(4, 33) + SourceIndex(2) +6 >Emitted(42, 49) Source(4, 47) + SourceIndex(2) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(22, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(22, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(43, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(43, 31) Source(4, 47) + SourceIndex(2) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(24, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(24, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(45, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(45, 2) Source(4, 52) + SourceIndex(2) --- ->>>firstfirst_part3Spread.apply(void 0, [10, 20, 30]); +>>>var firstfirst_part3_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > firstfirst_part3_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(46, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(46, 5) Source(5, 7) + SourceIndex(2) +3 >Emitted(46, 24) Source(5, 26) + SourceIndex(2) +4 >Emitted(46, 27) Source(5, 29) + SourceIndex(2) +5 >Emitted(46, 28) Source(5, 30) + SourceIndex(2) +6 >Emitted(46, 30) Source(5, 32) + SourceIndex(2) +7 >Emitted(46, 32) Source(5, 34) + SourceIndex(2) +8 >Emitted(46, 34) Source(5, 36) + SourceIndex(2) +9 >Emitted(46, 35) Source(5, 37) + SourceIndex(2) +10>Emitted(46, 36) Source(5, 38) + SourceIndex(2) +--- +>>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar))); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >firstfirst_part3Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(25, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(25, 23) Source(5, 23) + SourceIndex(2) -3 >Emitted(25, 38) Source(5, 27) + SourceIndex(2) -4 >Emitted(25, 39) Source(5, 28) + SourceIndex(2) -5 >Emitted(25, 41) Source(5, 30) + SourceIndex(2) -6 >Emitted(25, 43) Source(5, 32) + SourceIndex(2) -7 >Emitted(25, 45) Source(5, 34) + SourceIndex(2) -8 >Emitted(25, 47) Source(5, 36) + SourceIndex(2) -9 >Emitted(25, 49) Source(5, 38) + SourceIndex(2) -10>Emitted(25, 50) Source(5, 39) + SourceIndex(2) -11>Emitted(25, 52) Source(5, 41) + SourceIndex(2) +3 > ( +4 > 10 +5 > , ... +6 > firstfirst_part3_ar +7 > ); +1->Emitted(47, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(47, 23) Source(6, 23) + SourceIndex(2) +3 >Emitted(47, 53) Source(6, 24) + SourceIndex(2) +4 >Emitted(47, 55) Source(6, 26) + SourceIndex(2) +5 >Emitted(47, 65) Source(6, 31) + SourceIndex(2) +6 >Emitted(47, 84) Source(6, 50) + SourceIndex(2) +7 >Emitted(47, 88) Source(6, 52) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1312,10 +1573,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1 >Emitted(26, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(26, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(26, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(26, 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-> @@ -1325,9 +1586,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(27, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(27, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(27, 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->^^^^ @@ -1338,9 +1599,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(28, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(28, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(28, 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->^^^^^^^^ @@ -1360,14 +1621,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(29, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(29, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(29, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(29, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(29, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(29, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(29, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(29, 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 >^^^^ @@ -1376,8 +1637,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(30, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(30, 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->^^^^ @@ -1391,10 +1652,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(31, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(31, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(31, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(31, 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-> @@ -1419,13 +1680,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(32, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(32, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(32, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(32, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(32, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(32, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(32, 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) --- >>>function forsecondsecond_part1Rest() { 1-> @@ -1436,9 +1697,9 @@ sourceFile:../../../second/second_part1.ts > 2 >function 3 > forsecondsecond_part1Rest -1->Emitted(33, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(33, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(33, 35) Source(12, 35) + SourceIndex(3) +1->Emitted(55, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(55, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(55, 35) Source(12, 35) + SourceIndex(3) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -1492,31 +1753,31 @@ sourceFile:../../../second/second_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(34, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(34, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(34, 14) Source(13, 24) + SourceIndex(3) -4 >Emitted(34, 16) Source(13, 26) + SourceIndex(3) -5 >Emitted(34, 17) Source(13, 27) + SourceIndex(3) -6 >Emitted(34, 19) Source(13, 29) + SourceIndex(3) -7 >Emitted(34, 21) Source(13, 31) + SourceIndex(3) -8 >Emitted(34, 23) Source(13, 33) + SourceIndex(3) -9 >Emitted(34, 24) Source(13, 34) + SourceIndex(3) -10>Emitted(34, 26) Source(13, 36) + SourceIndex(3) -11>Emitted(34, 28) Source(13, 38) + SourceIndex(3) -12>Emitted(34, 30) Source(13, 40) + SourceIndex(3) -13>Emitted(34, 32) Source(13, 42) + SourceIndex(3) -14>Emitted(34, 34) Source(13, 44) + SourceIndex(3) -15>Emitted(34, 36) Source(13, 46) + SourceIndex(3) -16>Emitted(34, 38) Source(13, 48) + SourceIndex(3) -17>Emitted(34, 40) Source(13, 9) + SourceIndex(3) -18>Emitted(34, 41) Source(13, 10) + SourceIndex(3) -19>Emitted(34, 48) Source(13, 10) + SourceIndex(3) -20>Emitted(34, 50) Source(13, 15) + SourceIndex(3) -21>Emitted(34, 54) Source(13, 19) + SourceIndex(3) -22>Emitted(34, 68) Source(13, 7) + SourceIndex(3) -23>Emitted(34, 73) Source(13, 21) + SourceIndex(3) -24>Emitted(34, 74) Source(13, 48) + SourceIndex(3) -25>Emitted(34, 75) Source(13, 49) + SourceIndex(3) +1->Emitted(56, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(56, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(56, 14) Source(13, 24) + SourceIndex(3) +4 >Emitted(56, 16) Source(13, 26) + SourceIndex(3) +5 >Emitted(56, 17) Source(13, 27) + SourceIndex(3) +6 >Emitted(56, 19) Source(13, 29) + SourceIndex(3) +7 >Emitted(56, 21) Source(13, 31) + SourceIndex(3) +8 >Emitted(56, 23) Source(13, 33) + SourceIndex(3) +9 >Emitted(56, 24) Source(13, 34) + SourceIndex(3) +10>Emitted(56, 26) Source(13, 36) + SourceIndex(3) +11>Emitted(56, 28) Source(13, 38) + SourceIndex(3) +12>Emitted(56, 30) Source(13, 40) + SourceIndex(3) +13>Emitted(56, 32) Source(13, 42) + SourceIndex(3) +14>Emitted(56, 34) Source(13, 44) + SourceIndex(3) +15>Emitted(56, 36) Source(13, 46) + SourceIndex(3) +16>Emitted(56, 38) Source(13, 48) + SourceIndex(3) +17>Emitted(56, 40) Source(13, 9) + SourceIndex(3) +18>Emitted(56, 41) Source(13, 10) + SourceIndex(3) +19>Emitted(56, 48) Source(13, 10) + SourceIndex(3) +20>Emitted(56, 50) Source(13, 15) + SourceIndex(3) +21>Emitted(56, 54) Source(13, 19) + SourceIndex(3) +22>Emitted(56, 68) Source(13, 7) + SourceIndex(3) +23>Emitted(56, 73) Source(13, 21) + SourceIndex(3) +24>Emitted(56, 74) Source(13, 48) + SourceIndex(3) +25>Emitted(56, 75) Source(13, 49) + SourceIndex(3) --- >>>} 1 > @@ -1525,8 +1786,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 >} -1 >Emitted(35, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(35, 2) Source(14, 2) + SourceIndex(3) +1 >Emitted(57, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(57, 2) Source(14, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1536,13 +1797,13 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(36, 1) Source(1, 1) + SourceIndex(4) +1->Emitted(58, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(37, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(59, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -1554,8 +1815,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(38, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(38, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(60, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(60, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -1565,9 +1826,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(39, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(39, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(39, 31) Source(2, 5) + SourceIndex(4) +1->Emitted(61, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(61, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(61, 31) Source(2, 5) + SourceIndex(4) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -1587,14 +1848,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(40, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(40, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(40, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(40, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(40, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(40, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(40, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(40, 43) Source(3, 43) + SourceIndex(4) +1->Emitted(62, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(62, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(62, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(62, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(62, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(62, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(62, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(62, 43) Source(3, 43) + SourceIndex(4) --- >>> }; 1 >^^^^ @@ -1603,8 +1864,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(41, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(41, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(63, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(63, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -1612,8 +1873,8 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(42, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(42, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(64, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(64, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > @@ -1629,10 +1890,10 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(43, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(43, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(43, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(43, 6) Source(5, 2) + SourceIndex(4) +1 >Emitted(65, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(65, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(65, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(65, 6) Source(5, 2) + SourceIndex(4) --- >>>function secondsecond_part2Spread() { 1-> @@ -1643,9 +1904,9 @@ sourceFile:../../../second/second_part2.ts > 2 >function 3 > secondsecond_part2Spread -1->Emitted(44, 1) Source(7, 1) + SourceIndex(4) -2 >Emitted(44, 10) Source(7, 10) + SourceIndex(4) -3 >Emitted(44, 34) Source(7, 34) + SourceIndex(4) +1->Emitted(66, 1) Source(7, 1) + SourceIndex(4) +2 >Emitted(66, 10) Source(7, 10) + SourceIndex(4) +3 >Emitted(66, 34) Source(7, 34) + SourceIndex(4) --- >>> var b = []; 1 >^^^^ @@ -1653,8 +1914,8 @@ sourceFile:../../../second/second_part2.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(45, 5) Source(7, 35) + SourceIndex(4) -2 >Emitted(45, 16) Source(7, 49) + SourceIndex(4) +1 >Emitted(67, 5) Source(7, 35) + SourceIndex(4) +2 >Emitted(67, 16) Source(7, 49) + SourceIndex(4) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -1669,66 +1930,88 @@ sourceFile:../../../second/second_part2.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(46, 10) Source(7, 35) + SourceIndex(4) -2 >Emitted(46, 20) Source(7, 49) + SourceIndex(4) -3 >Emitted(46, 22) Source(7, 35) + SourceIndex(4) -4 >Emitted(46, 43) Source(7, 49) + SourceIndex(4) -5 >Emitted(46, 45) Source(7, 35) + SourceIndex(4) -6 >Emitted(46, 49) Source(7, 49) + SourceIndex(4) +1->Emitted(68, 10) Source(7, 35) + SourceIndex(4) +2 >Emitted(68, 20) Source(7, 49) + SourceIndex(4) +3 >Emitted(68, 22) Source(7, 35) + SourceIndex(4) +4 >Emitted(68, 43) Source(7, 49) + SourceIndex(4) +5 >Emitted(68, 45) Source(7, 35) + SourceIndex(4) +6 >Emitted(68, 49) Source(7, 49) + SourceIndex(4) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(47, 9) Source(7, 35) + SourceIndex(4) -2 >Emitted(47, 31) Source(7, 49) + SourceIndex(4) +1 >Emitted(69, 9) Source(7, 35) + SourceIndex(4) +2 >Emitted(69, 31) Source(7, 49) + SourceIndex(4) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(49, 1) Source(7, 53) + SourceIndex(4) -2 >Emitted(49, 2) Source(7, 54) + SourceIndex(4) +1 >Emitted(71, 1) Source(7, 53) + SourceIndex(4) +2 >Emitted(71, 2) Source(7, 54) + SourceIndex(4) --- ->>>secondsecond_part2Spread.apply(void 0, [10, 20, 30]); +>>>var secondsecond_part2_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > secondsecond_part2_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(72, 1) Source(8, 1) + SourceIndex(4) +2 >Emitted(72, 5) Source(8, 7) + SourceIndex(4) +3 >Emitted(72, 26) Source(8, 28) + SourceIndex(4) +4 >Emitted(72, 29) Source(8, 31) + SourceIndex(4) +5 >Emitted(72, 30) Source(8, 32) + SourceIndex(4) +6 >Emitted(72, 32) Source(8, 34) + SourceIndex(4) +7 >Emitted(72, 34) Source(8, 36) + SourceIndex(4) +8 >Emitted(72, 36) Source(8, 38) + SourceIndex(4) +9 >Emitted(72, 37) Source(8, 39) + SourceIndex(4) +10>Emitted(72, 38) Source(8, 40) + SourceIndex(4) +--- +>>>secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar))); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >secondsecond_part2Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(50, 1) Source(8, 1) + SourceIndex(4) -2 >Emitted(50, 25) Source(8, 25) + SourceIndex(4) -3 >Emitted(50, 40) Source(8, 29) + SourceIndex(4) -4 >Emitted(50, 41) Source(8, 30) + SourceIndex(4) -5 >Emitted(50, 43) Source(8, 32) + SourceIndex(4) -6 >Emitted(50, 45) Source(8, 34) + SourceIndex(4) -7 >Emitted(50, 47) Source(8, 36) + SourceIndex(4) -8 >Emitted(50, 49) Source(8, 38) + SourceIndex(4) -9 >Emitted(50, 51) Source(8, 40) + SourceIndex(4) -10>Emitted(50, 52) Source(8, 41) + SourceIndex(4) -11>Emitted(50, 54) Source(8, 43) + SourceIndex(4) +3 > ( +4 > 10 +5 > , ... +6 > secondsecond_part2_ar +7 > ); +1->Emitted(73, 1) Source(9, 1) + SourceIndex(4) +2 >Emitted(73, 25) Source(9, 25) + SourceIndex(4) +3 >Emitted(73, 55) Source(9, 26) + SourceIndex(4) +4 >Emitted(73, 57) Source(9, 28) + SourceIndex(4) +5 >Emitted(73, 67) Source(9, 33) + SourceIndex(4) +6 >Emitted(73, 88) Source(9, 54) + SourceIndex(4) +7 >Emitted(73, 92) Source(9, 56) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1752,14 +2035,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1 >Emitted(51, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(51, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(51, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(51, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(51, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(51, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(51, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(51, 17) Source(1, 17) + SourceIndex(5) +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) --- >>>c.doSomething(); 1-> @@ -1776,12 +2059,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(52, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(52, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(52, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(52, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(52, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(52, 17) Source(2, 17) + SourceIndex(5) +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) --- >>>function forthirdthird_part1Rest() { 1-> @@ -1792,9 +2075,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > forthirdthird_part1Rest -1->Emitted(53, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(53, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(53, 33) Source(3, 33) + SourceIndex(5) +1->Emitted(76, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(76, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(76, 33) Source(3, 33) + SourceIndex(5) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -1848,31 +2131,31 @@ sourceFile:../../third_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(54, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(54, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(54, 14) Source(4, 24) + SourceIndex(5) -4 >Emitted(54, 16) Source(4, 26) + SourceIndex(5) -5 >Emitted(54, 17) Source(4, 27) + SourceIndex(5) -6 >Emitted(54, 19) Source(4, 29) + SourceIndex(5) -7 >Emitted(54, 21) Source(4, 31) + SourceIndex(5) -8 >Emitted(54, 23) Source(4, 33) + SourceIndex(5) -9 >Emitted(54, 24) Source(4, 34) + SourceIndex(5) -10>Emitted(54, 26) Source(4, 36) + SourceIndex(5) -11>Emitted(54, 28) Source(4, 38) + SourceIndex(5) -12>Emitted(54, 30) Source(4, 40) + SourceIndex(5) -13>Emitted(54, 32) Source(4, 42) + SourceIndex(5) -14>Emitted(54, 34) Source(4, 44) + SourceIndex(5) -15>Emitted(54, 36) Source(4, 46) + SourceIndex(5) -16>Emitted(54, 38) Source(4, 48) + SourceIndex(5) -17>Emitted(54, 40) Source(4, 9) + SourceIndex(5) -18>Emitted(54, 41) Source(4, 10) + SourceIndex(5) -19>Emitted(54, 48) Source(4, 10) + SourceIndex(5) -20>Emitted(54, 50) Source(4, 15) + SourceIndex(5) -21>Emitted(54, 54) Source(4, 19) + SourceIndex(5) -22>Emitted(54, 68) Source(4, 7) + SourceIndex(5) -23>Emitted(54, 73) Source(4, 21) + SourceIndex(5) -24>Emitted(54, 74) Source(4, 48) + SourceIndex(5) -25>Emitted(54, 75) Source(4, 49) + SourceIndex(5) +1->Emitted(77, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(77, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(77, 14) Source(4, 24) + SourceIndex(5) +4 >Emitted(77, 16) Source(4, 26) + SourceIndex(5) +5 >Emitted(77, 17) Source(4, 27) + SourceIndex(5) +6 >Emitted(77, 19) Source(4, 29) + SourceIndex(5) +7 >Emitted(77, 21) Source(4, 31) + SourceIndex(5) +8 >Emitted(77, 23) Source(4, 33) + SourceIndex(5) +9 >Emitted(77, 24) Source(4, 34) + SourceIndex(5) +10>Emitted(77, 26) Source(4, 36) + SourceIndex(5) +11>Emitted(77, 28) Source(4, 38) + SourceIndex(5) +12>Emitted(77, 30) Source(4, 40) + SourceIndex(5) +13>Emitted(77, 32) Source(4, 42) + SourceIndex(5) +14>Emitted(77, 34) Source(4, 44) + SourceIndex(5) +15>Emitted(77, 36) Source(4, 46) + SourceIndex(5) +16>Emitted(77, 38) Source(4, 48) + SourceIndex(5) +17>Emitted(77, 40) Source(4, 9) + SourceIndex(5) +18>Emitted(77, 41) Source(4, 10) + SourceIndex(5) +19>Emitted(77, 48) Source(4, 10) + SourceIndex(5) +20>Emitted(77, 50) Source(4, 15) + SourceIndex(5) +21>Emitted(77, 54) Source(4, 19) + SourceIndex(5) +22>Emitted(77, 68) Source(4, 7) + SourceIndex(5) +23>Emitted(77, 73) Source(4, 21) + SourceIndex(5) +24>Emitted(77, 74) Source(4, 48) + SourceIndex(5) +25>Emitted(77, 75) Source(4, 49) + SourceIndex(5) --- >>>} 1 > @@ -1881,8 +2164,8 @@ sourceFile:../../third_part1.ts 1 > > 2 >} -1 >Emitted(55, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(55, 2) Source(5, 2) + SourceIndex(5) +1 >Emitted(78, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(78, 2) Source(5, 2) + SourceIndex(5) --- >>>function thirdthird_part1Spread() { 1-> @@ -1892,9 +2175,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > thirdthird_part1Spread -1->Emitted(56, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(56, 10) Source(6, 10) + SourceIndex(5) -3 >Emitted(56, 32) Source(6, 32) + SourceIndex(5) +1->Emitted(79, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(79, 10) Source(6, 10) + SourceIndex(5) +3 >Emitted(79, 32) Source(6, 32) + SourceIndex(5) --- >>> var b = []; 1 >^^^^ @@ -1902,8 +2185,8 @@ sourceFile:../../third_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(57, 5) Source(6, 33) + SourceIndex(5) -2 >Emitted(57, 16) Source(6, 47) + SourceIndex(5) +1 >Emitted(80, 5) Source(6, 33) + SourceIndex(5) +2 >Emitted(80, 16) Source(6, 47) + SourceIndex(5) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -1918,66 +2201,88 @@ sourceFile:../../third_part1.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(58, 10) Source(6, 33) + SourceIndex(5) -2 >Emitted(58, 20) Source(6, 47) + SourceIndex(5) -3 >Emitted(58, 22) Source(6, 33) + SourceIndex(5) -4 >Emitted(58, 43) Source(6, 47) + SourceIndex(5) -5 >Emitted(58, 45) Source(6, 33) + SourceIndex(5) -6 >Emitted(58, 49) Source(6, 47) + SourceIndex(5) +1->Emitted(81, 10) Source(6, 33) + SourceIndex(5) +2 >Emitted(81, 20) Source(6, 47) + SourceIndex(5) +3 >Emitted(81, 22) Source(6, 33) + SourceIndex(5) +4 >Emitted(81, 43) Source(6, 47) + SourceIndex(5) +5 >Emitted(81, 45) Source(6, 33) + SourceIndex(5) +6 >Emitted(81, 49) Source(6, 47) + SourceIndex(5) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(59, 9) Source(6, 33) + SourceIndex(5) -2 >Emitted(59, 31) Source(6, 47) + SourceIndex(5) +1 >Emitted(82, 9) Source(6, 33) + SourceIndex(5) +2 >Emitted(82, 31) Source(6, 47) + SourceIndex(5) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(61, 1) Source(6, 51) + SourceIndex(5) -2 >Emitted(61, 2) Source(6, 52) + SourceIndex(5) +1 >Emitted(84, 1) Source(6, 51) + SourceIndex(5) +2 >Emitted(84, 2) Source(6, 52) + SourceIndex(5) --- ->>>thirdthird_part1Spread.apply(void 0, [10, 20, 30]); +>>>var thirdthird_part1_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > thirdthird_part1_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(85, 1) Source(7, 1) + SourceIndex(5) +2 >Emitted(85, 5) Source(7, 7) + SourceIndex(5) +3 >Emitted(85, 24) Source(7, 26) + SourceIndex(5) +4 >Emitted(85, 27) Source(7, 29) + SourceIndex(5) +5 >Emitted(85, 28) Source(7, 30) + SourceIndex(5) +6 >Emitted(85, 30) Source(7, 32) + SourceIndex(5) +7 >Emitted(85, 32) Source(7, 34) + SourceIndex(5) +8 >Emitted(85, 34) Source(7, 36) + SourceIndex(5) +9 >Emitted(85, 35) Source(7, 37) + SourceIndex(5) +10>Emitted(85, 36) Source(7, 38) + SourceIndex(5) +--- +>>>thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar))); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >thirdthird_part1Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(62, 1) Source(7, 1) + SourceIndex(5) -2 >Emitted(62, 23) Source(7, 23) + SourceIndex(5) -3 >Emitted(62, 38) Source(7, 27) + SourceIndex(5) -4 >Emitted(62, 39) Source(7, 28) + SourceIndex(5) -5 >Emitted(62, 41) Source(7, 30) + SourceIndex(5) -6 >Emitted(62, 43) Source(7, 32) + SourceIndex(5) -7 >Emitted(62, 45) Source(7, 34) + SourceIndex(5) -8 >Emitted(62, 47) Source(7, 36) + SourceIndex(5) -9 >Emitted(62, 49) Source(7, 38) + SourceIndex(5) -10>Emitted(62, 50) Source(7, 39) + SourceIndex(5) -11>Emitted(62, 52) Source(7, 41) + SourceIndex(5) +3 > ( +4 > 10 +5 > , ... +6 > thirdthird_part1_ar +7 > ); +1->Emitted(86, 1) Source(8, 1) + SourceIndex(5) +2 >Emitted(86, 23) Source(8, 23) + SourceIndex(5) +3 >Emitted(86, 53) Source(8, 24) + SourceIndex(5) +4 >Emitted(86, 55) Source(8, 26) + SourceIndex(5) +5 >Emitted(86, 65) Source(8, 31) + SourceIndex(5) +6 >Emitted(86, 84) Source(8, 50) + SourceIndex(5) +7 >Emitted(86, 88) Source(8, 52) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map @@ -1992,45 +2297,59 @@ sourceFile:../../third_part1.ts "sections": [ { "pos": 0, - "end": 500, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 697, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 699, + "end": 1199, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 502, - "end": 854, + "pos": 1201, + "end": 1626, "kind": "prepend", "data": "../../../first/bin/first-output.js", "texts": [ { - "pos": 502, - "end": 854, + "pos": 1201, + "end": 1626, "kind": "text" } ] }, { - "pos": 854, - "end": 1464, + "pos": 1626, + "end": 2313, "kind": "prepend", "data": "../../../2/second-output.js", "texts": [ { - "pos": 854, - "end": 1464, + "pos": 1626, + "end": 2313, "kind": "text" } ] }, { - "pos": 1464, - "end": 1819, + "pos": 2313, + "end": 2741, "kind": "text" } ], "sources": { "helpers": [ - "typescript:rest" + "typescript:rest", + "typescript:read", + "typescript:spreadArray" ] } }, @@ -2038,33 +2357,33 @@ sourceFile:../../third_part1.ts "sections": [ { "pos": 0, - "end": 272, + "end": 318, "kind": "prepend", "data": "../../../first/bin/first-output.d.ts", "texts": [ { "pos": 0, - "end": 272, + "end": 318, "kind": "text" } ] }, { - "pos": 272, - "end": 491, + "pos": 318, + "end": 585, "kind": "prepend", "data": "../../../2/second-output.d.ts", "texts": [ { - "pos": 272, - "end": 491, + "pos": 318, + "end": 585, "kind": "text" } ] }, { - "pos": 491, - "end": 625, + "pos": 585, + "end": 765, "kind": "text" } ] @@ -2077,7 +2396,32 @@ sourceFile:../../third_part1.ts ====================================================================== File:: /src/third/thirdjs/output/third-output.js ---------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-697):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +---------------------------------------------------------------------- +emitHelpers: (699-1199):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -2090,9 +2434,9 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -prepend: (502-854):: ../../../first/bin/first-output.js texts:: 1 +prepend: (1201-1626):: ../../../first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (502-854) +text: (1201-1626) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { } @@ -2106,12 +2450,13 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, [10, 20, 30]); +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar))); ---------------------------------------------------------------------- -prepend: (854-1464):: ../../../2/second-output.js texts:: 1 +prepend: (1626-2313):: ../../../2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (854-1464) +text: (1626-2313) var N; (function (N) { function f() { @@ -2136,10 +2481,11 @@ function secondsecond_part2Spread() { b[_i] = arguments[_i]; } } -secondsecond_part2Spread.apply(void 0, [10, 20, 30]); +var secondsecond_part2_ar = [20, 30]; +secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar))); ---------------------------------------------------------------------- -text: (1464-1819) +text: (2313-2741) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { @@ -2151,15 +2497,16 @@ function thirdthird_part1Spread() { b[_i] = arguments[_i]; } } -thirdthird_part1Spread.apply(void 0, [10, 20, 30]); +var thirdthird_part1_ar = [20, 30]; +thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar))); ====================================================================== ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-272):: ../../../first/bin/first-output.d.ts texts:: 1 +prepend: (0-318):: ../../../first/bin/first-output.d.ts texts:: 1 >>-------------------------------------------------------------------- -text: (0-272) +text: (0-318) interface TheFirst { none: any; } @@ -2170,11 +2517,12 @@ interface NoJsForHereEither { declare function forfirstfirst_PART1Rest(): void; declare function f(): string; declare function firstfirst_part3Spread(...b: number[]): void; +declare const firstfirst_part3_ar: number[]; ---------------------------------------------------------------------- -prepend: (272-491):: ../../../2/second-output.d.ts texts:: 1 +prepend: (318-585):: ../../../2/second-output.d.ts texts:: 1 >>-------------------------------------------------------------------- -text: (272-491) +text: (318-585) declare namespace N { } declare namespace N { @@ -2184,12 +2532,14 @@ declare class C { doSomething(): void; } declare function secondsecond_part2Spread(...b: number[]): void; +declare const secondsecond_part2_ar: number[]; ---------------------------------------------------------------------- -text: (491-625) +text: (585-765) declare var c: C; declare function forthirdthird_part1Rest(): void; declare function thirdthird_part1Spread(...b: number[]): void; +declare const thirdthird_part1_ar: number[]; ====================================================================== diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js index 6c52166790471..3b03f5f79c6b7 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js @@ -425,7 +425,7 @@ declare function f(): string; ====================================================================== //// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACZrD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAAM;ACXtC,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -656,6 +656,27 @@ sourceFile:../../../second/second_part1.ts 8 >Emitted(14, 57) Source(13, 49) + SourceIndex(2) 9 >Emitted(14, 65) Source(13, 54) + SourceIndex(2) --- +>>>declare const secondsecond_part1_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > secondsecond_part1_ar +5 > = [20, 30] +6 > ; +1 >Emitted(15, 1) Source(14, 1) + SourceIndex(2) +2 >Emitted(15, 9) Source(14, 1) + SourceIndex(2) +3 >Emitted(15, 15) Source(14, 7) + SourceIndex(2) +4 >Emitted(15, 36) Source(14, 28) + SourceIndex(2) +5 >Emitted(15, 46) Source(14, 39) + SourceIndex(2) +6 >Emitted(15, 47) Source(14, 40) + SourceIndex(2) +--- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../second/second_part2.ts @@ -668,9 +689,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->^^^^ @@ -678,8 +699,8 @@ 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 >^ @@ -688,7 +709,7 @@ sourceFile:../../../second/second_part2.ts > 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 @@ -708,12 +729,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(19, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(19, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(19, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(19, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(19, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(19, 18) Source(1, 17) + SourceIndex(4) --- >>>declare function forthirdthird_part1Rest(): void; 1-> @@ -728,14 +749,35 @@ sourceFile:../../third_part1.ts 4 > () { > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; > } -1->Emitted(19, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(19, 18) Source(3, 10) + SourceIndex(4) -3 >Emitted(19, 41) Source(3, 33) + SourceIndex(4) -4 >Emitted(19, 50) Source(5, 2) + SourceIndex(4) +1->Emitted(20, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(20, 18) Source(3, 10) + SourceIndex(4) +3 >Emitted(20, 41) Source(3, 33) + SourceIndex(4) +4 >Emitted(20, 50) Source(5, 2) + SourceIndex(4) --- >>>//# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -767,7 +809,8 @@ function secondsecond_part1Spread() { b[_i] = arguments[_i]; } } -secondsecond_part1Spread.apply(void 0, [10, 20, 30]); +var secondsecond_part1_ar = [20, 30]; +secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar))); var C = (function () { function C() { } @@ -784,7 +827,7 @@ function forthirdthird_part1Rest() { //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;ACb1C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;ACXtC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,IAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -797,6 +840,27 @@ sources: ../../../first/first_PART1.ts,../../../first/first_part2.ts,../../../fi emittedFile:/src/third/thirdjs/output/third-output.js sourceFile:../../../first/first_PART1.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spreadArray = (this && this.__spreadArray) || function (to, from) { +>>> for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) +>>> to[j] = from[i]; +>>> return to; +>>>}; >>>var __rest = (this && this.__rest) || function (s, e) { >>> var t = {}; >>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -825,12 +889,12 @@ sourceFile:../../../first/first_PART1.ts 4 > = 5 > "Hello, world" 6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +1 >Emitted(33, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(33, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(33, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(33, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(33, 24) Source(5, 26) + SourceIndex(0) --- >>>console.log(s); 1 > @@ -856,14 +920,14 @@ sourceFile:../../../first/first_PART1.ts 6 > s 7 > ) 8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +1 >Emitted(34, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(34, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(34, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(34, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(34, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(34, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(34, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(34, 16) Source(11, 16) + SourceIndex(0) --- >>>function forfirstfirst_PART1Rest() { } 1-> @@ -877,11 +941,11 @@ sourceFile:../../../first/first_PART1.ts 3 > forfirstfirst_PART1Rest 4 > () { 5 > } -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(14, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(14, 39) Source(12, 39) + SourceIndex(0) +1->Emitted(35, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(35, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(35, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(35, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(35, 39) Source(12, 39) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -906,15 +970,15 @@ sourceFile:../../../first/first_part2.ts 7 > () 8 > ) 9 > ; -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(15, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(15, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(15, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(15, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(15, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(15, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(15, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(15, 18) Source(1, 18) + SourceIndex(1) +1 >Emitted(36, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(36, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(36, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(36, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(36, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(36, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(36, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(36, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(36, 18) Source(1, 18) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -928,9 +992,9 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -1 >Emitted(16, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(16, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(16, 11) Source(1, 11) + SourceIndex(2) +1 >Emitted(37, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(37, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(37, 11) Source(1, 11) + SourceIndex(2) --- >>> return "JS does hoists"; 1->^^^^ @@ -942,10 +1006,10 @@ sourceFile:../../../first/first_part3.ts 2 > return 3 > "JS does hoists" 4 > ; -1->Emitted(17, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(17, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(17, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(17, 29) Source(2, 29) + SourceIndex(2) +1->Emitted(38, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(38, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(38, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(38, 29) Source(2, 29) + SourceIndex(2) --- >>>} 1 > @@ -954,8 +1018,8 @@ sourceFile:../../../first/first_part3.ts 1 > > 2 >} -1 >Emitted(18, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(18, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(39, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(39, 2) Source(3, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -981,10 +1045,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(19, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(19, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(19, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(19, 7) Source(11, 2) + SourceIndex(3) +1->Emitted(40, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(40, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(40, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(40, 7) Source(11, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -994,9 +1058,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(20, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(20, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(20, 13) Source(5, 12) + SourceIndex(3) +1->Emitted(41, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(41, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(41, 13) Source(5, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -1007,9 +1071,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(21, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(21, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(21, 15) Source(6, 15) + SourceIndex(3) +1->Emitted(42, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(42, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(42, 15) Source(6, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -1029,14 +1093,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(22, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(22, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(22, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(22, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(22, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(22, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(22, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(22, 32) Source(7, 32) + SourceIndex(3) +1->Emitted(43, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(43, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(43, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(43, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(43, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(43, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(43, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(43, 32) Source(7, 32) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -1045,8 +1109,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(23, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(23, 6) Source(8, 6) + SourceIndex(3) +1 >Emitted(44, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(44, 6) Source(8, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -1060,10 +1124,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(24, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(24, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(24, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(24, 9) Source(10, 9) + SourceIndex(3) +1->Emitted(45, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(45, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(45, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(45, 9) Source(10, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -1088,13 +1152,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(25, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(25, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(25, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(25, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(25, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(25, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(25, 19) Source(11, 2) + SourceIndex(3) +1->Emitted(46, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(46, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(46, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(46, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(46, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(46, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(46, 19) Source(11, 2) + SourceIndex(3) --- >>>function secondsecond_part1Spread() { 1-> @@ -1105,9 +1169,9 @@ sourceFile:../../../second/second_part1.ts > 2 >function 3 > secondsecond_part1Spread -1->Emitted(26, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(26, 10) Source(13, 10) + SourceIndex(3) -3 >Emitted(26, 34) Source(13, 34) + SourceIndex(3) +1->Emitted(47, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(47, 10) Source(13, 10) + SourceIndex(3) +3 >Emitted(47, 34) Source(13, 34) + SourceIndex(3) --- >>> var b = []; 1 >^^^^ @@ -1115,8 +1179,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(27, 5) Source(13, 35) + SourceIndex(3) -2 >Emitted(27, 16) Source(13, 49) + SourceIndex(3) +1 >Emitted(48, 5) Source(13, 35) + SourceIndex(3) +2 >Emitted(48, 16) Source(13, 49) + SourceIndex(3) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -1131,66 +1195,88 @@ sourceFile:../../../second/second_part1.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(28, 10) Source(13, 35) + SourceIndex(3) -2 >Emitted(28, 20) Source(13, 49) + SourceIndex(3) -3 >Emitted(28, 22) Source(13, 35) + SourceIndex(3) -4 >Emitted(28, 43) Source(13, 49) + SourceIndex(3) -5 >Emitted(28, 45) Source(13, 35) + SourceIndex(3) -6 >Emitted(28, 49) Source(13, 49) + SourceIndex(3) +1->Emitted(49, 10) Source(13, 35) + SourceIndex(3) +2 >Emitted(49, 20) Source(13, 49) + SourceIndex(3) +3 >Emitted(49, 22) Source(13, 35) + SourceIndex(3) +4 >Emitted(49, 43) Source(13, 49) + SourceIndex(3) +5 >Emitted(49, 45) Source(13, 35) + SourceIndex(3) +6 >Emitted(49, 49) Source(13, 49) + SourceIndex(3) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(29, 9) Source(13, 35) + SourceIndex(3) -2 >Emitted(29, 31) Source(13, 49) + SourceIndex(3) +1 >Emitted(50, 9) Source(13, 35) + SourceIndex(3) +2 >Emitted(50, 31) Source(13, 49) + SourceIndex(3) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(31, 1) Source(13, 53) + SourceIndex(3) -2 >Emitted(31, 2) Source(13, 54) + SourceIndex(3) +1 >Emitted(52, 1) Source(13, 53) + SourceIndex(3) +2 >Emitted(52, 2) Source(13, 54) + SourceIndex(3) --- ->>>secondsecond_part1Spread.apply(void 0, [10, 20, 30]); +>>>var secondsecond_part1_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > secondsecond_part1_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(53, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(53, 5) Source(14, 7) + SourceIndex(3) +3 >Emitted(53, 26) Source(14, 28) + SourceIndex(3) +4 >Emitted(53, 29) Source(14, 31) + SourceIndex(3) +5 >Emitted(53, 30) Source(14, 32) + SourceIndex(3) +6 >Emitted(53, 32) Source(14, 34) + SourceIndex(3) +7 >Emitted(53, 34) Source(14, 36) + SourceIndex(3) +8 >Emitted(53, 36) Source(14, 38) + SourceIndex(3) +9 >Emitted(53, 37) Source(14, 39) + SourceIndex(3) +10>Emitted(53, 38) Source(14, 40) + SourceIndex(3) +--- +>>>secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar))); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >secondsecond_part1Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(32, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(32, 25) Source(14, 25) + SourceIndex(3) -3 >Emitted(32, 40) Source(14, 29) + SourceIndex(3) -4 >Emitted(32, 41) Source(14, 30) + SourceIndex(3) -5 >Emitted(32, 43) Source(14, 32) + SourceIndex(3) -6 >Emitted(32, 45) Source(14, 34) + SourceIndex(3) -7 >Emitted(32, 47) Source(14, 36) + SourceIndex(3) -8 >Emitted(32, 49) Source(14, 38) + SourceIndex(3) -9 >Emitted(32, 51) Source(14, 40) + SourceIndex(3) -10>Emitted(32, 52) Source(14, 41) + SourceIndex(3) -11>Emitted(32, 54) Source(14, 43) + SourceIndex(3) +3 > ( +4 > 10 +5 > , ... +6 > secondsecond_part1_ar +7 > ); +1->Emitted(54, 1) Source(15, 1) + SourceIndex(3) +2 >Emitted(54, 25) Source(15, 25) + SourceIndex(3) +3 >Emitted(54, 55) Source(15, 26) + SourceIndex(3) +4 >Emitted(54, 57) Source(15, 28) + SourceIndex(3) +5 >Emitted(54, 67) Source(15, 33) + SourceIndex(3) +6 >Emitted(54, 88) Source(15, 54) + SourceIndex(3) +7 >Emitted(54, 92) Source(15, 56) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1200,13 +1286,13 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(33, 1) Source(1, 1) + SourceIndex(4) +1 >Emitted(55, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(34, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(56, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -1218,8 +1304,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(35, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(35, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(57, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(57, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -1229,9 +1315,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(36, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(36, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(36, 31) Source(2, 5) + SourceIndex(4) +1->Emitted(58, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(58, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(58, 31) Source(2, 5) + SourceIndex(4) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -1251,14 +1337,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(37, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(37, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(37, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(37, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(37, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(37, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(37, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(37, 43) Source(3, 43) + SourceIndex(4) +1->Emitted(59, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(59, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(59, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(59, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(59, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(59, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(59, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(59, 43) Source(3, 43) + SourceIndex(4) --- >>> }; 1 >^^^^ @@ -1267,8 +1353,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(38, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(38, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(60, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(60, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -1276,8 +1362,8 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(39, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(39, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(61, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(61, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > @@ -1293,10 +1379,10 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(40, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(40, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(40, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(40, 6) Source(5, 2) + SourceIndex(4) +1 >Emitted(62, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(62, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(62, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(62, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1320,14 +1406,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1->Emitted(41, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(41, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(41, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(41, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(41, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(41, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(41, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(41, 17) Source(1, 17) + SourceIndex(5) +1->Emitted(63, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(63, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(63, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(63, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(63, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(63, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(63, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(63, 17) Source(1, 17) + SourceIndex(5) --- >>>c.doSomething(); 1-> @@ -1344,12 +1430,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(42, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(42, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(42, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(42, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(42, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(42, 17) Source(2, 17) + SourceIndex(5) +1->Emitted(64, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(64, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(64, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(64, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(64, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(64, 17) Source(2, 17) + SourceIndex(5) --- >>>function forthirdthird_part1Rest() { 1-> @@ -1360,9 +1446,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > forthirdthird_part1Rest -1->Emitted(43, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(43, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(43, 33) Source(3, 33) + SourceIndex(5) +1->Emitted(65, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(65, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(65, 33) Source(3, 33) + SourceIndex(5) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -1416,31 +1502,31 @@ sourceFile:../../third_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(44, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(44, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(44, 14) Source(4, 24) + SourceIndex(5) -4 >Emitted(44, 16) Source(4, 26) + SourceIndex(5) -5 >Emitted(44, 17) Source(4, 27) + SourceIndex(5) -6 >Emitted(44, 19) Source(4, 29) + SourceIndex(5) -7 >Emitted(44, 21) Source(4, 31) + SourceIndex(5) -8 >Emitted(44, 23) Source(4, 33) + SourceIndex(5) -9 >Emitted(44, 24) Source(4, 34) + SourceIndex(5) -10>Emitted(44, 26) Source(4, 36) + SourceIndex(5) -11>Emitted(44, 28) Source(4, 38) + SourceIndex(5) -12>Emitted(44, 30) Source(4, 40) + SourceIndex(5) -13>Emitted(44, 32) Source(4, 42) + SourceIndex(5) -14>Emitted(44, 34) Source(4, 44) + SourceIndex(5) -15>Emitted(44, 36) Source(4, 46) + SourceIndex(5) -16>Emitted(44, 38) Source(4, 48) + SourceIndex(5) -17>Emitted(44, 40) Source(4, 9) + SourceIndex(5) -18>Emitted(44, 41) Source(4, 10) + SourceIndex(5) -19>Emitted(44, 48) Source(4, 10) + SourceIndex(5) -20>Emitted(44, 50) Source(4, 15) + SourceIndex(5) -21>Emitted(44, 54) Source(4, 19) + SourceIndex(5) -22>Emitted(44, 68) Source(4, 7) + SourceIndex(5) -23>Emitted(44, 73) Source(4, 21) + SourceIndex(5) -24>Emitted(44, 74) Source(4, 48) + SourceIndex(5) -25>Emitted(44, 75) Source(4, 49) + SourceIndex(5) +1->Emitted(66, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(66, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(66, 14) Source(4, 24) + SourceIndex(5) +4 >Emitted(66, 16) Source(4, 26) + SourceIndex(5) +5 >Emitted(66, 17) Source(4, 27) + SourceIndex(5) +6 >Emitted(66, 19) Source(4, 29) + SourceIndex(5) +7 >Emitted(66, 21) Source(4, 31) + SourceIndex(5) +8 >Emitted(66, 23) Source(4, 33) + SourceIndex(5) +9 >Emitted(66, 24) Source(4, 34) + SourceIndex(5) +10>Emitted(66, 26) Source(4, 36) + SourceIndex(5) +11>Emitted(66, 28) Source(4, 38) + SourceIndex(5) +12>Emitted(66, 30) Source(4, 40) + SourceIndex(5) +13>Emitted(66, 32) Source(4, 42) + SourceIndex(5) +14>Emitted(66, 34) Source(4, 44) + SourceIndex(5) +15>Emitted(66, 36) Source(4, 46) + SourceIndex(5) +16>Emitted(66, 38) Source(4, 48) + SourceIndex(5) +17>Emitted(66, 40) Source(4, 9) + SourceIndex(5) +18>Emitted(66, 41) Source(4, 10) + SourceIndex(5) +19>Emitted(66, 48) Source(4, 10) + SourceIndex(5) +20>Emitted(66, 50) Source(4, 15) + SourceIndex(5) +21>Emitted(66, 54) Source(4, 19) + SourceIndex(5) +22>Emitted(66, 68) Source(4, 7) + SourceIndex(5) +23>Emitted(66, 73) Source(4, 21) + SourceIndex(5) +24>Emitted(66, 74) Source(4, 48) + SourceIndex(5) +25>Emitted(66, 75) Source(4, 49) + SourceIndex(5) --- >>>} 1 > @@ -1449,8 +1535,8 @@ sourceFile:../../third_part1.ts 1 > > 2 >} -1 >Emitted(45, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(45, 2) Source(5, 2) + SourceIndex(5) +1 >Emitted(67, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(67, 2) Source(5, 2) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map @@ -1465,39 +1551,51 @@ sourceFile:../../third_part1.ts "sections": [ { "pos": 0, - "end": 500, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 697, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 699, + "end": 1199, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 502, - "end": 652, + "pos": 1201, + "end": 1351, "kind": "prepend", "data": "../../../first/bin/first-output.js", "texts": [ { - "pos": 502, - "end": 652, + "pos": 1201, + "end": 1351, "kind": "text" } ] }, { - "pos": 652, - "end": 1143, + "pos": 1351, + "end": 1919, "kind": "prepend", "data": "../../../2/second-output.js", "texts": [ { - "pos": 652, - "end": 1143, + "pos": 1351, + "end": 1919, "kind": "text" } ] }, { - "pos": 1143, - "end": 1296, + "pos": 1919, + "end": 2072, "kind": "text" } ], @@ -1524,20 +1622,20 @@ sourceFile:../../third_part1.ts }, { "pos": 208, - "end": 374, + "end": 422, "kind": "prepend", "data": "../../../2/second-output.d.ts", "texts": [ { "pos": 208, - "end": 374, + "end": 422, "kind": "text" } ] }, { - "pos": 374, - "end": 444, + "pos": 422, + "end": 492, "kind": "text" } ] @@ -1550,7 +1648,32 @@ sourceFile:../../third_part1.ts ====================================================================== File:: /src/third/thirdjs/output/third-output.js ---------------------------------------------------------------------- -emitHelpers: (0-500):: typescript:rest +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-697):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +---------------------------------------------------------------------- +emitHelpers: (699-1199):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -1563,9 +1686,9 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -prepend: (502-652):: ../../../first/bin/first-output.js texts:: 1 +prepend: (1201-1351):: ../../../first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (502-652) +text: (1201-1351) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { } @@ -1575,9 +1698,9 @@ function f() { } ---------------------------------------------------------------------- -prepend: (652-1143):: ../../../2/second-output.js texts:: 1 +prepend: (1351-1919):: ../../../2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (652-1143) +text: (1351-1919) var N; (function (N) { function f() { @@ -1591,7 +1714,8 @@ function secondsecond_part1Spread() { b[_i] = arguments[_i]; } } -secondsecond_part1Spread.apply(void 0, [10, 20, 30]); +var secondsecond_part1_ar = [20, 30]; +secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar))); var C = (function () { function C() { } @@ -1602,7 +1726,7 @@ var C = (function () { }()); ---------------------------------------------------------------------- -text: (1143-1296) +text: (1919-2072) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { @@ -1627,20 +1751,21 @@ declare function forfirstfirst_PART1Rest(): void; declare function f(): string; ---------------------------------------------------------------------- -prepend: (208-374):: ../../../2/second-output.d.ts texts:: 1 +prepend: (208-422):: ../../../2/second-output.d.ts texts:: 1 >>-------------------------------------------------------------------- -text: (208-374) +text: (208-422) declare namespace N { } declare namespace N { } declare function secondsecond_part1Spread(...b: number[]): void; +declare const secondsecond_part1_ar: number[]; declare class C { doSomething(): void; } ---------------------------------------------------------------------- -text: (374-444) +text: (422-492) declare var c: C; declare function forthirdthird_part1Rest(): void; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-all-projects.js index 12fb6e0f31f87..d959121ce6d81 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-all-projects.js @@ -39,7 +39,8 @@ function f() { return "JS does hoists"; } function firstfirst_part3Spread(...b: number[]) { } -firstfirst_part3Spread(...[10, 20, 30]); +const firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread(10, ...firstfirst_part3_ar); //// [/src/first/tsconfig.json] { @@ -89,7 +90,8 @@ class C { } function secondsecond_part2Spread(...b: number[]) { } -secondsecond_part2Spread(...[10, 20, 30]); +const secondsecond_part2_ar = [20, 30]; +secondsecond_part2Spread(10, ...secondsecond_part2_ar); //// [/src/second/tsconfig.json] { @@ -118,7 +120,8 @@ function forthirdthird_part1Rest() { const { b, ...rest } = { a: 10, b: 30, yy: 30 }; } function thirdthird_part1Spread(...b: number[]) { } -thirdthird_part1Spread(...[10, 20, 30]); +const thirdthird_part1_ar = [20, 30]; +thirdthird_part1Spread(10, ...thirdthird_part1_ar); //// [/src/third/tsconfig.json] { @@ -179,10 +182,11 @@ declare class C { doSomething(): void; } declare function secondsecond_part2Spread(...b: number[]): void; +declare const secondsecond_part2_ar: number[]; //# 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;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} +{"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;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -327,6 +331,27 @@ sourceFile:../second/second_part2.ts 8 >Emitted(9, 57) Source(7, 49) + SourceIndex(1) 9 >Emitted(9, 65) Source(7, 54) + SourceIndex(1) --- +>>>declare const secondsecond_part2_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > secondsecond_part2_ar +5 > = [20, 30] +6 > ; +1 >Emitted(10, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(10, 9) Source(8, 1) + SourceIndex(1) +3 >Emitted(10, 15) Source(8, 7) + SourceIndex(1) +4 >Emitted(10, 36) Source(8, 28) + SourceIndex(1) +5 >Emitted(10, 46) Source(8, 39) + SourceIndex(1) +6 >Emitted(10, 47) Source(8, 40) + SourceIndex(1) +--- >>>//# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.js] @@ -341,6 +366,27 @@ var __rest = (this && this.__rest) || function (s, e) { } return t; }; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; var N; (function (N) { function f() { @@ -365,11 +411,12 @@ function secondsecond_part2Spread() { b[_i] = arguments[_i]; } } -secondsecond_part2Spread.apply(void 0, [10, 20, 30]); +var secondsecond_part2_ar = [20, 30]; +secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar))); //# 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;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE"} +{"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;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,IAAE"} //// [/src/2/second-output.js.map.baseline.txt] =================================================================== @@ -393,6 +440,27 @@ sourceFile:../second/second_part1.ts >>> } >>> return t; >>>}; +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spreadArray = (this && this.__spreadArray) || function (to, from) { +>>> for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) +>>> to[j] = from[i]; +>>> return to; +>>>}; >>>var N; 1 > 2 >^^^^ @@ -413,10 +481,10 @@ sourceFile:../second/second_part1.ts > > f(); > } -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(12, 7) Source(11, 2) + SourceIndex(0) +1 >Emitted(33, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(33, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(33, 7) Source(11, 2) + SourceIndex(0) --- >>>(function (N) { 1-> @@ -426,9 +494,9 @@ sourceFile:../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(13, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(13, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(13, 13) Source(5, 12) + SourceIndex(0) +1->Emitted(34, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(34, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(34, 13) Source(5, 12) + SourceIndex(0) --- >>> function f() { 1->^^^^ @@ -439,9 +507,9 @@ sourceFile:../second/second_part1.ts > 2 > function 3 > f -1->Emitted(14, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(14, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(14, 15) Source(6, 15) + SourceIndex(0) +1->Emitted(35, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(35, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(35, 15) Source(6, 15) + SourceIndex(0) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -461,14 +529,14 @@ sourceFile:../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(15, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(15, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(15, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(15, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(15, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(15, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(15, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(15, 32) Source(7, 32) + SourceIndex(0) +1->Emitted(36, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(36, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(36, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(36, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(36, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(36, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(36, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(36, 32) Source(7, 32) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -477,8 +545,8 @@ sourceFile:../second/second_part1.ts 1 > > 2 > } -1 >Emitted(16, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(16, 6) Source(8, 6) + SourceIndex(0) +1 >Emitted(37, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(37, 6) Source(8, 6) + SourceIndex(0) --- >>> f(); 1->^^^^ @@ -492,10 +560,10 @@ sourceFile:../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(17, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(17, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(17, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(17, 9) Source(10, 9) + SourceIndex(0) +1->Emitted(38, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(38, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(38, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(38, 9) Source(10, 9) + SourceIndex(0) --- >>>})(N || (N = {})); 1-> @@ -520,13 +588,13 @@ sourceFile:../second/second_part1.ts > > f(); > } -1->Emitted(18, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(18, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(18, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(18, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(18, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(18, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(18, 19) Source(11, 2) + SourceIndex(0) +1->Emitted(39, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(39, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(39, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(39, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(39, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(39, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(39, 19) Source(11, 2) + SourceIndex(0) --- >>>function forsecondsecond_part1Rest() { 1-> @@ -537,9 +605,9 @@ sourceFile:../second/second_part1.ts > 2 >function 3 > forsecondsecond_part1Rest -1->Emitted(19, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(19, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(19, 35) Source(12, 35) + SourceIndex(0) +1->Emitted(40, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(40, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(40, 35) Source(12, 35) + SourceIndex(0) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -593,31 +661,31 @@ sourceFile:../second/second_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(20, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(20, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(20, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(20, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(20, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(20, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(20, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(20, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(20, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(20, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(20, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(20, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(20, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(20, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(20, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(20, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(20, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(20, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(20, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(20, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(20, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(20, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(20, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(20, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(20, 75) Source(13, 49) + SourceIndex(0) +1->Emitted(41, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(41, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(41, 14) Source(13, 24) + SourceIndex(0) +4 >Emitted(41, 16) Source(13, 26) + SourceIndex(0) +5 >Emitted(41, 17) Source(13, 27) + SourceIndex(0) +6 >Emitted(41, 19) Source(13, 29) + SourceIndex(0) +7 >Emitted(41, 21) Source(13, 31) + SourceIndex(0) +8 >Emitted(41, 23) Source(13, 33) + SourceIndex(0) +9 >Emitted(41, 24) Source(13, 34) + SourceIndex(0) +10>Emitted(41, 26) Source(13, 36) + SourceIndex(0) +11>Emitted(41, 28) Source(13, 38) + SourceIndex(0) +12>Emitted(41, 30) Source(13, 40) + SourceIndex(0) +13>Emitted(41, 32) Source(13, 42) + SourceIndex(0) +14>Emitted(41, 34) Source(13, 44) + SourceIndex(0) +15>Emitted(41, 36) Source(13, 46) + SourceIndex(0) +16>Emitted(41, 38) Source(13, 48) + SourceIndex(0) +17>Emitted(41, 40) Source(13, 9) + SourceIndex(0) +18>Emitted(41, 41) Source(13, 10) + SourceIndex(0) +19>Emitted(41, 48) Source(13, 10) + SourceIndex(0) +20>Emitted(41, 50) Source(13, 15) + SourceIndex(0) +21>Emitted(41, 54) Source(13, 19) + SourceIndex(0) +22>Emitted(41, 68) Source(13, 7) + SourceIndex(0) +23>Emitted(41, 73) Source(13, 21) + SourceIndex(0) +24>Emitted(41, 74) Source(13, 48) + SourceIndex(0) +25>Emitted(41, 75) Source(13, 49) + SourceIndex(0) --- >>>} 1 > @@ -626,8 +694,8 @@ sourceFile:../second/second_part1.ts 1 > > 2 >} -1 >Emitted(21, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(21, 2) Source(14, 2) + SourceIndex(0) +1 >Emitted(42, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(42, 2) Source(14, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.js @@ -637,13 +705,13 @@ sourceFile:../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(22, 1) Source(1, 1) + SourceIndex(1) +1->Emitted(43, 1) Source(1, 1) + SourceIndex(1) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(23, 5) Source(1, 1) + SourceIndex(1) +1->Emitted(44, 5) Source(1, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -655,8 +723,8 @@ sourceFile:../second/second_part2.ts > } > 2 > } -1->Emitted(24, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(24, 6) Source(5, 2) + SourceIndex(1) +1->Emitted(45, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(45, 6) Source(5, 2) + SourceIndex(1) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -666,9 +734,9 @@ sourceFile:../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(25, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(25, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(25, 31) Source(2, 5) + SourceIndex(1) +1->Emitted(46, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(46, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(46, 31) Source(2, 5) + SourceIndex(1) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -688,14 +756,14 @@ sourceFile:../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(26, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(26, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(26, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(26, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(26, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(26, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(26, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(26, 43) Source(3, 43) + SourceIndex(1) +1->Emitted(47, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(47, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(47, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(47, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(47, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(47, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(47, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(47, 43) Source(3, 43) + SourceIndex(1) --- >>> }; 1 >^^^^ @@ -704,8 +772,8 @@ sourceFile:../second/second_part2.ts 1 > > 2 > } -1 >Emitted(27, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(27, 6) Source(4, 6) + SourceIndex(1) +1 >Emitted(48, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(48, 6) Source(4, 6) + SourceIndex(1) --- >>> return C; 1->^^^^ @@ -713,8 +781,8 @@ sourceFile:../second/second_part2.ts 1-> > 2 > } -1->Emitted(28, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(28, 13) Source(5, 2) + SourceIndex(1) +1->Emitted(49, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(49, 13) Source(5, 2) + SourceIndex(1) --- >>>}()); 1 > @@ -730,10 +798,10 @@ sourceFile:../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(29, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(29, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(29, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(29, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(50, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(50, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(50, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(50, 6) Source(5, 2) + SourceIndex(1) --- >>>function secondsecond_part2Spread() { 1-> @@ -744,9 +812,9 @@ sourceFile:../second/second_part2.ts > 2 >function 3 > secondsecond_part2Spread -1->Emitted(30, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(30, 10) Source(7, 10) + SourceIndex(1) -3 >Emitted(30, 34) Source(7, 34) + SourceIndex(1) +1->Emitted(51, 1) Source(7, 1) + SourceIndex(1) +2 >Emitted(51, 10) Source(7, 10) + SourceIndex(1) +3 >Emitted(51, 34) Source(7, 34) + SourceIndex(1) --- >>> var b = []; 1 >^^^^ @@ -754,8 +822,8 @@ sourceFile:../second/second_part2.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(31, 5) Source(7, 35) + SourceIndex(1) -2 >Emitted(31, 16) Source(7, 49) + SourceIndex(1) +1 >Emitted(52, 5) Source(7, 35) + SourceIndex(1) +2 >Emitted(52, 16) Source(7, 49) + SourceIndex(1) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -770,66 +838,88 @@ sourceFile:../second/second_part2.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(32, 10) Source(7, 35) + SourceIndex(1) -2 >Emitted(32, 20) Source(7, 49) + SourceIndex(1) -3 >Emitted(32, 22) Source(7, 35) + SourceIndex(1) -4 >Emitted(32, 43) Source(7, 49) + SourceIndex(1) -5 >Emitted(32, 45) Source(7, 35) + SourceIndex(1) -6 >Emitted(32, 49) Source(7, 49) + SourceIndex(1) +1->Emitted(53, 10) Source(7, 35) + SourceIndex(1) +2 >Emitted(53, 20) Source(7, 49) + SourceIndex(1) +3 >Emitted(53, 22) Source(7, 35) + SourceIndex(1) +4 >Emitted(53, 43) Source(7, 49) + SourceIndex(1) +5 >Emitted(53, 45) Source(7, 35) + SourceIndex(1) +6 >Emitted(53, 49) Source(7, 49) + SourceIndex(1) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(33, 9) Source(7, 35) + SourceIndex(1) -2 >Emitted(33, 31) Source(7, 49) + SourceIndex(1) +1 >Emitted(54, 9) Source(7, 35) + SourceIndex(1) +2 >Emitted(54, 31) Source(7, 49) + SourceIndex(1) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(35, 1) Source(7, 53) + SourceIndex(1) -2 >Emitted(35, 2) Source(7, 54) + SourceIndex(1) +1 >Emitted(56, 1) Source(7, 53) + SourceIndex(1) +2 >Emitted(56, 2) Source(7, 54) + SourceIndex(1) --- ->>>secondsecond_part2Spread.apply(void 0, [10, 20, 30]); +>>>var secondsecond_part2_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > secondsecond_part2_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(57, 1) Source(8, 1) + SourceIndex(1) +2 >Emitted(57, 5) Source(8, 7) + SourceIndex(1) +3 >Emitted(57, 26) Source(8, 28) + SourceIndex(1) +4 >Emitted(57, 29) Source(8, 31) + SourceIndex(1) +5 >Emitted(57, 30) Source(8, 32) + SourceIndex(1) +6 >Emitted(57, 32) Source(8, 34) + SourceIndex(1) +7 >Emitted(57, 34) Source(8, 36) + SourceIndex(1) +8 >Emitted(57, 36) Source(8, 38) + SourceIndex(1) +9 >Emitted(57, 37) Source(8, 39) + SourceIndex(1) +10>Emitted(57, 38) Source(8, 40) + SourceIndex(1) +--- +>>>secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar))); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >secondsecond_part2Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(36, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(36, 25) Source(8, 25) + SourceIndex(1) -3 >Emitted(36, 40) Source(8, 29) + SourceIndex(1) -4 >Emitted(36, 41) Source(8, 30) + SourceIndex(1) -5 >Emitted(36, 43) Source(8, 32) + SourceIndex(1) -6 >Emitted(36, 45) Source(8, 34) + SourceIndex(1) -7 >Emitted(36, 47) Source(8, 36) + SourceIndex(1) -8 >Emitted(36, 49) Source(8, 38) + SourceIndex(1) -9 >Emitted(36, 51) Source(8, 40) + SourceIndex(1) -10>Emitted(36, 52) Source(8, 41) + SourceIndex(1) -11>Emitted(36, 54) Source(8, 43) + SourceIndex(1) +3 > ( +4 > 10 +5 > , ... +6 > secondsecond_part2_ar +7 > ); +1->Emitted(58, 1) Source(9, 1) + SourceIndex(1) +2 >Emitted(58, 25) Source(9, 25) + SourceIndex(1) +3 >Emitted(58, 55) Source(9, 26) + SourceIndex(1) +4 >Emitted(58, 57) Source(9, 28) + SourceIndex(1) +5 >Emitted(58, 67) Source(9, 33) + SourceIndex(1) +6 >Emitted(58, 88) Source(9, 54) + SourceIndex(1) +7 >Emitted(58, 92) Source(9, 56) + SourceIndex(1) --- >>>//# sourceMappingURL=second-output.js.map @@ -851,13 +941,27 @@ sourceFile:../second/second_part2.ts }, { "pos": 502, - "end": 1112, + "end": 1006, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 1008, + "end": 1199, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 1201, + "end": 1888, "kind": "text" } ], "sources": { "helpers": [ - "typescript:rest" + "typescript:rest", + "typescript:read", + "typescript:spreadArray" ] } }, @@ -865,7 +969,7 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, - "end": 219, + "end": 267, "kind": "text" } ] @@ -891,7 +995,32 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -text: (502-1112) +emitHelpers: (502-1006):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (1008-1199):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +---------------------------------------------------------------------- +text: (1201-1888) var N; (function (N) { function f() { @@ -916,13 +1045,14 @@ function secondsecond_part2Spread() { b[_i] = arguments[_i]; } } -secondsecond_part2Spread.apply(void 0, [10, 20, 30]); +var secondsecond_part2_ar = [20, 30]; +secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar))); ====================================================================== ====================================================================== File:: /src/2/second-output.d.ts ---------------------------------------------------------------------- -text: (0-219) +text: (0-267) declare namespace N { } declare namespace N { @@ -932,6 +1062,7 @@ declare class C { doSomething(): void; } declare function secondsecond_part2Spread(...b: number[]): void; +declare const secondsecond_part2_ar: number[]; ====================================================================== @@ -946,10 +1077,11 @@ interface NoJsForHereEither { declare function forfirstfirst_PART1Rest(): void; declare function f(): string; declare function firstfirst_part3Spread(...b: number[]): void; +declare const firstfirst_part3_ar: number[]; //# sourceMappingURL=first-output.d.ts.map //// [/src/first/bin/first-output.d.ts.map] -{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK"} +{"version":3,"file":"first-output.d.ts","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;AEbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} //// [/src/first/bin/first-output.d.ts.map.baseline.txt] =================================================================== @@ -1128,6 +1260,27 @@ sourceFile:../first_part3.ts 8 >Emitted(10, 55) Source(4, 47) + SourceIndex(2) 9 >Emitted(10, 63) Source(4, 52) + SourceIndex(2) --- +>>>declare const firstfirst_part3_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > firstfirst_part3_ar +5 > = [20, 30] +6 > ; +1 >Emitted(11, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(11, 9) Source(5, 1) + SourceIndex(2) +3 >Emitted(11, 15) Source(5, 7) + SourceIndex(2) +4 >Emitted(11, 34) Source(5, 26) + SourceIndex(2) +5 >Emitted(11, 44) Source(5, 37) + SourceIndex(2) +6 >Emitted(11, 45) Source(5, 38) + SourceIndex(2) +--- >>>//# sourceMappingURL=first-output.d.ts.map //// [/src/first/bin/first-output.js] @@ -1142,6 +1295,27 @@ var __rest = (this && this.__rest) || function (s, e) { } return t; }; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -1157,11 +1331,12 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, [10, 20, 30]); +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar))); //# sourceMappingURL=first-output.js.map //// [/src/first/bin/first-output.js.map] -{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE"} +{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,IAAE"} //// [/src/first/bin/first-output.js.map.baseline.txt] =================================================================== @@ -1185,6 +1360,27 @@ sourceFile:../first_PART1.ts >>> } >>> return t; >>>}; +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spreadArray = (this && this.__spreadArray) || function (to, from) { +>>> for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) +>>> to[j] = from[i]; +>>> return to; +>>>}; >>>var s = "Hello, world"; 1 > 2 >^^^^ @@ -1202,12 +1398,12 @@ sourceFile:../first_PART1.ts 4 > = 5 > "Hello, world" 6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +1 >Emitted(33, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(33, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(33, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(33, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(33, 24) Source(5, 26) + SourceIndex(0) --- >>>console.log(s); 1 > @@ -1233,14 +1429,14 @@ sourceFile:../first_PART1.ts 6 > s 7 > ) 8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +1 >Emitted(34, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(34, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(34, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(34, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(34, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(34, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(34, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(34, 16) Source(11, 16) + SourceIndex(0) --- >>>function forfirstfirst_PART1Rest() { 1-> @@ -1251,9 +1447,9 @@ sourceFile:../first_PART1.ts > 2 >function 3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +1->Emitted(35, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(35, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(35, 33) Source(12, 33) + SourceIndex(0) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -1307,31 +1503,31 @@ sourceFile:../first_PART1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) +1->Emitted(36, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(36, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(36, 14) Source(13, 24) + SourceIndex(0) +4 >Emitted(36, 16) Source(13, 26) + SourceIndex(0) +5 >Emitted(36, 17) Source(13, 27) + SourceIndex(0) +6 >Emitted(36, 19) Source(13, 29) + SourceIndex(0) +7 >Emitted(36, 21) Source(13, 31) + SourceIndex(0) +8 >Emitted(36, 23) Source(13, 33) + SourceIndex(0) +9 >Emitted(36, 24) Source(13, 34) + SourceIndex(0) +10>Emitted(36, 26) Source(13, 36) + SourceIndex(0) +11>Emitted(36, 28) Source(13, 38) + SourceIndex(0) +12>Emitted(36, 30) Source(13, 40) + SourceIndex(0) +13>Emitted(36, 32) Source(13, 42) + SourceIndex(0) +14>Emitted(36, 34) Source(13, 44) + SourceIndex(0) +15>Emitted(36, 36) Source(13, 46) + SourceIndex(0) +16>Emitted(36, 38) Source(13, 48) + SourceIndex(0) +17>Emitted(36, 40) Source(13, 9) + SourceIndex(0) +18>Emitted(36, 41) Source(13, 10) + SourceIndex(0) +19>Emitted(36, 48) Source(13, 10) + SourceIndex(0) +20>Emitted(36, 50) Source(13, 15) + SourceIndex(0) +21>Emitted(36, 54) Source(13, 19) + SourceIndex(0) +22>Emitted(36, 68) Source(13, 7) + SourceIndex(0) +23>Emitted(36, 73) Source(13, 21) + SourceIndex(0) +24>Emitted(36, 74) Source(13, 48) + SourceIndex(0) +25>Emitted(36, 75) Source(13, 49) + SourceIndex(0) --- >>>} 1 > @@ -1340,8 +1536,8 @@ sourceFile:../first_PART1.ts 1 > > 2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +1 >Emitted(37, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(37, 2) Source(14, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/first/bin/first-output.js @@ -1366,15 +1562,15 @@ sourceFile:../first_part2.ts 7 > () 8 > ) 9 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) +1->Emitted(38, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(38, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(38, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(38, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(38, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(38, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(38, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(38, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(38, 18) Source(1, 18) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/first/bin/first-output.js @@ -1388,9 +1584,9 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) +1 >Emitted(39, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(39, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(39, 11) Source(1, 11) + SourceIndex(2) --- >>> return "JS does hoists"; 1->^^^^ @@ -1402,10 +1598,10 @@ sourceFile:../first_part3.ts 2 > return 3 > "JS does hoists" 4 > ; -1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) +1->Emitted(40, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(40, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(40, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(40, 29) Source(2, 29) + SourceIndex(2) --- >>>} 1 > @@ -1414,8 +1610,8 @@ sourceFile:../first_part3.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(41, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(41, 2) Source(3, 2) + SourceIndex(2) --- >>>function firstfirst_part3Spread() { 1-> @@ -1425,9 +1621,9 @@ sourceFile:../first_part3.ts > 2 >function 3 > firstfirst_part3Spread -1->Emitted(21, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(21, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(21, 32) Source(4, 32) + SourceIndex(2) +1->Emitted(42, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(42, 10) Source(4, 10) + SourceIndex(2) +3 >Emitted(42, 32) Source(4, 32) + SourceIndex(2) --- >>> var b = []; 1 >^^^^ @@ -1435,8 +1631,8 @@ sourceFile:../first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(22, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(22, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(43, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(43, 16) Source(4, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -1451,66 +1647,88 @@ sourceFile:../first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(23, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(23, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(23, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(23, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(23, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(23, 49) Source(4, 47) + SourceIndex(2) +1->Emitted(44, 10) Source(4, 33) + SourceIndex(2) +2 >Emitted(44, 20) Source(4, 47) + SourceIndex(2) +3 >Emitted(44, 22) Source(4, 33) + SourceIndex(2) +4 >Emitted(44, 43) Source(4, 47) + SourceIndex(2) +5 >Emitted(44, 45) Source(4, 33) + SourceIndex(2) +6 >Emitted(44, 49) Source(4, 47) + SourceIndex(2) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(24, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(24, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(45, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(45, 31) Source(4, 47) + SourceIndex(2) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(26, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(26, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(47, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(47, 2) Source(4, 52) + SourceIndex(2) --- ->>>firstfirst_part3Spread.apply(void 0, [10, 20, 30]); +>>>var firstfirst_part3_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > firstfirst_part3_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(48, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(48, 5) Source(5, 7) + SourceIndex(2) +3 >Emitted(48, 24) Source(5, 26) + SourceIndex(2) +4 >Emitted(48, 27) Source(5, 29) + SourceIndex(2) +5 >Emitted(48, 28) Source(5, 30) + SourceIndex(2) +6 >Emitted(48, 30) Source(5, 32) + SourceIndex(2) +7 >Emitted(48, 32) Source(5, 34) + SourceIndex(2) +8 >Emitted(48, 34) Source(5, 36) + SourceIndex(2) +9 >Emitted(48, 35) Source(5, 37) + SourceIndex(2) +10>Emitted(48, 36) Source(5, 38) + SourceIndex(2) +--- +>>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar))); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >firstfirst_part3Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(27, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(27, 23) Source(5, 23) + SourceIndex(2) -3 >Emitted(27, 38) Source(5, 27) + SourceIndex(2) -4 >Emitted(27, 39) Source(5, 28) + SourceIndex(2) -5 >Emitted(27, 41) Source(5, 30) + SourceIndex(2) -6 >Emitted(27, 43) Source(5, 32) + SourceIndex(2) -7 >Emitted(27, 45) Source(5, 34) + SourceIndex(2) -8 >Emitted(27, 47) Source(5, 36) + SourceIndex(2) -9 >Emitted(27, 49) Source(5, 38) + SourceIndex(2) -10>Emitted(27, 50) Source(5, 39) + SourceIndex(2) -11>Emitted(27, 52) Source(5, 41) + SourceIndex(2) +3 > ( +4 > 10 +5 > , ... +6 > firstfirst_part3_ar +7 > ); +1->Emitted(49, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(49, 23) Source(6, 23) + SourceIndex(2) +3 >Emitted(49, 53) Source(6, 24) + SourceIndex(2) +4 >Emitted(49, 55) Source(6, 26) + SourceIndex(2) +5 >Emitted(49, 65) Source(6, 31) + SourceIndex(2) +6 >Emitted(49, 84) Source(6, 50) + SourceIndex(2) +7 >Emitted(49, 88) Source(6, 52) + SourceIndex(2) --- >>>//# sourceMappingURL=first-output.js.map @@ -1533,13 +1751,27 @@ sourceFile:../first_part3.ts }, { "pos": 502, - "end": 931, + "end": 1006, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 1008, + "end": 1199, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 1201, + "end": 1703, "kind": "text" } ], "sources": { "helpers": [ - "typescript:rest" + "typescript:rest", + "typescript:read", + "typescript:spreadArray" ] } }, @@ -1547,7 +1779,7 @@ sourceFile:../first_part3.ts "sections": [ { "pos": 0, - "end": 272, + "end": 318, "kind": "text" } ] @@ -1573,7 +1805,32 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -text: (502-931) +emitHelpers: (502-1006):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (1008-1199):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +---------------------------------------------------------------------- +text: (1201-1703) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -1589,13 +1846,14 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, [10, 20, 30]); +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar))); ====================================================================== ====================================================================== File:: /src/first/bin/first-output.d.ts ---------------------------------------------------------------------- -text: (0-272) +text: (0-318) interface TheFirst { none: any; } @@ -1606,6 +1864,7 @@ interface NoJsForHereEither { declare function forfirstfirst_PART1Rest(): void; declare function f(): string; declare function firstfirst_part3Spread(...b: number[]): void; +declare const firstfirst_part3_ar: number[]; ====================================================================== @@ -1620,6 +1879,7 @@ interface NoJsForHereEither { declare function forfirstfirst_PART1Rest(): void; declare function f(): string; declare function firstfirst_part3Spread(...b: number[]): void; +declare const firstfirst_part3_ar: number[]; declare namespace N { } declare namespace N { @@ -1629,13 +1889,15 @@ declare class C { doSomething(): void; } declare function secondsecond_part2Spread(...b: number[]): void; +declare const secondsecond_part2_ar: number[]; declare var c: C; declare function forthirdthird_part1Rest(): void; declare function thirdthird_part1Spread(...b: number[]): void; +declare const thirdthird_part1_ar: number[]; //# 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;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACHnD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACNrD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,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;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC;ACJrC,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AACD,iBAAS,yBAAyB,SAEjC;ACbD,cAAM,CAAC;IACH,WAAW;CAGd;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACPvC,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B;AACD,iBAAS,sBAAsB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACnD,QAAA,MAAM,mBAAmB,UAAW,CAAC"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -1814,6 +2076,27 @@ sourceFile:../../../first/first_part3.ts 8 >Emitted(10, 55) Source(4, 47) + SourceIndex(1) 9 >Emitted(10, 63) Source(4, 52) + SourceIndex(1) --- +>>>declare const firstfirst_part3_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > firstfirst_part3_ar +5 > = [20, 30] +6 > ; +1 >Emitted(11, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(11, 9) Source(5, 1) + SourceIndex(1) +3 >Emitted(11, 15) Source(5, 7) + SourceIndex(1) +4 >Emitted(11, 34) Source(5, 26) + SourceIndex(1) +5 >Emitted(11, 44) Source(5, 37) + SourceIndex(1) +6 >Emitted(11, 45) Source(5, 38) + SourceIndex(1) +--- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../second/second_part1.ts @@ -1827,10 +2110,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -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 >Emitted(12, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(12, 19) Source(1, 11) + SourceIndex(2) +3 >Emitted(12, 20) Source(1, 12) + SourceIndex(2) +4 >Emitted(12, 21) Source(1, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -1838,7 +2121,7 @@ sourceFile:../../../second/second_part1.ts 1 >{ > // Comment text >} -1 >Emitted(12, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(13, 2) Source(3, 2) + SourceIndex(2) --- >>>declare namespace N { 1-> @@ -1851,10 +2134,10 @@ sourceFile:../../../second/second_part1.ts 2 >namespace 3 > N 4 > -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->Emitted(14, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(14, 19) Source(5, 11) + SourceIndex(2) +3 >Emitted(14, 20) Source(5, 12) + SourceIndex(2) +4 >Emitted(14, 21) Source(5, 13) + SourceIndex(2) --- >>>} 1 >^ @@ -1866,7 +2149,7 @@ sourceFile:../../../second/second_part1.ts > > f(); >} -1 >Emitted(14, 2) Source(11, 2) + SourceIndex(2) +1 >Emitted(15, 2) Source(11, 2) + SourceIndex(2) --- >>>declare function forsecondsecond_part1Rest(): void; 1-> @@ -1880,10 +2163,10 @@ sourceFile:../../../second/second_part1.ts 4 > () { > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; > } -1->Emitted(15, 1) Source(12, 1) + SourceIndex(2) -2 >Emitted(15, 18) Source(12, 10) + SourceIndex(2) -3 >Emitted(15, 43) Source(12, 35) + SourceIndex(2) -4 >Emitted(15, 52) Source(14, 2) + SourceIndex(2) +1->Emitted(16, 1) Source(12, 1) + SourceIndex(2) +2 >Emitted(16, 18) Source(12, 10) + SourceIndex(2) +3 >Emitted(16, 43) Source(12, 35) + SourceIndex(2) +4 >Emitted(16, 52) Source(14, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1897,9 +2180,9 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >class 3 > C -1 >Emitted(16, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(16, 15) Source(1, 7) + SourceIndex(3) -3 >Emitted(16, 16) Source(1, 8) + SourceIndex(3) +1 >Emitted(17, 1) Source(1, 1) + SourceIndex(3) +2 >Emitted(17, 15) Source(1, 7) + SourceIndex(3) +3 >Emitted(17, 16) Source(1, 8) + SourceIndex(3) --- >>> doSomething(): void; 1->^^^^ @@ -1907,8 +2190,8 @@ sourceFile:../../../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(17, 5) Source(2, 5) + SourceIndex(3) -2 >Emitted(17, 16) Source(2, 16) + SourceIndex(3) +1->Emitted(18, 5) Source(2, 5) + SourceIndex(3) +2 >Emitted(18, 16) Source(2, 16) + SourceIndex(3) --- >>>} 1 >^ @@ -1917,7 +2200,7 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(18, 2) Source(5, 2) + SourceIndex(3) +1 >Emitted(19, 2) Source(5, 2) + SourceIndex(3) --- >>>declare function secondsecond_part2Spread(...b: number[]): void; 1-> @@ -1940,15 +2223,36 @@ sourceFile:../../../second/second_part2.ts 7 > number 8 > [] 9 > ) { } -1->Emitted(19, 1) Source(7, 1) + SourceIndex(3) -2 >Emitted(19, 18) Source(7, 10) + SourceIndex(3) -3 >Emitted(19, 42) Source(7, 34) + SourceIndex(3) -4 >Emitted(19, 43) Source(7, 35) + SourceIndex(3) -5 >Emitted(19, 46) Source(7, 38) + SourceIndex(3) -6 >Emitted(19, 49) Source(7, 41) + SourceIndex(3) -7 >Emitted(19, 55) Source(7, 47) + SourceIndex(3) -8 >Emitted(19, 57) Source(7, 49) + SourceIndex(3) -9 >Emitted(19, 65) Source(7, 54) + SourceIndex(3) +1->Emitted(20, 1) Source(7, 1) + SourceIndex(3) +2 >Emitted(20, 18) Source(7, 10) + SourceIndex(3) +3 >Emitted(20, 42) Source(7, 34) + SourceIndex(3) +4 >Emitted(20, 43) Source(7, 35) + SourceIndex(3) +5 >Emitted(20, 46) Source(7, 38) + SourceIndex(3) +6 >Emitted(20, 49) Source(7, 41) + SourceIndex(3) +7 >Emitted(20, 55) Source(7, 47) + SourceIndex(3) +8 >Emitted(20, 57) Source(7, 49) + SourceIndex(3) +9 >Emitted(20, 65) Source(7, 54) + SourceIndex(3) +--- +>>>declare const secondsecond_part2_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > secondsecond_part2_ar +5 > = [20, 30] +6 > ; +1 >Emitted(21, 1) Source(8, 1) + SourceIndex(3) +2 >Emitted(21, 9) Source(8, 1) + SourceIndex(3) +3 >Emitted(21, 15) Source(8, 7) + SourceIndex(3) +4 >Emitted(21, 36) Source(8, 28) + SourceIndex(3) +5 >Emitted(21, 46) Source(8, 39) + SourceIndex(3) +6 >Emitted(21, 47) Source(8, 40) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts @@ -1968,12 +2272,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) --- >>>declare function forthirdthird_part1Rest(): void; 1-> @@ -1989,10 +2293,10 @@ sourceFile:../../third_part1.ts 4 > () { > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; > } -1->Emitted(21, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(21, 18) Source(3, 10) + SourceIndex(4) -3 >Emitted(21, 41) Source(3, 33) + SourceIndex(4) -4 >Emitted(21, 50) Source(5, 2) + SourceIndex(4) +1->Emitted(23, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(23, 18) Source(3, 10) + SourceIndex(4) +3 >Emitted(23, 41) Source(3, 33) + SourceIndex(4) +4 >Emitted(23, 50) Source(5, 2) + SourceIndex(4) --- >>>declare function thirdthird_part1Spread(...b: number[]): void; 1-> @@ -2014,15 +2318,36 @@ sourceFile:../../third_part1.ts 7 > number 8 > [] 9 > ) { } -1->Emitted(22, 1) Source(6, 1) + SourceIndex(4) -2 >Emitted(22, 18) Source(6, 10) + SourceIndex(4) -3 >Emitted(22, 40) Source(6, 32) + SourceIndex(4) -4 >Emitted(22, 41) Source(6, 33) + SourceIndex(4) -5 >Emitted(22, 44) Source(6, 36) + SourceIndex(4) -6 >Emitted(22, 47) Source(6, 39) + SourceIndex(4) -7 >Emitted(22, 53) Source(6, 45) + SourceIndex(4) -8 >Emitted(22, 55) Source(6, 47) + SourceIndex(4) -9 >Emitted(22, 63) Source(6, 52) + SourceIndex(4) +1->Emitted(24, 1) Source(6, 1) + SourceIndex(4) +2 >Emitted(24, 18) Source(6, 10) + SourceIndex(4) +3 >Emitted(24, 40) Source(6, 32) + SourceIndex(4) +4 >Emitted(24, 41) Source(6, 33) + SourceIndex(4) +5 >Emitted(24, 44) Source(6, 36) + SourceIndex(4) +6 >Emitted(24, 47) Source(6, 39) + SourceIndex(4) +7 >Emitted(24, 53) Source(6, 45) + SourceIndex(4) +8 >Emitted(24, 55) Source(6, 47) + SourceIndex(4) +9 >Emitted(24, 63) Source(6, 52) + SourceIndex(4) +--- +>>>declare const thirdthird_part1_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > thirdthird_part1_ar +5 > = [20, 30] +6 > ; +1 >Emitted(25, 1) Source(7, 1) + SourceIndex(4) +2 >Emitted(25, 9) Source(7, 1) + SourceIndex(4) +3 >Emitted(25, 15) Source(7, 7) + SourceIndex(4) +4 >Emitted(25, 34) Source(7, 26) + SourceIndex(4) +5 >Emitted(25, 44) Source(7, 37) + SourceIndex(4) +6 >Emitted(25, 45) Source(7, 38) + SourceIndex(4) --- >>>//# sourceMappingURL=third-output.d.ts.map @@ -2038,6 +2363,27 @@ var __rest = (this && this.__rest) || function (s, e) { } return t; }; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -2053,7 +2399,8 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, [10, 20, 30]); +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar))); var N; (function (N) { function f() { @@ -2078,7 +2425,8 @@ function secondsecond_part2Spread() { b[_i] = arguments[_i]; } } -secondsecond_part2Spread.apply(void 0, [10, 20, 30]); +var secondsecond_part2_ar = [20, 30]; +secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar))); var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { @@ -2090,11 +2438,12 @@ function thirdthird_part1Spread() { b[_i] = arguments[_i]; } } -thirdthird_part1Spread.apply(void 0, [10, 20, 30]); +var thirdthird_part1_ar = [20, 30]; +thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar))); //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;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;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;ACP1C,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,sBAAsB,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,IAAE;ACDnD,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,IAAE;ACRvD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;AACD,SAAS,sBAAsB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACnD,IAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,sBAAsB,8BAAC,EAAE,UAAK,mBAAmB,IAAE"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -2118,6 +2467,27 @@ sourceFile:../../../first/first_PART1.ts >>> } >>> return t; >>>}; +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spreadArray = (this && this.__spreadArray) || function (to, from) { +>>> for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) +>>> to[j] = from[i]; +>>> return to; +>>>}; >>>var s = "Hello, world"; 1 > 2 >^^^^ @@ -2135,12 +2505,12 @@ sourceFile:../../../first/first_PART1.ts 4 > = 5 > "Hello, world" 6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +1 >Emitted(33, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(33, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(33, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(33, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(33, 24) Source(5, 26) + SourceIndex(0) --- >>>console.log(s); 1 > @@ -2166,14 +2536,14 @@ sourceFile:../../../first/first_PART1.ts 6 > s 7 > ) 8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +1 >Emitted(34, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(34, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(34, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(34, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(34, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(34, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(34, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(34, 16) Source(11, 16) + SourceIndex(0) --- >>>function forfirstfirst_PART1Rest() { 1-> @@ -2184,9 +2554,9 @@ sourceFile:../../../first/first_PART1.ts > 2 >function 3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +1->Emitted(35, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(35, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(35, 33) Source(12, 33) + SourceIndex(0) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -2240,31 +2610,31 @@ sourceFile:../../../first/first_PART1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) +1->Emitted(36, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(36, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(36, 14) Source(13, 24) + SourceIndex(0) +4 >Emitted(36, 16) Source(13, 26) + SourceIndex(0) +5 >Emitted(36, 17) Source(13, 27) + SourceIndex(0) +6 >Emitted(36, 19) Source(13, 29) + SourceIndex(0) +7 >Emitted(36, 21) Source(13, 31) + SourceIndex(0) +8 >Emitted(36, 23) Source(13, 33) + SourceIndex(0) +9 >Emitted(36, 24) Source(13, 34) + SourceIndex(0) +10>Emitted(36, 26) Source(13, 36) + SourceIndex(0) +11>Emitted(36, 28) Source(13, 38) + SourceIndex(0) +12>Emitted(36, 30) Source(13, 40) + SourceIndex(0) +13>Emitted(36, 32) Source(13, 42) + SourceIndex(0) +14>Emitted(36, 34) Source(13, 44) + SourceIndex(0) +15>Emitted(36, 36) Source(13, 46) + SourceIndex(0) +16>Emitted(36, 38) Source(13, 48) + SourceIndex(0) +17>Emitted(36, 40) Source(13, 9) + SourceIndex(0) +18>Emitted(36, 41) Source(13, 10) + SourceIndex(0) +19>Emitted(36, 48) Source(13, 10) + SourceIndex(0) +20>Emitted(36, 50) Source(13, 15) + SourceIndex(0) +21>Emitted(36, 54) Source(13, 19) + SourceIndex(0) +22>Emitted(36, 68) Source(13, 7) + SourceIndex(0) +23>Emitted(36, 73) Source(13, 21) + SourceIndex(0) +24>Emitted(36, 74) Source(13, 48) + SourceIndex(0) +25>Emitted(36, 75) Source(13, 49) + SourceIndex(0) --- >>>} 1 > @@ -2273,8 +2643,8 @@ sourceFile:../../../first/first_PART1.ts 1 > > 2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +1 >Emitted(37, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(37, 2) Source(14, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2299,15 +2669,15 @@ sourceFile:../../../first/first_part2.ts 7 > () 8 > ) 9 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) +1->Emitted(38, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(38, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(38, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(38, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(38, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(38, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(38, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(38, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(38, 18) Source(1, 18) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2321,9 +2691,9 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) +1 >Emitted(39, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(39, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(39, 11) Source(1, 11) + SourceIndex(2) --- >>> return "JS does hoists"; 1->^^^^ @@ -2335,10 +2705,10 @@ sourceFile:../../../first/first_part3.ts 2 > return 3 > "JS does hoists" 4 > ; -1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) +1->Emitted(40, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(40, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(40, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(40, 29) Source(2, 29) + SourceIndex(2) --- >>>} 1 > @@ -2347,8 +2717,8 @@ sourceFile:../../../first/first_part3.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(41, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(41, 2) Source(3, 2) + SourceIndex(2) --- >>>function firstfirst_part3Spread() { 1-> @@ -2358,9 +2728,9 @@ sourceFile:../../../first/first_part3.ts > 2 >function 3 > firstfirst_part3Spread -1->Emitted(21, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(21, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(21, 32) Source(4, 32) + SourceIndex(2) +1->Emitted(42, 1) Source(4, 1) + SourceIndex(2) +2 >Emitted(42, 10) Source(4, 10) + SourceIndex(2) +3 >Emitted(42, 32) Source(4, 32) + SourceIndex(2) --- >>> var b = []; 1 >^^^^ @@ -2368,8 +2738,8 @@ sourceFile:../../../first/first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(22, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(22, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(43, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(43, 16) Source(4, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -2384,66 +2754,88 @@ sourceFile:../../../first/first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(23, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(23, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(23, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(23, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(23, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(23, 49) Source(4, 47) + SourceIndex(2) +1->Emitted(44, 10) Source(4, 33) + SourceIndex(2) +2 >Emitted(44, 20) Source(4, 47) + SourceIndex(2) +3 >Emitted(44, 22) Source(4, 33) + SourceIndex(2) +4 >Emitted(44, 43) Source(4, 47) + SourceIndex(2) +5 >Emitted(44, 45) Source(4, 33) + SourceIndex(2) +6 >Emitted(44, 49) Source(4, 47) + SourceIndex(2) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(24, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(24, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(45, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(45, 31) Source(4, 47) + SourceIndex(2) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(26, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(26, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(47, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(47, 2) Source(4, 52) + SourceIndex(2) --- ->>>firstfirst_part3Spread.apply(void 0, [10, 20, 30]); +>>>var firstfirst_part3_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > firstfirst_part3_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(48, 1) Source(5, 1) + SourceIndex(2) +2 >Emitted(48, 5) Source(5, 7) + SourceIndex(2) +3 >Emitted(48, 24) Source(5, 26) + SourceIndex(2) +4 >Emitted(48, 27) Source(5, 29) + SourceIndex(2) +5 >Emitted(48, 28) Source(5, 30) + SourceIndex(2) +6 >Emitted(48, 30) Source(5, 32) + SourceIndex(2) +7 >Emitted(48, 32) Source(5, 34) + SourceIndex(2) +8 >Emitted(48, 34) Source(5, 36) + SourceIndex(2) +9 >Emitted(48, 35) Source(5, 37) + SourceIndex(2) +10>Emitted(48, 36) Source(5, 38) + SourceIndex(2) +--- +>>>firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar))); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >firstfirst_part3Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(27, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(27, 23) Source(5, 23) + SourceIndex(2) -3 >Emitted(27, 38) Source(5, 27) + SourceIndex(2) -4 >Emitted(27, 39) Source(5, 28) + SourceIndex(2) -5 >Emitted(27, 41) Source(5, 30) + SourceIndex(2) -6 >Emitted(27, 43) Source(5, 32) + SourceIndex(2) -7 >Emitted(27, 45) Source(5, 34) + SourceIndex(2) -8 >Emitted(27, 47) Source(5, 36) + SourceIndex(2) -9 >Emitted(27, 49) Source(5, 38) + SourceIndex(2) -10>Emitted(27, 50) Source(5, 39) + SourceIndex(2) -11>Emitted(27, 52) Source(5, 41) + SourceIndex(2) +3 > ( +4 > 10 +5 > , ... +6 > firstfirst_part3_ar +7 > ); +1->Emitted(49, 1) Source(6, 1) + SourceIndex(2) +2 >Emitted(49, 23) Source(6, 23) + SourceIndex(2) +3 >Emitted(49, 53) Source(6, 24) + SourceIndex(2) +4 >Emitted(49, 55) Source(6, 26) + SourceIndex(2) +5 >Emitted(49, 65) Source(6, 31) + SourceIndex(2) +6 >Emitted(49, 84) Source(6, 50) + SourceIndex(2) +7 >Emitted(49, 88) Source(6, 52) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2469,10 +2861,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1 >Emitted(28, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(28, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(28, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(28, 7) Source(11, 2) + SourceIndex(3) +1 >Emitted(50, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(50, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(50, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(50, 7) Source(11, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -2482,9 +2874,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(29, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(29, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(29, 13) Source(5, 12) + SourceIndex(3) +1->Emitted(51, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(51, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(51, 13) Source(5, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -2495,9 +2887,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(30, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(30, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(30, 15) Source(6, 15) + SourceIndex(3) +1->Emitted(52, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(52, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(52, 15) Source(6, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -2517,14 +2909,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(31, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(31, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(31, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(31, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(31, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(31, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(31, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(31, 32) Source(7, 32) + SourceIndex(3) +1->Emitted(53, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(53, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(53, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(53, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(53, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(53, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(53, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(53, 32) Source(7, 32) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -2533,8 +2925,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(32, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(32, 6) Source(8, 6) + SourceIndex(3) +1 >Emitted(54, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(54, 6) Source(8, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -2548,10 +2940,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(33, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(33, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(33, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(33, 9) Source(10, 9) + SourceIndex(3) +1->Emitted(55, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(55, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(55, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(55, 9) Source(10, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -2576,13 +2968,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(34, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(34, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(34, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(34, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(34, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(34, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(34, 19) Source(11, 2) + SourceIndex(3) +1->Emitted(56, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(56, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(56, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(56, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(56, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(56, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(56, 19) Source(11, 2) + SourceIndex(3) --- >>>function forsecondsecond_part1Rest() { 1-> @@ -2593,9 +2985,9 @@ sourceFile:../../../second/second_part1.ts > 2 >function 3 > forsecondsecond_part1Rest -1->Emitted(35, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(35, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(35, 35) Source(12, 35) + SourceIndex(3) +1->Emitted(57, 1) Source(12, 1) + SourceIndex(3) +2 >Emitted(57, 10) Source(12, 10) + SourceIndex(3) +3 >Emitted(57, 35) Source(12, 35) + SourceIndex(3) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -2649,31 +3041,31 @@ sourceFile:../../../second/second_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(36, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(36, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(36, 14) Source(13, 24) + SourceIndex(3) -4 >Emitted(36, 16) Source(13, 26) + SourceIndex(3) -5 >Emitted(36, 17) Source(13, 27) + SourceIndex(3) -6 >Emitted(36, 19) Source(13, 29) + SourceIndex(3) -7 >Emitted(36, 21) Source(13, 31) + SourceIndex(3) -8 >Emitted(36, 23) Source(13, 33) + SourceIndex(3) -9 >Emitted(36, 24) Source(13, 34) + SourceIndex(3) -10>Emitted(36, 26) Source(13, 36) + SourceIndex(3) -11>Emitted(36, 28) Source(13, 38) + SourceIndex(3) -12>Emitted(36, 30) Source(13, 40) + SourceIndex(3) -13>Emitted(36, 32) Source(13, 42) + SourceIndex(3) -14>Emitted(36, 34) Source(13, 44) + SourceIndex(3) -15>Emitted(36, 36) Source(13, 46) + SourceIndex(3) -16>Emitted(36, 38) Source(13, 48) + SourceIndex(3) -17>Emitted(36, 40) Source(13, 9) + SourceIndex(3) -18>Emitted(36, 41) Source(13, 10) + SourceIndex(3) -19>Emitted(36, 48) Source(13, 10) + SourceIndex(3) -20>Emitted(36, 50) Source(13, 15) + SourceIndex(3) -21>Emitted(36, 54) Source(13, 19) + SourceIndex(3) -22>Emitted(36, 68) Source(13, 7) + SourceIndex(3) -23>Emitted(36, 73) Source(13, 21) + SourceIndex(3) -24>Emitted(36, 74) Source(13, 48) + SourceIndex(3) -25>Emitted(36, 75) Source(13, 49) + SourceIndex(3) +1->Emitted(58, 5) Source(13, 1) + SourceIndex(3) +2 >Emitted(58, 9) Source(13, 7) + SourceIndex(3) +3 >Emitted(58, 14) Source(13, 24) + SourceIndex(3) +4 >Emitted(58, 16) Source(13, 26) + SourceIndex(3) +5 >Emitted(58, 17) Source(13, 27) + SourceIndex(3) +6 >Emitted(58, 19) Source(13, 29) + SourceIndex(3) +7 >Emitted(58, 21) Source(13, 31) + SourceIndex(3) +8 >Emitted(58, 23) Source(13, 33) + SourceIndex(3) +9 >Emitted(58, 24) Source(13, 34) + SourceIndex(3) +10>Emitted(58, 26) Source(13, 36) + SourceIndex(3) +11>Emitted(58, 28) Source(13, 38) + SourceIndex(3) +12>Emitted(58, 30) Source(13, 40) + SourceIndex(3) +13>Emitted(58, 32) Source(13, 42) + SourceIndex(3) +14>Emitted(58, 34) Source(13, 44) + SourceIndex(3) +15>Emitted(58, 36) Source(13, 46) + SourceIndex(3) +16>Emitted(58, 38) Source(13, 48) + SourceIndex(3) +17>Emitted(58, 40) Source(13, 9) + SourceIndex(3) +18>Emitted(58, 41) Source(13, 10) + SourceIndex(3) +19>Emitted(58, 48) Source(13, 10) + SourceIndex(3) +20>Emitted(58, 50) Source(13, 15) + SourceIndex(3) +21>Emitted(58, 54) Source(13, 19) + SourceIndex(3) +22>Emitted(58, 68) Source(13, 7) + SourceIndex(3) +23>Emitted(58, 73) Source(13, 21) + SourceIndex(3) +24>Emitted(58, 74) Source(13, 48) + SourceIndex(3) +25>Emitted(58, 75) Source(13, 49) + SourceIndex(3) --- >>>} 1 > @@ -2682,8 +3074,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 >} -1 >Emitted(37, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(37, 2) Source(14, 2) + SourceIndex(3) +1 >Emitted(59, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(59, 2) Source(14, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2693,13 +3085,13 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(38, 1) Source(1, 1) + SourceIndex(4) +1->Emitted(60, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(39, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(61, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -2711,8 +3103,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(40, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(40, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(62, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(62, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -2722,9 +3114,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(41, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(41, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(41, 31) Source(2, 5) + SourceIndex(4) +1->Emitted(63, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(63, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(63, 31) Source(2, 5) + SourceIndex(4) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -2744,14 +3136,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(42, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(42, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(42, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(42, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(42, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(42, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(42, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(42, 43) Source(3, 43) + SourceIndex(4) +1->Emitted(64, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(64, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(64, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(64, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(64, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(64, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(64, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(64, 43) Source(3, 43) + SourceIndex(4) --- >>> }; 1 >^^^^ @@ -2760,8 +3152,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(43, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(43, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(65, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(65, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -2769,8 +3161,8 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(44, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(44, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(66, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(66, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > @@ -2786,10 +3178,10 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(45, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(45, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(45, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(45, 6) Source(5, 2) + SourceIndex(4) +1 >Emitted(67, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(67, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(67, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(67, 6) Source(5, 2) + SourceIndex(4) --- >>>function secondsecond_part2Spread() { 1-> @@ -2800,9 +3192,9 @@ sourceFile:../../../second/second_part2.ts > 2 >function 3 > secondsecond_part2Spread -1->Emitted(46, 1) Source(7, 1) + SourceIndex(4) -2 >Emitted(46, 10) Source(7, 10) + SourceIndex(4) -3 >Emitted(46, 34) Source(7, 34) + SourceIndex(4) +1->Emitted(68, 1) Source(7, 1) + SourceIndex(4) +2 >Emitted(68, 10) Source(7, 10) + SourceIndex(4) +3 >Emitted(68, 34) Source(7, 34) + SourceIndex(4) --- >>> var b = []; 1 >^^^^ @@ -2810,8 +3202,8 @@ sourceFile:../../../second/second_part2.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(47, 5) Source(7, 35) + SourceIndex(4) -2 >Emitted(47, 16) Source(7, 49) + SourceIndex(4) +1 >Emitted(69, 5) Source(7, 35) + SourceIndex(4) +2 >Emitted(69, 16) Source(7, 49) + SourceIndex(4) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -2826,66 +3218,88 @@ sourceFile:../../../second/second_part2.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(48, 10) Source(7, 35) + SourceIndex(4) -2 >Emitted(48, 20) Source(7, 49) + SourceIndex(4) -3 >Emitted(48, 22) Source(7, 35) + SourceIndex(4) -4 >Emitted(48, 43) Source(7, 49) + SourceIndex(4) -5 >Emitted(48, 45) Source(7, 35) + SourceIndex(4) -6 >Emitted(48, 49) Source(7, 49) + SourceIndex(4) +1->Emitted(70, 10) Source(7, 35) + SourceIndex(4) +2 >Emitted(70, 20) Source(7, 49) + SourceIndex(4) +3 >Emitted(70, 22) Source(7, 35) + SourceIndex(4) +4 >Emitted(70, 43) Source(7, 49) + SourceIndex(4) +5 >Emitted(70, 45) Source(7, 35) + SourceIndex(4) +6 >Emitted(70, 49) Source(7, 49) + SourceIndex(4) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(49, 9) Source(7, 35) + SourceIndex(4) -2 >Emitted(49, 31) Source(7, 49) + SourceIndex(4) +1 >Emitted(71, 9) Source(7, 35) + SourceIndex(4) +2 >Emitted(71, 31) Source(7, 49) + SourceIndex(4) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(51, 1) Source(7, 53) + SourceIndex(4) -2 >Emitted(51, 2) Source(7, 54) + SourceIndex(4) +1 >Emitted(73, 1) Source(7, 53) + SourceIndex(4) +2 >Emitted(73, 2) Source(7, 54) + SourceIndex(4) --- ->>>secondsecond_part2Spread.apply(void 0, [10, 20, 30]); +>>>var secondsecond_part2_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > secondsecond_part2_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(74, 1) Source(8, 1) + SourceIndex(4) +2 >Emitted(74, 5) Source(8, 7) + SourceIndex(4) +3 >Emitted(74, 26) Source(8, 28) + SourceIndex(4) +4 >Emitted(74, 29) Source(8, 31) + SourceIndex(4) +5 >Emitted(74, 30) Source(8, 32) + SourceIndex(4) +6 >Emitted(74, 32) Source(8, 34) + SourceIndex(4) +7 >Emitted(74, 34) Source(8, 36) + SourceIndex(4) +8 >Emitted(74, 36) Source(8, 38) + SourceIndex(4) +9 >Emitted(74, 37) Source(8, 39) + SourceIndex(4) +10>Emitted(74, 38) Source(8, 40) + SourceIndex(4) +--- +>>>secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar))); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >secondsecond_part2Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(52, 1) Source(8, 1) + SourceIndex(4) -2 >Emitted(52, 25) Source(8, 25) + SourceIndex(4) -3 >Emitted(52, 40) Source(8, 29) + SourceIndex(4) -4 >Emitted(52, 41) Source(8, 30) + SourceIndex(4) -5 >Emitted(52, 43) Source(8, 32) + SourceIndex(4) -6 >Emitted(52, 45) Source(8, 34) + SourceIndex(4) -7 >Emitted(52, 47) Source(8, 36) + SourceIndex(4) -8 >Emitted(52, 49) Source(8, 38) + SourceIndex(4) -9 >Emitted(52, 51) Source(8, 40) + SourceIndex(4) -10>Emitted(52, 52) Source(8, 41) + SourceIndex(4) -11>Emitted(52, 54) Source(8, 43) + SourceIndex(4) +3 > ( +4 > 10 +5 > , ... +6 > secondsecond_part2_ar +7 > ); +1->Emitted(75, 1) Source(9, 1) + SourceIndex(4) +2 >Emitted(75, 25) Source(9, 25) + SourceIndex(4) +3 >Emitted(75, 55) Source(9, 26) + SourceIndex(4) +4 >Emitted(75, 57) Source(9, 28) + SourceIndex(4) +5 >Emitted(75, 67) Source(9, 33) + SourceIndex(4) +6 >Emitted(75, 88) Source(9, 54) + SourceIndex(4) +7 >Emitted(75, 92) Source(9, 56) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2909,14 +3323,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1 >Emitted(53, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(53, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(53, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(53, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(53, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(53, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(53, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(53, 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-> @@ -2933,12 +3347,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(54, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(54, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(54, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(54, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(54, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(54, 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 forthirdthird_part1Rest() { 1-> @@ -2949,9 +3363,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > forthirdthird_part1Rest -1->Emitted(55, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(55, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(55, 33) Source(3, 33) + SourceIndex(5) +1->Emitted(78, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(78, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(78, 33) Source(3, 33) + SourceIndex(5) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -3005,31 +3419,31 @@ sourceFile:../../third_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(56, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(56, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(56, 14) Source(4, 24) + SourceIndex(5) -4 >Emitted(56, 16) Source(4, 26) + SourceIndex(5) -5 >Emitted(56, 17) Source(4, 27) + SourceIndex(5) -6 >Emitted(56, 19) Source(4, 29) + SourceIndex(5) -7 >Emitted(56, 21) Source(4, 31) + SourceIndex(5) -8 >Emitted(56, 23) Source(4, 33) + SourceIndex(5) -9 >Emitted(56, 24) Source(4, 34) + SourceIndex(5) -10>Emitted(56, 26) Source(4, 36) + SourceIndex(5) -11>Emitted(56, 28) Source(4, 38) + SourceIndex(5) -12>Emitted(56, 30) Source(4, 40) + SourceIndex(5) -13>Emitted(56, 32) Source(4, 42) + SourceIndex(5) -14>Emitted(56, 34) Source(4, 44) + SourceIndex(5) -15>Emitted(56, 36) Source(4, 46) + SourceIndex(5) -16>Emitted(56, 38) Source(4, 48) + SourceIndex(5) -17>Emitted(56, 40) Source(4, 9) + SourceIndex(5) -18>Emitted(56, 41) Source(4, 10) + SourceIndex(5) -19>Emitted(56, 48) Source(4, 10) + SourceIndex(5) -20>Emitted(56, 50) Source(4, 15) + SourceIndex(5) -21>Emitted(56, 54) Source(4, 19) + SourceIndex(5) -22>Emitted(56, 68) Source(4, 7) + SourceIndex(5) -23>Emitted(56, 73) Source(4, 21) + SourceIndex(5) -24>Emitted(56, 74) Source(4, 48) + SourceIndex(5) -25>Emitted(56, 75) Source(4, 49) + SourceIndex(5) +1->Emitted(79, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(79, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(79, 14) Source(4, 24) + SourceIndex(5) +4 >Emitted(79, 16) Source(4, 26) + SourceIndex(5) +5 >Emitted(79, 17) Source(4, 27) + SourceIndex(5) +6 >Emitted(79, 19) Source(4, 29) + SourceIndex(5) +7 >Emitted(79, 21) Source(4, 31) + SourceIndex(5) +8 >Emitted(79, 23) Source(4, 33) + SourceIndex(5) +9 >Emitted(79, 24) Source(4, 34) + SourceIndex(5) +10>Emitted(79, 26) Source(4, 36) + SourceIndex(5) +11>Emitted(79, 28) Source(4, 38) + SourceIndex(5) +12>Emitted(79, 30) Source(4, 40) + SourceIndex(5) +13>Emitted(79, 32) Source(4, 42) + SourceIndex(5) +14>Emitted(79, 34) Source(4, 44) + SourceIndex(5) +15>Emitted(79, 36) Source(4, 46) + SourceIndex(5) +16>Emitted(79, 38) Source(4, 48) + SourceIndex(5) +17>Emitted(79, 40) Source(4, 9) + SourceIndex(5) +18>Emitted(79, 41) Source(4, 10) + SourceIndex(5) +19>Emitted(79, 48) Source(4, 10) + SourceIndex(5) +20>Emitted(79, 50) Source(4, 15) + SourceIndex(5) +21>Emitted(79, 54) Source(4, 19) + SourceIndex(5) +22>Emitted(79, 68) Source(4, 7) + SourceIndex(5) +23>Emitted(79, 73) Source(4, 21) + SourceIndex(5) +24>Emitted(79, 74) Source(4, 48) + SourceIndex(5) +25>Emitted(79, 75) Source(4, 49) + SourceIndex(5) --- >>>} 1 > @@ -3038,8 +3452,8 @@ sourceFile:../../third_part1.ts 1 > > 2 >} -1 >Emitted(57, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(57, 2) Source(5, 2) + SourceIndex(5) +1 >Emitted(80, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(80, 2) Source(5, 2) + SourceIndex(5) --- >>>function thirdthird_part1Spread() { 1-> @@ -3049,9 +3463,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > thirdthird_part1Spread -1->Emitted(58, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(58, 10) Source(6, 10) + SourceIndex(5) -3 >Emitted(58, 32) Source(6, 32) + SourceIndex(5) +1->Emitted(81, 1) Source(6, 1) + SourceIndex(5) +2 >Emitted(81, 10) Source(6, 10) + SourceIndex(5) +3 >Emitted(81, 32) Source(6, 32) + SourceIndex(5) --- >>> var b = []; 1 >^^^^ @@ -3059,8 +3473,8 @@ sourceFile:../../third_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(59, 5) Source(6, 33) + SourceIndex(5) -2 >Emitted(59, 16) Source(6, 47) + SourceIndex(5) +1 >Emitted(82, 5) Source(6, 33) + SourceIndex(5) +2 >Emitted(82, 16) Source(6, 47) + SourceIndex(5) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -3075,66 +3489,88 @@ sourceFile:../../third_part1.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(60, 10) Source(6, 33) + SourceIndex(5) -2 >Emitted(60, 20) Source(6, 47) + SourceIndex(5) -3 >Emitted(60, 22) Source(6, 33) + SourceIndex(5) -4 >Emitted(60, 43) Source(6, 47) + SourceIndex(5) -5 >Emitted(60, 45) Source(6, 33) + SourceIndex(5) -6 >Emitted(60, 49) Source(6, 47) + SourceIndex(5) +1->Emitted(83, 10) Source(6, 33) + SourceIndex(5) +2 >Emitted(83, 20) Source(6, 47) + SourceIndex(5) +3 >Emitted(83, 22) Source(6, 33) + SourceIndex(5) +4 >Emitted(83, 43) Source(6, 47) + SourceIndex(5) +5 >Emitted(83, 45) Source(6, 33) + SourceIndex(5) +6 >Emitted(83, 49) Source(6, 47) + SourceIndex(5) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(61, 9) Source(6, 33) + SourceIndex(5) -2 >Emitted(61, 31) Source(6, 47) + SourceIndex(5) +1 >Emitted(84, 9) Source(6, 33) + SourceIndex(5) +2 >Emitted(84, 31) Source(6, 47) + SourceIndex(5) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(63, 1) Source(6, 51) + SourceIndex(5) -2 >Emitted(63, 2) Source(6, 52) + SourceIndex(5) +1 >Emitted(86, 1) Source(6, 51) + SourceIndex(5) +2 >Emitted(86, 2) Source(6, 52) + SourceIndex(5) --- ->>>thirdthird_part1Spread.apply(void 0, [10, 20, 30]); +>>>var thirdthird_part1_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > thirdthird_part1_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(87, 1) Source(7, 1) + SourceIndex(5) +2 >Emitted(87, 5) Source(7, 7) + SourceIndex(5) +3 >Emitted(87, 24) Source(7, 26) + SourceIndex(5) +4 >Emitted(87, 27) Source(7, 29) + SourceIndex(5) +5 >Emitted(87, 28) Source(7, 30) + SourceIndex(5) +6 >Emitted(87, 30) Source(7, 32) + SourceIndex(5) +7 >Emitted(87, 32) Source(7, 34) + SourceIndex(5) +8 >Emitted(87, 34) Source(7, 36) + SourceIndex(5) +9 >Emitted(87, 35) Source(7, 37) + SourceIndex(5) +10>Emitted(87, 36) Source(7, 38) + SourceIndex(5) +--- +>>>thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar))); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >thirdthird_part1Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(64, 1) Source(7, 1) + SourceIndex(5) -2 >Emitted(64, 23) Source(7, 23) + SourceIndex(5) -3 >Emitted(64, 38) Source(7, 27) + SourceIndex(5) -4 >Emitted(64, 39) Source(7, 28) + SourceIndex(5) -5 >Emitted(64, 41) Source(7, 30) + SourceIndex(5) -6 >Emitted(64, 43) Source(7, 32) + SourceIndex(5) -7 >Emitted(64, 45) Source(7, 34) + SourceIndex(5) -8 >Emitted(64, 47) Source(7, 36) + SourceIndex(5) -9 >Emitted(64, 49) Source(7, 38) + SourceIndex(5) -10>Emitted(64, 50) Source(7, 39) + SourceIndex(5) -11>Emitted(64, 52) Source(7, 41) + SourceIndex(5) +3 > ( +4 > 10 +5 > , ... +6 > thirdthird_part1_ar +7 > ); +1->Emitted(88, 1) Source(8, 1) + SourceIndex(5) +2 >Emitted(88, 23) Source(8, 23) + SourceIndex(5) +3 >Emitted(88, 53) Source(8, 24) + SourceIndex(5) +4 >Emitted(88, 55) Source(8, 26) + SourceIndex(5) +5 >Emitted(88, 65) Source(8, 31) + SourceIndex(5) +6 >Emitted(88, 84) Source(8, 50) + SourceIndex(5) +7 >Emitted(88, 88) Source(8, 52) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map @@ -3155,39 +3591,53 @@ sourceFile:../../third_part1.ts }, { "pos": 502, - "end": 931, + "end": 1006, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 1008, + "end": 1199, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 1201, + "end": 1703, "kind": "prepend", "data": "../../../first/bin/first-output.js", "texts": [ { - "pos": 502, - "end": 931, + "pos": 1201, + "end": 1703, "kind": "text" } ] }, { - "pos": 931, - "end": 1541, + "pos": 1703, + "end": 2390, "kind": "prepend", "data": "../../../2/second-output.js", "texts": [ { - "pos": 931, - "end": 1541, + "pos": 1703, + "end": 2390, "kind": "text" } ] }, { - "pos": 1541, - "end": 1896, + "pos": 2390, + "end": 2818, "kind": "text" } ], "sources": { "helpers": [ - "typescript:rest" + "typescript:rest", + "typescript:read", + "typescript:spreadArray" ] } }, @@ -3195,33 +3645,33 @@ sourceFile:../../third_part1.ts "sections": [ { "pos": 0, - "end": 272, + "end": 318, "kind": "prepend", "data": "../../../first/bin/first-output.d.ts", "texts": [ { "pos": 0, - "end": 272, + "end": 318, "kind": "text" } ] }, { - "pos": 272, - "end": 491, + "pos": 318, + "end": 585, "kind": "prepend", "data": "../../../2/second-output.d.ts", "texts": [ { - "pos": 272, - "end": 491, + "pos": 318, + "end": 585, "kind": "text" } ] }, { - "pos": 491, - "end": 625, + "pos": 585, + "end": 765, "kind": "text" } ] @@ -3247,9 +3697,34 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -prepend: (502-931):: ../../../first/bin/first-output.js texts:: 1 +emitHelpers: (502-1006):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (1008-1199):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +---------------------------------------------------------------------- +prepend: (1201-1703):: ../../../first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (502-931) +text: (1201-1703) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -3265,12 +3740,13 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, [10, 20, 30]); +var firstfirst_part3_ar = [20, 30]; +firstfirst_part3Spread.apply(void 0, __spreadArray([10], __read(firstfirst_part3_ar))); ---------------------------------------------------------------------- -prepend: (931-1541):: ../../../2/second-output.js texts:: 1 +prepend: (1703-2390):: ../../../2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (931-1541) +text: (1703-2390) var N; (function (N) { function f() { @@ -3295,10 +3771,11 @@ function secondsecond_part2Spread() { b[_i] = arguments[_i]; } } -secondsecond_part2Spread.apply(void 0, [10, 20, 30]); +var secondsecond_part2_ar = [20, 30]; +secondsecond_part2Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part2_ar))); ---------------------------------------------------------------------- -text: (1541-1896) +text: (2390-2818) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { @@ -3310,15 +3787,16 @@ function thirdthird_part1Spread() { b[_i] = arguments[_i]; } } -thirdthird_part1Spread.apply(void 0, [10, 20, 30]); +var thirdthird_part1_ar = [20, 30]; +thirdthird_part1Spread.apply(void 0, __spreadArray([10], __read(thirdthird_part1_ar))); ====================================================================== ====================================================================== File:: /src/third/thirdjs/output/third-output.d.ts ---------------------------------------------------------------------- -prepend: (0-272):: ../../../first/bin/first-output.d.ts texts:: 1 +prepend: (0-318):: ../../../first/bin/first-output.d.ts texts:: 1 >>-------------------------------------------------------------------- -text: (0-272) +text: (0-318) interface TheFirst { none: any; } @@ -3329,11 +3807,12 @@ interface NoJsForHereEither { declare function forfirstfirst_PART1Rest(): void; declare function f(): string; declare function firstfirst_part3Spread(...b: number[]): void; +declare const firstfirst_part3_ar: number[]; ---------------------------------------------------------------------- -prepend: (272-491):: ../../../2/second-output.d.ts texts:: 1 +prepend: (318-585):: ../../../2/second-output.d.ts texts:: 1 >>-------------------------------------------------------------------- -text: (272-491) +text: (318-585) declare namespace N { } declare namespace N { @@ -3343,12 +3822,14 @@ declare class C { doSomething(): void; } declare function secondsecond_part2Spread(...b: number[]): void; +declare const secondsecond_part2_ar: number[]; ---------------------------------------------------------------------- -text: (491-625) +text: (585-765) declare var c: C; declare function forthirdthird_part1Rest(): void; declare function thirdthird_part1Spread(...b: number[]): void; +declare const thirdthird_part1_ar: number[]; ====================================================================== diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-different-projects.js index d3400f94cfcb8..7821963c47a53 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-build/multiple-emitHelpers-in-different-projects.js @@ -76,7 +76,8 @@ namespace N { } function secondsecond_part1Spread(...b: number[]) { } -secondsecond_part1Spread(...[10, 20, 30]); +const secondsecond_part1_ar = [20, 30]; +secondsecond_part1Spread(10, ...secondsecond_part1_ar); //// [/src/second/second_part2.ts] class C { @@ -167,13 +168,14 @@ declare namespace N { declare namespace N { } declare function secondsecond_part1Spread(...b: number[]): void; +declare const secondsecond_part1_ar: number[]; 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;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACZrD,cAAM,CAAC;IACH,WAAW;CAGd"} +{"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;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd"} //// [/src/2/second-output.d.ts.map.baseline.txt] =================================================================== @@ -267,6 +269,27 @@ sourceFile:../second/second_part1.ts 8 >Emitted(5, 57) Source(13, 49) + SourceIndex(0) 9 >Emitted(5, 65) Source(13, 54) + SourceIndex(0) --- +>>>declare const secondsecond_part1_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > secondsecond_part1_ar +5 > = [20, 30] +6 > ; +1 >Emitted(6, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(6, 9) Source(14, 1) + SourceIndex(0) +3 >Emitted(6, 15) Source(14, 7) + SourceIndex(0) +4 >Emitted(6, 36) Source(14, 28) + SourceIndex(0) +5 >Emitted(6, 46) Source(14, 39) + SourceIndex(0) +6 >Emitted(6, 47) Source(14, 40) + SourceIndex(0) +--- ------------------------------------------------------------------- emittedFile:/src/2/second-output.d.ts sourceFile:../second/second_part2.ts @@ -279,9 +302,9 @@ sourceFile:../second/second_part2.ts 1 > 2 >class 3 > C -1 >Emitted(6, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(6, 15) Source(1, 7) + SourceIndex(1) -3 >Emitted(6, 16) Source(1, 8) + SourceIndex(1) +1 >Emitted(7, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(7, 15) Source(1, 7) + SourceIndex(1) +3 >Emitted(7, 16) Source(1, 8) + SourceIndex(1) --- >>> doSomething(): void; 1->^^^^ @@ -289,8 +312,8 @@ sourceFile:../second/second_part2.ts 1-> { > 2 > doSomething -1->Emitted(7, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(7, 16) Source(2, 16) + SourceIndex(1) +1->Emitted(8, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(8, 16) Source(2, 16) + SourceIndex(1) --- >>>} 1 >^ @@ -299,11 +322,32 @@ sourceFile:../second/second_part2.ts > console.log("something got done"); > } >} -1 >Emitted(8, 2) Source(5, 2) + SourceIndex(1) +1 >Emitted(9, 2) Source(5, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=second-output.d.ts.map //// [/src/2/second-output.js] +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; var N; (function (N) { function f() { @@ -317,7 +361,8 @@ function secondsecond_part1Spread() { b[_i] = arguments[_i]; } } -secondsecond_part1Spread.apply(void 0, [10, 20, 30]); +var secondsecond_part1_ar = [20, 30]; +secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar))); var C = (function () { function C() { } @@ -329,7 +374,7 @@ var C = (function () { //# 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;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;ACb1C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC"} +{"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;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,IAAE;ACdvD;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] =================================================================== @@ -342,6 +387,27 @@ sources: ../second/second_part1.ts,../second/second_part2.ts emittedFile:/src/2/second-output.js sourceFile:../second/second_part1.ts ------------------------------------------------------------------- +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spreadArray = (this && this.__spreadArray) || function (to, from) { +>>> for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) +>>> to[j] = from[i]; +>>> return to; +>>>}; >>>var N; 1 > 2 >^^^^ @@ -362,10 +428,10 @@ sourceFile:../second/second_part1.ts > > 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) +1 >Emitted(22, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(22, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(22, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(22, 7) Source(11, 2) + SourceIndex(0) --- >>>(function (N) { 1-> @@ -375,9 +441,9 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(23, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(23, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(23, 13) Source(5, 12) + SourceIndex(0) --- >>> function f() { 1->^^^^ @@ -388,9 +454,9 @@ sourceFile:../second/second_part1.ts > 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) +1->Emitted(24, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(24, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(24, 15) Source(6, 15) + SourceIndex(0) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -410,14 +476,14 @@ sourceFile:../second/second_part1.ts 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->Emitted(25, 9) Source(7, 9) + SourceIndex(0) +2 >Emitted(25, 16) Source(7, 16) + SourceIndex(0) +3 >Emitted(25, 17) Source(7, 17) + SourceIndex(0) +4 >Emitted(25, 20) Source(7, 20) + SourceIndex(0) +5 >Emitted(25, 21) Source(7, 21) + SourceIndex(0) +6 >Emitted(25, 30) Source(7, 30) + SourceIndex(0) +7 >Emitted(25, 31) Source(7, 31) + SourceIndex(0) +8 >Emitted(25, 32) Source(7, 32) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -426,8 +492,8 @@ sourceFile:../second/second_part1.ts 1 > > 2 > } -1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) +1 >Emitted(26, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(26, 6) Source(8, 6) + SourceIndex(0) --- >>> f(); 1->^^^^ @@ -441,10 +507,10 @@ sourceFile:../second/second_part1.ts 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) +1->Emitted(27, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(27, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(27, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(27, 9) Source(10, 9) + SourceIndex(0) --- >>>})(N || (N = {})); 1-> @@ -469,13 +535,13 @@ sourceFile:../second/second_part1.ts > > 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) +1->Emitted(28, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(28, 2) Source(11, 2) + SourceIndex(0) +3 >Emitted(28, 4) Source(5, 11) + SourceIndex(0) +4 >Emitted(28, 5) Source(5, 12) + SourceIndex(0) +5 >Emitted(28, 10) Source(5, 11) + SourceIndex(0) +6 >Emitted(28, 11) Source(5, 12) + SourceIndex(0) +7 >Emitted(28, 19) Source(11, 2) + SourceIndex(0) --- >>>function secondsecond_part1Spread() { 1-> @@ -486,9 +552,9 @@ sourceFile:../second/second_part1.ts > 2 >function 3 > secondsecond_part1Spread -1->Emitted(8, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(8, 10) Source(13, 10) + SourceIndex(0) -3 >Emitted(8, 34) Source(13, 34) + SourceIndex(0) +1->Emitted(29, 1) Source(13, 1) + SourceIndex(0) +2 >Emitted(29, 10) Source(13, 10) + SourceIndex(0) +3 >Emitted(29, 34) Source(13, 34) + SourceIndex(0) --- >>> var b = []; 1 >^^^^ @@ -496,8 +562,8 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(9, 5) Source(13, 35) + SourceIndex(0) -2 >Emitted(9, 16) Source(13, 49) + SourceIndex(0) +1 >Emitted(30, 5) Source(13, 35) + SourceIndex(0) +2 >Emitted(30, 16) Source(13, 49) + SourceIndex(0) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -512,66 +578,88 @@ sourceFile:../second/second_part1.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(10, 10) Source(13, 35) + SourceIndex(0) -2 >Emitted(10, 20) Source(13, 49) + SourceIndex(0) -3 >Emitted(10, 22) Source(13, 35) + SourceIndex(0) -4 >Emitted(10, 43) Source(13, 49) + SourceIndex(0) -5 >Emitted(10, 45) Source(13, 35) + SourceIndex(0) -6 >Emitted(10, 49) Source(13, 49) + SourceIndex(0) +1->Emitted(31, 10) Source(13, 35) + SourceIndex(0) +2 >Emitted(31, 20) Source(13, 49) + SourceIndex(0) +3 >Emitted(31, 22) Source(13, 35) + SourceIndex(0) +4 >Emitted(31, 43) Source(13, 49) + SourceIndex(0) +5 >Emitted(31, 45) Source(13, 35) + SourceIndex(0) +6 >Emitted(31, 49) Source(13, 49) + SourceIndex(0) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(11, 9) Source(13, 35) + SourceIndex(0) -2 >Emitted(11, 31) Source(13, 49) + SourceIndex(0) +1 >Emitted(32, 9) Source(13, 35) + SourceIndex(0) +2 >Emitted(32, 31) Source(13, 49) + SourceIndex(0) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(13, 1) Source(13, 53) + SourceIndex(0) -2 >Emitted(13, 2) Source(13, 54) + SourceIndex(0) +1 >Emitted(34, 1) Source(13, 53) + SourceIndex(0) +2 >Emitted(34, 2) Source(13, 54) + SourceIndex(0) --- ->>>secondsecond_part1Spread.apply(void 0, [10, 20, 30]); +>>>var secondsecond_part1_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > secondsecond_part1_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(35, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(35, 5) Source(14, 7) + SourceIndex(0) +3 >Emitted(35, 26) Source(14, 28) + SourceIndex(0) +4 >Emitted(35, 29) Source(14, 31) + SourceIndex(0) +5 >Emitted(35, 30) Source(14, 32) + SourceIndex(0) +6 >Emitted(35, 32) Source(14, 34) + SourceIndex(0) +7 >Emitted(35, 34) Source(14, 36) + SourceIndex(0) +8 >Emitted(35, 36) Source(14, 38) + SourceIndex(0) +9 >Emitted(35, 37) Source(14, 39) + SourceIndex(0) +10>Emitted(35, 38) Source(14, 40) + SourceIndex(0) +--- +>>>secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar))); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >secondsecond_part1Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(14, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(14, 25) Source(14, 25) + SourceIndex(0) -3 >Emitted(14, 40) Source(14, 29) + SourceIndex(0) -4 >Emitted(14, 41) Source(14, 30) + SourceIndex(0) -5 >Emitted(14, 43) Source(14, 32) + SourceIndex(0) -6 >Emitted(14, 45) Source(14, 34) + SourceIndex(0) -7 >Emitted(14, 47) Source(14, 36) + SourceIndex(0) -8 >Emitted(14, 49) Source(14, 38) + SourceIndex(0) -9 >Emitted(14, 51) Source(14, 40) + SourceIndex(0) -10>Emitted(14, 52) Source(14, 41) + SourceIndex(0) -11>Emitted(14, 54) Source(14, 43) + SourceIndex(0) +3 > ( +4 > 10 +5 > , ... +6 > secondsecond_part1_ar +7 > ); +1->Emitted(36, 1) Source(15, 1) + SourceIndex(0) +2 >Emitted(36, 25) Source(15, 25) + SourceIndex(0) +3 >Emitted(36, 55) Source(15, 26) + SourceIndex(0) +4 >Emitted(36, 57) Source(15, 28) + SourceIndex(0) +5 >Emitted(36, 67) Source(15, 33) + SourceIndex(0) +6 >Emitted(36, 88) Source(15, 54) + SourceIndex(0) +7 >Emitted(36, 92) Source(15, 56) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.js @@ -581,13 +669,13 @@ sourceFile:../second/second_part2.ts 1 > 2 >^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(15, 1) Source(1, 1) + SourceIndex(1) +1 >Emitted(37, 1) Source(1, 1) + SourceIndex(1) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(16, 5) Source(1, 1) + SourceIndex(1) +1->Emitted(38, 5) Source(1, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -599,8 +687,8 @@ sourceFile:../second/second_part2.ts > } > 2 > } -1->Emitted(17, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) +1->Emitted(39, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(39, 6) Source(5, 2) + SourceIndex(1) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -610,9 +698,9 @@ sourceFile:../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(18, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(18, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(18, 31) Source(2, 5) + SourceIndex(1) +1->Emitted(40, 5) Source(2, 5) + SourceIndex(1) +2 >Emitted(40, 28) Source(2, 16) + SourceIndex(1) +3 >Emitted(40, 31) Source(2, 5) + SourceIndex(1) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -632,14 +720,14 @@ sourceFile:../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(19, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(19, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(19, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(19, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(19, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(19, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(19, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(19, 43) Source(3, 43) + SourceIndex(1) +1->Emitted(41, 9) Source(3, 9) + SourceIndex(1) +2 >Emitted(41, 16) Source(3, 16) + SourceIndex(1) +3 >Emitted(41, 17) Source(3, 17) + SourceIndex(1) +4 >Emitted(41, 20) Source(3, 20) + SourceIndex(1) +5 >Emitted(41, 21) Source(3, 21) + SourceIndex(1) +6 >Emitted(41, 41) Source(3, 41) + SourceIndex(1) +7 >Emitted(41, 42) Source(3, 42) + SourceIndex(1) +8 >Emitted(41, 43) Source(3, 43) + SourceIndex(1) --- >>> }; 1 >^^^^ @@ -648,8 +736,8 @@ sourceFile:../second/second_part2.ts 1 > > 2 > } -1 >Emitted(20, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(20, 6) Source(4, 6) + SourceIndex(1) +1 >Emitted(42, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(42, 6) Source(4, 6) + SourceIndex(1) --- >>> return C; 1->^^^^ @@ -657,8 +745,8 @@ sourceFile:../second/second_part2.ts 1-> > 2 > } -1->Emitted(21, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(21, 13) Source(5, 2) + SourceIndex(1) +1->Emitted(43, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(43, 13) Source(5, 2) + SourceIndex(1) --- >>>}()); 1 > @@ -674,10 +762,10 @@ sourceFile:../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(22, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(22, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(22, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(22, 6) Source(5, 2) + SourceIndex(1) +1 >Emitted(44, 1) Source(5, 1) + SourceIndex(1) +2 >Emitted(44, 2) Source(5, 2) + SourceIndex(1) +3 >Emitted(44, 2) Source(1, 1) + SourceIndex(1) +4 >Emitted(44, 6) Source(5, 2) + SourceIndex(1) --- >>>//# sourceMappingURL=second-output.js.map @@ -693,16 +781,34 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, - "end": 491, + "end": 504, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 506, + "end": 697, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 699, + "end": 1267, "kind": "text" } - ] + ], + "sources": { + "helpers": [ + "typescript:read", + "typescript:spreadArray" + ] + } }, "dts": { "sections": [ { "pos": 0, - "end": 166, + "end": 214, "kind": "text" } ] @@ -715,7 +821,32 @@ sourceFile:../second/second_part2.ts ====================================================================== File:: /src/2/second-output.js ---------------------------------------------------------------------- -text: (0-491) +emitHelpers: (0-504):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (506-697):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +---------------------------------------------------------------------- +text: (699-1267) var N; (function (N) { function f() { @@ -729,7 +860,8 @@ function secondsecond_part1Spread() { b[_i] = arguments[_i]; } } -secondsecond_part1Spread.apply(void 0, [10, 20, 30]); +var secondsecond_part1_ar = [20, 30]; +secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar))); var C = (function () { function C() { } @@ -743,12 +875,13 @@ var C = (function () { ====================================================================== File:: /src/2/second-output.d.ts ---------------------------------------------------------------------- -text: (0-166) +text: (0-214) declare namespace N { } declare namespace N { } declare function secondsecond_part1Spread(...b: number[]): void; +declare const secondsecond_part1_ar: number[]; declare class C { doSomething(): void; } @@ -1303,6 +1436,7 @@ declare namespace N { declare namespace N { } declare function secondsecond_part1Spread(...b: number[]): void; +declare const secondsecond_part1_ar: number[]; declare class C { doSomething(): void; } @@ -1311,7 +1445,7 @@ declare function forthirdthird_part1Rest(): void; //# sourceMappingURL=third-output.d.ts.map //// [/src/third/thirdjs/output/third-output.d.ts.map] -{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;ACZrD,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} +{"version":3,"file":"third-output.d.ts","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,QAAA,MAAM,CAAC,iBAAiB,CAAC;AAEzB,UAAU,iBAAiB;IACvB,IAAI,EAAE,GAAG,CAAC;CACb;AAGD,iBAAS,uBAAuB,SAE/B;ACbD,iBAAS,CAAC,WAET;ACFD,kBAAU,CAAC,CAAC;CAEX;AAED,kBAAU,CAAC,CAAC;CAMX;AAED,iBAAS,wBAAwB,CAAC,GAAG,GAAG,MAAM,EAAE,QAAK;AACrD,QAAA,MAAM,qBAAqB,UAAW,CAAC;ACbvC,cAAM,CAAC;IACH,WAAW;CAGd;ACJD,QAAA,IAAI,CAAC,GAAU,CAAC;AAEhB,iBAAS,uBAAuB,SAE/B"} //// [/src/third/thirdjs/output/third-output.d.ts.map.baseline.txt] =================================================================== @@ -1544,6 +1678,27 @@ sourceFile:../../../second/second_part1.ts 8 >Emitted(14, 57) Source(13, 49) + SourceIndex(2) 9 >Emitted(14, 65) Source(13, 54) + SourceIndex(2) --- +>>>declare const secondsecond_part1_ar: number[]; +1 > +2 >^^^^^^^^ +3 > ^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^ +5 > ^^^^^^^^^^ +6 > ^ +1 > + > +2 > +3 > const +4 > secondsecond_part1_ar +5 > = [20, 30] +6 > ; +1 >Emitted(15, 1) Source(14, 1) + SourceIndex(2) +2 >Emitted(15, 9) Source(14, 1) + SourceIndex(2) +3 >Emitted(15, 15) Source(14, 7) + SourceIndex(2) +4 >Emitted(15, 36) Source(14, 28) + SourceIndex(2) +5 >Emitted(15, 46) Source(14, 39) + SourceIndex(2) +6 >Emitted(15, 47) Source(14, 40) + SourceIndex(2) +--- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.d.ts sourceFile:../../../second/second_part2.ts @@ -1556,9 +1711,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->^^^^ @@ -1566,8 +1721,8 @@ 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 >^ @@ -1576,7 +1731,7 @@ sourceFile:../../../second/second_part2.ts > 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 @@ -1596,12 +1751,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(19, 1) Source(1, 1) + SourceIndex(4) +2 >Emitted(19, 9) Source(1, 1) + SourceIndex(4) +3 >Emitted(19, 13) Source(1, 5) + SourceIndex(4) +4 >Emitted(19, 14) Source(1, 6) + SourceIndex(4) +5 >Emitted(19, 17) Source(1, 16) + SourceIndex(4) +6 >Emitted(19, 18) Source(1, 17) + SourceIndex(4) --- >>>declare function forthirdthird_part1Rest(): void; 1-> @@ -1616,10 +1771,10 @@ sourceFile:../../third_part1.ts 4 > () { > const { b, ...rest } = { a: 10, b: 30, yy: 30 }; > } -1->Emitted(19, 1) Source(3, 1) + SourceIndex(4) -2 >Emitted(19, 18) Source(3, 10) + SourceIndex(4) -3 >Emitted(19, 41) Source(3, 33) + SourceIndex(4) -4 >Emitted(19, 50) Source(5, 2) + SourceIndex(4) +1->Emitted(20, 1) Source(3, 1) + SourceIndex(4) +2 >Emitted(20, 18) Source(3, 10) + SourceIndex(4) +3 >Emitted(20, 41) Source(3, 33) + SourceIndex(4) +4 >Emitted(20, 50) Source(5, 2) + SourceIndex(4) --- >>>//# sourceMappingURL=third-output.d.ts.map @@ -1635,6 +1790,27 @@ var __rest = (this && this.__rest) || function (s, e) { } return t; }; +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -1657,7 +1833,8 @@ function secondsecond_part1Spread() { b[_i] = arguments[_i]; } } -secondsecond_part1Spread.apply(void 0, [10, 20, 30]); +var secondsecond_part1_ar = [20, 30]; +secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar))); var C = (function () { function C() { } @@ -1674,7 +1851,7 @@ function forthirdthird_part1Rest() { //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,eAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;ACb1C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,IAAM,qBAAqB,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AACvC,wBAAwB,8BAAC,EAAE,UAAK,qBAAqB,IAAE;ACdvD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,KAAiB,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAvC,CAAC,OAAA,EAAK,IAAI,cAAZ,KAAc,CAA2B,CAAC;AAChD,CAAC"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -1698,6 +1875,27 @@ sourceFile:../../../first/first_PART1.ts >>> } >>> return t; >>>}; +>>>var __read = (this && this.__read) || function (o, n) { +>>> var m = typeof Symbol === "function" && o[Symbol.iterator]; +>>> if (!m) return o; +>>> var i = m.call(o), r, ar = [], e; +>>> try { +>>> while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); +>>> } +>>> catch (error) { e = { error: error }; } +>>> finally { +>>> try { +>>> if (r && !r.done && (m = i["return"])) m.call(i); +>>> } +>>> finally { if (e) throw e.error; } +>>> } +>>> return ar; +>>>}; +>>>var __spreadArray = (this && this.__spreadArray) || function (to, from) { +>>> for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) +>>> to[j] = from[i]; +>>> return to; +>>>}; >>>var s = "Hello, world"; 1 > 2 >^^^^ @@ -1715,12 +1913,12 @@ sourceFile:../../../first/first_PART1.ts 4 > = 5 > "Hello, world" 6 > ; -1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) +1 >Emitted(33, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(33, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(33, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(33, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(33, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(33, 24) Source(5, 26) + SourceIndex(0) --- >>>console.log(s); 1 > @@ -1746,14 +1944,14 @@ sourceFile:../../../first/first_PART1.ts 6 > s 7 > ) 8 > ; -1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) +1 >Emitted(34, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(34, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(34, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(34, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(34, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(34, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(34, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(34, 16) Source(11, 16) + SourceIndex(0) --- >>>function forfirstfirst_PART1Rest() { 1-> @@ -1764,9 +1962,9 @@ sourceFile:../../../first/first_PART1.ts > 2 >function 3 > forfirstfirst_PART1Rest -1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +1->Emitted(35, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(35, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(35, 33) Source(12, 33) + SourceIndex(0) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -1820,31 +2018,31 @@ sourceFile:../../../first/first_PART1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(15, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(15, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(15, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(15, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(15, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(15, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(15, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(15, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(15, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(15, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(15, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(15, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(15, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(15, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(15, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(15, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(15, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(15, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(15, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(15, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(15, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(15, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(15, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(15, 75) Source(13, 49) + SourceIndex(0) +1->Emitted(36, 5) Source(13, 1) + SourceIndex(0) +2 >Emitted(36, 9) Source(13, 7) + SourceIndex(0) +3 >Emitted(36, 14) Source(13, 24) + SourceIndex(0) +4 >Emitted(36, 16) Source(13, 26) + SourceIndex(0) +5 >Emitted(36, 17) Source(13, 27) + SourceIndex(0) +6 >Emitted(36, 19) Source(13, 29) + SourceIndex(0) +7 >Emitted(36, 21) Source(13, 31) + SourceIndex(0) +8 >Emitted(36, 23) Source(13, 33) + SourceIndex(0) +9 >Emitted(36, 24) Source(13, 34) + SourceIndex(0) +10>Emitted(36, 26) Source(13, 36) + SourceIndex(0) +11>Emitted(36, 28) Source(13, 38) + SourceIndex(0) +12>Emitted(36, 30) Source(13, 40) + SourceIndex(0) +13>Emitted(36, 32) Source(13, 42) + SourceIndex(0) +14>Emitted(36, 34) Source(13, 44) + SourceIndex(0) +15>Emitted(36, 36) Source(13, 46) + SourceIndex(0) +16>Emitted(36, 38) Source(13, 48) + SourceIndex(0) +17>Emitted(36, 40) Source(13, 9) + SourceIndex(0) +18>Emitted(36, 41) Source(13, 10) + SourceIndex(0) +19>Emitted(36, 48) Source(13, 10) + SourceIndex(0) +20>Emitted(36, 50) Source(13, 15) + SourceIndex(0) +21>Emitted(36, 54) Source(13, 19) + SourceIndex(0) +22>Emitted(36, 68) Source(13, 7) + SourceIndex(0) +23>Emitted(36, 73) Source(13, 21) + SourceIndex(0) +24>Emitted(36, 74) Source(13, 48) + SourceIndex(0) +25>Emitted(36, 75) Source(13, 49) + SourceIndex(0) --- >>>} 1 > @@ -1853,8 +2051,8 @@ sourceFile:../../../first/first_PART1.ts 1 > > 2 >} -1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) +1 >Emitted(37, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(37, 2) Source(14, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1879,15 +2077,15 @@ sourceFile:../../../first/first_part2.ts 7 > () 8 > ) 9 > ; -1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) +1->Emitted(38, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(38, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(38, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(38, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(38, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(38, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(38, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(38, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(38, 18) Source(1, 18) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1901,9 +2099,9 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) +1 >Emitted(39, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(39, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(39, 11) Source(1, 11) + SourceIndex(2) --- >>> return "JS does hoists"; 1->^^^^ @@ -1915,10 +2113,10 @@ sourceFile:../../../first/first_part3.ts 2 > return 3 > "JS does hoists" 4 > ; -1->Emitted(19, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2) +1->Emitted(40, 5) Source(2, 5) + SourceIndex(2) +2 >Emitted(40, 12) Source(2, 12) + SourceIndex(2) +3 >Emitted(40, 28) Source(2, 28) + SourceIndex(2) +4 >Emitted(40, 29) Source(2, 29) + SourceIndex(2) --- >>>} 1 > @@ -1927,8 +2125,8 @@ sourceFile:../../../first/first_part3.ts 1 > > 2 >} -1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(41, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(41, 2) Source(3, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1954,10 +2152,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(21, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(21, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(21, 7) Source(11, 2) + SourceIndex(3) +1->Emitted(42, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(42, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(42, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(42, 7) Source(11, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -1967,9 +2165,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(22, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(22, 13) Source(5, 12) + SourceIndex(3) +1->Emitted(43, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(43, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(43, 13) Source(5, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -1980,9 +2178,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(23, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(23, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(23, 15) Source(6, 15) + SourceIndex(3) +1->Emitted(44, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(44, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(44, 15) Source(6, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -2002,14 +2200,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(24, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(24, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(24, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(24, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(24, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(24, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(24, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(24, 32) Source(7, 32) + SourceIndex(3) +1->Emitted(45, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(45, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(45, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(45, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(45, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(45, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(45, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(45, 32) Source(7, 32) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -2018,8 +2216,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(25, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(25, 6) Source(8, 6) + SourceIndex(3) +1 >Emitted(46, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(46, 6) Source(8, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -2033,10 +2231,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(26, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(26, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(26, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(26, 9) Source(10, 9) + SourceIndex(3) +1->Emitted(47, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(47, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(47, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(47, 9) Source(10, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -2061,13 +2259,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(27, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(27, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(27, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(27, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(27, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(27, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(27, 19) Source(11, 2) + SourceIndex(3) +1->Emitted(48, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(48, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(48, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(48, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(48, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(48, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(48, 19) Source(11, 2) + SourceIndex(3) --- >>>function secondsecond_part1Spread() { 1-> @@ -2078,9 +2276,9 @@ sourceFile:../../../second/second_part1.ts > 2 >function 3 > secondsecond_part1Spread -1->Emitted(28, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(28, 10) Source(13, 10) + SourceIndex(3) -3 >Emitted(28, 34) Source(13, 34) + SourceIndex(3) +1->Emitted(49, 1) Source(13, 1) + SourceIndex(3) +2 >Emitted(49, 10) Source(13, 10) + SourceIndex(3) +3 >Emitted(49, 34) Source(13, 34) + SourceIndex(3) --- >>> var b = []; 1 >^^^^ @@ -2088,8 +2286,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(29, 5) Source(13, 35) + SourceIndex(3) -2 >Emitted(29, 16) Source(13, 49) + SourceIndex(3) +1 >Emitted(50, 5) Source(13, 35) + SourceIndex(3) +2 >Emitted(50, 16) Source(13, 49) + SourceIndex(3) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -2104,66 +2302,88 @@ sourceFile:../../../second/second_part1.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(30, 10) Source(13, 35) + SourceIndex(3) -2 >Emitted(30, 20) Source(13, 49) + SourceIndex(3) -3 >Emitted(30, 22) Source(13, 35) + SourceIndex(3) -4 >Emitted(30, 43) Source(13, 49) + SourceIndex(3) -5 >Emitted(30, 45) Source(13, 35) + SourceIndex(3) -6 >Emitted(30, 49) Source(13, 49) + SourceIndex(3) +1->Emitted(51, 10) Source(13, 35) + SourceIndex(3) +2 >Emitted(51, 20) Source(13, 49) + SourceIndex(3) +3 >Emitted(51, 22) Source(13, 35) + SourceIndex(3) +4 >Emitted(51, 43) Source(13, 49) + SourceIndex(3) +5 >Emitted(51, 45) Source(13, 35) + SourceIndex(3) +6 >Emitted(51, 49) Source(13, 49) + SourceIndex(3) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(31, 9) Source(13, 35) + SourceIndex(3) -2 >Emitted(31, 31) Source(13, 49) + SourceIndex(3) +1 >Emitted(52, 9) Source(13, 35) + SourceIndex(3) +2 >Emitted(52, 31) Source(13, 49) + SourceIndex(3) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(33, 1) Source(13, 53) + SourceIndex(3) -2 >Emitted(33, 2) Source(13, 54) + SourceIndex(3) +1 >Emitted(54, 1) Source(13, 53) + SourceIndex(3) +2 >Emitted(54, 2) Source(13, 54) + SourceIndex(3) --- ->>>secondsecond_part1Spread.apply(void 0, [10, 20, 30]); +>>>var secondsecond_part1_ar = [20, 30]; +1-> +2 >^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^ +4 > ^^^ +5 > ^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^ +10> ^ +11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > +2 >const +3 > secondsecond_part1_ar +4 > = +5 > [ +6 > 20 +7 > , +8 > 30 +9 > ] +10> ; +1->Emitted(55, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(55, 5) Source(14, 7) + SourceIndex(3) +3 >Emitted(55, 26) Source(14, 28) + SourceIndex(3) +4 >Emitted(55, 29) Source(14, 31) + SourceIndex(3) +5 >Emitted(55, 30) Source(14, 32) + SourceIndex(3) +6 >Emitted(55, 32) Source(14, 34) + SourceIndex(3) +7 >Emitted(55, 34) Source(14, 36) + SourceIndex(3) +8 >Emitted(55, 36) Source(14, 38) + SourceIndex(3) +9 >Emitted(55, 37) Source(14, 39) + SourceIndex(3) +10>Emitted(55, 38) Source(14, 40) + SourceIndex(3) +--- +>>>secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar))); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +4 > ^^ +5 > ^^^^^^^^^^ +6 > ^^^^^^^^^^^^^^^^^^^^^ +7 > ^^^^ 1-> > 2 >secondsecond_part1Spread -3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(34, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(34, 25) Source(14, 25) + SourceIndex(3) -3 >Emitted(34, 40) Source(14, 29) + SourceIndex(3) -4 >Emitted(34, 41) Source(14, 30) + SourceIndex(3) -5 >Emitted(34, 43) Source(14, 32) + SourceIndex(3) -6 >Emitted(34, 45) Source(14, 34) + SourceIndex(3) -7 >Emitted(34, 47) Source(14, 36) + SourceIndex(3) -8 >Emitted(34, 49) Source(14, 38) + SourceIndex(3) -9 >Emitted(34, 51) Source(14, 40) + SourceIndex(3) -10>Emitted(34, 52) Source(14, 41) + SourceIndex(3) -11>Emitted(34, 54) Source(14, 43) + SourceIndex(3) +3 > ( +4 > 10 +5 > , ... +6 > secondsecond_part1_ar +7 > ); +1->Emitted(56, 1) Source(15, 1) + SourceIndex(3) +2 >Emitted(56, 25) Source(15, 25) + SourceIndex(3) +3 >Emitted(56, 55) Source(15, 26) + SourceIndex(3) +4 >Emitted(56, 57) Source(15, 28) + SourceIndex(3) +5 >Emitted(56, 67) Source(15, 33) + SourceIndex(3) +6 >Emitted(56, 88) Source(15, 54) + SourceIndex(3) +7 >Emitted(56, 92) Source(15, 56) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2173,13 +2393,13 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(35, 1) Source(1, 1) + SourceIndex(4) +1 >Emitted(57, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(36, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(58, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -2191,8 +2411,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(37, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(37, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(59, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(59, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -2202,9 +2422,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(38, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(38, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(38, 31) Source(2, 5) + SourceIndex(4) +1->Emitted(60, 5) Source(2, 5) + SourceIndex(4) +2 >Emitted(60, 28) Source(2, 16) + SourceIndex(4) +3 >Emitted(60, 31) Source(2, 5) + SourceIndex(4) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -2224,14 +2444,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(39, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(39, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(39, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(39, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(39, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(39, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(39, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(39, 43) Source(3, 43) + SourceIndex(4) +1->Emitted(61, 9) Source(3, 9) + SourceIndex(4) +2 >Emitted(61, 16) Source(3, 16) + SourceIndex(4) +3 >Emitted(61, 17) Source(3, 17) + SourceIndex(4) +4 >Emitted(61, 20) Source(3, 20) + SourceIndex(4) +5 >Emitted(61, 21) Source(3, 21) + SourceIndex(4) +6 >Emitted(61, 41) Source(3, 41) + SourceIndex(4) +7 >Emitted(61, 42) Source(3, 42) + SourceIndex(4) +8 >Emitted(61, 43) Source(3, 43) + SourceIndex(4) --- >>> }; 1 >^^^^ @@ -2240,8 +2460,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(40, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(40, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(62, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(62, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -2249,8 +2469,8 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(41, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(41, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(63, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(63, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > @@ -2266,10 +2486,10 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(42, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(42, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(42, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(42, 6) Source(5, 2) + SourceIndex(4) +1 >Emitted(64, 1) Source(5, 1) + SourceIndex(4) +2 >Emitted(64, 2) Source(5, 2) + SourceIndex(4) +3 >Emitted(64, 2) Source(1, 1) + SourceIndex(4) +4 >Emitted(64, 6) Source(5, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2293,14 +2513,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1->Emitted(43, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(43, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(43, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(43, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(43, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(43, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(43, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(43, 17) Source(1, 17) + SourceIndex(5) +1->Emitted(65, 1) Source(1, 1) + SourceIndex(5) +2 >Emitted(65, 5) Source(1, 5) + SourceIndex(5) +3 >Emitted(65, 6) Source(1, 6) + SourceIndex(5) +4 >Emitted(65, 9) Source(1, 9) + SourceIndex(5) +5 >Emitted(65, 13) Source(1, 13) + SourceIndex(5) +6 >Emitted(65, 14) Source(1, 14) + SourceIndex(5) +7 >Emitted(65, 16) Source(1, 16) + SourceIndex(5) +8 >Emitted(65, 17) Source(1, 17) + SourceIndex(5) --- >>>c.doSomething(); 1-> @@ -2317,12 +2537,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(44, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(44, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(44, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(44, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(44, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(44, 17) Source(2, 17) + SourceIndex(5) +1->Emitted(66, 1) Source(2, 1) + SourceIndex(5) +2 >Emitted(66, 2) Source(2, 2) + SourceIndex(5) +3 >Emitted(66, 3) Source(2, 3) + SourceIndex(5) +4 >Emitted(66, 14) Source(2, 14) + SourceIndex(5) +5 >Emitted(66, 16) Source(2, 16) + SourceIndex(5) +6 >Emitted(66, 17) Source(2, 17) + SourceIndex(5) --- >>>function forthirdthird_part1Rest() { 1-> @@ -2333,9 +2553,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > forthirdthird_part1Rest -1->Emitted(45, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(45, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(45, 33) Source(3, 33) + SourceIndex(5) +1->Emitted(67, 1) Source(3, 1) + SourceIndex(5) +2 >Emitted(67, 10) Source(3, 10) + SourceIndex(5) +3 >Emitted(67, 33) Source(3, 33) + SourceIndex(5) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -2389,31 +2609,31 @@ sourceFile:../../third_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(46, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(46, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(46, 14) Source(4, 24) + SourceIndex(5) -4 >Emitted(46, 16) Source(4, 26) + SourceIndex(5) -5 >Emitted(46, 17) Source(4, 27) + SourceIndex(5) -6 >Emitted(46, 19) Source(4, 29) + SourceIndex(5) -7 >Emitted(46, 21) Source(4, 31) + SourceIndex(5) -8 >Emitted(46, 23) Source(4, 33) + SourceIndex(5) -9 >Emitted(46, 24) Source(4, 34) + SourceIndex(5) -10>Emitted(46, 26) Source(4, 36) + SourceIndex(5) -11>Emitted(46, 28) Source(4, 38) + SourceIndex(5) -12>Emitted(46, 30) Source(4, 40) + SourceIndex(5) -13>Emitted(46, 32) Source(4, 42) + SourceIndex(5) -14>Emitted(46, 34) Source(4, 44) + SourceIndex(5) -15>Emitted(46, 36) Source(4, 46) + SourceIndex(5) -16>Emitted(46, 38) Source(4, 48) + SourceIndex(5) -17>Emitted(46, 40) Source(4, 9) + SourceIndex(5) -18>Emitted(46, 41) Source(4, 10) + SourceIndex(5) -19>Emitted(46, 48) Source(4, 10) + SourceIndex(5) -20>Emitted(46, 50) Source(4, 15) + SourceIndex(5) -21>Emitted(46, 54) Source(4, 19) + SourceIndex(5) -22>Emitted(46, 68) Source(4, 7) + SourceIndex(5) -23>Emitted(46, 73) Source(4, 21) + SourceIndex(5) -24>Emitted(46, 74) Source(4, 48) + SourceIndex(5) -25>Emitted(46, 75) Source(4, 49) + SourceIndex(5) +1->Emitted(68, 5) Source(4, 1) + SourceIndex(5) +2 >Emitted(68, 9) Source(4, 7) + SourceIndex(5) +3 >Emitted(68, 14) Source(4, 24) + SourceIndex(5) +4 >Emitted(68, 16) Source(4, 26) + SourceIndex(5) +5 >Emitted(68, 17) Source(4, 27) + SourceIndex(5) +6 >Emitted(68, 19) Source(4, 29) + SourceIndex(5) +7 >Emitted(68, 21) Source(4, 31) + SourceIndex(5) +8 >Emitted(68, 23) Source(4, 33) + SourceIndex(5) +9 >Emitted(68, 24) Source(4, 34) + SourceIndex(5) +10>Emitted(68, 26) Source(4, 36) + SourceIndex(5) +11>Emitted(68, 28) Source(4, 38) + SourceIndex(5) +12>Emitted(68, 30) Source(4, 40) + SourceIndex(5) +13>Emitted(68, 32) Source(4, 42) + SourceIndex(5) +14>Emitted(68, 34) Source(4, 44) + SourceIndex(5) +15>Emitted(68, 36) Source(4, 46) + SourceIndex(5) +16>Emitted(68, 38) Source(4, 48) + SourceIndex(5) +17>Emitted(68, 40) Source(4, 9) + SourceIndex(5) +18>Emitted(68, 41) Source(4, 10) + SourceIndex(5) +19>Emitted(68, 48) Source(4, 10) + SourceIndex(5) +20>Emitted(68, 50) Source(4, 15) + SourceIndex(5) +21>Emitted(68, 54) Source(4, 19) + SourceIndex(5) +22>Emitted(68, 68) Source(4, 7) + SourceIndex(5) +23>Emitted(68, 73) Source(4, 21) + SourceIndex(5) +24>Emitted(68, 74) Source(4, 48) + SourceIndex(5) +25>Emitted(68, 75) Source(4, 49) + SourceIndex(5) --- >>>} 1 > @@ -2422,8 +2642,8 @@ sourceFile:../../third_part1.ts 1 > > 2 >} -1 >Emitted(47, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(47, 2) Source(5, 2) + SourceIndex(5) +1 >Emitted(69, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(69, 2) Source(5, 2) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map @@ -2444,33 +2664,45 @@ sourceFile:../../third_part1.ts }, { "pos": 502, - "end": 729, + "end": 1006, + "kind": "emitHelpers", + "data": "typescript:read" + }, + { + "pos": 1008, + "end": 1199, + "kind": "emitHelpers", + "data": "typescript:spreadArray" + }, + { + "pos": 1201, + "end": 1428, "kind": "prepend", "data": "../../../first/bin/first-output.js", "texts": [ { - "pos": 502, - "end": 729, + "pos": 1201, + "end": 1428, "kind": "text" } ] }, { - "pos": 729, - "end": 1220, + "pos": 1428, + "end": 1996, "kind": "prepend", "data": "../../../2/second-output.js", "texts": [ { - "pos": 729, - "end": 1220, + "pos": 1428, + "end": 1996, "kind": "text" } ] }, { - "pos": 1220, - "end": 1373, + "pos": 1996, + "end": 2149, "kind": "text" } ], @@ -2497,20 +2729,20 @@ sourceFile:../../third_part1.ts }, { "pos": 208, - "end": 374, + "end": 422, "kind": "prepend", "data": "../../../2/second-output.d.ts", "texts": [ { "pos": 208, - "end": 374, + "end": 422, "kind": "text" } ] }, { - "pos": 374, - "end": 444, + "pos": 422, + "end": 492, "kind": "text" } ] @@ -2536,9 +2768,34 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -prepend: (502-729):: ../../../first/bin/first-output.js texts:: 1 +emitHelpers: (502-1006):: typescript:read +var __read = (this && this.__read) || function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +}; +---------------------------------------------------------------------- +emitHelpers: (1008-1199):: typescript:spreadArray +var __spreadArray = (this && this.__spreadArray) || function (to, from) { + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) + to[j] = from[i]; + return to; +}; +---------------------------------------------------------------------- +prepend: (1201-1428):: ../../../first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (502-729) +text: (1201-1428) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -2550,9 +2807,9 @@ function f() { } ---------------------------------------------------------------------- -prepend: (729-1220):: ../../../2/second-output.js texts:: 1 +prepend: (1428-1996):: ../../../2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (729-1220) +text: (1428-1996) var N; (function (N) { function f() { @@ -2566,7 +2823,8 @@ function secondsecond_part1Spread() { b[_i] = arguments[_i]; } } -secondsecond_part1Spread.apply(void 0, [10, 20, 30]); +var secondsecond_part1_ar = [20, 30]; +secondsecond_part1Spread.apply(void 0, __spreadArray([10], __read(secondsecond_part1_ar))); var C = (function () { function C() { } @@ -2577,7 +2835,7 @@ var C = (function () { }()); ---------------------------------------------------------------------- -text: (1220-1373) +text: (1996-2149) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { @@ -2602,20 +2860,21 @@ declare function forfirstfirst_PART1Rest(): void; declare function f(): string; ---------------------------------------------------------------------- -prepend: (208-374):: ../../../2/second-output.d.ts texts:: 1 +prepend: (208-422):: ../../../2/second-output.d.ts texts:: 1 >>-------------------------------------------------------------------- -text: (208-374) +text: (208-422) declare namespace N { } declare namespace N { } declare function secondsecond_part1Spread(...b: number[]): void; +declare const secondsecond_part1_ar: number[]; declare class C { doSomething(): void; } ---------------------------------------------------------------------- -text: (374-444) +text: (422-492) declare var c: C; declare function forthirdthird_part1Rest(): void;