From f9a05eba2621ba5538d06dbf0065e7632283766f Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Thu, 12 Nov 2020 17:27:41 -0800 Subject: [PATCH 1/2] Fix array spread with sideeffects --- src/compiler/checker.ts | 7 +- src/compiler/factory/emitHelpers.ts | 39 +- src/compiler/transformers/es2015.ts | 54 +- src/compiler/types.ts | 28 +- .../argumentExpressionContextualTyping.js | 12 +- .../arrayLiteralExpressionContextualTyping.js | 16 +- .../baselines/reference/arrayLiteralSpread.js | 28 +- .../arrayLiteralSpreadES5iterable.js | 29 +- .../baselines/reference/arrayLiterals2ES5.js | 36 +- tests/baselines/reference/arrayLiterals3.js | 16 +- tests/baselines/reference/callChain.js | 28 +- tests/baselines/reference/callOverload.js | 12 +- tests/baselines/reference/callWithSpread.js | 44 +- tests/baselines/reference/callWithSpread2.js | 26 +- tests/baselines/reference/callWithSpread3.js | 32 +- ...ingArrayBindingPatternAndAssignment1ES5.js | 12 +- ...BindingPatternAndAssignment1ES5iterable.js | 9 +- ...turingArrayBindingPatternAndAssignment2.js | 14 +- ...cturingParameterDeclaration3ES5iterable.js | 11 +- .../destructuringVariableDeclaration1ES5.js | 12 +- ...ucturingVariableDeclaration1ES5iterable.js | 9 +- .../es5-asyncFunctionArrayLiterals.js | 19 +- .../es5-asyncFunctionCallExpressions.js | 21 +- .../es5-asyncFunctionNewExpressions.js | 14 +- .../reference/genericRestParameters1.js | 52 +- .../reference/genericRestParameters2.js | 48 +- .../reference/genericRestParameters3.js | 18 +- .../reference/keyofAndIndexedAccess.js | 12 +- .../literalFreshnessPropagationOnNarrowing.js | 12 +- tests/baselines/reference/newWithSpread.js | 62 +- tests/baselines/reference/newWithSpreadES5.js | 62 +- tests/baselines/reference/noCrashOnNoLib.js | 12 +- .../operationsAvailableOnPromisedType.js | 12 +- .../reference/readonlyRestParameters.js | 16 +- .../reference/recursiveReverseMappedType.js | 12 +- .../reference/recursiveTypeReferences1.js | 12 +- .../restTuplesFromContextualTypes.js | 24 +- .../reference/selfReferencingSpreadInLoop.js | 12 +- tests/baselines/reference/spliceTuples.js | 22 +- .../spreadBooleanRespectsFreshness.js | 12 +- .../multiple-emitHelpers-in-all-projects.js | 812 ++++------ .../multiple-emitHelpers-in-all-projects.js | 680 +++----- .../multiple-emitHelpers-in-all-projects.js | 780 ++++----- .../multiple-emitHelpers-in-all-projects.js | 1108 ++++++------- ...tiple-emitHelpers-in-different-projects.js | 536 +++---- .../multiple-emitHelpers-in-all-projects.js | 986 +++++------- ...tiple-emitHelpers-in-different-projects.js | 476 +++--- .../multiple-emitHelpers-in-all-projects.js | 1424 +++++++---------- ...tiple-emitHelpers-in-different-projects.js | 812 ++++------ tests/baselines/reference/tsxEmit1.js | 14 +- tests/baselines/reference/tsxReactEmit1.js | 14 +- tests/baselines/reference/variadicTuples1.js | 854 +++++----- 52 files changed, 4025 insertions(+), 5399 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 57d4f4c422790..6407ac71f1c8c 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -24695,7 +24695,7 @@ namespace ts { function checkSpreadExpression(node: SpreadElement, checkMode?: CheckMode): Type { if (languageVersion < ScriptTarget.ES2015) { - checkExternalEmitHelpers(node, compilerOptions.downlevelIteration ? ExternalEmitHelpers.SpreadIncludes : ExternalEmitHelpers.SpreadArrays); + checkExternalEmitHelpers(node, compilerOptions.downlevelIteration ? ExternalEmitHelpers.SpreadIncludes : ExternalEmitHelpers.SpreadArray); } const arrayOrIterableType = checkExpression(node.expression, checkMode); @@ -24723,7 +24723,7 @@ namespace ts { const e = elements[i]; if (e.kind === SyntaxKind.SpreadElement) { if (languageVersion < ScriptTarget.ES2015) { - checkExternalEmitHelpers(e, compilerOptions.downlevelIteration ? ExternalEmitHelpers.SpreadIncludes : ExternalEmitHelpers.SpreadArrays); + checkExternalEmitHelpers(e, compilerOptions.downlevelIteration ? ExternalEmitHelpers.SpreadIncludes : ExternalEmitHelpers.SpreadArray); } const spreadType = checkExpression((e).expression, checkMode, forceTuple); if (isArrayLikeType(spreadType)) { @@ -39048,8 +39048,7 @@ namespace ts { case ExternalEmitHelpers.Generator: return "__generator"; case ExternalEmitHelpers.Values: return "__values"; case ExternalEmitHelpers.Read: return "__read"; - case ExternalEmitHelpers.Spread: return "__spread"; - case ExternalEmitHelpers.SpreadArrays: return "__spreadArrays"; + case ExternalEmitHelpers.SpreadArray: return "__spreadArray"; case ExternalEmitHelpers.Await: return "__await"; case ExternalEmitHelpers.AsyncGenerator: return "__asyncGenerator"; case ExternalEmitHelpers.AsyncDelegator: return "__asyncDelegator"; diff --git a/src/compiler/factory/emitHelpers.ts b/src/compiler/factory/emitHelpers.ts index 615365700baf1..40694514a57a9 100644 --- a/src/compiler/factory/emitHelpers.ts +++ b/src/compiler/factory/emitHelpers.ts @@ -19,8 +19,7 @@ namespace ts { // ES2015 Helpers createExtendsHelper(name: Identifier): Expression; createTemplateObjectHelper(cooked: ArrayLiteralExpression, raw: ArrayLiteralExpression): Expression; - createSpreadHelper(argumentList: readonly Expression[]): Expression; - createSpreadArraysHelper(argumentList: readonly Expression[]): Expression; + createSpreadArrayHelper(to: Expression, from: Expression): Expression; // ES2015 Destructuring Helpers createValuesHelper(expression: Expression): Expression; createReadHelper(iteratorRecord: Expression, count: number | undefined): Expression; @@ -58,8 +57,7 @@ namespace ts { // ES2015 Helpers createExtendsHelper, createTemplateObjectHelper, - createSpreadHelper, - createSpreadArraysHelper, + createSpreadArrayHelper, // ES2015 Destructuring Helpers createValuesHelper, createReadHelper, @@ -284,22 +282,12 @@ namespace ts { ); } - function createSpreadHelper(argumentList: readonly Expression[]) { - context.requestEmitHelper(readHelper); - context.requestEmitHelper(spreadHelper); - return factory.createCallExpression( - getUnscopedHelperName("__spread"), - /*typeArguments*/ undefined, - argumentList - ); - } - - function createSpreadArraysHelper(argumentList: readonly Expression[]) { - context.requestEmitHelper(spreadArraysHelper); + function createSpreadArrayHelper(to: Expression, from: Expression) { + context.requestEmitHelper(spreadArrayHelper); return factory.createCallExpression( - getUnscopedHelperName("__spreadArrays"), + getUnscopedHelperName("__spreadArray"), /*typeArguments*/ undefined, - argumentList + [to, from] ); } @@ -629,6 +617,7 @@ 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", @@ -641,6 +630,7 @@ namespace ts { };` }; + /** @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", @@ -655,6 +645,18 @@ namespace ts { };` }; + export const spreadArrayHelper: UnscopedEmitHelper = { + name: "typescript:spreadArray", + importName: "__spreadArray", + scoped: false, + text: ` + 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; + };` + }; + // ES2015 Destructuring Helpers export const valuesHelper: UnscopedEmitHelper = { @@ -888,6 +890,7 @@ namespace ts { templateObjectHelper, spreadHelper, spreadArraysHelper, + spreadArrayHelper, valuesHelper, readHelper, generatorHelper, diff --git a/src/compiler/transformers/es2015.ts b/src/compiler/transformers/es2015.ts index 60274fb6b452d..184b5fbb12cbb 100644 --- a/src/compiler/transformers/es2015.ts +++ b/src/compiler/transformers/es2015.ts @@ -3895,14 +3895,27 @@ namespace ts { * @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 { + // When there is no leading SpreadElement: + // // [source] // [a, ...b, c] // // [output (downlevelIteration)] - // __spread([a], b, [c]) + // __spreadArray(__spreadArray([a], __read(b)), [c]) + // + // [output] + // __spreadArray(__spreadArray([a], b), [c]) + // + // When there *is* a leading SpreadElement: + // + // [source] + // [...a, b] + // + // [output (downlevelIteration)] + // __spreadArray(__spreadArray([], __read(a)), [b]) // // [output] - // __spreadArrays([a], b, [c]) + // __spreadArray(__spreadArray([], a), [b]) // Map spans of spread expressions into their expressions and spans of other // expressions into an array literal. @@ -3913,28 +3926,29 @@ namespace ts { ) ); - if (compilerOptions.downlevelIteration) { - if (segments.length === 1) { - const firstSegment = segments[0]; - if (isCallToHelper(firstSegment, "___spread" as __String)) { - return segments[0]; - } + const helpers = emitHelpers(); + if (segments.length === 1) { + const firstSegment = segments[0]; + if (!needsUniqueCopy + || isPackedArrayLiteral(firstSegment) + || isCallToHelper(firstSegment, "___spreadArray" as __String)) { + return segments[0]; } - - return emitHelpers().createSpreadHelper(segments); } - else { - if (segments.length === 1) { - const firstSegment = segments[0]; - if (!needsUniqueCopy - || isPackedArrayLiteral(firstSegment) - || isCallToHelper(firstSegment, "___spreadArrays" as __String)) { - return segments[0]; - } - } - return emitHelpers().createSpreadArraysHelper(segments); + const startsWithSpread = isSpreadElement(elements[0]); + let expression: Expression = + startsWithSpread ? factory.createArrayLiteralExpression() : + segments[0]; + for (let i = startsWithSpread ? 0 : 1; i < segments.length; i++) { + expression = helpers.createSpreadArrayHelper( + expression, + compilerOptions.downlevelIteration && !isArrayLiteralExpression(segments[i]) ? + helpers.createReadHelper(segments[i], /*count*/ undefined) : + segments[i]); } + + return expression; } function isPackedElement(node: Expression) { diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 978d94d554d4d..8669d7527822b 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -6605,19 +6605,18 @@ namespace ts { Generator = 1 << 7, // __generator (used by ES2015 generator transformation) Values = 1 << 8, // __values (used by ES2015 for..of and yield* transformations) Read = 1 << 9, // __read (used by ES2015 iterator destructuring transformation) - Spread = 1 << 10, // __spread (used by ES2015 array spread and argument list spread transformations) - SpreadArrays = 1 << 11, // __spreadArrays (used by ES2015 array spread and argument list spread transformations) - Await = 1 << 12, // __await (used by ES2017 async generator transformation) - AsyncGenerator = 1 << 13, // __asyncGenerator (used by ES2017 async generator transformation) - AsyncDelegator = 1 << 14, // __asyncDelegator (used by ES2017 async generator yield* transformation) - AsyncValues = 1 << 15, // __asyncValues (used by ES2017 for..await..of transformation) - ExportStar = 1 << 16, // __exportStar (used by CommonJS/AMD/UMD module transformation) - ImportStar = 1 << 17, // __importStar (used by CommonJS/AMD/UMD module transformation) - ImportDefault = 1 << 18, // __importStar (used by CommonJS/AMD/UMD module transformation) - MakeTemplateObject = 1 << 19, // __makeTemplateObject (used for constructing template string array objects) - ClassPrivateFieldGet = 1 << 20, // __classPrivateFieldGet (used by the class private field transformation) - ClassPrivateFieldSet = 1 << 21, // __classPrivateFieldSet (used by the class private field transformation) - CreateBinding = 1 << 22, // __createBinding (use by the module transform for (re)exports and namespace imports) + SpreadArray = 1 << 10, // __spreadArray (used by ES2015 array spread and argument list spread transformations) + Await = 1 << 11, // __await (used by ES2017 async generator transformation) + AsyncGenerator = 1 << 12, // __asyncGenerator (used by ES2017 async generator transformation) + AsyncDelegator = 1 << 13, // __asyncDelegator (used by ES2017 async generator yield* transformation) + AsyncValues = 1 << 14, // __asyncValues (used by ES2017 for..await..of transformation) + ExportStar = 1 << 15, // __exportStar (used by CommonJS/AMD/UMD module transformation) + ImportStar = 1 << 16, // __importStar (used by CommonJS/AMD/UMD module transformation) + ImportDefault = 1 << 17, // __importStar (used by CommonJS/AMD/UMD module transformation) + MakeTemplateObject = 1 << 18, // __makeTemplateObject (used for constructing template string array objects) + ClassPrivateFieldGet = 1 << 19, // __classPrivateFieldGet (used by the class private field transformation) + ClassPrivateFieldSet = 1 << 20, // __classPrivateFieldSet (used by the class private field transformation) + CreateBinding = 1 << 21, // __createBinding (use by the module transform for (re)exports and namespace imports) FirstEmitHelper = Extends, LastEmitHelper = CreateBinding, @@ -6634,8 +6633,7 @@ namespace ts { AsyncDelegatorIncludes = Await | AsyncDelegator | AsyncValues, // Helpers included by ES2015 spread - SpreadIncludes = Read | Spread, - + SpreadIncludes = Read | SpreadArray, } export const enum EmitHint { diff --git a/tests/baselines/reference/argumentExpressionContextualTyping.js b/tests/baselines/reference/argumentExpressionContextualTyping.js index 14efadcab7585..1dbae2e7a1a93 100644 --- a/tests/baselines/reference/argumentExpressionContextualTyping.js +++ b/tests/baselines/reference/argumentExpressionContextualTyping.js @@ -19,12 +19,10 @@ baz(["string", 1, true, ...array]); // Error foo(o); // Error because x has an array type namely (string|number)[] //// [argumentExpressionContextualTyping.js] -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; +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; }; // In a typed function call, argument expressions are contextually typed by their corresponding parameter types. function foo(_a) { @@ -43,5 +41,5 @@ var tuple = ["string", 1, true]; baz(tuple); baz(["string", 1, true]); baz(array); // Error -baz(__spreadArrays(["string", 1, true], array)); // Error +baz(__spreadArray(["string", 1, true], array)); // Error foo(o); // Error because x has an array type namely (string|number)[] diff --git a/tests/baselines/reference/arrayLiteralExpressionContextualTyping.js b/tests/baselines/reference/arrayLiteralExpressionContextualTyping.js index 9061b1a9d4e84..ca78193f03a5b 100644 --- a/tests/baselines/reference/arrayLiteralExpressionContextualTyping.js +++ b/tests/baselines/reference/arrayLiteralExpressionContextualTyping.js @@ -16,12 +16,10 @@ var spr2:[number, number, number] = [1, 2, 3, ...tup]; // Error //// [arrayLiteralExpressionContextualTyping.js] -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; +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; }; // In a contextually typed array literal expression containing no spread elements, an element expression at index N is contextually typed by // the type of the property with the numeric name N in the contextual type, if any, or otherwise @@ -33,6 +31,6 @@ var tup1 = [1, 2, 3, "string"]; var tup2 = [1, 2, 3, "string"]; // Error // In a contextually typed array literal expression containing one or more spread elements, // an element expression at index N is contextually typed by the numeric index type of the contextual type, if any. -var spr = __spreadArrays([1, 2, 3], array); -var spr1 = __spreadArrays([1, 2, 3], tup); -var spr2 = __spreadArrays([1, 2, 3], tup); // Error +var spr = __spreadArray([1, 2, 3], array); +var spr1 = __spreadArray([1, 2, 3], tup); +var spr2 = __spreadArray([1, 2, 3], tup); // Error diff --git a/tests/baselines/reference/arrayLiteralSpread.js b/tests/baselines/reference/arrayLiteralSpread.js index bf86204156a16..d1923445eac63 100644 --- a/tests/baselines/reference/arrayLiteralSpread.js +++ b/tests/baselines/reference/arrayLiteralSpread.js @@ -24,27 +24,25 @@ function f2() { //// [arrayLiteralSpread.js] -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; +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; }; function f0() { var a = [1, 2, 3]; - var a1 = __spreadArrays(a); - var a2 = __spreadArrays([1], a); - var a3 = __spreadArrays([1, 2], a); - var a4 = __spreadArrays(a, [1]); - var a5 = __spreadArrays(a, [1, 2]); - var a6 = __spreadArrays([1, 2], a, [1, 2]); - var a7 = __spreadArrays([1], a, [2], a); - var a8 = __spreadArrays(a, a, a); + var a1 = __spreadArray([], a); + var a2 = __spreadArray([1], a); + var a3 = __spreadArray([1, 2], a); + var a4 = __spreadArray(__spreadArray([], a), [1]); + var a5 = __spreadArray(__spreadArray([], a), [1, 2]); + var a6 = __spreadArray(__spreadArray([1, 2], a), [1, 2]); + var a7 = __spreadArray(__spreadArray(__spreadArray([1], a), [2]), a); + var a8 = __spreadArray(__spreadArray(__spreadArray([], a), a), a); } function f1() { var a = [1, 2, 3]; - var b = __spreadArrays(["hello"], a, [true]); + var b = __spreadArray(__spreadArray(["hello"], a), [true]); var b; } function f2() { diff --git a/tests/baselines/reference/arrayLiteralSpreadES5iterable.js b/tests/baselines/reference/arrayLiteralSpreadES5iterable.js index d71f49242dd58..9545e3fdb61a6 100644 --- a/tests/baselines/reference/arrayLiteralSpreadES5iterable.js +++ b/tests/baselines/reference/arrayLiteralSpreadES5iterable.js @@ -40,27 +40,28 @@ var __read = (this && this.__read) || function (o, n) { } return ar; }; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - 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; }; function f0() { var a = [1, 2, 3]; - var a1 = __spread(a); - var a2 = __spread([1], a); - var a3 = __spread([1, 2], a); - var a4 = __spread(a, [1]); - var a5 = __spread(a, [1, 2]); - var a6 = __spread([1, 2], a, [1, 2]); - var a7 = __spread([1], a, [2], a); - var a8 = __spread(a, a, a); + var a1 = __spreadArray([], __read(a)); + var a2 = __spreadArray([1], __read(a)); + var a3 = __spreadArray([1, 2], __read(a)); + var a4 = __spreadArray(__spreadArray([], __read(a)), [1]); + var a5 = __spreadArray(__spreadArray([], __read(a)), [1, 2]); + var a6 = __spreadArray(__spreadArray([1, 2], __read(a)), [1, 2]); + var a7 = __spreadArray(__spreadArray(__spreadArray([1], __read(a)), [2]), __read(a)); + var a8 = __spreadArray(__spreadArray(__spreadArray([], __read(a)), __read(a)), __read(a)); } function f1() { var a = [1, 2, 3]; - var b = __spread(["hello"], a, [true]); + var b = __spreadArray(__spreadArray(["hello"], __read(a)), [true]); var b; } function f2() { - var a = __spread([]); - var b = __spread([5]); + var a = []; + var b = [5]; } diff --git a/tests/baselines/reference/arrayLiterals2ES5.js b/tests/baselines/reference/arrayLiterals2ES5.js index 2626be0834381..e3574b8c45240 100644 --- a/tests/baselines/reference/arrayLiterals2ES5.js +++ b/tests/baselines/reference/arrayLiterals2ES5.js @@ -62,21 +62,19 @@ var d9 = [[...temp1], ...["hello"]]; // Elisionopt SpreadElement // ElementList, Elisionopt AssignmentExpression // ElementList, Elisionopt SpreadElement -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; +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; }; // SpreadElement: // ... AssignmentExpression var a0 = [, , 2, 3, 4]; var a1 = ["hello", "world"]; -var a2 = __spreadArrays([, , ], a0, ["hello"]); -var a3 = __spreadArrays([, ], a0); +var a2 = __spreadArray(__spreadArray([, , ], a0), ["hello"]); +var a3 = __spreadArray([, ], a0); var a4 = [function () { return 1; },]; -var a5 = __spreadArrays(a0, [,]); +var a5 = __spreadArray(__spreadArray([], a0), [,]); // Each element expression in a non-empty array literal is processed as follows: // - If the array literal contains no spread elements, and if the array literal is contextually typed (section 4.19) // by a type T and T has a property with the numeric name N, where N is the index of the element expression in the array literal, @@ -99,13 +97,13 @@ var temp1 = [1, 2, 3]; var temp2 = [[1, 2, 3], ["hello", "string"]]; var temp3 = [undefined, null, undefined]; var temp4 = []; -var d0 = __spreadArrays([1, true], temp); // has type (string|number|boolean)[] -var d1 = __spreadArrays(temp); // has type string[] -var d2 = __spreadArrays(temp1); -var d3 = __spreadArrays(temp1); -var d4 = __spreadArrays(temp, temp1); -var d5 = __spreadArrays(temp3); -var d6 = __spreadArrays(temp4); -var d7 = __spreadArrays(temp1); -var d8 = [__spreadArrays(temp1)]; -var d9 = __spreadArrays([__spreadArrays(temp1)], ["hello"]); +var d0 = __spreadArray([1, true], temp); // has type (string|number|boolean)[] +var d1 = __spreadArray([], temp); // has type string[] +var d2 = __spreadArray([], temp1); +var d3 = __spreadArray([], temp1); +var d4 = __spreadArray(__spreadArray([], temp), temp1); +var d5 = __spreadArray([], temp3); +var d6 = __spreadArray([], temp4); +var d7 = __spreadArray([], temp1); +var d8 = [__spreadArray([], temp1)]; +var d9 = __spreadArray([__spreadArray([], temp1)], ["hello"]); diff --git a/tests/baselines/reference/arrayLiterals3.js b/tests/baselines/reference/arrayLiterals3.js index 754bd1fba1e71..ad3dc247ac74a 100644 --- a/tests/baselines/reference/arrayLiterals3.js +++ b/tests/baselines/reference/arrayLiterals3.js @@ -40,12 +40,10 @@ var c2: myArray = [...temp1, ...temp]; // Error cannot assign (number // - If the array literal contains no spread elements, and if the array literal is contextually typed (section 4.19) // by a type T and T has a property with the numeric name N, where N is the index of the element expression in the array literal, // the element expression is contextually typed by the type of that property. -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; +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; }; // The resulting type an array literal expression is determined as follows: // - If the array literal contains no spread elements and is contextually typed by a tuple-like type, @@ -62,6 +60,6 @@ var _a = [1, 2, "string", true], b1 = _a[0], b2 = _a[1]; var temp = ["s", "t", "r"]; var temp1 = [1, 2, 3]; var temp2 = [[1, 2, 3], ["hello", "string"]]; -var c0 = __spreadArrays(temp2); // Error -var c1 = __spreadArrays(temp1); // Error cannot assign number[] to [number, number, number] -var c2 = __spreadArrays(temp1, temp); // Error cannot assign (number|string)[] to number[] +var c0 = __spreadArray([], temp2); // Error +var c1 = __spreadArray([], temp1); // Error cannot assign number[] to [number, number, number] +var c2 = __spreadArray(__spreadArray([], temp1), temp); // Error cannot assign (number|string)[] to number[] diff --git a/tests/baselines/reference/callChain.js b/tests/baselines/reference/callChain.js index 13fb9c717a397..754097db2d03e 100644 --- a/tests/baselines/reference/callChain.js +++ b/tests/baselines/reference/callChain.js @@ -43,38 +43,36 @@ o2?.b()!.toString!; //// [callChain.js] "use strict"; -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; +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 _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; o1 === null || o1 === void 0 ? void 0 : o1(); o1 === null || o1 === void 0 ? void 0 : o1(1); o1 === null || o1 === void 0 ? void 0 : o1.apply(void 0, [1, 2]); -o1 === null || o1 === void 0 ? void 0 : o1.apply(void 0, __spreadArrays([1], [2, 3], [4])); +o1 === null || o1 === void 0 ? void 0 : o1.apply(void 0, __spreadArray(__spreadArray([1], [2, 3]), [4])); o2 === null || o2 === void 0 ? void 0 : o2.b(); o2 === null || o2 === void 0 ? void 0 : o2.b(1); o2 === null || o2 === void 0 ? void 0 : o2.b.apply(o2, [1, 2]); -o2 === null || o2 === void 0 ? void 0 : o2.b.apply(o2, __spreadArrays([1], [2, 3], [4])); +o2 === null || o2 === void 0 ? void 0 : o2.b.apply(o2, __spreadArray(__spreadArray([1], [2, 3]), [4])); o2 === null || o2 === void 0 ? void 0 : o2["b"](); o2 === null || o2 === void 0 ? void 0 : o2["b"](1); o2 === null || o2 === void 0 ? void 0 : o2["b"].apply(o2, [1, 2]); -o2 === null || o2 === void 0 ? void 0 : o2["b"].apply(o2, __spreadArrays([1], [2, 3], [4])); +o2 === null || o2 === void 0 ? void 0 : o2["b"].apply(o2, __spreadArray(__spreadArray([1], [2, 3]), [4])); (_a = o3.b) === null || _a === void 0 ? void 0 : _a.call(o3).c; (_b = o3.b) === null || _b === void 0 ? void 0 : _b.call(o3, 1).c; -(_c = o3.b) === null || _c === void 0 ? void 0 : _c.call.apply(_c, __spreadArrays([o3], [1, 2])).c; -(_d = o3.b) === null || _d === void 0 ? void 0 : _d.call.apply(_d, __spreadArrays([o3, 1], [2, 3], [4])).c; +(_c = o3.b) === null || _c === void 0 ? void 0 : _c.call.apply(_c, __spreadArray([o3], [1, 2])).c; +(_d = o3.b) === null || _d === void 0 ? void 0 : _d.call.apply(_d, __spreadArray(__spreadArray([o3, 1], [2, 3]), [4])).c; (_e = o3.b) === null || _e === void 0 ? void 0 : _e.call(o3)["c"]; (_f = o3.b) === null || _f === void 0 ? void 0 : _f.call(o3, 1)["c"]; -(_g = o3.b) === null || _g === void 0 ? void 0 : _g.call.apply(_g, __spreadArrays([o3], [1, 2]))["c"]; -(_h = o3.b) === null || _h === void 0 ? void 0 : _h.call.apply(_h, __spreadArrays([o3, 1], [2, 3], [4]))["c"]; +(_g = o3.b) === null || _g === void 0 ? void 0 : _g.call.apply(_g, __spreadArray([o3], [1, 2]))["c"]; +(_h = o3.b) === null || _h === void 0 ? void 0 : _h.call.apply(_h, __spreadArray(__spreadArray([o3, 1], [2, 3]), [4]))["c"]; (_j = o3["b"]) === null || _j === void 0 ? void 0 : _j.call(o3).c; (_k = o3["b"]) === null || _k === void 0 ? void 0 : _k.call(o3, 1).c; -(_l = o3["b"]) === null || _l === void 0 ? void 0 : _l.call.apply(_l, __spreadArrays([o3], [1, 2])).c; -(_m = o3["b"]) === null || _m === void 0 ? void 0 : _m.call.apply(_m, __spreadArrays([o3, 1], [2, 3], [4])).c; +(_l = o3["b"]) === null || _l === void 0 ? void 0 : _l.call.apply(_l, __spreadArray([o3], [1, 2])).c; +(_m = o3["b"]) === null || _m === void 0 ? void 0 : _m.call.apply(_m, __spreadArray(__spreadArray([o3, 1], [2, 3]), [4])).c; var v = o4 === null || o4 === void 0 ? void 0 : o4(incr); (_o = o5()) === null || _o === void 0 ? void 0 : _o(); // GH#36031 diff --git a/tests/baselines/reference/callOverload.js b/tests/baselines/reference/callOverload.js index 05cb5acff8771..185373a80526e 100644 --- a/tests/baselines/reference/callOverload.js +++ b/tests/baselines/reference/callOverload.js @@ -12,17 +12,15 @@ withRest(); withRest(...n); //// [callOverload.js] -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; +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; fn(1); // no error fn(1, 2, 3, 4); takeTwo(1, 2, 3, 4); -withRest.apply(void 0, __spreadArrays(['a'], n)); // no error +withRest.apply(void 0, __spreadArray(['a'], n)); // no error withRest(); withRest.apply(void 0, n); diff --git a/tests/baselines/reference/callWithSpread.js b/tests/baselines/reference/callWithSpread.js index 76499473fe938..99b869e7a9885 100644 --- a/tests/baselines/reference/callWithSpread.js +++ b/tests/baselines/reference/callWithSpread.js @@ -74,12 +74,10 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); -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; +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 _a, _b, _c, _d, _e, _f, _g; function foo(x, y) { @@ -93,23 +91,23 @@ var z; var obj; var xa; foo(1, 2, "abc"); -foo.apply(void 0, __spreadArrays([1, 2], a)); -foo.apply(void 0, __spreadArrays([1, 2], a, ["abc"])); +foo.apply(void 0, __spreadArray([1, 2], a)); +foo.apply(void 0, __spreadArray(__spreadArray([1, 2], a), ["abc"])); obj.foo(1, 2, "abc"); -obj.foo.apply(obj, __spreadArrays([1, 2], a)); -obj.foo.apply(obj, __spreadArrays([1, 2], a, ["abc"])); -obj.foo.apply(obj, __spreadArrays([1, 2], a)).foo(1, 2, "abc"); -(_a = obj.foo.apply(obj, __spreadArrays([1, 2], a))).foo.apply(_a, __spreadArrays([1, 2], a)); -(_b = obj.foo.apply(obj, __spreadArrays([1, 2], a))).foo.apply(_b, __spreadArrays([1, 2], a, ["abc"])); +obj.foo.apply(obj, __spreadArray([1, 2], a)); +obj.foo.apply(obj, __spreadArray(__spreadArray([1, 2], a), ["abc"])); +obj.foo.apply(obj, __spreadArray([1, 2], a)).foo(1, 2, "abc"); +(_a = obj.foo.apply(obj, __spreadArray([1, 2], a))).foo.apply(_a, __spreadArray([1, 2], a)); +(_b = obj.foo.apply(obj, __spreadArray([1, 2], a))).foo.apply(_b, __spreadArray(__spreadArray([1, 2], a), ["abc"])); (obj.foo)(1, 2, "abc"); -obj.foo.apply(obj, __spreadArrays([1, 2], a)); -obj.foo.apply(obj, __spreadArrays([1, 2], a, ["abc"])); -(obj.foo.apply(obj, __spreadArrays([1, 2], a)).foo)(1, 2, "abc"); -(_c = obj.foo.apply(obj, __spreadArrays([1, 2], a))).foo.apply(_c, __spreadArrays([1, 2], a)); -(_d = obj.foo.apply(obj, __spreadArrays([1, 2], a))).foo.apply(_d, __spreadArrays([1, 2], a, ["abc"])); +obj.foo.apply(obj, __spreadArray([1, 2], a)); +obj.foo.apply(obj, __spreadArray(__spreadArray([1, 2], a), ["abc"])); +(obj.foo.apply(obj, __spreadArray([1, 2], a)).foo)(1, 2, "abc"); +(_c = obj.foo.apply(obj, __spreadArray([1, 2], a))).foo.apply(_c, __spreadArray([1, 2], a)); +(_d = obj.foo.apply(obj, __spreadArray([1, 2], a))).foo.apply(_d, __spreadArray(__spreadArray([1, 2], a), ["abc"])); xa[1].foo(1, 2, "abc"); -(_e = xa[1]).foo.apply(_e, __spreadArrays([1, 2], a)); -(_f = xa[1]).foo.apply(_f, __spreadArrays([1, 2], a, ["abc"])); +(_e = xa[1]).foo.apply(_e, __spreadArray([1, 2], a)); +(_f = xa[1]).foo.apply(_f, __spreadArray(__spreadArray([1, 2], a), ["abc"])); (_g = xa[1]).foo.apply(_g, [1, 2, "abc"]); var C = /** @class */ (function () { function C(x, y) { @@ -118,7 +116,7 @@ var C = /** @class */ (function () { z[_i - 2] = arguments[_i]; } this.foo(x, y); - this.foo.apply(this, __spreadArrays([x, y], z)); + this.foo.apply(this, __spreadArray([x, y], z)); } C.prototype.foo = function (x, y) { var z = []; @@ -132,12 +130,12 @@ var D = /** @class */ (function (_super) { __extends(D, _super); function D() { var _this = _super.call(this, 1, 2) || this; - _this = _super.apply(this, __spreadArrays([1, 2], a)) || this; + _this = _super.apply(this, __spreadArray([1, 2], a)) || this; return _this; } D.prototype.foo = function () { _super.prototype.foo.call(this, 1, 2); - _super.prototype.foo.apply(this, __spreadArrays([1, 2], a)); + _super.prototype.foo.apply(this, __spreadArray([1, 2], a)); }; return D; }(C)); diff --git a/tests/baselines/reference/callWithSpread2.js b/tests/baselines/reference/callWithSpread2.js index bf5bd87b6c569..a511921e3e5fe 100644 --- a/tests/baselines/reference/callWithSpread2.js +++ b/tests/baselines/reference/callWithSpread2.js @@ -38,31 +38,29 @@ prefix2("g", ...ns); //// [callWithSpread2.js] -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; +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; }; // good all.apply(void 0, ns); weird.apply(void 0, ns); weird.apply(void 0, mixed); weird.apply(void 0, tuple); -prefix.apply(void 0, __spreadArrays(["a"], ns)); -rest.apply(void 0, __spreadArrays(["d"], ns)); +prefix.apply(void 0, __spreadArray(["a"], ns)); +rest.apply(void 0, __spreadArray(["d"], ns)); // extra arguments -normal.apply(void 0, __spreadArrays(["g"], ns)); +normal.apply(void 0, __spreadArray(["g"], ns)); thunk.apply(void 0, ns); // bad all.apply(void 0, mixed); all.apply(void 0, tuple); -prefix.apply(void 0, __spreadArrays(["b"], mixed)); -prefix.apply(void 0, __spreadArrays(["c"], tuple)); -rest.apply(void 0, __spreadArrays(["e"], mixed)); -rest.apply(void 0, __spreadArrays(["f"], tuple)); +prefix.apply(void 0, __spreadArray(["b"], mixed)); +prefix.apply(void 0, __spreadArray(["c"], tuple)); +rest.apply(void 0, __spreadArray(["e"], mixed)); +rest.apply(void 0, __spreadArray(["f"], tuple)); prefix.apply(void 0, ns); // required parameters are required prefix.apply(void 0, mixed); prefix.apply(void 0, tuple); -prefix2.apply(void 0, __spreadArrays(["g"], ns)); +prefix2.apply(void 0, __spreadArray(["g"], ns)); diff --git a/tests/baselines/reference/callWithSpread3.js b/tests/baselines/reference/callWithSpread3.js index 6100d0c2112ec..f94e74b1dd434 100644 --- a/tests/baselines/reference/callWithSpread3.js +++ b/tests/baselines/reference/callWithSpread3.js @@ -37,32 +37,30 @@ fs5(...s2, "foo", ...s2); //// [callWithSpread3.js] -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; +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; }; // error -fs2.apply(void 0, __spreadArrays(['a'], s2)); // error on ...s2 -fs2.apply(void 0, __spreadArrays(['a', 'b', 'c'], s2)); // error on 'c' and ...s2 -fs2.apply(void 0, __spreadArrays(['a', 'b'], s2, ['c'])); // error on ...s2 and 'c' -fs2.apply(void 0, __spreadArrays(['a', 'b', 'c'], s2, ['d'])); // error on 'c', ...s2 and 'd' -fs2.apply(void 0, __spreadArrays(s2, ['a'])); // error on 'a' +fs2.apply(void 0, __spreadArray(['a'], s2)); // error on ...s2 +fs2.apply(void 0, __spreadArray(['a', 'b', 'c'], s2)); // error on 'c' and ...s2 +fs2.apply(void 0, __spreadArray(__spreadArray(['a', 'b'], s2), ['c'])); // error on ...s2 and 'c' +fs2.apply(void 0, __spreadArray(__spreadArray(['a', 'b', 'c'], s2), ['d'])); // error on 'c', ...s2 and 'd' +fs2.apply(void 0, __spreadArray(__spreadArray([], s2), ['a'])); // error on 'a' fs2.apply(void 0, s3); // error on ...s3 fs2_.apply(void 0, s_); // error on ...s_ fs2_.apply(void 0, s2n_); // error on ...s2n_ -fs2_.apply(void 0, __spreadArrays(s_, s_)); // error FIXME: bad error message -fs2_.apply(void 0, __spreadArrays(s_, s_, s_)); // error FIXME: worse error message +fs2_.apply(void 0, __spreadArray(__spreadArray([], s_), s_)); // error FIXME: bad error message +fs2_.apply(void 0, __spreadArray(__spreadArray(__spreadArray([], s_), s_), s_)); // error FIXME: worse error message // fs2n_(...s2, ...s_); // FIXME: should be a type error fs2n_.apply(void 0, s2_); // error on ...s2_ // ok fs2_.apply(void 0, s2_); -fs2_.apply(void 0, __spreadArrays(s2_, s_)); -fs2_.apply(void 0, __spreadArrays(s2_, s2_)); -fs2_.apply(void 0, __spreadArrays(s_, s2_)); +fs2_.apply(void 0, __spreadArray(__spreadArray([], s2_), s_)); +fs2_.apply(void 0, __spreadArray(__spreadArray([], s2_), s2_)); +fs2_.apply(void 0, __spreadArray(__spreadArray([], s_), s2_)); fs2n_.apply(void 0, s2n_); fs2n_.apply(void 0, s2); // fs2n_(...s2, ...n_); // FIXME: should compile -fs5.apply(void 0, __spreadArrays(s2, ["foo"], s2)); +fs5.apply(void 0, __spreadArray(__spreadArray(__spreadArray([], s2), ["foo"]), s2)); diff --git a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment1ES5.js b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment1ES5.js index d6ab7e9444b3e..4a412a6f2a583 100644 --- a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment1ES5.js +++ b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment1ES5.js @@ -70,12 +70,10 @@ var [c14, c15, c16] = [1, 2, "string"]; * AssignmentRestElement: * ... LeftHandSideExpression */ -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; +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; }; // In a destructuring assignment expression, the type of the expression on the right must be assignable to the assignment target on the left. // An expression of type S is considered assignable to an assignment target V if one of the following is true @@ -95,7 +93,7 @@ var _e = foo(), b6 = _e[0], b7 = _e[1]; var b8 = foo().slice(0); // S is not a tuple- like type and the numeric index signature type of S is assignable to the target given in E. var temp = [1, 2, 3]; -var _f = __spreadArrays(temp), c0 = _f[0], c1 = _f[1]; +var _f = __spreadArray([], temp), c0 = _f[0], c1 = _f[1]; var c2 = [][0]; var _g = [[[]], [[[[]]]]], c3 = _g[0][0][0], c4 = _g[1][0][0][0][0]; var _h = [[1], true], c5 = _h[0][0], c6 = _h[1]; diff --git a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment1ES5iterable.js b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment1ES5iterable.js index acb56cfb8adb5..43495b8ffa933 100644 --- a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment1ES5iterable.js +++ b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment1ES5iterable.js @@ -86,9 +86,10 @@ var __read = (this && this.__read) || function (o, n) { } return ar; }; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - 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; }; // In a destructuring assignment expression, the type of the expression on the right must be assignable to the assignment target on the left. // An expression of type S is considered assignable to an assignment target V if one of the following is true @@ -108,7 +109,7 @@ var _g = __read(foo(), 2), b6 = _g[0], b7 = _g[1]; var _h = __read(foo()), b8 = _h.slice(0); // S is not a tuple- like type and the numeric index signature type of S is assignable to the target given in E. var temp = [1, 2, 3]; -var _j = __read(__spread(temp), 2), c0 = _j[0], c1 = _j[1]; +var _j = __read(__spreadArray([], __read(temp)), 2), c0 = _j[0], c1 = _j[1]; var _k = __read([], 1), c2 = _k[0]; var _l = __read([[[]], [[[[]]]]], 2), _m = __read(_l[0], 1), _o = __read(_m[0], 1), c3 = _o[0], _p = __read(_l[1], 1), _q = __read(_p[0], 1), _r = __read(_q[0], 1), _s = __read(_r[0], 1), c4 = _s[0]; var _t = __read([[1], true], 2), _u = __read(_t[0], 1), c5 = _u[0], c6 = _t[1]; diff --git a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment2.js b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment2.js index 97ad0fd035b62..b23943d8d61cd 100644 --- a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment2.js +++ b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment2.js @@ -35,12 +35,10 @@ function foo(idx: number): F { var [c4, c5, c6] = foo(1); // Error //// [destructuringArrayBindingPatternAndAssignment2.js] -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; +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; }; // V is an array assignment pattern, S is the type Any or an array-like type (section 3.3.2), and, for each assignment element E in V, // S is the type Any, or @@ -57,8 +55,8 @@ var _c = bar(), _d = _c[0], b3 = _d === void 0 ? "string" : _d, b4 = _c[1], b5 = // V is an array assignment pattern, S is the type Any or an array-like type (section 3.3.2), and, for each assignment element E in V, // S is not a tuple- like type and the numeric index signature type of S is assignable to the target given in E. var temp = [1, 2, 3]; -var _e = __spreadArrays(temp), c0 = _e[0], c1 = _e[1]; // Error -var _f = __spreadArrays(temp), c2 = _f[0], c3 = _f[1]; // Error +var _e = __spreadArray([], temp), c0 = _e[0], c1 = _e[1]; // Error +var _f = __spreadArray([], temp), c2 = _f[0], c3 = _f[1]; // Error function foo(idx) { return { 2: true diff --git a/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable.js b/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable.js index 087bf87aaea25..777568fdcbd57 100644 --- a/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable.js +++ b/tests/baselines/reference/destructuringParameterDeclaration3ES5iterable.js @@ -64,9 +64,10 @@ var __read = (this && this.__read) || function (o, n) { } return ar; }; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - 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; }; function a1() { var x = []; @@ -109,8 +110,8 @@ function a11(_a) { } var array = [1, 2, 3]; var array2 = [true, false, "hello"]; -a2(__spread(array)); -a1.apply(void 0, __spread(array)); +a2(__spreadArray([], __read(array))); +a1.apply(void 0, 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/destructuringVariableDeclaration1ES5.js b/tests/baselines/reference/destructuringVariableDeclaration1ES5.js index 117cd448a383a..2bb602aabdc13 100644 --- a/tests/baselines/reference/destructuringVariableDeclaration1ES5.js +++ b/tests/baselines/reference/destructuringVariableDeclaration1ES5.js @@ -42,12 +42,10 @@ var {h: {h1 = [undefined, null]}}: { h: { h1: number[] } } = { h: { h1: [1, 2] } //// [destructuringVariableDeclaration1ES5.js] -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; +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; }; // The type T associated with a destructuring variable declaration is determined as follows: // If the declaration includes a type annotation, T is that type. @@ -73,7 +71,7 @@ var _o = [1, "string"], d1 = _o[0], d2 = _o[1]; // Otherwise, if S is a tuple- like type (section 3.3.3): // Otherwise, if S has a numeric index signature, T is the type of the numeric index signature. var temp1 = [true, false, true]; -var _p = __spreadArrays([1, "string"], temp1), d3 = _p[0], d4 = _p[1]; +var _p = __spreadArray([1, "string"], temp1), d3 = _p[0], d4 = _p[1]; // Combining both forms of destructuring, var _q = { e: [1, 2, { b1: 4, b4: 0 }] }.e, e1 = _q[0], e2 = _q[1], _r = _q[2], e3 = _r === void 0 ? { b1: 1000, b4: 200 } : _r; var _s = { f: [1, 2, { f3: 4, f5: 0 }] }.f, f1 = _s[0], f2 = _s[1], _t = _s[2], f4 = _t.f3, f5 = _t.f5; diff --git a/tests/baselines/reference/destructuringVariableDeclaration1ES5iterable.js b/tests/baselines/reference/destructuringVariableDeclaration1ES5iterable.js index 6a7052d89560d..64bc6cc19e692 100644 --- a/tests/baselines/reference/destructuringVariableDeclaration1ES5iterable.js +++ b/tests/baselines/reference/destructuringVariableDeclaration1ES5iterable.js @@ -58,9 +58,10 @@ var __read = (this && this.__read) || function (o, n) { } return ar; }; -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - 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; }; // The type T associated with a destructuring variable declaration is determined as follows: // If the declaration includes a type annotation, T is that type. @@ -86,7 +87,7 @@ var _s = __read([1, "string"], 2), d1 = _s[0], d2 = _s[1]; // Otherwise, if S is a tuple- like type (section 3.3.3): // Otherwise, if S has a numeric index signature, T is the type of the numeric index signature. var temp1 = [true, false, true]; -var _t = __read(__spread([1, "string"], temp1), 2), d3 = _t[0], d4 = _t[1]; +var _t = __read(__spreadArray([1, "string"], __read(temp1)), 2), d3 = _t[0], d4 = _t[1]; // Combining both forms of destructuring, var _u = __read({ e: [1, 2, { b1: 4, b4: 0 }] }.e, 3), e1 = _u[0], e2 = _u[1], _v = _u[2], e3 = _v === void 0 ? { b1: 1000, b4: 200 } : _v; var _w = __read({ f: [1, 2, { f3: 4, f5: 0 }] }.f, 4), f1 = _w[0], f2 = _w[1], _x = _w[2], f4 = _x.f3, f5 = _x.f5; diff --git a/tests/baselines/reference/es5-asyncFunctionArrayLiterals.js b/tests/baselines/reference/es5-asyncFunctionArrayLiterals.js index 3c16f785d3e56..62ae5e623581b 100644 --- a/tests/baselines/reference/es5-asyncFunctionArrayLiterals.js +++ b/tests/baselines/reference/es5-asyncFunctionArrayLiterals.js @@ -63,11 +63,14 @@ function arrayLiteral1() { } function arrayLiteral2() { return __awaiter(this, void 0, void 0, function () { - return __generator(this, function (_a) { - switch (_a.label) { - case 0: return [4 /*yield*/, y]; + var _a; + return __generator(this, function (_b) { + switch (_b.label) { + case 0: + _a = [[]]; + return [4 /*yield*/, y]; case 1: - x = __spreadArrays.apply(void 0, [(_a.sent()), [z]]); + x = __spreadArray.apply(void 0, [__spreadArray.apply(void 0, _a.concat([(_b.sent())])), [z]]); return [2 /*return*/]; } }); @@ -79,10 +82,10 @@ function arrayLiteral3() { return __generator(this, function (_b) { switch (_b.label) { case 0: - _a = [y]; + _a = [__spreadArray([], y)]; return [4 /*yield*/, z]; case 1: - x = __spreadArrays.apply(void 0, _a.concat([[_b.sent()]])); + x = __spreadArray.apply(void 0, _a.concat([[_b.sent()]])); return [2 /*return*/]; } }); @@ -94,7 +97,7 @@ function arrayLiteral4() { switch (_a.label) { case 0: return [4 /*yield*/, y]; case 1: - x = __spreadArrays.apply(void 0, [[_a.sent()], z]); + x = __spreadArray.apply(void 0, [[_a.sent()], z]); return [2 /*return*/]; } }); @@ -109,7 +112,7 @@ function arrayLiteral5() { _a = [[y]]; return [4 /*yield*/, z]; case 1: - x = __spreadArrays.apply(void 0, _a.concat([(_b.sent())])); + x = __spreadArray.apply(void 0, _a.concat([(_b.sent())])); return [2 /*return*/]; } }); diff --git a/tests/baselines/reference/es5-asyncFunctionCallExpressions.js b/tests/baselines/reference/es5-asyncFunctionCallExpressions.js index 20120ae04e439..ccb120716446d 100644 --- a/tests/baselines/reference/es5-asyncFunctionCallExpressions.js +++ b/tests/baselines/reference/es5-asyncFunctionCallExpressions.js @@ -146,7 +146,7 @@ function callExpression4() { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { - case 0: return [4 /*yield*/, x.apply(void 0, __spreadArrays(y, [z]))]; + case 0: return [4 /*yield*/, x.apply(void 0, __spreadArray(__spreadArray([], y), [z]))]; case 1: _a.sent(); return [2 /*return*/]; @@ -160,7 +160,7 @@ function callExpression5() { switch (_a.label) { case 0: return [4 /*yield*/, x]; case 1: - (_a.sent()).apply(void 0, __spreadArrays(y, [z])); + (_a.sent()).apply(void 0, __spreadArray(__spreadArray([], y), [z])); return [2 /*return*/]; } }); @@ -168,15 +168,16 @@ function callExpression5() { } function callExpression6() { return __awaiter(this, void 0, void 0, function () { - var _a, _b, _c; - return __generator(this, function (_d) { - switch (_d.label) { + var _a, _b, _c, _d; + return __generator(this, function (_e) { + switch (_e.label) { case 0: _b = (_a = x).apply; _c = [void 0]; + _d = [[]]; return [4 /*yield*/, y]; case 1: - _b.apply(_a, _c.concat([__spreadArrays.apply(void 0, [(_d.sent()), [z]])])); + _b.apply(_a, _c.concat([__spreadArray.apply(void 0, [__spreadArray.apply(void 0, _d.concat([(_e.sent())])), [z]])])); return [2 /*return*/]; } }); @@ -190,10 +191,10 @@ function callExpression7() { case 0: _b = (_a = x).apply; _c = [void 0]; - _d = [y]; + _d = [__spreadArray([], y)]; return [4 /*yield*/, z]; case 1: - _b.apply(_a, _c.concat([__spreadArrays.apply(void 0, _d.concat([[_e.sent()]]))])); + _b.apply(_a, _c.concat([__spreadArray.apply(void 0, _d.concat([[_e.sent()]]))])); return [2 /*return*/]; } }); @@ -209,7 +210,7 @@ function callExpression8() { _c = [void 0]; return [4 /*yield*/, y]; case 1: - _b.apply(_a, _c.concat([__spreadArrays.apply(void 0, [[_d.sent()], z])])); + _b.apply(_a, _c.concat([__spreadArray.apply(void 0, [[_d.sent()], z])])); return [2 /*return*/]; } }); @@ -226,7 +227,7 @@ function callExpression9() { _d = [[y]]; return [4 /*yield*/, z]; case 1: - _b.apply(_a, _c.concat([__spreadArrays.apply(void 0, _d.concat([(_e.sent())]))])); + _b.apply(_a, _c.concat([__spreadArray.apply(void 0, _d.concat([(_e.sent())]))])); return [2 /*return*/]; } }); diff --git a/tests/baselines/reference/es5-asyncFunctionNewExpressions.js b/tests/baselines/reference/es5-asyncFunctionNewExpressions.js index 36c38fe5ec9d6..93f6df8701405 100644 --- a/tests/baselines/reference/es5-asyncFunctionNewExpressions.js +++ b/tests/baselines/reference/es5-asyncFunctionNewExpressions.js @@ -145,7 +145,7 @@ function newExpression4() { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { - case 0: return [4 /*yield*/, new (x.bind.apply(x, __spreadArrays([void 0], y, [z])))()]; + case 0: return [4 /*yield*/, new (x.bind.apply(x, __spreadArray(__spreadArray([void 0], y), [z])))()]; case 1: _a.sent(); return [2 /*return*/]; @@ -160,7 +160,7 @@ function newExpression5() { switch (_b.label) { case 0: return [4 /*yield*/, x]; case 1: - new ((_a = (_b.sent())).bind.apply(_a, __spreadArrays([void 0], y, [z])))(); + new ((_a = (_b.sent())).bind.apply(_a, __spreadArray(__spreadArray([void 0], y), [z])))(); return [2 /*return*/]; } }); @@ -177,7 +177,7 @@ function newExpression6() { _d = [[void 0]]; return [4 /*yield*/, y]; case 1: - new (_b.apply(_a, _c.concat([__spreadArrays.apply(void 0, _d.concat([(_e.sent()), [z]]))])))(); + new (_b.apply(_a, _c.concat([__spreadArray.apply(void 0, [__spreadArray.apply(void 0, _d.concat([(_e.sent())])), [z]])])))(); return [2 /*return*/]; } }); @@ -191,10 +191,10 @@ function newExpression7() { case 0: _b = (_a = x.bind).apply; _c = [x]; - _d = [[void 0], y]; + _d = [__spreadArray([void 0], y)]; return [4 /*yield*/, z]; case 1: - new (_b.apply(_a, _c.concat([__spreadArrays.apply(void 0, _d.concat([[_e.sent()]]))])))(); + new (_b.apply(_a, _c.concat([__spreadArray.apply(void 0, _d.concat([[_e.sent()]]))])))(); return [2 /*return*/]; } }); @@ -211,7 +211,7 @@ function newExpression8() { _d = [void 0]; return [4 /*yield*/, y]; case 1: - new (_b.apply(_a, _c.concat([__spreadArrays.apply(void 0, [_d.concat([_e.sent()]), z])])))(); + new (_b.apply(_a, _c.concat([__spreadArray.apply(void 0, [_d.concat([_e.sent()]), z])])))(); return [2 /*return*/]; } }); @@ -228,7 +228,7 @@ function newExpression9() { _d = [[void 0, y]]; return [4 /*yield*/, z]; case 1: - new (_b.apply(_a, _c.concat([__spreadArrays.apply(void 0, _d.concat([(_e.sent())]))])))(); + new (_b.apply(_a, _c.concat([__spreadArray.apply(void 0, _d.concat([(_e.sent())]))])))(); return [2 /*return*/]; } }); diff --git a/tests/baselines/reference/genericRestParameters1.js b/tests/baselines/reference/genericRestParameters1.js index 435557a817500..e47700d09ff15 100644 --- a/tests/baselines/reference/genericRestParameters1.js +++ b/tests/baselines/reference/genericRestParameters1.js @@ -167,60 +167,58 @@ ff1 = ff4; // Error //// [genericRestParameters1.js] "use strict"; -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; +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; }; f1 = f2; f2 = f1; f1(42, "hello", true); f1(t3[0], t3[1], t3[2]); f1.apply(void 0, t3); -f1.apply(void 0, __spreadArrays([42], t2)); -f1.apply(void 0, __spreadArrays([42, "hello"], t1)); -f1.apply(void 0, __spreadArrays([42, "hello", true], t0)); +f1.apply(void 0, __spreadArray([42], t2)); +f1.apply(void 0, __spreadArray([42, "hello"], t1)); +f1.apply(void 0, __spreadArray([42, "hello", true], t0)); f1(ns[0], ns[1], true); -f1.apply(void 0, __spreadArrays(ns, [true])); // FIXME: Error, since ...ns is considered as string|number here +f1.apply(void 0, __spreadArray(__spreadArray([], ns), [true])); // FIXME: Error, since ...ns is considered as string|number here f2(42, "hello", true); f2(t3[0], t3[1], t3[2]); f2.apply(void 0, t3); -f2.apply(void 0, __spreadArrays([42], t2)); -f2.apply(void 0, __spreadArrays([42, "hello"], t1)); -f2.apply(void 0, __spreadArrays([42, "hello", true], t0)); +f2.apply(void 0, __spreadArray([42], t2)); +f2.apply(void 0, __spreadArray([42, "hello"], t1)); +f2.apply(void 0, __spreadArray([42, "hello", true], t0)); f2(ns[0], ns[1], true); -f2.apply(void 0, __spreadArrays(ns, [true])); // FIXME: Error, since ...ns is considered as string|number here +f2.apply(void 0, __spreadArray(__spreadArray([], ns), [true])); // FIXME: Error, since ...ns is considered as string|number here var x10 = f10(42, "hello", true); // [number, string, boolean] var x11 = f10(42, "hello"); // [number, string] var x12 = f10(42); // [number] var x13 = f10(); // [] var x14 = f10.apply(void 0, t3); // [number, string, boolean] -var x15 = f10.apply(void 0, __spreadArrays([42], t2)); // [number, string, boolean] -var x16 = f10.apply(void 0, __spreadArrays([42, "hello"], t1)); // [number, string, boolean] -var x17 = f10.apply(void 0, __spreadArrays([42, "hello", true], t0)); // [number, string, boolean] -var x18 = f10.apply(void 0, __spreadArrays(ns, [true])); // (string | number | boolean)[] +var x15 = f10.apply(void 0, __spreadArray([42], t2)); // [number, string, boolean] +var x16 = f10.apply(void 0, __spreadArray([42, "hello"], t1)); // [number, string, boolean] +var x17 = f10.apply(void 0, __spreadArray([42, "hello", true], t0)); // [number, string, boolean] +var x18 = f10.apply(void 0, __spreadArray(__spreadArray([], ns), [true])); // (string | number | boolean)[] function g10(u, v) { var x1 = f10.apply(void 0, u); // U var x2 = f10.apply(void 0, v); // V - var x3 = f10.apply(void 0, __spreadArrays([1], u)); // [number, ...string[]] - var x4 = f10.apply(void 0, __spreadArrays(u, v)); // (string | number)[] + var x3 = f10.apply(void 0, __spreadArray([1], u)); // [number, ...string[]] + var x4 = f10.apply(void 0, __spreadArray(__spreadArray([], u), v)); // (string | number)[] } var z10 = f11(42, "hello", true); // [42, "hello", true] var z11 = f11(42, "hello"); // [42, "hello"] var z12 = f11(42); // [42] var z13 = f11(); // [] var z14 = f11.apply(void 0, t3); // [number, string, boolean] -var z15 = f11.apply(void 0, __spreadArrays([42], t2)); // [42, string, boolean] -var z16 = f11.apply(void 0, __spreadArrays([42, "hello"], t1)); // [42, "hello", boolean] -var z17 = f11.apply(void 0, __spreadArrays([42, "hello", true], t0)); // [42, "hello", true] -var z18 = f11.apply(void 0, __spreadArrays(ns, [true])); // (string | number | true)[] +var z15 = f11.apply(void 0, __spreadArray([42], t2)); // [42, string, boolean] +var z16 = f11.apply(void 0, __spreadArray([42, "hello"], t1)); // [42, "hello", boolean] +var z17 = f11.apply(void 0, __spreadArray([42, "hello", true], t0)); // [42, "hello", true] +var z18 = f11.apply(void 0, __spreadArray(__spreadArray([], ns), [true])); // (string | number | true)[] function g11(u, v) { var x1 = f11.apply(void 0, u); // U var x2 = f11.apply(void 0, v); // V - var x3 = f11.apply(void 0, __spreadArrays([1], u)); // [1, ...string[]] - var x4 = f11.apply(void 0, __spreadArrays(u, v)); // (string | number)[] + var x3 = f11.apply(void 0, __spreadArray([1], u)); // [1, ...string[]] + var x4 = f11.apply(void 0, __spreadArray(__spreadArray([], u), v)); // (string | number)[] } function call(f) { var args = []; @@ -246,7 +244,7 @@ function bind(f, x) { for (var _i = 0; _i < arguments.length; _i++) { rest[_i] = arguments[_i]; } - return f.apply(void 0, __spreadArrays([x], rest)); + return f.apply(void 0, __spreadArray([x], rest)); }; } var f21 = bind(f20, 42); // (y: string, z: boolean) => string[] diff --git a/tests/baselines/reference/genericRestParameters2.js b/tests/baselines/reference/genericRestParameters2.js index a958ee2da4d94..ae2f0e974e773 100644 --- a/tests/baselines/reference/genericRestParameters2.js +++ b/tests/baselines/reference/genericRestParameters2.js @@ -81,53 +81,51 @@ type T12 = P1<(x: number, y: number) => void>; //// [genericRestParameters2.js] "use strict"; -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; +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; }; f10(42, "hello"); f10(42, "hello", true); f10(42, "hello", true, false); f10(t1[0], t1[1], t1[2], t1[3]); f10.apply(void 0, t1); -f10.apply(void 0, __spreadArrays([42], t2)); -f10.apply(void 0, __spreadArrays([42, "hello"], t3)); -f10.apply(void 0, __spreadArrays([42, "hello", true], t4)); -f10.apply(void 0, __spreadArrays([42, "hello", true], t4, [false], t3)); +f10.apply(void 0, __spreadArray([42], t2)); +f10.apply(void 0, __spreadArray([42, "hello"], t3)); +f10.apply(void 0, __spreadArray([42, "hello", true], t4)); +f10.apply(void 0, __spreadArray(__spreadArray(__spreadArray([42, "hello", true], t4), [false]), t3)); f11(42, "hello"); f11(42, "hello", true); f11(42, "hello", true, false); f11(t1[0], t1[1], t1[2], t1[3]); f11.apply(void 0, t1); -f11.apply(void 0, __spreadArrays([42], t2)); -f11.apply(void 0, __spreadArrays([42, "hello"], t3)); -f11.apply(void 0, __spreadArrays([42, "hello", true], t4)); -f11.apply(void 0, __spreadArrays([42, "hello", true], t4, [false], t3)); +f11.apply(void 0, __spreadArray([42], t2)); +f11.apply(void 0, __spreadArray([42, "hello"], t3)); +f11.apply(void 0, __spreadArray([42, "hello", true], t4)); +f11.apply(void 0, __spreadArray(__spreadArray(__spreadArray([42, "hello", true], t4), [false]), t3)); f12(42, "hello"); f12(42, "hello", true); f12(42, "hello", true, false); f12(t1[0], t1[1], t1[2], t1[3]); f12.apply(void 0, t1); -f12.apply(void 0, __spreadArrays([42], t2)); -f12.apply(void 0, __spreadArrays([42, "hello"], t3)); -f12.apply(void 0, __spreadArrays([42, "hello", true], t4)); -f12.apply(void 0, __spreadArrays([42, "hello", true], t4, [false], t3)); +f12.apply(void 0, __spreadArray([42], t2)); +f12.apply(void 0, __spreadArray([42, "hello"], t3)); +f12.apply(void 0, __spreadArray([42, "hello", true], t4)); +f12.apply(void 0, __spreadArray(__spreadArray(__spreadArray([42, "hello", true], t4), [false]), t3)); f13(42, "hello"); f13(42, "hello", true); f13(42, "hello", true, false); f13(t1[0], t1[1], t1[2], t1[3]); f13.apply(void 0, t1); -f13.apply(void 0, __spreadArrays([42], t2)); -f13.apply(void 0, __spreadArrays([42, "hello"], t3)); -f13.apply(void 0, __spreadArrays([42, "hello", true], t4)); -f13.apply(void 0, __spreadArrays([42, "hello", true], t4, [false], t3)); +f13.apply(void 0, __spreadArray([42], t2)); +f13.apply(void 0, __spreadArray([42, "hello"], t3)); +f13.apply(void 0, __spreadArray([42, "hello", true], t4)); +f13.apply(void 0, __spreadArray(__spreadArray(__spreadArray([42, "hello", true], t4), [false]), t3)); f20.apply(void 0, t1); -f20.apply(void 0, __spreadArrays([42], t2)); -f20.apply(void 0, __spreadArrays([42, "hello"], t3)); -f20.apply(void 0, __spreadArrays([42, "hello"], t2, [true])); +f20.apply(void 0, __spreadArray([42], t2)); +f20.apply(void 0, __spreadArray([42, "hello"], t3)); +f20.apply(void 0, __spreadArray(__spreadArray([42, "hello"], t2), [true])); //// [genericRestParameters2.d.ts] diff --git a/tests/baselines/reference/genericRestParameters3.js b/tests/baselines/reference/genericRestParameters3.js index bba4ddd54e381..9bc39f9e1519b 100644 --- a/tests/baselines/reference/genericRestParameters3.js +++ b/tests/baselines/reference/genericRestParameters3.js @@ -68,19 +68,17 @@ foo2(...x2); //// [genericRestParameters3.js] "use strict"; -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; +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; }; f1("foo", "abc"); f1("foo", 10, true); -f1.apply(void 0, __spreadArrays(["foo"], t1)); -f1.apply(void 0, __spreadArrays(["foo"], t2)); -f1.apply(void 0, __spreadArrays(["foo"], t3)); -f1.apply(void 0, __spreadArrays(["foo"], t4)); +f1.apply(void 0, __spreadArray(["foo"], t1)); +f1.apply(void 0, __spreadArray(["foo"], t2)); +f1.apply(void 0, __spreadArray(["foo"], t3)); +f1.apply(void 0, __spreadArray(["foo"], t4)); f1("foo", 10); // Error f1("foo"); // Error f2 = f1; diff --git a/tests/baselines/reference/keyofAndIndexedAccess.js b/tests/baselines/reference/keyofAndIndexedAccess.js index 6875b80beccaf..769d0368cbe91 100644 --- a/tests/baselines/reference/keyofAndIndexedAccess.js +++ b/tests/baselines/reference/keyofAndIndexedAccess.js @@ -674,12 +674,10 @@ var __extends = (this && this.__extends) || (function () { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); -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; +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 Shape = /** @class */ (function () { function Shape() { @@ -960,7 +958,7 @@ function f1(thing) { var x1 = path(thing, 'a'); // { x: number, y: string } var x2 = path(thing, 'a', 'y'); // string var x3 = path(thing, 'b'); // boolean - var x4 = path.apply(void 0, __spreadArrays([thing], ['a', 'x'])); // any + var x4 = path.apply(void 0, __spreadArray([thing], ['a', 'x'])); // any } // Repro from comment in #12114 var assignTo2 = function (object, key1, key2) { diff --git a/tests/baselines/reference/literalFreshnessPropagationOnNarrowing.js b/tests/baselines/reference/literalFreshnessPropagationOnNarrowing.js index 48748b2b5828a..b23e14c8956ad 100644 --- a/tests/baselines/reference/literalFreshnessPropagationOnNarrowing.js +++ b/tests/baselines/reference/literalFreshnessPropagationOnNarrowing.js @@ -62,12 +62,10 @@ function f5() { } //// [literalFreshnessPropagationOnNarrowing.js] -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; +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; }; function f1() { var b = true; @@ -90,7 +88,7 @@ function f2() { // Desired: OK // 3.0: Error // 3.1: OK - var a5 = __spreadArrays(Array.isArray(elOrA) ? elOrA : [elOrA]); + var a5 = __spreadArray([], Array.isArray(elOrA) ? elOrA : [elOrA]); } function f3() { var x = 'x'; diff --git a/tests/baselines/reference/newWithSpread.js b/tests/baselines/reference/newWithSpread.js index 56a51291a8cb6..25aef5eb96637 100644 --- a/tests/baselines/reference/newWithSpread.js +++ b/tests/baselines/reference/newWithSpread.js @@ -97,12 +97,10 @@ new i["a-b"][1](1, 2, ...a); new i["a-b"][1](1, 2, ...a, "string"); //// [newWithSpread.js] -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; +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 _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t; function f(x, y) { @@ -136,52 +134,52 @@ var h; var i; // Basic expression new f(1, 2, "string"); -new (f.bind.apply(f, __spreadArrays([void 0, 1, 2], a)))(); -new (f.bind.apply(f, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new (f.bind.apply(f, __spreadArray([void 0, 1, 2], a)))(); +new (f.bind.apply(f, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Multiple spreads arguments -new (f2.bind.apply(f2, __spreadArrays([void 0], a, a)))(); -new (f.bind.apply(f, __spreadArrays([void 0, 1, 2], a, a)))(); +new (f2.bind.apply(f2, __spreadArray(__spreadArray([void 0], a), a)))(); +new (f.bind.apply(f, __spreadArray(__spreadArray([void 0, 1, 2], a), a)))(); // Call expression new f(1, 2, "string")(); -new (f.bind.apply(f, __spreadArrays([void 0, 1, 2], a)))()(); -new (f.bind.apply(f, __spreadArrays([void 0, 1, 2], a, ["string"])))()(); +new (f.bind.apply(f, __spreadArray([void 0, 1, 2], a)))()(); +new (f.bind.apply(f, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))()(); // Property access expression new b.f(1, 2, "string"); -new ((_a = b.f).bind.apply(_a, __spreadArrays([void 0, 1, 2], a)))(); -new ((_b = b.f).bind.apply(_b, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new ((_a = b.f).bind.apply(_a, __spreadArray([void 0, 1, 2], a)))(); +new ((_b = b.f).bind.apply(_b, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Parenthesised expression new (b.f)(1, 2, "string"); -new ((_c = (b.f)).bind.apply(_c, __spreadArrays([void 0, 1, 2], a)))(); -new ((_d = (b.f)).bind.apply(_d, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new ((_c = (b.f)).bind.apply(_c, __spreadArray([void 0, 1, 2], a)))(); +new ((_d = (b.f)).bind.apply(_d, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Element access expression new d[1].f(1, 2, "string"); -new ((_e = d[1].f).bind.apply(_e, __spreadArrays([void 0, 1, 2], a)))(); -new ((_f = d[1].f).bind.apply(_f, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new ((_e = d[1].f).bind.apply(_e, __spreadArray([void 0, 1, 2], a)))(); +new ((_f = d[1].f).bind.apply(_f, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Element access expression with a punctuated key new e["a-b"].f(1, 2, "string"); -new ((_g = e["a-b"].f).bind.apply(_g, __spreadArrays([void 0, 1, 2], a)))(); -new ((_h = e["a-b"].f).bind.apply(_h, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new ((_g = e["a-b"].f).bind.apply(_g, __spreadArray([void 0, 1, 2], a)))(); +new ((_h = e["a-b"].f).bind.apply(_h, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Basic expression new B(1, 2, "string"); -new (B.bind.apply(B, __spreadArrays([void 0, 1, 2], a)))(); -new (B.bind.apply(B, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new (B.bind.apply(B, __spreadArray([void 0, 1, 2], a)))(); +new (B.bind.apply(B, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Property access expression new c["a-b"](1, 2, "string"); -new ((_j = c["a-b"]).bind.apply(_j, __spreadArrays([void 0, 1, 2], a)))(); -new ((_k = c["a-b"]).bind.apply(_k, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new ((_j = c["a-b"]).bind.apply(_j, __spreadArray([void 0, 1, 2], a)))(); +new ((_k = c["a-b"]).bind.apply(_k, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Parenthesised expression new (c["a-b"])(1, 2, "string"); -new ((_l = (c["a-b"])).bind.apply(_l, __spreadArrays([void 0, 1, 2], a)))(); -new ((_m = (c["a-b"])).bind.apply(_m, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new ((_l = (c["a-b"])).bind.apply(_l, __spreadArray([void 0, 1, 2], a)))(); +new ((_m = (c["a-b"])).bind.apply(_m, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Element access expression new g[1]["a-b"](1, 2, "string"); -new ((_o = g[1]["a-b"]).bind.apply(_o, __spreadArrays([void 0, 1, 2], a)))(); -new ((_p = g[1]["a-b"]).bind.apply(_p, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new ((_o = g[1]["a-b"]).bind.apply(_o, __spreadArray([void 0, 1, 2], a)))(); +new ((_p = g[1]["a-b"]).bind.apply(_p, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Element access expression with a punctuated key new h["a-b"]["a-b"](1, 2, "string"); -new ((_q = h["a-b"]["a-b"]).bind.apply(_q, __spreadArrays([void 0, 1, 2], a)))(); -new ((_r = h["a-b"]["a-b"]).bind.apply(_r, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new ((_q = h["a-b"]["a-b"]).bind.apply(_q, __spreadArray([void 0, 1, 2], a)))(); +new ((_r = h["a-b"]["a-b"]).bind.apply(_r, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Element access expression with a number new i["a-b"][1](1, 2, "string"); -new ((_s = i["a-b"][1]).bind.apply(_s, __spreadArrays([void 0, 1, 2], a)))(); -new ((_t = i["a-b"][1]).bind.apply(_t, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new ((_s = i["a-b"][1]).bind.apply(_s, __spreadArray([void 0, 1, 2], a)))(); +new ((_t = i["a-b"][1]).bind.apply(_t, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); diff --git a/tests/baselines/reference/newWithSpreadES5.js b/tests/baselines/reference/newWithSpreadES5.js index ddb219a498732..5067cc79973ee 100644 --- a/tests/baselines/reference/newWithSpreadES5.js +++ b/tests/baselines/reference/newWithSpreadES5.js @@ -96,12 +96,10 @@ new i["a-b"][1](1, 2, ...a); new i["a-b"][1](1, 2, ...a, "string"); //// [newWithSpreadES5.js] -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; +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 _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t; function f(x, y) { @@ -135,52 +133,52 @@ var h; var i; // Basic expression new f(1, 2, "string"); -new (f.bind.apply(f, __spreadArrays([void 0, 1, 2], a)))(); -new (f.bind.apply(f, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new (f.bind.apply(f, __spreadArray([void 0, 1, 2], a)))(); +new (f.bind.apply(f, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Multiple spreads arguments -new (f2.bind.apply(f2, __spreadArrays([void 0], a, a)))(); -new (f.bind.apply(f, __spreadArrays([void 0, 1, 2], a, a)))(); +new (f2.bind.apply(f2, __spreadArray(__spreadArray([void 0], a), a)))(); +new (f.bind.apply(f, __spreadArray(__spreadArray([void 0, 1, 2], a), a)))(); // Call expression new f(1, 2, "string")(); -new (f.bind.apply(f, __spreadArrays([void 0, 1, 2], a)))()(); -new (f.bind.apply(f, __spreadArrays([void 0, 1, 2], a, ["string"])))()(); +new (f.bind.apply(f, __spreadArray([void 0, 1, 2], a)))()(); +new (f.bind.apply(f, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))()(); // Property access expression new b.f(1, 2, "string"); -new ((_a = b.f).bind.apply(_a, __spreadArrays([void 0, 1, 2], a)))(); -new ((_b = b.f).bind.apply(_b, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new ((_a = b.f).bind.apply(_a, __spreadArray([void 0, 1, 2], a)))(); +new ((_b = b.f).bind.apply(_b, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Parenthesised expression new (b.f)(1, 2, "string"); -new ((_c = (b.f)).bind.apply(_c, __spreadArrays([void 0, 1, 2], a)))(); -new ((_d = (b.f)).bind.apply(_d, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new ((_c = (b.f)).bind.apply(_c, __spreadArray([void 0, 1, 2], a)))(); +new ((_d = (b.f)).bind.apply(_d, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Element access expression new d[1].f(1, 2, "string"); -new ((_e = d[1].f).bind.apply(_e, __spreadArrays([void 0, 1, 2], a)))(); -new ((_f = d[1].f).bind.apply(_f, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new ((_e = d[1].f).bind.apply(_e, __spreadArray([void 0, 1, 2], a)))(); +new ((_f = d[1].f).bind.apply(_f, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Element access expression with a punctuated key new e["a-b"].f(1, 2, "string"); -new ((_g = e["a-b"].f).bind.apply(_g, __spreadArrays([void 0, 1, 2], a)))(); -new ((_h = e["a-b"].f).bind.apply(_h, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new ((_g = e["a-b"].f).bind.apply(_g, __spreadArray([void 0, 1, 2], a)))(); +new ((_h = e["a-b"].f).bind.apply(_h, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Basic expression new B(1, 2, "string"); -new (B.bind.apply(B, __spreadArrays([void 0, 1, 2], a)))(); -new (B.bind.apply(B, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new (B.bind.apply(B, __spreadArray([void 0, 1, 2], a)))(); +new (B.bind.apply(B, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Property access expression new c["a-b"](1, 2, "string"); -new ((_j = c["a-b"]).bind.apply(_j, __spreadArrays([void 0, 1, 2], a)))(); -new ((_k = c["a-b"]).bind.apply(_k, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new ((_j = c["a-b"]).bind.apply(_j, __spreadArray([void 0, 1, 2], a)))(); +new ((_k = c["a-b"]).bind.apply(_k, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Parenthesised expression new (c["a-b"])(1, 2, "string"); -new ((_l = (c["a-b"])).bind.apply(_l, __spreadArrays([void 0, 1, 2], a)))(); -new ((_m = (c["a-b"])).bind.apply(_m, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new ((_l = (c["a-b"])).bind.apply(_l, __spreadArray([void 0, 1, 2], a)))(); +new ((_m = (c["a-b"])).bind.apply(_m, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Element access expression new g[1]["a-b"](1, 2, "string"); -new ((_o = g[1]["a-b"]).bind.apply(_o, __spreadArrays([void 0, 1, 2], a)))(); -new ((_p = g[1]["a-b"]).bind.apply(_p, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new ((_o = g[1]["a-b"]).bind.apply(_o, __spreadArray([void 0, 1, 2], a)))(); +new ((_p = g[1]["a-b"]).bind.apply(_p, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Element access expression with a punctuated key new h["a-b"]["a-b"](1, 2, "string"); -new ((_q = h["a-b"]["a-b"]).bind.apply(_q, __spreadArrays([void 0, 1, 2], a)))(); -new ((_r = h["a-b"]["a-b"]).bind.apply(_r, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new ((_q = h["a-b"]["a-b"]).bind.apply(_q, __spreadArray([void 0, 1, 2], a)))(); +new ((_r = h["a-b"]["a-b"]).bind.apply(_r, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); // Element access expression with a number new i["a-b"][1](1, 2, "string"); -new ((_s = i["a-b"][1]).bind.apply(_s, __spreadArrays([void 0, 1, 2], a)))(); -new ((_t = i["a-b"][1]).bind.apply(_t, __spreadArrays([void 0, 1, 2], a, ["string"])))(); +new ((_s = i["a-b"][1]).bind.apply(_s, __spreadArray([void 0, 1, 2], a)))(); +new ((_t = i["a-b"][1]).bind.apply(_t, __spreadArray(__spreadArray([void 0, 1, 2], a), ["string"])))(); diff --git a/tests/baselines/reference/noCrashOnNoLib.js b/tests/baselines/reference/noCrashOnNoLib.js index fa9236259137f..5d3da7568a4d6 100644 --- a/tests/baselines/reference/noCrashOnNoLib.js +++ b/tests/baselines/reference/noCrashOnNoLib.js @@ -8,19 +8,17 @@ export function f() { //// [noCrashOnNoLib.js] "use strict"; -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; +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; }; exports.__esModule = true; exports.f = void 0; function f() { var e; while (true) { - e = __spreadArrays((e || [])); + e = __spreadArray([], (e || [])); } } exports.f = f; diff --git a/tests/baselines/reference/operationsAvailableOnPromisedType.js b/tests/baselines/reference/operationsAvailableOnPromisedType.js index 5772f60303785..f756c62f569da 100644 --- a/tests/baselines/reference/operationsAvailableOnPromisedType.js +++ b/tests/baselines/reference/operationsAvailableOnPromisedType.js @@ -73,12 +73,10 @@ var __asyncValues = (this && this.__asyncValues) || function (o) { function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } }; -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; +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; }; function fn(a, b, c, d, e, f, g) { var c_1, c_1_1; @@ -96,7 +94,7 @@ function fn(a, b, c, d, e, f, g) { b++; --b; a === b; - __spreadArrays(c); + __spreadArray([], c); for (_i = 0, c_2 = c; _i < c_2.length; _i++) { s = c_2[_i]; fn(b, b, c, d, e, f, g); diff --git a/tests/baselines/reference/readonlyRestParameters.js b/tests/baselines/reference/readonlyRestParameters.js index 35c07df1c452c..c70c74880d38b 100644 --- a/tests/baselines/reference/readonlyRestParameters.js +++ b/tests/baselines/reference/readonlyRestParameters.js @@ -29,12 +29,10 @@ function f4(...args: readonly string[]) { //// [readonlyRestParameters.js] "use strict"; -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; +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; }; function f0(a, b) { f0(a, b); @@ -48,7 +46,7 @@ function f1() { } f0.apply(void 0, args); // Error f1('abc', 'def'); - f1.apply(void 0, __spreadArrays(['abc'], args)); + f1.apply(void 0, __spreadArray(['abc'], args)); f1.apply(void 0, args); } function f2() { @@ -58,10 +56,10 @@ function f2() { } f0.apply(void 0, args); f1('abc', 'def'); - f1.apply(void 0, __spreadArrays(['abc'], args)); + f1.apply(void 0, __spreadArray(['abc'], args)); f1.apply(void 0, args); f2('abc', 'def'); - f2.apply(void 0, __spreadArrays(['abc'], args)); // Error + f2.apply(void 0, __spreadArray(['abc'], args)); // Error f2.apply(void 0, args); } function f4() { diff --git a/tests/baselines/reference/recursiveReverseMappedType.js b/tests/baselines/reference/recursiveReverseMappedType.js index 1d500b9ee65f6..2369020f1b970 100644 --- a/tests/baselines/reference/recursiveReverseMappedType.js +++ b/tests/baselines/reference/recursiveReverseMappedType.js @@ -17,15 +17,13 @@ function a(l: Recur[]): void { //// [recursiveReverseMappedType.js] "use strict"; // Repro from #38198 -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; +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; }; function join(l) { - return __spreadArrays(['marker'], l); + return __spreadArray(['marker'], l); } function a(l) { var x = join(l); diff --git a/tests/baselines/reference/recursiveTypeReferences1.js b/tests/baselines/reference/recursiveTypeReferences1.js index 7ac37c707091f..5fd0b33c41f02 100644 --- a/tests/baselines/reference/recursiveTypeReferences1.js +++ b/tests/baselines/reference/recursiveTypeReferences1.js @@ -132,12 +132,10 @@ function level(h: HTMLHeadingElement): number { //// [recursiveTypeReferences1.js] "use strict"; -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; +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 a0 = 1; var a1 = [1, [2, 3], [4, [5, [6, 7]]]]; @@ -187,7 +185,7 @@ function parse(node, index) { if (index === void 0) { index = []; } return html('ul', node.map(function (_a, i) { var el = _a[0], children = _a[1]; - var idx = __spreadArrays(index, [i + 1]); + var idx = __spreadArray(__spreadArray([], index), [i + 1]); return html('li', [ html('a', { href: "#" + el.id, rel: 'noopener', 'data-index': idx.join('.') }, el.textContent), children.length > 0 ? parse(children, idx) : frag() diff --git a/tests/baselines/reference/restTuplesFromContextualTypes.js b/tests/baselines/reference/restTuplesFromContextualTypes.js index c09274862b803..6e2eae1d80c3e 100644 --- a/tests/baselines/reference/restTuplesFromContextualTypes.js +++ b/tests/baselines/reference/restTuplesFromContextualTypes.js @@ -101,12 +101,10 @@ const funcUnionTupleRest: TupleUnionFunc = (...params) => { //// [restTuplesFromContextualTypes.js] "use strict"; -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; +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; }; (function (a, b, c) { }).apply(void 0, t1); (function () { @@ -208,31 +206,31 @@ f2(function (a, b, c) { x[_i - 3] = arguments[_i]; } }); -(function (a, b, c) { }).apply(void 0, __spreadArrays([1], t3)); +(function (a, b, c) { }).apply(void 0, __spreadArray([1], t3)); (function () { var x = []; for (var _i = 0; _i < arguments.length; _i++) { x[_i] = arguments[_i]; } -}).apply(void 0, __spreadArrays([1], t3)); +}).apply(void 0, __spreadArray([1], t3)); (function (a) { var x = []; for (var _i = 1; _i < arguments.length; _i++) { x[_i - 1] = arguments[_i]; } -}).apply(void 0, __spreadArrays([1], t3)); +}).apply(void 0, __spreadArray([1], t3)); (function (a, b) { var x = []; for (var _i = 2; _i < arguments.length; _i++) { x[_i - 2] = arguments[_i]; } -}).apply(void 0, __spreadArrays([1], t3)); +}).apply(void 0, __spreadArray([1], t3)); (function (a, b, c) { var x = []; for (var _i = 3; _i < arguments.length; _i++) { x[_i - 3] = arguments[_i]; } -}).apply(void 0, __spreadArrays([1], t3)); +}).apply(void 0, __spreadArray([1], t3)); f3(function (a, b, c) { }); f3(function () { var x = []; @@ -270,13 +268,13 @@ function f4(t) { for (var _i = 1; _i < arguments.length; _i++) { x[_i - 1] = arguments[_i]; } - }).apply(void 0, __spreadArrays([1], t)); + }).apply(void 0, __spreadArray([1], t)); (function (a) { var x = []; for (var _i = 1; _i < arguments.length; _i++) { x[_i - 1] = arguments[_i]; } - }).apply(void 0, __spreadArrays([1, 2], t)); + }).apply(void 0, __spreadArray([1, 2], t)); function f(cb) { } f(function () { var x = []; diff --git a/tests/baselines/reference/selfReferencingSpreadInLoop.js b/tests/baselines/reference/selfReferencingSpreadInLoop.js index 023d33cca0c21..70b0608aa885b 100644 --- a/tests/baselines/reference/selfReferencingSpreadInLoop.js +++ b/tests/baselines/reference/selfReferencingSpreadInLoop.js @@ -6,15 +6,13 @@ for (const subcomponent of [1, 2, 3]) { //// [selfReferencingSpreadInLoop.js] -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; +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 additional = []; for (var _i = 0, _a = [1, 2, 3]; _i < _a.length; _i++) { var subcomponent = _a[_i]; - additional = __spreadArrays(additional, [subcomponent]); + additional = __spreadArray(__spreadArray([], additional), [subcomponent]); } diff --git a/tests/baselines/reference/spliceTuples.js b/tests/baselines/reference/spliceTuples.js index 93deb0f614db9..996d444c4f6e9 100644 --- a/tests/baselines/reference/spliceTuples.js +++ b/tests/baselines/reference/spliceTuples.js @@ -25,22 +25,20 @@ k6 = [1, ...sbb_]; //// [spliceTuples.js] -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; +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 k1; -k1 = __spreadArrays([1], sb); +k1 = __spreadArray([1], sb); var k2; -k2 = __spreadArrays([1], sb, [1]); +k2 = __spreadArray(__spreadArray([1], sb), [1]); var k3; -k3 = __spreadArrays([1], sb_); +k3 = __spreadArray([1], sb_); var k4; -k4 = __spreadArrays([1], sbb_); +k4 = __spreadArray([1], sbb_); var k5; -k5 = __spreadArrays([1], sbb_); +k5 = __spreadArray([1], sbb_); var k6; -k6 = __spreadArrays([1], sbb_); +k6 = __spreadArray([1], sbb_); diff --git a/tests/baselines/reference/spreadBooleanRespectsFreshness.js b/tests/baselines/reference/spreadBooleanRespectsFreshness.js index 7b75533709143..072a38bb2366d 100644 --- a/tests/baselines/reference/spreadBooleanRespectsFreshness.js +++ b/tests/baselines/reference/spreadBooleanRespectsFreshness.js @@ -8,11 +8,9 @@ declare let foo2: Foo; foo1 = [...Array.isArray(foo2) ? foo2 : [foo2]]; //// [spreadBooleanRespectsFreshness.js] -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; +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; }; -foo1 = __spreadArrays(Array.isArray(foo2) ? foo2 : [foo2]); +foo1 = __spreadArray([], Array.isArray(foo2) ? foo2 : [foo2]); 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 15f1cddb0f277..0d3c8cc31c487 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,26 +26,6 @@ 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 __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; 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) @@ -64,7 +44,7 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, __spread([10, 20, 30])); +libfile0Spread.apply(void 0, [10, 20, 30]); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -98,11 +78,11 @@ function appfile4Spread() { b[_i] = arguments[_i]; } } -appfile4Spread.apply(void 0, __spread([10, 20, 30])); +appfile4Spread.apply(void 0, [10, 20, 30]); //# sourceMappingURL=module.js.map //// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;;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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} +{"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"} //// [/src/app/module.js.map.baseline.txt] =================================================================== @@ -115,26 +95,6 @@ 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 __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; >>>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) @@ -160,12 +120,12 @@ sourceFile:../lib/file0.ts 4 > = 5 > 20 6 > ; -1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0) +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) --- >>>function libfile0Spread() { 1-> @@ -175,9 +135,9 @@ sourceFile:../lib/file0.ts > 2 >function 3 > libfile0Spread -1->Emitted(33, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0) +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) --- >>> var b = []; 1 >^^^^ @@ -185,8 +145,8 @@ sourceFile:../lib/file0.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0) +1 >Emitted(14, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(14, 16) Source(2, 39) + SourceIndex(0) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -201,67 +161,67 @@ sourceFile:../lib/file0.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(35, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0) +1 >Emitted(16, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(16, 31) Source(2, 39) + SourceIndex(0) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0) +1 >Emitted(18, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(18, 2) Source(2, 44) + SourceIndex(0) --- ->>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); +>>>libfile0Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -12> ^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >libfile0Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(39, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0) -3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0) -4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0) -5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0) -6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0) -7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0) -8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0) -9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0) -10>Emitted(39, 51) Source(3, 31) + SourceIndex(0) -11>Emitted(39, 54) Source(3, 33) + SourceIndex(0) +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) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -285,12 +245,12 @@ sourceFile:../lib/file1.ts 4 > = 5 > 10 6 > ; -1->Emitted(44, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(44, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(44, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(44, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(44, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(44, 20) Source(1, 21) + SourceIndex(1) +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) --- >>> function forlibfile1Rest() { 1->^^^^ @@ -300,9 +260,9 @@ sourceFile:../lib/file1.ts 1-> 2 > function 3 > forlibfile1Rest -1->Emitted(45, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(45, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(45, 29) Source(1, 45) + SourceIndex(1) +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) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -356,31 +316,31 @@ sourceFile:../lib/file1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(46, 9) Source(2, 1) + SourceIndex(1) -2 >Emitted(46, 13) Source(2, 7) + SourceIndex(1) -3 >Emitted(46, 18) Source(2, 24) + SourceIndex(1) -4 >Emitted(46, 20) Source(2, 26) + SourceIndex(1) -5 >Emitted(46, 21) Source(2, 27) + SourceIndex(1) -6 >Emitted(46, 23) Source(2, 29) + SourceIndex(1) -7 >Emitted(46, 25) Source(2, 31) + SourceIndex(1) -8 >Emitted(46, 27) Source(2, 33) + SourceIndex(1) -9 >Emitted(46, 28) Source(2, 34) + SourceIndex(1) -10>Emitted(46, 30) Source(2, 36) + SourceIndex(1) -11>Emitted(46, 32) Source(2, 38) + SourceIndex(1) -12>Emitted(46, 34) Source(2, 40) + SourceIndex(1) -13>Emitted(46, 36) Source(2, 42) + SourceIndex(1) -14>Emitted(46, 38) Source(2, 44) + SourceIndex(1) -15>Emitted(46, 40) Source(2, 46) + SourceIndex(1) -16>Emitted(46, 42) Source(2, 48) + SourceIndex(1) -17>Emitted(46, 44) Source(2, 9) + SourceIndex(1) -18>Emitted(46, 45) Source(2, 10) + SourceIndex(1) -19>Emitted(46, 52) Source(2, 10) + SourceIndex(1) -20>Emitted(46, 54) Source(2, 15) + SourceIndex(1) -21>Emitted(46, 58) Source(2, 19) + SourceIndex(1) -22>Emitted(46, 72) Source(2, 7) + SourceIndex(1) -23>Emitted(46, 77) Source(2, 21) + SourceIndex(1) -24>Emitted(46, 78) Source(2, 48) + SourceIndex(1) -25>Emitted(46, 79) Source(2, 49) + SourceIndex(1) +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 >^^^^ @@ -389,8 +349,8 @@ sourceFile:../lib/file1.ts 1 > > 2 > } -1 >Emitted(47, 5) Source(3, 1) + SourceIndex(1) -2 >Emitted(47, 6) Source(3, 2) + SourceIndex(1) +1 >Emitted(27, 5) Source(3, 1) + SourceIndex(1) +2 >Emitted(27, 6) Source(3, 2) + SourceIndex(1) --- >>> console.log(exports.x); 1->^^^^ @@ -409,14 +369,14 @@ sourceFile:../lib/file1.ts 6 > x 7 > ) 8 > ; -1->Emitted(48, 5) Source(3, 2) + SourceIndex(1) -2 >Emitted(48, 12) Source(3, 9) + SourceIndex(1) -3 >Emitted(48, 13) Source(3, 10) + SourceIndex(1) -4 >Emitted(48, 16) Source(3, 13) + SourceIndex(1) -5 >Emitted(48, 17) Source(3, 14) + SourceIndex(1) -6 >Emitted(48, 26) Source(3, 15) + SourceIndex(1) -7 >Emitted(48, 27) Source(3, 16) + SourceIndex(1) -8 >Emitted(48, 28) Source(3, 17) + SourceIndex(1) +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) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -440,12 +400,12 @@ sourceFile:../lib/file2.ts 4 > = 5 > 20 6 > ; -1 >Emitted(54, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(54, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(54, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(54, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(54, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(54, 20) Source(1, 21) + SourceIndex(2) +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) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -466,12 +426,12 @@ sourceFile:../lib/global.ts 4 > = 5 > 10 6 > ; -1 >Emitted(56, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(56, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(56, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(56, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(56, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(56, 22) Source(1, 24) + SourceIndex(3) +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) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -495,12 +455,12 @@ sourceFile:file3.ts 4 > = 5 > 30 6 > ; -1->Emitted(61, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(61, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(61, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(61, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(61, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(61, 20) Source(1, 21) + SourceIndex(4) +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) --- >>> function forappfile3Rest() { 1->^^^^ @@ -511,9 +471,9 @@ sourceFile:file3.ts >import { x } from "file1"; 2 > function 3 > forappfile3Rest -1->Emitted(62, 5) Source(2, 27) + SourceIndex(4) -2 >Emitted(62, 14) Source(2, 36) + SourceIndex(4) -3 >Emitted(62, 29) Source(2, 51) + SourceIndex(4) +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) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -567,31 +527,31 @@ sourceFile:file3.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(63, 9) Source(3, 1) + SourceIndex(4) -2 >Emitted(63, 13) Source(3, 7) + SourceIndex(4) -3 >Emitted(63, 18) Source(3, 24) + SourceIndex(4) -4 >Emitted(63, 20) Source(3, 26) + SourceIndex(4) -5 >Emitted(63, 21) Source(3, 27) + SourceIndex(4) -6 >Emitted(63, 23) Source(3, 29) + SourceIndex(4) -7 >Emitted(63, 25) Source(3, 31) + SourceIndex(4) -8 >Emitted(63, 27) Source(3, 33) + SourceIndex(4) -9 >Emitted(63, 28) Source(3, 34) + SourceIndex(4) -10>Emitted(63, 30) Source(3, 36) + SourceIndex(4) -11>Emitted(63, 32) Source(3, 38) + SourceIndex(4) -12>Emitted(63, 34) Source(3, 40) + SourceIndex(4) -13>Emitted(63, 36) Source(3, 42) + SourceIndex(4) -14>Emitted(63, 38) Source(3, 44) + SourceIndex(4) -15>Emitted(63, 40) Source(3, 46) + SourceIndex(4) -16>Emitted(63, 42) Source(3, 48) + SourceIndex(4) -17>Emitted(63, 44) Source(3, 9) + SourceIndex(4) -18>Emitted(63, 45) Source(3, 10) + SourceIndex(4) -19>Emitted(63, 52) Source(3, 10) + SourceIndex(4) -20>Emitted(63, 54) Source(3, 15) + SourceIndex(4) -21>Emitted(63, 58) Source(3, 19) + SourceIndex(4) -22>Emitted(63, 72) Source(3, 7) + SourceIndex(4) -23>Emitted(63, 77) Source(3, 21) + SourceIndex(4) -24>Emitted(63, 78) Source(3, 48) + SourceIndex(4) -25>Emitted(63, 79) Source(3, 49) + SourceIndex(4) +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 >^^^^ @@ -599,8 +559,8 @@ sourceFile:file3.ts 1 > > 2 > } -1 >Emitted(64, 5) Source(4, 1) + SourceIndex(4) -2 >Emitted(64, 6) Source(4, 2) + SourceIndex(4) +1 >Emitted(44, 5) Source(4, 1) + SourceIndex(4) +2 >Emitted(44, 6) Source(4, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -621,12 +581,12 @@ sourceFile:file4.ts 4 > = 5 > 30 6 > ; -1 >Emitted(66, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(66, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(66, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(66, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(66, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(66, 16) Source(1, 18) + SourceIndex(5) +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) --- >>>function appfile4Spread() { 1-> @@ -636,9 +596,9 @@ sourceFile:file4.ts > 2 >function 3 > appfile4Spread -1->Emitted(67, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(67, 10) Source(2, 10) + SourceIndex(5) -3 >Emitted(67, 24) Source(2, 24) + SourceIndex(5) +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) --- >>> var b = []; 1 >^^^^ @@ -646,8 +606,8 @@ sourceFile:file4.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(68, 5) Source(2, 25) + SourceIndex(5) -2 >Emitted(68, 16) Source(2, 39) + SourceIndex(5) +1 >Emitted(48, 5) Source(2, 25) + SourceIndex(5) +2 >Emitted(48, 16) Source(2, 39) + SourceIndex(5) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -662,66 +622,66 @@ sourceFile:file4.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(69, 10) Source(2, 25) + SourceIndex(5) -2 >Emitted(69, 20) Source(2, 39) + SourceIndex(5) -3 >Emitted(69, 22) Source(2, 25) + SourceIndex(5) -4 >Emitted(69, 43) Source(2, 39) + SourceIndex(5) -5 >Emitted(69, 45) Source(2, 25) + SourceIndex(5) -6 >Emitted(69, 49) Source(2, 39) + SourceIndex(5) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(70, 9) Source(2, 25) + SourceIndex(5) -2 >Emitted(70, 31) Source(2, 39) + SourceIndex(5) +1 >Emitted(50, 9) Source(2, 25) + SourceIndex(5) +2 >Emitted(50, 31) Source(2, 39) + SourceIndex(5) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(72, 1) Source(2, 43) + SourceIndex(5) -2 >Emitted(72, 2) Source(2, 44) + SourceIndex(5) +1 >Emitted(52, 1) Source(2, 43) + SourceIndex(5) +2 >Emitted(52, 2) Source(2, 44) + SourceIndex(5) --- ->>>appfile4Spread.apply(void 0, __spread([10, 20, 30])); +>>>appfile4Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >appfile4Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(73, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(73, 15) Source(3, 15) + SourceIndex(5) -3 >Emitted(73, 39) Source(3, 19) + SourceIndex(5) -4 >Emitted(73, 40) Source(3, 20) + SourceIndex(5) -5 >Emitted(73, 42) Source(3, 22) + SourceIndex(5) -6 >Emitted(73, 44) Source(3, 24) + SourceIndex(5) -7 >Emitted(73, 46) Source(3, 26) + SourceIndex(5) -8 >Emitted(73, 48) Source(3, 28) + SourceIndex(5) -9 >Emitted(73, 50) Source(3, 30) + SourceIndex(5) -10>Emitted(73, 51) Source(3, 31) + SourceIndex(5) -11>Emitted(73, 54) Source(3, 33) + SourceIndex(5) +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) --- >>>//# sourceMappingURL=module.js.map @@ -737,46 +697,32 @@ sourceFile:file4.ts "sections": [ { "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1178, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 1180, - "end": 1985, + "pos": 502, + "end": 1297, "kind": "prepend", "data": "../lib/module.js", "texts": [ { - "pos": 1180, - "end": 1985, + "pos": 502, + "end": 1297, "kind": "text" } ] }, { - "pos": 1985, - "end": 2528, + "pos": 1297, + "end": 1830, "kind": "text" } ], "sources": { "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spread" + "typescript:rest" ] } }, @@ -810,31 +756,7 @@ sourceFile:file4.ts ====================================================================== File:: /src/app/module.js ---------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (678-1178):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -847,9 +769,9 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -prepend: (1180-1985):: ../lib/module.js texts:: 1 +prepend: (502-1297):: ../lib/module.js texts:: 1 >>-------------------------------------------------------------------- -text: (1180-1985) +text: (502-1297) var myGlob = 20; function libfile0Spread() { var b = []; @@ -857,7 +779,7 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, __spread([10, 20, 30])); +libfile0Spread.apply(void 0, [10, 20, 30]); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -877,7 +799,7 @@ define("file2", ["require", "exports"], function (require, exports) { var globalConst = 10; ---------------------------------------------------------------------- -text: (1985-2528) +text: (1297-1830) define("file3", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -894,7 +816,7 @@ function appfile4Spread() { b[_i] = arguments[_i]; } } -appfile4Spread.apply(void 0, __spread([10, 20, 30])); +appfile4Spread.apply(void 0, [10, 20, 30]); ====================================================================== ====================================================================== @@ -927,26 +849,6 @@ 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 __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; 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) @@ -965,7 +867,7 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, __spread([10, 20, 30])); +libfile0Spread.apply(void 0, [10, 20, 30]); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -986,7 +888,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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;;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,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"} //// [/src/lib/module.js.map.baseline.txt] =================================================================== @@ -999,26 +901,6 @@ 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 __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; >>>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) @@ -1044,12 +926,12 @@ sourceFile:file0.ts 4 > = 5 > 20 6 > ; -1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0) +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) --- >>>function libfile0Spread() { 1-> @@ -1059,9 +941,9 @@ sourceFile:file0.ts > 2 >function 3 > libfile0Spread -1->Emitted(33, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0) +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) --- >>> var b = []; 1 >^^^^ @@ -1069,8 +951,8 @@ sourceFile:file0.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0) +1 >Emitted(14, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(14, 16) Source(2, 39) + SourceIndex(0) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -1085,67 +967,67 @@ sourceFile:file0.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(35, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0) +1 >Emitted(16, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(16, 31) Source(2, 39) + SourceIndex(0) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0) +1 >Emitted(18, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(18, 2) Source(2, 44) + SourceIndex(0) --- ->>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); +>>>libfile0Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -12> ^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >libfile0Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(39, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0) -3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0) -4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0) -5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0) -6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0) -7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0) -8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0) -9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0) -10>Emitted(39, 51) Source(3, 31) + SourceIndex(0) -11>Emitted(39, 54) Source(3, 33) + SourceIndex(0) +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) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.js @@ -1169,12 +1051,12 @@ sourceFile:file1.ts 4 > = 5 > 10 6 > ; -1->Emitted(44, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(44, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(44, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(44, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(44, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(44, 20) Source(1, 21) + SourceIndex(1) +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) --- >>> function forlibfile1Rest() { 1->^^^^ @@ -1184,9 +1066,9 @@ sourceFile:file1.ts 1-> 2 > function 3 > forlibfile1Rest -1->Emitted(45, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(45, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(45, 29) Source(1, 45) + SourceIndex(1) +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) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -1240,31 +1122,31 @@ sourceFile:file1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(46, 9) Source(2, 1) + SourceIndex(1) -2 >Emitted(46, 13) Source(2, 7) + SourceIndex(1) -3 >Emitted(46, 18) Source(2, 24) + SourceIndex(1) -4 >Emitted(46, 20) Source(2, 26) + SourceIndex(1) -5 >Emitted(46, 21) Source(2, 27) + SourceIndex(1) -6 >Emitted(46, 23) Source(2, 29) + SourceIndex(1) -7 >Emitted(46, 25) Source(2, 31) + SourceIndex(1) -8 >Emitted(46, 27) Source(2, 33) + SourceIndex(1) -9 >Emitted(46, 28) Source(2, 34) + SourceIndex(1) -10>Emitted(46, 30) Source(2, 36) + SourceIndex(1) -11>Emitted(46, 32) Source(2, 38) + SourceIndex(1) -12>Emitted(46, 34) Source(2, 40) + SourceIndex(1) -13>Emitted(46, 36) Source(2, 42) + SourceIndex(1) -14>Emitted(46, 38) Source(2, 44) + SourceIndex(1) -15>Emitted(46, 40) Source(2, 46) + SourceIndex(1) -16>Emitted(46, 42) Source(2, 48) + SourceIndex(1) -17>Emitted(46, 44) Source(2, 9) + SourceIndex(1) -18>Emitted(46, 45) Source(2, 10) + SourceIndex(1) -19>Emitted(46, 52) Source(2, 10) + SourceIndex(1) -20>Emitted(46, 54) Source(2, 15) + SourceIndex(1) -21>Emitted(46, 58) Source(2, 19) + SourceIndex(1) -22>Emitted(46, 72) Source(2, 7) + SourceIndex(1) -23>Emitted(46, 77) Source(2, 21) + SourceIndex(1) -24>Emitted(46, 78) Source(2, 48) + SourceIndex(1) -25>Emitted(46, 79) Source(2, 49) + SourceIndex(1) +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 >^^^^ @@ -1273,8 +1155,8 @@ sourceFile:file1.ts 1 > > 2 > } -1 >Emitted(47, 5) Source(3, 1) + SourceIndex(1) -2 >Emitted(47, 6) Source(3, 2) + SourceIndex(1) +1 >Emitted(27, 5) Source(3, 1) + SourceIndex(1) +2 >Emitted(27, 6) Source(3, 2) + SourceIndex(1) --- >>> console.log(exports.x); 1->^^^^ @@ -1293,14 +1175,14 @@ sourceFile:file1.ts 6 > x 7 > ) 8 > ; -1->Emitted(48, 5) Source(3, 2) + SourceIndex(1) -2 >Emitted(48, 12) Source(3, 9) + SourceIndex(1) -3 >Emitted(48, 13) Source(3, 10) + SourceIndex(1) -4 >Emitted(48, 16) Source(3, 13) + SourceIndex(1) -5 >Emitted(48, 17) Source(3, 14) + SourceIndex(1) -6 >Emitted(48, 26) Source(3, 15) + SourceIndex(1) -7 >Emitted(48, 27) Source(3, 16) + SourceIndex(1) -8 >Emitted(48, 28) Source(3, 17) + SourceIndex(1) +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) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.js @@ -1324,12 +1206,12 @@ sourceFile:file2.ts 4 > = 5 > 20 6 > ; -1 >Emitted(54, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(54, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(54, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(54, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(54, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(54, 20) Source(1, 21) + SourceIndex(2) +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) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.js @@ -1350,12 +1232,12 @@ sourceFile:global.ts 4 > = 5 > 10 6 > ; -1 >Emitted(56, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(56, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(56, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(56, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(56, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(56, 22) Source(1, 24) + SourceIndex(3) +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) --- >>>//# sourceMappingURL=module.js.map @@ -1373,32 +1255,18 @@ sourceFile:global.ts "sections": [ { "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1178, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 1180, - "end": 1985, + "pos": 502, + "end": 1297, "kind": "text" } ], "sources": { "helpers": [ - "typescript:read", - "typescript:spread", "typescript:rest" ] } @@ -1420,31 +1288,7 @@ sourceFile:global.ts ====================================================================== File:: /src/lib/module.js ---------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (678-1178):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -1457,7 +1301,7 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -text: (1180-1985) +text: (502-1297) var myGlob = 20; function libfile0Spread() { var b = []; @@ -1465,7 +1309,7 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, __spread([10, 20, 30])); +libfile0Spread.apply(void 0, [10, 20, 30]); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 675e7469a49ef..0a43b5fb539fd 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,26 +24,6 @@ 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 __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; 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) @@ -62,7 +42,7 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, __spread([10, 20, 30])); +libfile0Spread.apply(void 0, [10, 20, 30]); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -93,11 +73,11 @@ function appfile4Spread() { b[_i] = arguments[_i]; } } -appfile4Spread.apply(void 0, __spread([10, 20, 30])); +appfile4Spread.apply(void 0, [10, 20, 30]); //# sourceMappingURL=module.js.map //// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;;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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} +{"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"} //// [/src/app/module.js.map.baseline.txt] =================================================================== @@ -110,26 +90,6 @@ 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 __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; >>>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) @@ -155,12 +115,12 @@ sourceFile:../lib/file0.ts 4 > = 5 > 20 6 > ; -1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0) +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) --- >>>function libfile0Spread() { 1-> @@ -170,9 +130,9 @@ sourceFile:../lib/file0.ts > 2 >function 3 > libfile0Spread -1->Emitted(33, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0) +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) --- >>> var b = []; 1 >^^^^ @@ -180,8 +140,8 @@ sourceFile:../lib/file0.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0) +1 >Emitted(14, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(14, 16) Source(2, 39) + SourceIndex(0) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -196,67 +156,67 @@ sourceFile:../lib/file0.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(35, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0) +1 >Emitted(16, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(16, 31) Source(2, 39) + SourceIndex(0) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0) +1 >Emitted(18, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(18, 2) Source(2, 44) + SourceIndex(0) --- ->>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); +>>>libfile0Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -12> ^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >libfile0Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(39, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0) -3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0) -4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0) -5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0) -6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0) -7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0) -8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0) -9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0) -10>Emitted(39, 51) Source(3, 31) + SourceIndex(0) -11>Emitted(39, 54) Source(3, 33) + SourceIndex(0) +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) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -280,12 +240,12 @@ sourceFile:../lib/file1.ts 4 > = 5 > 10 6 > ; -1->Emitted(44, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(44, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(44, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(44, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(44, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(44, 20) Source(1, 21) + SourceIndex(1) +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) --- >>> function forlibfile1Rest() { } 1->^^^^ @@ -298,11 +258,11 @@ sourceFile:../lib/file1.ts 3 > forlibfile1Rest 4 > () { 5 > } -1->Emitted(45, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(45, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(45, 29) Source(1, 45) + SourceIndex(1) -4 >Emitted(45, 34) Source(1, 50) + SourceIndex(1) -5 >Emitted(45, 35) Source(1, 51) + SourceIndex(1) +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) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -326,12 +286,12 @@ sourceFile:../lib/file2.ts 4 > = 5 > 20 6 > ; -1 >Emitted(51, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(51, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(51, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(51, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(51, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(51, 20) Source(1, 21) + SourceIndex(2) +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) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -352,12 +312,12 @@ sourceFile:../lib/global.ts 4 > = 5 > 10 6 > ; -1 >Emitted(53, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(53, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(53, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(53, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(53, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(53, 22) Source(1, 24) + SourceIndex(3) +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) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -381,12 +341,12 @@ sourceFile:file3.ts 4 > = 5 > 30 6 > ; -1->Emitted(58, 5) Source(1, 14) + SourceIndex(4) -2 >Emitted(58, 13) Source(1, 14) + SourceIndex(4) -3 >Emitted(58, 14) Source(1, 15) + SourceIndex(4) -4 >Emitted(58, 17) Source(1, 18) + SourceIndex(4) -5 >Emitted(58, 19) Source(1, 20) + SourceIndex(4) -6 >Emitted(58, 20) Source(1, 21) + SourceIndex(4) +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) --- >>> function forappfile3Rest() { 1->^^^^ @@ -397,9 +357,9 @@ sourceFile:file3.ts >import { x } from "file1"; 2 > function 3 > forappfile3Rest -1->Emitted(59, 5) Source(2, 27) + SourceIndex(4) -2 >Emitted(59, 14) Source(2, 36) + SourceIndex(4) -3 >Emitted(59, 29) Source(2, 51) + SourceIndex(4) +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) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -453,31 +413,31 @@ sourceFile:file3.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(60, 9) Source(3, 1) + SourceIndex(4) -2 >Emitted(60, 13) Source(3, 7) + SourceIndex(4) -3 >Emitted(60, 18) Source(3, 24) + SourceIndex(4) -4 >Emitted(60, 20) Source(3, 26) + SourceIndex(4) -5 >Emitted(60, 21) Source(3, 27) + SourceIndex(4) -6 >Emitted(60, 23) Source(3, 29) + SourceIndex(4) -7 >Emitted(60, 25) Source(3, 31) + SourceIndex(4) -8 >Emitted(60, 27) Source(3, 33) + SourceIndex(4) -9 >Emitted(60, 28) Source(3, 34) + SourceIndex(4) -10>Emitted(60, 30) Source(3, 36) + SourceIndex(4) -11>Emitted(60, 32) Source(3, 38) + SourceIndex(4) -12>Emitted(60, 34) Source(3, 40) + SourceIndex(4) -13>Emitted(60, 36) Source(3, 42) + SourceIndex(4) -14>Emitted(60, 38) Source(3, 44) + SourceIndex(4) -15>Emitted(60, 40) Source(3, 46) + SourceIndex(4) -16>Emitted(60, 42) Source(3, 48) + SourceIndex(4) -17>Emitted(60, 44) Source(3, 9) + SourceIndex(4) -18>Emitted(60, 45) Source(3, 10) + SourceIndex(4) -19>Emitted(60, 52) Source(3, 10) + SourceIndex(4) -20>Emitted(60, 54) Source(3, 15) + SourceIndex(4) -21>Emitted(60, 58) Source(3, 19) + SourceIndex(4) -22>Emitted(60, 72) Source(3, 7) + SourceIndex(4) -23>Emitted(60, 77) Source(3, 21) + SourceIndex(4) -24>Emitted(60, 78) Source(3, 48) + SourceIndex(4) -25>Emitted(60, 79) Source(3, 49) + SourceIndex(4) +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 >^^^^ @@ -485,8 +445,8 @@ sourceFile:file3.ts 1 > > 2 > } -1 >Emitted(61, 5) Source(4, 1) + SourceIndex(4) -2 >Emitted(61, 6) Source(4, 2) + SourceIndex(4) +1 >Emitted(41, 5) Source(4, 1) + SourceIndex(4) +2 >Emitted(41, 6) Source(4, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -507,12 +467,12 @@ sourceFile:file4.ts 4 > = 5 > 30 6 > ; -1 >Emitted(63, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(63, 5) Source(1, 7) + SourceIndex(5) -3 >Emitted(63, 10) Source(1, 12) + SourceIndex(5) -4 >Emitted(63, 13) Source(1, 15) + SourceIndex(5) -5 >Emitted(63, 15) Source(1, 17) + SourceIndex(5) -6 >Emitted(63, 16) Source(1, 18) + SourceIndex(5) +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) --- >>>function appfile4Spread() { 1-> @@ -522,9 +482,9 @@ sourceFile:file4.ts > 2 >function 3 > appfile4Spread -1->Emitted(64, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(64, 10) Source(2, 10) + SourceIndex(5) -3 >Emitted(64, 24) Source(2, 24) + SourceIndex(5) +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) --- >>> var b = []; 1 >^^^^ @@ -532,8 +492,8 @@ sourceFile:file4.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(65, 5) Source(2, 25) + SourceIndex(5) -2 >Emitted(65, 16) Source(2, 39) + SourceIndex(5) +1 >Emitted(45, 5) Source(2, 25) + SourceIndex(5) +2 >Emitted(45, 16) Source(2, 39) + SourceIndex(5) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -548,66 +508,66 @@ sourceFile:file4.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(66, 10) Source(2, 25) + SourceIndex(5) -2 >Emitted(66, 20) Source(2, 39) + SourceIndex(5) -3 >Emitted(66, 22) Source(2, 25) + SourceIndex(5) -4 >Emitted(66, 43) Source(2, 39) + SourceIndex(5) -5 >Emitted(66, 45) Source(2, 25) + SourceIndex(5) -6 >Emitted(66, 49) Source(2, 39) + SourceIndex(5) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(67, 9) Source(2, 25) + SourceIndex(5) -2 >Emitted(67, 31) Source(2, 39) + SourceIndex(5) +1 >Emitted(47, 9) Source(2, 25) + SourceIndex(5) +2 >Emitted(47, 31) Source(2, 39) + SourceIndex(5) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(69, 1) Source(2, 43) + SourceIndex(5) -2 >Emitted(69, 2) Source(2, 44) + SourceIndex(5) +1 >Emitted(49, 1) Source(2, 43) + SourceIndex(5) +2 >Emitted(49, 2) Source(2, 44) + SourceIndex(5) --- ->>>appfile4Spread.apply(void 0, __spread([10, 20, 30])); +>>>appfile4Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >appfile4Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(70, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(70, 15) Source(3, 15) + SourceIndex(5) -3 >Emitted(70, 39) Source(3, 19) + SourceIndex(5) -4 >Emitted(70, 40) Source(3, 20) + SourceIndex(5) -5 >Emitted(70, 42) Source(3, 22) + SourceIndex(5) -6 >Emitted(70, 44) Source(3, 24) + SourceIndex(5) -7 >Emitted(70, 46) Source(3, 26) + SourceIndex(5) -8 >Emitted(70, 48) Source(3, 28) + SourceIndex(5) -9 >Emitted(70, 50) Source(3, 30) + SourceIndex(5) -10>Emitted(70, 51) Source(3, 31) + SourceIndex(5) -11>Emitted(70, 54) Source(3, 33) + SourceIndex(5) +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) --- >>>//# sourceMappingURL=module.js.map @@ -623,46 +583,32 @@ sourceFile:file4.ts "sections": [ { "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1178, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 1180, - "end": 1871, + "pos": 502, + "end": 1183, "kind": "prepend", "data": "../lib/module.js", "texts": [ { - "pos": 1180, - "end": 1871, + "pos": 502, + "end": 1183, "kind": "text" } ] }, { - "pos": 1871, - "end": 2414, + "pos": 1183, + "end": 1716, "kind": "text" } ], "sources": { "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spread" + "typescript:rest" ] } }, @@ -696,31 +642,7 @@ sourceFile:file4.ts ====================================================================== File:: /src/app/module.js ---------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (678-1178):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -733,9 +655,9 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -prepend: (1180-1871):: ../lib/module.js texts:: 1 +prepend: (502-1183):: ../lib/module.js texts:: 1 >>-------------------------------------------------------------------- -text: (1180-1871) +text: (502-1183) var myGlob = 20; function libfile0Spread() { var b = []; @@ -743,7 +665,7 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, __spread([10, 20, 30])); +libfile0Spread.apply(void 0, [10, 20, 30]); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -760,7 +682,7 @@ define("file2", ["require", "exports"], function (require, exports) { var globalConst = 10; ---------------------------------------------------------------------- -text: (1871-2414) +text: (1183-1716) define("file3", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -777,7 +699,7 @@ function appfile4Spread() { b[_i] = arguments[_i]; } } -appfile4Spread.apply(void 0, __spread([10, 20, 30])); +appfile4Spread.apply(void 0, [10, 20, 30]); ====================================================================== ====================================================================== @@ -810,26 +732,6 @@ 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 __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; var myGlob = 20; function libfile0Spread() { var b = []; @@ -837,7 +739,7 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, __spread([10, 20, 30])); +libfile0Spread.apply(void 0, [10, 20, 30]); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -855,7 +757,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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;;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,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"} //// [/src/lib/module.js.map.baseline.txt] =================================================================== @@ -868,26 +770,6 @@ 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 __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; >>>var myGlob = 20; 1 > 2 >^^^^ @@ -902,12 +784,12 @@ sourceFile:file0.ts 4 > = 5 > 20 6 > ; -1 >Emitted(21, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(21, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(21, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(21, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(21, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(21, 17) Source(1, 19) + SourceIndex(0) +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) --- >>>function libfile0Spread() { 1-> @@ -917,9 +799,9 @@ sourceFile:file0.ts > 2 >function 3 > libfile0Spread -1->Emitted(22, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(22, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(22, 24) Source(2, 24) + SourceIndex(0) +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) --- >>> var b = []; 1 >^^^^ @@ -927,8 +809,8 @@ sourceFile:file0.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(23, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(23, 16) Source(2, 39) + SourceIndex(0) +1 >Emitted(3, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(3, 16) Source(2, 39) + SourceIndex(0) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -943,67 +825,67 @@ sourceFile:file0.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(24, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(24, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(24, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(24, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(24, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(24, 49) Source(2, 39) + SourceIndex(0) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(25, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(25, 31) Source(2, 39) + SourceIndex(0) +1 >Emitted(5, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(5, 31) Source(2, 39) + SourceIndex(0) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(27, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(27, 2) Source(2, 44) + SourceIndex(0) +1 >Emitted(7, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(7, 2) Source(2, 44) + SourceIndex(0) --- ->>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); +>>>libfile0Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -12> ^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >libfile0Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(28, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(28, 15) Source(3, 15) + SourceIndex(0) -3 >Emitted(28, 39) Source(3, 19) + SourceIndex(0) -4 >Emitted(28, 40) Source(3, 20) + SourceIndex(0) -5 >Emitted(28, 42) Source(3, 22) + SourceIndex(0) -6 >Emitted(28, 44) Source(3, 24) + SourceIndex(0) -7 >Emitted(28, 46) Source(3, 26) + SourceIndex(0) -8 >Emitted(28, 48) Source(3, 28) + SourceIndex(0) -9 >Emitted(28, 50) Source(3, 30) + SourceIndex(0) -10>Emitted(28, 51) Source(3, 31) + SourceIndex(0) -11>Emitted(28, 54) Source(3, 33) + SourceIndex(0) +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) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.js @@ -1027,12 +909,12 @@ sourceFile:file1.ts 4 > = 5 > 10 6 > ; -1->Emitted(33, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(33, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(33, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(33, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(33, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(33, 20) Source(1, 21) + SourceIndex(1) +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) --- >>> function forlibfile1Rest() { } 1->^^^^ @@ -1045,11 +927,11 @@ sourceFile:file1.ts 3 > forlibfile1Rest 4 > () { 5 > } -1->Emitted(34, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(34, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(34, 29) Source(1, 45) + SourceIndex(1) -4 >Emitted(34, 34) Source(1, 50) + SourceIndex(1) -5 >Emitted(34, 35) Source(1, 51) + SourceIndex(1) +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) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.js @@ -1073,12 +955,12 @@ sourceFile:file2.ts 4 > = 5 > 20 6 > ; -1 >Emitted(40, 5) Source(1, 14) + SourceIndex(2) -2 >Emitted(40, 13) Source(1, 14) + SourceIndex(2) -3 >Emitted(40, 14) Source(1, 15) + SourceIndex(2) -4 >Emitted(40, 17) Source(1, 18) + SourceIndex(2) -5 >Emitted(40, 19) Source(1, 20) + SourceIndex(2) -6 >Emitted(40, 20) Source(1, 21) + SourceIndex(2) +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) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.js @@ -1099,12 +981,12 @@ sourceFile:global.ts 4 > = 5 > 10 6 > ; -1 >Emitted(42, 1) Source(1, 1) + SourceIndex(3) -2 >Emitted(42, 5) Source(1, 7) + SourceIndex(3) -3 >Emitted(42, 16) Source(1, 18) + SourceIndex(3) -4 >Emitted(42, 19) Source(1, 21) + SourceIndex(3) -5 >Emitted(42, 21) Source(1, 23) + SourceIndex(3) -6 >Emitted(42, 22) Source(1, 24) + SourceIndex(3) +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) --- >>>//# sourceMappingURL=module.js.map @@ -1122,28 +1004,10 @@ sourceFile:global.ts "sections": [ { "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1369, + "end": 681, "kind": "text" } - ], - "sources": { - "helpers": [ - "typescript:read", - "typescript:spread" - ] - } + ] }, "dts": { "sections": [ @@ -1162,31 +1026,7 @@ sourceFile:global.ts ====================================================================== File:: /src/lib/module.js ---------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -text: (678-1369) +text: (0-681) var myGlob = 20; function libfile0Spread() { var b = []; @@ -1194,7 +1034,7 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, __spread([10, 20, 30])); +libfile0Spread.apply(void 0, [10, 20, 30]); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 893b4c37771f0..809191beab917 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 @@ -345,26 +345,6 @@ sourceFile:file4.ts >>>//# 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 __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; 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) @@ -383,7 +363,7 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, __spread([10, 20, 30])); +libfile0Spread.apply(void 0, [10, 20, 30]); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -416,11 +396,11 @@ function appfile4Spread() { b[_i] = arguments[_i]; } } -appfile4Spread.apply(void 0, __spread([10, 20, 30])); +appfile4Spread.apply(void 0, [10, 20, 30]); //# sourceMappingURL=module.js.map //// [/src/app/module.js.map] -{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;;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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} +{"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"} //// [/src/app/module.js.map.baseline.txt] =================================================================== @@ -433,26 +413,6 @@ 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 __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; >>>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) @@ -478,12 +438,12 @@ sourceFile:../lib/file0.ts 4 > = 5 > 20 6 > ; -1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0) +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) --- >>>function libfile0Spread() { 1-> @@ -493,9 +453,9 @@ sourceFile:../lib/file0.ts > 2 >function 3 > libfile0Spread -1->Emitted(33, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0) +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) --- >>> var b = []; 1 >^^^^ @@ -503,8 +463,8 @@ sourceFile:../lib/file0.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0) +1 >Emitted(14, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(14, 16) Source(2, 39) + SourceIndex(0) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -519,67 +479,67 @@ sourceFile:../lib/file0.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(35, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0) +1 >Emitted(16, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(16, 31) Source(2, 39) + SourceIndex(0) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0) +1 >Emitted(18, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(18, 2) Source(2, 44) + SourceIndex(0) --- ->>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); +>>>libfile0Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -12> ^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >libfile0Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(39, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0) -3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0) -4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0) -5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0) -6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0) -7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0) -8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0) -9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0) -10>Emitted(39, 51) Source(3, 31) + SourceIndex(0) -11>Emitted(39, 54) Source(3, 33) + SourceIndex(0) +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) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -603,12 +563,12 @@ sourceFile:../lib/file1.ts 4 > = 5 > 10 6 > ; -1->Emitted(44, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(44, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(44, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(44, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(44, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(44, 20) Source(1, 21) + SourceIndex(1) +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) --- >>> function forlibfile1Rest() { 1->^^^^ @@ -618,9 +578,9 @@ sourceFile:../lib/file1.ts 1-> 2 > function 3 > forlibfile1Rest -1->Emitted(45, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(45, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(45, 29) Source(1, 45) + SourceIndex(1) +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) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -674,31 +634,31 @@ sourceFile:../lib/file1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(46, 9) Source(2, 1) + SourceIndex(1) -2 >Emitted(46, 13) Source(2, 7) + SourceIndex(1) -3 >Emitted(46, 18) Source(2, 24) + SourceIndex(1) -4 >Emitted(46, 20) Source(2, 26) + SourceIndex(1) -5 >Emitted(46, 21) Source(2, 27) + SourceIndex(1) -6 >Emitted(46, 23) Source(2, 29) + SourceIndex(1) -7 >Emitted(46, 25) Source(2, 31) + SourceIndex(1) -8 >Emitted(46, 27) Source(2, 33) + SourceIndex(1) -9 >Emitted(46, 28) Source(2, 34) + SourceIndex(1) -10>Emitted(46, 30) Source(2, 36) + SourceIndex(1) -11>Emitted(46, 32) Source(2, 38) + SourceIndex(1) -12>Emitted(46, 34) Source(2, 40) + SourceIndex(1) -13>Emitted(46, 36) Source(2, 42) + SourceIndex(1) -14>Emitted(46, 38) Source(2, 44) + SourceIndex(1) -15>Emitted(46, 40) Source(2, 46) + SourceIndex(1) -16>Emitted(46, 42) Source(2, 48) + SourceIndex(1) -17>Emitted(46, 44) Source(2, 9) + SourceIndex(1) -18>Emitted(46, 45) Source(2, 10) + SourceIndex(1) -19>Emitted(46, 52) Source(2, 10) + SourceIndex(1) -20>Emitted(46, 54) Source(2, 15) + SourceIndex(1) -21>Emitted(46, 58) Source(2, 19) + SourceIndex(1) -22>Emitted(46, 72) Source(2, 7) + SourceIndex(1) -23>Emitted(46, 77) Source(2, 21) + SourceIndex(1) -24>Emitted(46, 78) Source(2, 48) + SourceIndex(1) -25>Emitted(46, 79) Source(2, 49) + SourceIndex(1) +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 >^^^^ @@ -706,8 +666,8 @@ sourceFile:../lib/file1.ts 1 > > 2 > } -1 >Emitted(47, 5) Source(3, 1) + SourceIndex(1) -2 >Emitted(47, 6) Source(3, 2) + SourceIndex(1) +1 >Emitted(27, 5) Source(3, 1) + SourceIndex(1) +2 >Emitted(27, 6) Source(3, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -731,12 +691,12 @@ sourceFile:../lib/file2.ts 4 > = 5 > 20 6 > ; -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) +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) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -757,12 +717,12 @@ sourceFile:../lib/global.ts 4 > = 5 > 10 6 > ; -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) +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) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -786,12 +746,12 @@ sourceFile:file3.ts 4 > = 5 > 30 6 > ; -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) +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) --- >>> function forappfile3Rest() { 1->^^^^ @@ -802,9 +762,9 @@ sourceFile:file3.ts >import { x } from "file1"; 2 > function 3 > forappfile3Rest -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) +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) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -858,31 +818,31 @@ sourceFile:file3.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -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->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 >^^^^ @@ -890,8 +850,8 @@ sourceFile:file3.ts 1 > > 2 > } -1 >Emitted(63, 5) Source(4, 1) + SourceIndex(4) -2 >Emitted(63, 6) Source(4, 2) + SourceIndex(4) +1 >Emitted(43, 5) Source(4, 1) + SourceIndex(4) +2 >Emitted(43, 6) Source(4, 2) + SourceIndex(4) --- ------------------------------------------------------------------- emittedFile:/src/app/module.js @@ -912,12 +872,12 @@ sourceFile:file4.ts 4 > = 5 > 30 6 > ; -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) +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) --- >>>function appfile4Spread() { 1-> @@ -927,9 +887,9 @@ sourceFile:file4.ts > 2 >function 3 > appfile4Spread -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) +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) --- >>> var b = []; 1 >^^^^ @@ -937,8 +897,8 @@ sourceFile:file4.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(67, 5) Source(2, 25) + SourceIndex(5) -2 >Emitted(67, 16) Source(2, 39) + SourceIndex(5) +1 >Emitted(47, 5) Source(2, 25) + SourceIndex(5) +2 >Emitted(47, 16) Source(2, 39) + SourceIndex(5) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -953,66 +913,66 @@ sourceFile:file4.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -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) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(69, 9) Source(2, 25) + SourceIndex(5) -2 >Emitted(69, 31) Source(2, 39) + SourceIndex(5) +1 >Emitted(49, 9) Source(2, 25) + SourceIndex(5) +2 >Emitted(49, 31) Source(2, 39) + SourceIndex(5) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(71, 1) Source(2, 43) + SourceIndex(5) -2 >Emitted(71, 2) Source(2, 44) + SourceIndex(5) +1 >Emitted(51, 1) Source(2, 43) + SourceIndex(5) +2 >Emitted(51, 2) Source(2, 44) + SourceIndex(5) --- ->>>appfile4Spread.apply(void 0, __spread([10, 20, 30])); +>>>appfile4Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >appfile4Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(72, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(72, 15) Source(3, 15) + SourceIndex(5) -3 >Emitted(72, 39) Source(3, 19) + SourceIndex(5) -4 >Emitted(72, 40) Source(3, 20) + SourceIndex(5) -5 >Emitted(72, 42) Source(3, 22) + SourceIndex(5) -6 >Emitted(72, 44) Source(3, 24) + SourceIndex(5) -7 >Emitted(72, 46) Source(3, 26) + SourceIndex(5) -8 >Emitted(72, 48) Source(3, 28) + SourceIndex(5) -9 >Emitted(72, 50) Source(3, 30) + SourceIndex(5) -10>Emitted(72, 51) Source(3, 31) + SourceIndex(5) -11>Emitted(72, 54) Source(3, 33) + SourceIndex(5) +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) --- >>>//# sourceMappingURL=module.js.map @@ -1028,46 +988,32 @@ sourceFile:file4.ts "sections": [ { "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1178, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 1180, - "end": 1956, + "pos": 502, + "end": 1268, "kind": "prepend", "data": "../lib/module.js", "texts": [ { - "pos": 1180, - "end": 1956, + "pos": 502, + "end": 1268, "kind": "text" } ] }, { - "pos": 1956, - "end": 2499, + "pos": 1268, + "end": 1801, "kind": "text" } ], "sources": { "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spread" + "typescript:rest" ] } }, @@ -1101,31 +1047,7 @@ sourceFile:file4.ts ====================================================================== File:: /src/app/module.js ---------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (678-1178):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -1138,9 +1060,9 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -prepend: (1180-1956):: ../lib/module.js texts:: 1 +prepend: (502-1268):: ../lib/module.js texts:: 1 >>-------------------------------------------------------------------- -text: (1180-1956) +text: (502-1268) var myGlob = 20; function libfile0Spread() { var b = []; @@ -1148,7 +1070,7 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, __spread([10, 20, 30])); +libfile0Spread.apply(void 0, [10, 20, 30]); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1167,7 +1089,7 @@ define("file2", ["require", "exports"], function (require, exports) { var globalConst = 10; ---------------------------------------------------------------------- -text: (1956-2499) +text: (1268-1801) define("file3", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1184,7 +1106,7 @@ function appfile4Spread() { b[_i] = arguments[_i]; } } -appfile4Spread.apply(void 0, __spread([10, 20, 30])); +appfile4Spread.apply(void 0, [10, 20, 30]); ====================================================================== ====================================================================== @@ -1376,26 +1298,6 @@ sourceFile:global.ts >>>//# 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 __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; 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) @@ -1414,7 +1316,7 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, __spread([10, 20, 30])); +libfile0Spread.apply(void 0, [10, 20, 30]); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1434,7 +1336,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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;;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,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"} //// [/src/lib/module.js.map.baseline.txt] =================================================================== @@ -1447,26 +1349,6 @@ 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 __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; >>>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) @@ -1492,12 +1374,12 @@ sourceFile:file0.ts 4 > = 5 > 20 6 > ; -1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0) -3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0) -4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0) -5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0) -6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0) +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) --- >>>function libfile0Spread() { 1-> @@ -1507,9 +1389,9 @@ sourceFile:file0.ts > 2 >function 3 > libfile0Spread -1->Emitted(33, 1) Source(2, 1) + SourceIndex(0) -2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0) -3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0) +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) --- >>> var b = []; 1 >^^^^ @@ -1517,8 +1399,8 @@ sourceFile:file0.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0) -2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0) +1 >Emitted(14, 5) Source(2, 25) + SourceIndex(0) +2 >Emitted(14, 16) Source(2, 39) + SourceIndex(0) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -1533,67 +1415,67 @@ sourceFile:file0.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(35, 10) Source(2, 25) + SourceIndex(0) -2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0) -3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0) -4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0) -5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0) -6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0) -2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0) +1 >Emitted(16, 9) Source(2, 25) + SourceIndex(0) +2 >Emitted(16, 31) Source(2, 39) + SourceIndex(0) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0) -2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0) +1 >Emitted(18, 1) Source(2, 43) + SourceIndex(0) +2 >Emitted(18, 2) Source(2, 44) + SourceIndex(0) --- ->>>libfile0Spread.apply(void 0, __spread([10, 20, 30])); +>>>libfile0Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ -12> ^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ +12> ^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1-> > 2 >libfile0Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(39, 1) Source(3, 1) + SourceIndex(0) -2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0) -3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0) -4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0) -5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0) -6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0) -7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0) -8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0) -9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0) -10>Emitted(39, 51) Source(3, 31) + SourceIndex(0) -11>Emitted(39, 54) Source(3, 33) + SourceIndex(0) +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) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.js @@ -1617,12 +1499,12 @@ sourceFile:file1.ts 4 > = 5 > 10 6 > ; -1->Emitted(44, 5) Source(1, 14) + SourceIndex(1) -2 >Emitted(44, 13) Source(1, 14) + SourceIndex(1) -3 >Emitted(44, 14) Source(1, 15) + SourceIndex(1) -4 >Emitted(44, 17) Source(1, 18) + SourceIndex(1) -5 >Emitted(44, 19) Source(1, 20) + SourceIndex(1) -6 >Emitted(44, 20) Source(1, 21) + SourceIndex(1) +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) --- >>> function forlibfile1Rest() { 1->^^^^ @@ -1632,9 +1514,9 @@ sourceFile:file1.ts 1-> 2 > function 3 > forlibfile1Rest -1->Emitted(45, 5) Source(1, 21) + SourceIndex(1) -2 >Emitted(45, 14) Source(1, 30) + SourceIndex(1) -3 >Emitted(45, 29) Source(1, 45) + SourceIndex(1) +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) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^^^^^ @@ -1688,31 +1570,31 @@ sourceFile:file1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(46, 9) Source(2, 1) + SourceIndex(1) -2 >Emitted(46, 13) Source(2, 7) + SourceIndex(1) -3 >Emitted(46, 18) Source(2, 24) + SourceIndex(1) -4 >Emitted(46, 20) Source(2, 26) + SourceIndex(1) -5 >Emitted(46, 21) Source(2, 27) + SourceIndex(1) -6 >Emitted(46, 23) Source(2, 29) + SourceIndex(1) -7 >Emitted(46, 25) Source(2, 31) + SourceIndex(1) -8 >Emitted(46, 27) Source(2, 33) + SourceIndex(1) -9 >Emitted(46, 28) Source(2, 34) + SourceIndex(1) -10>Emitted(46, 30) Source(2, 36) + SourceIndex(1) -11>Emitted(46, 32) Source(2, 38) + SourceIndex(1) -12>Emitted(46, 34) Source(2, 40) + SourceIndex(1) -13>Emitted(46, 36) Source(2, 42) + SourceIndex(1) -14>Emitted(46, 38) Source(2, 44) + SourceIndex(1) -15>Emitted(46, 40) Source(2, 46) + SourceIndex(1) -16>Emitted(46, 42) Source(2, 48) + SourceIndex(1) -17>Emitted(46, 44) Source(2, 9) + SourceIndex(1) -18>Emitted(46, 45) Source(2, 10) + SourceIndex(1) -19>Emitted(46, 52) Source(2, 10) + SourceIndex(1) -20>Emitted(46, 54) Source(2, 15) + SourceIndex(1) -21>Emitted(46, 58) Source(2, 19) + SourceIndex(1) -22>Emitted(46, 72) Source(2, 7) + SourceIndex(1) -23>Emitted(46, 77) Source(2, 21) + SourceIndex(1) -24>Emitted(46, 78) Source(2, 48) + SourceIndex(1) -25>Emitted(46, 79) Source(2, 49) + SourceIndex(1) +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 >^^^^ @@ -1720,8 +1602,8 @@ sourceFile:file1.ts 1 > > 2 > } -1 >Emitted(47, 5) Source(3, 1) + SourceIndex(1) -2 >Emitted(47, 6) Source(3, 2) + SourceIndex(1) +1 >Emitted(27, 5) Source(3, 1) + SourceIndex(1) +2 >Emitted(27, 6) Source(3, 2) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.js @@ -1745,12 +1627,12 @@ sourceFile:file2.ts 4 > = 5 > 20 6 > ; -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) +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) --- ------------------------------------------------------------------- emittedFile:/src/lib/module.js @@ -1771,12 +1653,12 @@ sourceFile:global.ts 4 > = 5 > 10 6 > ; -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) +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) --- >>>//# sourceMappingURL=module.js.map @@ -1794,32 +1676,18 @@ sourceFile:global.ts "sections": [ { "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1178, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 1180, - "end": 1956, + "pos": 502, + "end": 1268, "kind": "text" } ], "sources": { "helpers": [ - "typescript:read", - "typescript:spread", "typescript:rest" ] } @@ -1841,31 +1709,7 @@ sourceFile:global.ts ====================================================================== File:: /src/lib/module.js ---------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (678-1178):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -1878,7 +1722,7 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -text: (1180-1956) +text: (502-1268) var myGlob = 20; function libfile0Spread() { var b = []; @@ -1886,7 +1730,7 @@ function libfile0Spread() { b[_i] = arguments[_i]; } } -libfile0Spread.apply(void 0, __spread([10, 20, 30])); +libfile0Spread.apply(void 0, [10, 20, 30]); define("file1", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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 8656390abe226..f809353f1f543 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,26 +54,6 @@ 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 __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -90,11 +70,11 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +firstfirst_part3Spread.apply(void 0, [10, 20, 30]); //# 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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} +{"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"} //// [/src/first/bin/first-output.js.map.baseline.txt] =================================================================== @@ -118,26 +98,6 @@ 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 __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; >>>var s = "Hello, world"; 1 > 2 >^^^^ @@ -155,12 +115,12 @@ sourceFile:../first_PART1.ts 4 > = 5 > "Hello, world" 6 > ; -1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) --- >>>console.log(s); 1 > @@ -186,14 +146,14 @@ sourceFile:../first_PART1.ts 6 > s 7 > ) 8 > ; -1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) --- >>>function forfirstfirst_PART1Rest() { 1-> @@ -204,9 +164,9 @@ sourceFile:../first_PART1.ts > 2 >function 3 > forfirstfirst_PART1Rest -1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -260,31 +220,31 @@ sourceFile:../first_PART1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(35, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(35, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(35, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(35, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(35, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(35, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(35, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(35, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(35, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(35, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(35, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(35, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(35, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(35, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(35, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(35, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(35, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(35, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(35, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(35, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(35, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(35, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(35, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(35, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(35, 75) Source(13, 49) + SourceIndex(0) +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 > @@ -293,8 +253,8 @@ sourceFile:../first_PART1.ts 1 > > 2 >} -1 >Emitted(36, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(36, 2) Source(14, 2) + SourceIndex(0) +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) --- >>>console.log(s); 1-> @@ -314,14 +274,14 @@ sourceFile:../first_PART1.ts 6 > s 7 > ) 8 > ; -1->Emitted(37, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(37, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(37, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(37, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(37, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(37, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(37, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(37, 16) Source(14, 17) + SourceIndex(0) +1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/first/bin/first-output.js @@ -346,15 +306,15 @@ sourceFile:../first_part2.ts 7 > () 8 > ) 9 > ; -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) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/first/bin/first-output.js @@ -368,9 +328,9 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -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) +1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) --- >>> return "JS does hoists"; 1->^^^^ @@ -382,10 +342,10 @@ sourceFile:../first_part3.ts 2 > return 3 > "JS does hoists" 4 > ; -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->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 > @@ -394,8 +354,8 @@ sourceFile:../first_part3.ts 1 > > 2 >} -1 >Emitted(41, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(41, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) --- >>>function firstfirst_part3Spread() { 1-> @@ -405,9 +365,9 @@ sourceFile:../first_part3.ts > 2 >function 3 > firstfirst_part3Spread -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) +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) --- >>> var b = []; 1 >^^^^ @@ -415,8 +375,8 @@ sourceFile:../first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(43, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(43, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(23, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(23, 16) Source(4, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -431,66 +391,66 @@ sourceFile:../first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -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) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(45, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(45, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(25, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(25, 31) Source(4, 47) + SourceIndex(2) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(47, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(47, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(27, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(27, 2) Source(4, 52) + SourceIndex(2) --- ->>>firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +>>>firstfirst_part3Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >firstfirst_part3Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(48, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(48, 23) Source(5, 23) + SourceIndex(2) -3 >Emitted(48, 47) Source(5, 27) + SourceIndex(2) -4 >Emitted(48, 48) Source(5, 28) + SourceIndex(2) -5 >Emitted(48, 50) Source(5, 30) + SourceIndex(2) -6 >Emitted(48, 52) Source(5, 32) + SourceIndex(2) -7 >Emitted(48, 54) Source(5, 34) + SourceIndex(2) -8 >Emitted(48, 56) Source(5, 36) + SourceIndex(2) -9 >Emitted(48, 58) Source(5, 38) + SourceIndex(2) -10>Emitted(48, 59) Source(5, 39) + SourceIndex(2) -11>Emitted(48, 62) Source(5, 41) + SourceIndex(2) +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) --- >>>//# sourceMappingURL=first-output.js.map @@ -513,27 +473,13 @@ sourceFile:../first_part3.ts }, { "pos": 502, - "end": 1006, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 1008, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 1180, - "end": 1636, + "end": 948, "kind": "text" } ], "sources": { "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spread" + "typescript:rest" ] } }, @@ -567,31 +513,7 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -emitHelpers: (502-1006):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (1008-1178):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -text: (1180-1636) +text: (502-948) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -608,7 +530,7 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +firstfirst_part3Spread.apply(void 0, [10, 20, 30]); ====================================================================== ====================================================================== @@ -640,26 +562,6 @@ 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 __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -676,7 +578,7 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +firstfirst_part3Spread.apply(void 0, [10, 20, 30]); var N; (function (N) { function f() { @@ -701,7 +603,7 @@ function secondsecond_part2Spread() { b[_i] = arguments[_i]; } } -secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +secondsecond_part2Spread.apply(void 0, [10, 20, 30]); var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { @@ -713,11 +615,11 @@ function thirdthird_part1Spread() { b[_i] = arguments[_i]; } } -thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); +thirdthird_part1Spread.apply(void 0, [10, 20, 30]); //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACAxC,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;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"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -741,26 +643,6 @@ 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 __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; >>>var s = "Hello, world"; 1 > 2 >^^^^ @@ -778,12 +660,12 @@ sourceFile:../../../first/first_PART1.ts 4 > = 5 > "Hello, world" 6 > ; -1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) --- >>>console.log(s); 1 > @@ -809,14 +691,14 @@ sourceFile:../../../first/first_PART1.ts 6 > s 7 > ) 8 > ; -1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) --- >>>function forfirstfirst_PART1Rest() { 1-> @@ -827,9 +709,9 @@ sourceFile:../../../first/first_PART1.ts > 2 >function 3 > forfirstfirst_PART1Rest -1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -883,31 +765,31 @@ sourceFile:../../../first/first_PART1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(35, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(35, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(35, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(35, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(35, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(35, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(35, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(35, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(35, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(35, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(35, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(35, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(35, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(35, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(35, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(35, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(35, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(35, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(35, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(35, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(35, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(35, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(35, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(35, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(35, 75) Source(13, 49) + SourceIndex(0) +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 > @@ -916,8 +798,8 @@ sourceFile:../../../first/first_PART1.ts 1 > > 2 >} -1 >Emitted(36, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(36, 2) Source(14, 2) + SourceIndex(0) +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) --- >>>console.log(s); 1-> @@ -937,14 +819,14 @@ sourceFile:../../../first/first_PART1.ts 6 > s 7 > ) 8 > ; -1->Emitted(37, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(37, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(37, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(37, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(37, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(37, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(37, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(37, 16) Source(14, 17) + SourceIndex(0) +1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -969,15 +851,15 @@ sourceFile:../../../first/first_part2.ts 7 > () 8 > ) 9 > ; -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) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -991,9 +873,9 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -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) +1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) --- >>> return "JS does hoists"; 1->^^^^ @@ -1005,10 +887,10 @@ sourceFile:../../../first/first_part3.ts 2 > return 3 > "JS does hoists" 4 > ; -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->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 > @@ -1017,8 +899,8 @@ sourceFile:../../../first/first_part3.ts 1 > > 2 >} -1 >Emitted(41, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(41, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) --- >>>function firstfirst_part3Spread() { 1-> @@ -1028,9 +910,9 @@ sourceFile:../../../first/first_part3.ts > 2 >function 3 > firstfirst_part3Spread -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) +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) --- >>> var b = []; 1 >^^^^ @@ -1038,8 +920,8 @@ sourceFile:../../../first/first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(43, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(43, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(23, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(23, 16) Source(4, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -1054,66 +936,66 @@ sourceFile:../../../first/first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -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) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(45, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(45, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(25, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(25, 31) Source(4, 47) + SourceIndex(2) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(47, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(47, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(27, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(27, 2) Source(4, 52) + SourceIndex(2) --- ->>>firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +>>>firstfirst_part3Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >firstfirst_part3Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(48, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(48, 23) Source(5, 23) + SourceIndex(2) -3 >Emitted(48, 47) Source(5, 27) + SourceIndex(2) -4 >Emitted(48, 48) Source(5, 28) + SourceIndex(2) -5 >Emitted(48, 50) Source(5, 30) + SourceIndex(2) -6 >Emitted(48, 52) Source(5, 32) + SourceIndex(2) -7 >Emitted(48, 54) Source(5, 34) + SourceIndex(2) -8 >Emitted(48, 56) Source(5, 36) + SourceIndex(2) -9 >Emitted(48, 58) Source(5, 38) + SourceIndex(2) -10>Emitted(48, 59) Source(5, 39) + SourceIndex(2) -11>Emitted(48, 62) Source(5, 41) + SourceIndex(2) +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) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1139,10 +1021,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1 >Emitted(49, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(49, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(49, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(49, 7) Source(11, 2) + SourceIndex(3) +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) --- >>>(function (N) { 1-> @@ -1152,9 +1034,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(50, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(50, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(50, 13) Source(5, 12) + SourceIndex(3) +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) --- >>> function f() { 1->^^^^ @@ -1165,9 +1047,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(51, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(51, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(51, 15) Source(6, 15) + SourceIndex(3) +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) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -1187,14 +1069,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(52, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(52, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(52, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(52, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(52, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(52, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(52, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(52, 32) Source(7, 32) + SourceIndex(3) +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 >^^^^ @@ -1203,8 +1085,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(53, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(53, 6) Source(8, 6) + SourceIndex(3) +1 >Emitted(33, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(33, 6) Source(8, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -1218,10 +1100,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(54, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(54, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(54, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(54, 9) Source(10, 9) + SourceIndex(3) +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) --- >>>})(N || (N = {})); 1-> @@ -1246,13 +1128,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(55, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(55, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(55, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(55, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(55, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(55, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(55, 19) Source(11, 2) + SourceIndex(3) +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) --- >>>function forsecondsecond_part1Rest() { 1-> @@ -1263,9 +1145,9 @@ sourceFile:../../../second/second_part1.ts > 2 >function 3 > forsecondsecond_part1Rest -1->Emitted(56, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(56, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(56, 35) Source(12, 35) + SourceIndex(3) +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) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -1319,31 +1201,31 @@ sourceFile:../../../second/second_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(57, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(57, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(57, 14) Source(13, 24) + SourceIndex(3) -4 >Emitted(57, 16) Source(13, 26) + SourceIndex(3) -5 >Emitted(57, 17) Source(13, 27) + SourceIndex(3) -6 >Emitted(57, 19) Source(13, 29) + SourceIndex(3) -7 >Emitted(57, 21) Source(13, 31) + SourceIndex(3) -8 >Emitted(57, 23) Source(13, 33) + SourceIndex(3) -9 >Emitted(57, 24) Source(13, 34) + SourceIndex(3) -10>Emitted(57, 26) Source(13, 36) + SourceIndex(3) -11>Emitted(57, 28) Source(13, 38) + SourceIndex(3) -12>Emitted(57, 30) Source(13, 40) + SourceIndex(3) -13>Emitted(57, 32) Source(13, 42) + SourceIndex(3) -14>Emitted(57, 34) Source(13, 44) + SourceIndex(3) -15>Emitted(57, 36) Source(13, 46) + SourceIndex(3) -16>Emitted(57, 38) Source(13, 48) + SourceIndex(3) -17>Emitted(57, 40) Source(13, 9) + SourceIndex(3) -18>Emitted(57, 41) Source(13, 10) + SourceIndex(3) -19>Emitted(57, 48) Source(13, 10) + SourceIndex(3) -20>Emitted(57, 50) Source(13, 15) + SourceIndex(3) -21>Emitted(57, 54) Source(13, 19) + SourceIndex(3) -22>Emitted(57, 68) Source(13, 7) + SourceIndex(3) -23>Emitted(57, 73) Source(13, 21) + SourceIndex(3) -24>Emitted(57, 74) Source(13, 48) + SourceIndex(3) -25>Emitted(57, 75) Source(13, 49) + SourceIndex(3) +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 > @@ -1352,8 +1234,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 >} -1 >Emitted(58, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(58, 2) Source(14, 2) + SourceIndex(3) +1 >Emitted(38, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(38, 2) Source(14, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1363,13 +1245,13 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(59, 1) Source(1, 1) + SourceIndex(4) +1->Emitted(39, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(60, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(40, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -1381,8 +1263,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(61, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(61, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(41, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(41, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -1392,9 +1274,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(62, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(62, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(62, 31) Source(2, 5) + SourceIndex(4) +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) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -1414,14 +1296,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(63, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(63, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(63, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(63, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(63, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(63, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(63, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(63, 43) Source(3, 43) + SourceIndex(4) +1->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 >^^^^ @@ -1430,8 +1312,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(64, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(64, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(44, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(44, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -1439,8 +1321,8 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(65, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(65, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(45, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(45, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > @@ -1456,10 +1338,10 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(66, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(66, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(66, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(66, 6) Source(5, 2) + SourceIndex(4) +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) --- >>>function secondsecond_part2Spread() { 1-> @@ -1470,9 +1352,9 @@ sourceFile:../../../second/second_part2.ts > 2 >function 3 > secondsecond_part2Spread -1->Emitted(67, 1) Source(7, 1) + SourceIndex(4) -2 >Emitted(67, 10) Source(7, 10) + SourceIndex(4) -3 >Emitted(67, 34) Source(7, 34) + SourceIndex(4) +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) --- >>> var b = []; 1 >^^^^ @@ -1480,8 +1362,8 @@ sourceFile:../../../second/second_part2.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(68, 5) Source(7, 35) + SourceIndex(4) -2 >Emitted(68, 16) Source(7, 49) + SourceIndex(4) +1 >Emitted(48, 5) Source(7, 35) + SourceIndex(4) +2 >Emitted(48, 16) Source(7, 49) + SourceIndex(4) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -1496,66 +1378,66 @@ sourceFile:../../../second/second_part2.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(69, 10) Source(7, 35) + SourceIndex(4) -2 >Emitted(69, 20) Source(7, 49) + SourceIndex(4) -3 >Emitted(69, 22) Source(7, 35) + SourceIndex(4) -4 >Emitted(69, 43) Source(7, 49) + SourceIndex(4) -5 >Emitted(69, 45) Source(7, 35) + SourceIndex(4) -6 >Emitted(69, 49) Source(7, 49) + SourceIndex(4) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(70, 9) Source(7, 35) + SourceIndex(4) -2 >Emitted(70, 31) Source(7, 49) + SourceIndex(4) +1 >Emitted(50, 9) Source(7, 35) + SourceIndex(4) +2 >Emitted(50, 31) Source(7, 49) + SourceIndex(4) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(72, 1) Source(7, 53) + SourceIndex(4) -2 >Emitted(72, 2) Source(7, 54) + SourceIndex(4) +1 >Emitted(52, 1) Source(7, 53) + SourceIndex(4) +2 >Emitted(52, 2) Source(7, 54) + SourceIndex(4) --- ->>>secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +>>>secondsecond_part2Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >secondsecond_part2Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(73, 1) Source(8, 1) + SourceIndex(4) -2 >Emitted(73, 25) Source(8, 25) + SourceIndex(4) -3 >Emitted(73, 49) Source(8, 29) + SourceIndex(4) -4 >Emitted(73, 50) Source(8, 30) + SourceIndex(4) -5 >Emitted(73, 52) Source(8, 32) + SourceIndex(4) -6 >Emitted(73, 54) Source(8, 34) + SourceIndex(4) -7 >Emitted(73, 56) Source(8, 36) + SourceIndex(4) -8 >Emitted(73, 58) Source(8, 38) + SourceIndex(4) -9 >Emitted(73, 60) Source(8, 40) + SourceIndex(4) -10>Emitted(73, 61) Source(8, 41) + SourceIndex(4) -11>Emitted(73, 64) Source(8, 43) + SourceIndex(4) +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) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1579,14 +1461,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1 >Emitted(74, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(74, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(74, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(74, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(74, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(74, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(74, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(74, 17) Source(1, 17) + SourceIndex(5) +1 >Emitted(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) --- >>>c.doSomething(); 1-> @@ -1603,12 +1485,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(75, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(75, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(75, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(75, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(75, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(75, 17) Source(2, 17) + SourceIndex(5) +1->Emitted(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) --- >>>function forthirdthird_part1Rest() { 1-> @@ -1619,9 +1501,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > forthirdthird_part1Rest -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) +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) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -1675,31 +1557,31 @@ sourceFile:../../third_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -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->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 > @@ -1708,8 +1590,8 @@ sourceFile:../../third_part1.ts 1 > > 2 >} -1 >Emitted(78, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(78, 2) Source(5, 2) + SourceIndex(5) +1 >Emitted(58, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(58, 2) Source(5, 2) + SourceIndex(5) --- >>>function thirdthird_part1Spread() { 1-> @@ -1719,9 +1601,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > thirdthird_part1Spread -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) +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) --- >>> var b = []; 1 >^^^^ @@ -1729,8 +1611,8 @@ sourceFile:../../third_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(80, 5) Source(6, 33) + SourceIndex(5) -2 >Emitted(80, 16) Source(6, 47) + SourceIndex(5) +1 >Emitted(60, 5) Source(6, 33) + SourceIndex(5) +2 >Emitted(60, 16) Source(6, 47) + SourceIndex(5) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -1745,66 +1627,66 @@ sourceFile:../../third_part1.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -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) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(82, 9) Source(6, 33) + SourceIndex(5) -2 >Emitted(82, 31) Source(6, 47) + SourceIndex(5) +1 >Emitted(62, 9) Source(6, 33) + SourceIndex(5) +2 >Emitted(62, 31) Source(6, 47) + SourceIndex(5) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(84, 1) Source(6, 51) + SourceIndex(5) -2 >Emitted(84, 2) Source(6, 52) + SourceIndex(5) +1 >Emitted(64, 1) Source(6, 51) + SourceIndex(5) +2 >Emitted(64, 2) Source(6, 52) + SourceIndex(5) --- ->>>thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); +>>>thirdthird_part1Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >thirdthird_part1Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(85, 1) Source(7, 1) + SourceIndex(5) -2 >Emitted(85, 23) Source(7, 23) + SourceIndex(5) -3 >Emitted(85, 47) Source(7, 27) + SourceIndex(5) -4 >Emitted(85, 48) Source(7, 28) + SourceIndex(5) -5 >Emitted(85, 50) Source(7, 30) + SourceIndex(5) -6 >Emitted(85, 52) Source(7, 32) + SourceIndex(5) -7 >Emitted(85, 54) Source(7, 34) + SourceIndex(5) -8 >Emitted(85, 56) Source(7, 36) + SourceIndex(5) -9 >Emitted(85, 58) Source(7, 38) + SourceIndex(5) -10>Emitted(85, 59) Source(7, 39) + SourceIndex(5) -11>Emitted(85, 62) Source(7, 41) + SourceIndex(5) +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) --- >>>//# sourceMappingURL=third-output.js.map @@ -1825,53 +1707,39 @@ sourceFile:../../third_part1.ts }, { "pos": 502, - "end": 1006, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 1008, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 1180, - "end": 1636, + "end": 948, "kind": "prepend", "data": "../../../first/bin/first-output.js", "texts": [ { - "pos": 1180, - "end": 1636, + "pos": 502, + "end": 948, "kind": "text" } ] }, { - "pos": 1636, - "end": 2256, + "pos": 948, + "end": 1558, "kind": "prepend", "data": "../../../2/second-output.js", "texts": [ { - "pos": 1636, - "end": 2256, + "pos": 948, + "end": 1558, "kind": "text" } ] }, { - "pos": 2256, - "end": 2621, + "pos": 1558, + "end": 1913, "kind": "text" } ], "sources": { "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spread" + "typescript:rest" ] } }, @@ -1931,33 +1799,9 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -emitHelpers: (502-1006):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (1008-1178):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -prepend: (1180-1636):: ../../../first/bin/first-output.js texts:: 1 +prepend: (502-948):: ../../../first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1180-1636) +text: (502-948) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -1974,12 +1818,12 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +firstfirst_part3Spread.apply(void 0, [10, 20, 30]); ---------------------------------------------------------------------- -prepend: (1636-2256):: ../../../2/second-output.js texts:: 1 +prepend: (948-1558):: ../../../2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1636-2256) +text: (948-1558) var N; (function (N) { function f() { @@ -2004,10 +1848,10 @@ function secondsecond_part2Spread() { b[_i] = arguments[_i]; } } -secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +secondsecond_part2Spread.apply(void 0, [10, 20, 30]); ---------------------------------------------------------------------- -text: (2256-2621) +text: (1558-1913) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { @@ -2019,7 +1863,7 @@ function thirdthird_part1Spread() { b[_i] = arguments[_i]; } } -thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); +thirdthird_part1Spread.apply(void 0, [10, 20, 30]); ====================================================================== ====================================================================== 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 496c7c571a9cc..a41864180b9af 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,26 +452,6 @@ 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 __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -495,7 +475,7 @@ function secondsecond_part1Spread() { b[_i] = arguments[_i]; } } -secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +secondsecond_part1Spread.apply(void 0, [10, 20, 30]); var C = (function () { function C() { } @@ -512,7 +492,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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;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,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"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -536,26 +516,6 @@ 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 __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; >>>var s = "Hello, world"; 1 > 2 >^^^^ @@ -573,12 +533,12 @@ sourceFile:../../../first/first_PART1.ts 4 > = 5 > "Hello, world" 6 > ; -1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) --- >>>console.log(s); 1 > @@ -604,14 +564,14 @@ sourceFile:../../../first/first_PART1.ts 6 > s 7 > ) 8 > ; -1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) --- >>>function forfirstfirst_PART1Rest() { 1-> @@ -622,9 +582,9 @@ sourceFile:../../../first/first_PART1.ts > 2 >function 3 > forfirstfirst_PART1Rest -1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -678,31 +638,31 @@ sourceFile:../../../first/first_PART1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(35, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(35, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(35, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(35, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(35, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(35, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(35, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(35, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(35, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(35, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(35, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(35, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(35, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(35, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(35, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(35, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(35, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(35, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(35, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(35, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(35, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(35, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(35, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(35, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(35, 75) Source(13, 49) + SourceIndex(0) +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 > @@ -711,8 +671,8 @@ sourceFile:../../../first/first_PART1.ts 1 > > 2 >} -1 >Emitted(36, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(36, 2) Source(14, 2) + SourceIndex(0) +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) --- >>>console.log(s); 1-> @@ -732,14 +692,14 @@ sourceFile:../../../first/first_PART1.ts 6 > s 7 > ) 8 > ; -1->Emitted(37, 1) Source(14, 2) + SourceIndex(0) -2 >Emitted(37, 8) Source(14, 9) + SourceIndex(0) -3 >Emitted(37, 9) Source(14, 10) + SourceIndex(0) -4 >Emitted(37, 12) Source(14, 13) + SourceIndex(0) -5 >Emitted(37, 13) Source(14, 14) + SourceIndex(0) -6 >Emitted(37, 14) Source(14, 15) + SourceIndex(0) -7 >Emitted(37, 15) Source(14, 16) + SourceIndex(0) -8 >Emitted(37, 16) Source(14, 17) + SourceIndex(0) +1->Emitted(17, 1) Source(14, 2) + SourceIndex(0) +2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0) +3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0) +4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0) +5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0) +6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0) +7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0) +8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -764,15 +724,15 @@ sourceFile:../../../first/first_part2.ts 7 > () 8 > ) 9 > ; -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) +1->Emitted(18, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -786,9 +746,9 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -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) +1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2) --- >>> return "JS does hoists"; 1->^^^^ @@ -800,10 +760,10 @@ sourceFile:../../../first/first_part3.ts 2 > return 3 > "JS does hoists" 4 > ; -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->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 > @@ -812,8 +772,8 @@ sourceFile:../../../first/first_part3.ts 1 > > 2 >} -1 >Emitted(41, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(41, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -839,10 +799,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -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) +1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(22, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(22, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(22, 7) Source(11, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -852,9 +812,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -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) +1->Emitted(23, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(23, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(23, 13) Source(5, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -865,9 +825,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -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) +1->Emitted(24, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(24, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(24, 15) Source(6, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -887,14 +847,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -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->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 >^^^^ @@ -903,8 +863,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(46, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(46, 6) Source(8, 6) + SourceIndex(3) +1 >Emitted(26, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(26, 6) Source(8, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -918,10 +878,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -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) +1->Emitted(27, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(27, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(27, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(27, 9) Source(10, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -946,13 +906,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -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) +1->Emitted(28, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(28, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(28, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(28, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(28, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(28, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(28, 19) Source(11, 2) + SourceIndex(3) --- >>>function secondsecond_part1Spread() { 1-> @@ -963,9 +923,9 @@ sourceFile:../../../second/second_part1.ts > 2 >function 3 > secondsecond_part1Spread -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) +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) --- >>> var b = []; 1 >^^^^ @@ -973,8 +933,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(50, 5) Source(13, 35) + SourceIndex(3) -2 >Emitted(50, 16) Source(13, 49) + SourceIndex(3) +1 >Emitted(30, 5) Source(13, 35) + SourceIndex(3) +2 >Emitted(30, 16) Source(13, 49) + SourceIndex(3) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -989,66 +949,66 @@ sourceFile:../../../second/second_part1.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -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) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(52, 9) Source(13, 35) + SourceIndex(3) -2 >Emitted(52, 31) Source(13, 49) + SourceIndex(3) +1 >Emitted(32, 9) Source(13, 35) + SourceIndex(3) +2 >Emitted(32, 31) Source(13, 49) + SourceIndex(3) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(54, 1) Source(13, 53) + SourceIndex(3) -2 >Emitted(54, 2) Source(13, 54) + SourceIndex(3) +1 >Emitted(34, 1) Source(13, 53) + SourceIndex(3) +2 >Emitted(34, 2) Source(13, 54) + SourceIndex(3) --- ->>>secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +>>>secondsecond_part1Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >secondsecond_part1Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(55, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(55, 25) Source(14, 25) + SourceIndex(3) -3 >Emitted(55, 49) Source(14, 29) + SourceIndex(3) -4 >Emitted(55, 50) Source(14, 30) + SourceIndex(3) -5 >Emitted(55, 52) Source(14, 32) + SourceIndex(3) -6 >Emitted(55, 54) Source(14, 34) + SourceIndex(3) -7 >Emitted(55, 56) Source(14, 36) + SourceIndex(3) -8 >Emitted(55, 58) Source(14, 38) + SourceIndex(3) -9 >Emitted(55, 60) Source(14, 40) + SourceIndex(3) -10>Emitted(55, 61) Source(14, 41) + SourceIndex(3) -11>Emitted(55, 64) Source(14, 43) + SourceIndex(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) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1058,13 +1018,13 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(56, 1) Source(1, 1) + SourceIndex(4) +1 >Emitted(36, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(57, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(37, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -1076,8 +1036,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(58, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(58, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(38, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(38, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -1087,9 +1047,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(59, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(59, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(59, 31) Source(2, 5) + SourceIndex(4) +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) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -1109,14 +1069,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(60, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(60, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(60, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(60, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(60, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(60, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(60, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(60, 43) Source(3, 43) + SourceIndex(4) +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 >^^^^ @@ -1125,8 +1085,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(61, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(61, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(41, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(41, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -1134,8 +1094,8 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(62, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(62, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(42, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(42, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > @@ -1151,10 +1111,10 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(63, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(63, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(63, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(63, 6) Source(5, 2) + SourceIndex(4) +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) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1178,14 +1138,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1->Emitted(64, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(64, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(64, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(64, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(64, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(64, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(64, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(64, 17) Source(1, 17) + SourceIndex(5) +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) --- >>>c.doSomething(); 1-> @@ -1202,12 +1162,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(65, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(65, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(65, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(65, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(65, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(65, 17) Source(2, 17) + SourceIndex(5) +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) --- >>>function forthirdthird_part1Rest() { 1-> @@ -1218,9 +1178,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > forthirdthird_part1Rest -1->Emitted(66, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(66, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(66, 33) Source(3, 33) + SourceIndex(5) +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) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -1274,31 +1234,31 @@ sourceFile:../../third_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(67, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(67, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(67, 14) Source(4, 24) + SourceIndex(5) -4 >Emitted(67, 16) Source(4, 26) + SourceIndex(5) -5 >Emitted(67, 17) Source(4, 27) + SourceIndex(5) -6 >Emitted(67, 19) Source(4, 29) + SourceIndex(5) -7 >Emitted(67, 21) Source(4, 31) + SourceIndex(5) -8 >Emitted(67, 23) Source(4, 33) + SourceIndex(5) -9 >Emitted(67, 24) Source(4, 34) + SourceIndex(5) -10>Emitted(67, 26) Source(4, 36) + SourceIndex(5) -11>Emitted(67, 28) Source(4, 38) + SourceIndex(5) -12>Emitted(67, 30) Source(4, 40) + SourceIndex(5) -13>Emitted(67, 32) Source(4, 42) + SourceIndex(5) -14>Emitted(67, 34) Source(4, 44) + SourceIndex(5) -15>Emitted(67, 36) Source(4, 46) + SourceIndex(5) -16>Emitted(67, 38) Source(4, 48) + SourceIndex(5) -17>Emitted(67, 40) Source(4, 9) + SourceIndex(5) -18>Emitted(67, 41) Source(4, 10) + SourceIndex(5) -19>Emitted(67, 48) Source(4, 10) + SourceIndex(5) -20>Emitted(67, 50) Source(4, 15) + SourceIndex(5) -21>Emitted(67, 54) Source(4, 19) + SourceIndex(5) -22>Emitted(67, 68) Source(4, 7) + SourceIndex(5) -23>Emitted(67, 73) Source(4, 21) + SourceIndex(5) -24>Emitted(67, 74) Source(4, 48) + SourceIndex(5) -25>Emitted(67, 75) Source(4, 49) + SourceIndex(5) +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 > @@ -1307,8 +1267,8 @@ sourceFile:../../third_part1.ts 1 > > 2 >} -1 >Emitted(68, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(68, 2) Source(5, 2) + SourceIndex(5) +1 >Emitted(48, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(48, 2) Source(5, 2) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map @@ -1329,45 +1289,33 @@ sourceFile:../../third_part1.ts }, { "pos": 502, - "end": 1006, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 1008, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 1180, - "end": 1424, + "end": 746, "kind": "prepend", "data": "../../../first/bin/first-output.js", "texts": [ { - "pos": 1180, - "end": 1424, + "pos": 502, + "end": 746, "kind": "text" } ] }, { - "pos": 1424, - "end": 1925, + "pos": 746, + "end": 1237, "kind": "prepend", "data": "../../../2/second-output.js", "texts": [ { - "pos": 1424, - "end": 1925, + "pos": 746, + "end": 1237, "kind": "text" } ] }, { - "pos": 1925, - "end": 2078, + "pos": 1237, + "end": 1390, "kind": "text" } ], @@ -1433,33 +1381,9 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -emitHelpers: (502-1006):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (1008-1178):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -prepend: (1180-1424):: ../../../first/bin/first-output.js texts:: 1 +prepend: (502-746):: ../../../first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1180-1424) +text: (502-746) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -1472,9 +1396,9 @@ function f() { } ---------------------------------------------------------------------- -prepend: (1424-1925):: ../../../2/second-output.js texts:: 1 +prepend: (746-1237):: ../../../2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1424-1925) +text: (746-1237) var N; (function (N) { function f() { @@ -1488,7 +1412,7 @@ function secondsecond_part1Spread() { b[_i] = arguments[_i]; } } -secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +secondsecond_part1Spread.apply(void 0, [10, 20, 30]); var C = (function () { function C() { } @@ -1499,7 +1423,7 @@ var C = (function () { }()); ---------------------------------------------------------------------- -text: (1925-2078) +text: (1237-1390) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { 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 b643b821abf1e..1a5c17cdf1e0c 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 @@ -219,26 +219,6 @@ sourceFile:../first_part3.ts >>>//# 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 __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { } @@ -252,11 +232,11 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +firstfirst_part3Spread.apply(void 0, [10, 20, 30]); //# 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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} +{"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"} //// [/src/first/bin/first-output.js.map.baseline.txt] =================================================================== @@ -269,26 +249,6 @@ 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 __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; >>>var s = "Hello, world"; 1 > 2 >^^^^ @@ -306,12 +266,12 @@ sourceFile:../first_PART1.ts 4 > = 5 > "Hello, world" 6 > ; -1 >Emitted(21, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(21, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(21, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(21, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(21, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(21, 24) Source(5, 26) + SourceIndex(0) +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(1, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(1, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(1, 24) Source(5, 26) + SourceIndex(0) --- >>>console.log(s); 1 > @@ -337,14 +297,14 @@ sourceFile:../first_PART1.ts 6 > s 7 > ) 8 > ; -1 >Emitted(22, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(22, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(22, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(22, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(22, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(22, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(22, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(22, 16) Source(11, 16) + SourceIndex(0) +1 >Emitted(2, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(2, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(2, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(2, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(2, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(2, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(2, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(2, 16) Source(11, 16) + SourceIndex(0) --- >>>function forfirstfirst_PART1Rest() { } 1-> @@ -358,11 +318,11 @@ sourceFile:../first_PART1.ts 3 > forfirstfirst_PART1Rest 4 > () { 5 > } -1->Emitted(23, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(23, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(23, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(23, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(23, 39) Source(12, 39) + SourceIndex(0) +1->Emitted(3, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(3, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(3, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(3, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(3, 39) Source(12, 39) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/first/bin/first-output.js @@ -387,15 +347,15 @@ sourceFile:../first_part2.ts 7 > () 8 > ) 9 > ; -1 >Emitted(24, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(24, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(24, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(24, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(24, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(24, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(24, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(24, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(24, 18) Source(1, 18) + SourceIndex(1) +1 >Emitted(4, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(4, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(4, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(4, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(4, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(4, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(4, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(4, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(4, 18) Source(1, 18) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/first/bin/first-output.js @@ -409,9 +369,9 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -1 >Emitted(25, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(25, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(25, 11) Source(1, 11) + SourceIndex(2) +1 >Emitted(5, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(5, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(5, 11) Source(1, 11) + SourceIndex(2) --- >>> return "JS does hoists"; 1->^^^^ @@ -423,10 +383,10 @@ sourceFile:../first_part3.ts 2 > return 3 > "JS does hoists" 4 > ; -1->Emitted(26, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(26, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(26, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(26, 29) Source(2, 29) + SourceIndex(2) +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 > @@ -435,8 +395,8 @@ sourceFile:../first_part3.ts 1 > > 2 >} -1 >Emitted(27, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(27, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(7, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(7, 2) Source(3, 2) + SourceIndex(2) --- >>>function firstfirst_part3Spread() { 1-> @@ -446,9 +406,9 @@ sourceFile:../first_part3.ts > 2 >function 3 > firstfirst_part3Spread -1->Emitted(28, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(28, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(28, 32) Source(4, 32) + SourceIndex(2) +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) --- >>> var b = []; 1 >^^^^ @@ -456,8 +416,8 @@ sourceFile:../first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(29, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(29, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(9, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(9, 16) Source(4, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -472,66 +432,66 @@ sourceFile:../first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(30, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(30, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(30, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(30, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(30, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(30, 49) Source(4, 47) + SourceIndex(2) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(31, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(31, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(11, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(11, 31) Source(4, 47) + SourceIndex(2) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(33, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(33, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(13, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(13, 2) Source(4, 52) + SourceIndex(2) --- ->>>firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +>>>firstfirst_part3Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >firstfirst_part3Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(34, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(34, 23) Source(5, 23) + SourceIndex(2) -3 >Emitted(34, 47) Source(5, 27) + SourceIndex(2) -4 >Emitted(34, 48) Source(5, 28) + SourceIndex(2) -5 >Emitted(34, 50) Source(5, 30) + SourceIndex(2) -6 >Emitted(34, 52) Source(5, 32) + SourceIndex(2) -7 >Emitted(34, 54) Source(5, 34) + SourceIndex(2) -8 >Emitted(34, 56) Source(5, 36) + SourceIndex(2) -9 >Emitted(34, 58) Source(5, 38) + SourceIndex(2) -10>Emitted(34, 59) Source(5, 39) + SourceIndex(2) -11>Emitted(34, 62) Source(5, 41) + SourceIndex(2) +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) --- >>>//# sourceMappingURL=first-output.js.map @@ -548,28 +508,10 @@ sourceFile:../first_part3.ts "sections": [ { "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1040, + "end": 352, "kind": "text" } - ], - "sources": { - "helpers": [ - "typescript:read", - "typescript:spread" - ] - } + ] }, "dts": { "sections": [ @@ -588,31 +530,7 @@ sourceFile:../first_part3.ts ====================================================================== File:: /src/first/bin/first-output.js ---------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -text: (678-1040) +text: (0-352) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { } @@ -626,7 +544,7 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +firstfirst_part3Spread.apply(void 0, [10, 20, 30]); ====================================================================== ====================================================================== @@ -1037,26 +955,6 @@ sourceFile:../../third_part1.ts >>>//# 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 __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; 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) @@ -1081,7 +979,7 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +firstfirst_part3Spread.apply(void 0, [10, 20, 30]); var N; (function (N) { function f() { @@ -1106,7 +1004,7 @@ function secondsecond_part2Spread() { b[_i] = arguments[_i]; } } -secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +secondsecond_part2Spread.apply(void 0, [10, 20, 30]); var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { @@ -1118,11 +1016,11 @@ function thirdthird_part1Spread() { b[_i] = arguments[_i]; } } -thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); +thirdthird_part1Spread.apply(void 0, [10, 20, 30]); //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACAxC,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;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"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -1135,26 +1033,6 @@ 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 __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; >>>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) @@ -1183,12 +1061,12 @@ sourceFile:../../../first/first_PART1.ts 4 > = 5 > "Hello, world" 6 > ; -1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) --- >>>console.log(s); 1 > @@ -1214,14 +1092,14 @@ sourceFile:../../../first/first_PART1.ts 6 > s 7 > ) 8 > ; -1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) --- >>>function forfirstfirst_PART1Rest() { } 1-> @@ -1235,11 +1113,11 @@ sourceFile:../../../first/first_PART1.ts 3 > forfirstfirst_PART1Rest 4 > () { 5 > } -1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(34, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(34, 39) Source(12, 39) + SourceIndex(0) +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(14, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(14, 39) Source(12, 39) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1264,15 +1142,15 @@ sourceFile:../../../first/first_part2.ts 7 > () 8 > ) 9 > ; -1 >Emitted(35, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(35, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(35, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(35, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(35, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(35, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(35, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(35, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(35, 18) Source(1, 18) + SourceIndex(1) +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(15, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(15, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(15, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(15, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(15, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(15, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(15, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(15, 18) Source(1, 18) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1286,9 +1164,9 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -1 >Emitted(36, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(36, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(36, 11) Source(1, 11) + SourceIndex(2) +1 >Emitted(16, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(16, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(16, 11) Source(1, 11) + SourceIndex(2) --- >>> return "JS does hoists"; 1->^^^^ @@ -1300,10 +1178,10 @@ sourceFile:../../../first/first_part3.ts 2 > return 3 > "JS does hoists" 4 > ; -1->Emitted(37, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(37, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(37, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(37, 29) Source(2, 29) + SourceIndex(2) +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 > @@ -1312,8 +1190,8 @@ sourceFile:../../../first/first_part3.ts 1 > > 2 >} -1 >Emitted(38, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(38, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(18, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(3, 2) + SourceIndex(2) --- >>>function firstfirst_part3Spread() { 1-> @@ -1323,9 +1201,9 @@ sourceFile:../../../first/first_part3.ts > 2 >function 3 > firstfirst_part3Spread -1->Emitted(39, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(39, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(39, 32) Source(4, 32) + SourceIndex(2) +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) --- >>> var b = []; 1 >^^^^ @@ -1333,8 +1211,8 @@ sourceFile:../../../first/first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(40, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(40, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(20, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(20, 16) Source(4, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -1349,66 +1227,66 @@ sourceFile:../../../first/first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(41, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(41, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(41, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(41, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(41, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(41, 49) Source(4, 47) + SourceIndex(2) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(42, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(42, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(22, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(22, 31) Source(4, 47) + SourceIndex(2) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(44, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(44, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(24, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(24, 2) Source(4, 52) + SourceIndex(2) --- ->>>firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +>>>firstfirst_part3Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >firstfirst_part3Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(45, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(45, 23) Source(5, 23) + SourceIndex(2) -3 >Emitted(45, 47) Source(5, 27) + SourceIndex(2) -4 >Emitted(45, 48) Source(5, 28) + SourceIndex(2) -5 >Emitted(45, 50) Source(5, 30) + SourceIndex(2) -6 >Emitted(45, 52) Source(5, 32) + SourceIndex(2) -7 >Emitted(45, 54) Source(5, 34) + SourceIndex(2) -8 >Emitted(45, 56) Source(5, 36) + SourceIndex(2) -9 >Emitted(45, 58) Source(5, 38) + SourceIndex(2) -10>Emitted(45, 59) Source(5, 39) + SourceIndex(2) -11>Emitted(45, 62) Source(5, 41) + SourceIndex(2) +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) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1434,10 +1312,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1 >Emitted(46, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(46, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(46, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(46, 7) Source(11, 2) + SourceIndex(3) +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) --- >>>(function (N) { 1-> @@ -1447,9 +1325,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(47, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(47, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(47, 13) Source(5, 12) + SourceIndex(3) +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) --- >>> function f() { 1->^^^^ @@ -1460,9 +1338,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(48, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(48, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(48, 15) Source(6, 15) + SourceIndex(3) +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) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -1482,14 +1360,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(49, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(49, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(49, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(49, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(49, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(49, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(49, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(49, 32) Source(7, 32) + SourceIndex(3) +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 >^^^^ @@ -1498,8 +1376,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(50, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(50, 6) Source(8, 6) + SourceIndex(3) +1 >Emitted(30, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(30, 6) Source(8, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -1513,10 +1391,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(51, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(51, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(51, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(51, 9) Source(10, 9) + SourceIndex(3) +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) --- >>>})(N || (N = {})); 1-> @@ -1541,13 +1419,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(52, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(52, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(52, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(52, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(52, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(52, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(52, 19) Source(11, 2) + SourceIndex(3) +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) --- >>>function forsecondsecond_part1Rest() { 1-> @@ -1558,9 +1436,9 @@ sourceFile:../../../second/second_part1.ts > 2 >function 3 > forsecondsecond_part1Rest -1->Emitted(53, 1) Source(12, 1) + SourceIndex(3) -2 >Emitted(53, 10) Source(12, 10) + SourceIndex(3) -3 >Emitted(53, 35) Source(12, 35) + SourceIndex(3) +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) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -1614,31 +1492,31 @@ sourceFile:../../../second/second_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(54, 5) Source(13, 1) + SourceIndex(3) -2 >Emitted(54, 9) Source(13, 7) + SourceIndex(3) -3 >Emitted(54, 14) Source(13, 24) + SourceIndex(3) -4 >Emitted(54, 16) Source(13, 26) + SourceIndex(3) -5 >Emitted(54, 17) Source(13, 27) + SourceIndex(3) -6 >Emitted(54, 19) Source(13, 29) + SourceIndex(3) -7 >Emitted(54, 21) Source(13, 31) + SourceIndex(3) -8 >Emitted(54, 23) Source(13, 33) + SourceIndex(3) -9 >Emitted(54, 24) Source(13, 34) + SourceIndex(3) -10>Emitted(54, 26) Source(13, 36) + SourceIndex(3) -11>Emitted(54, 28) Source(13, 38) + SourceIndex(3) -12>Emitted(54, 30) Source(13, 40) + SourceIndex(3) -13>Emitted(54, 32) Source(13, 42) + SourceIndex(3) -14>Emitted(54, 34) Source(13, 44) + SourceIndex(3) -15>Emitted(54, 36) Source(13, 46) + SourceIndex(3) -16>Emitted(54, 38) Source(13, 48) + SourceIndex(3) -17>Emitted(54, 40) Source(13, 9) + SourceIndex(3) -18>Emitted(54, 41) Source(13, 10) + SourceIndex(3) -19>Emitted(54, 48) Source(13, 10) + SourceIndex(3) -20>Emitted(54, 50) Source(13, 15) + SourceIndex(3) -21>Emitted(54, 54) Source(13, 19) + SourceIndex(3) -22>Emitted(54, 68) Source(13, 7) + SourceIndex(3) -23>Emitted(54, 73) Source(13, 21) + SourceIndex(3) -24>Emitted(54, 74) Source(13, 48) + SourceIndex(3) -25>Emitted(54, 75) Source(13, 49) + SourceIndex(3) +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 > @@ -1647,8 +1525,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 >} -1 >Emitted(55, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(55, 2) Source(14, 2) + SourceIndex(3) +1 >Emitted(35, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(35, 2) Source(14, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1658,13 +1536,13 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(56, 1) Source(1, 1) + SourceIndex(4) +1->Emitted(36, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(57, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(37, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -1676,8 +1554,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(58, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(58, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(38, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(38, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -1687,9 +1565,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(59, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(59, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(59, 31) Source(2, 5) + SourceIndex(4) +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) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -1709,14 +1587,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(60, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(60, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(60, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(60, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(60, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(60, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(60, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(60, 43) Source(3, 43) + SourceIndex(4) +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 >^^^^ @@ -1725,8 +1603,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(61, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(61, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(41, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(41, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -1734,8 +1612,8 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(62, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(62, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(42, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(42, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > @@ -1751,10 +1629,10 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(63, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(63, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(63, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(63, 6) Source(5, 2) + SourceIndex(4) +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) --- >>>function secondsecond_part2Spread() { 1-> @@ -1765,9 +1643,9 @@ sourceFile:../../../second/second_part2.ts > 2 >function 3 > secondsecond_part2Spread -1->Emitted(64, 1) Source(7, 1) + SourceIndex(4) -2 >Emitted(64, 10) Source(7, 10) + SourceIndex(4) -3 >Emitted(64, 34) Source(7, 34) + SourceIndex(4) +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) --- >>> var b = []; 1 >^^^^ @@ -1775,8 +1653,8 @@ sourceFile:../../../second/second_part2.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(65, 5) Source(7, 35) + SourceIndex(4) -2 >Emitted(65, 16) Source(7, 49) + SourceIndex(4) +1 >Emitted(45, 5) Source(7, 35) + SourceIndex(4) +2 >Emitted(45, 16) Source(7, 49) + SourceIndex(4) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -1791,66 +1669,66 @@ sourceFile:../../../second/second_part2.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(66, 10) Source(7, 35) + SourceIndex(4) -2 >Emitted(66, 20) Source(7, 49) + SourceIndex(4) -3 >Emitted(66, 22) Source(7, 35) + SourceIndex(4) -4 >Emitted(66, 43) Source(7, 49) + SourceIndex(4) -5 >Emitted(66, 45) Source(7, 35) + SourceIndex(4) -6 >Emitted(66, 49) Source(7, 49) + SourceIndex(4) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(67, 9) Source(7, 35) + SourceIndex(4) -2 >Emitted(67, 31) Source(7, 49) + SourceIndex(4) +1 >Emitted(47, 9) Source(7, 35) + SourceIndex(4) +2 >Emitted(47, 31) Source(7, 49) + SourceIndex(4) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(69, 1) Source(7, 53) + SourceIndex(4) -2 >Emitted(69, 2) Source(7, 54) + SourceIndex(4) +1 >Emitted(49, 1) Source(7, 53) + SourceIndex(4) +2 >Emitted(49, 2) Source(7, 54) + SourceIndex(4) --- ->>>secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +>>>secondsecond_part2Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >secondsecond_part2Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(70, 1) Source(8, 1) + SourceIndex(4) -2 >Emitted(70, 25) Source(8, 25) + SourceIndex(4) -3 >Emitted(70, 49) Source(8, 29) + SourceIndex(4) -4 >Emitted(70, 50) Source(8, 30) + SourceIndex(4) -5 >Emitted(70, 52) Source(8, 32) + SourceIndex(4) -6 >Emitted(70, 54) Source(8, 34) + SourceIndex(4) -7 >Emitted(70, 56) Source(8, 36) + SourceIndex(4) -8 >Emitted(70, 58) Source(8, 38) + SourceIndex(4) -9 >Emitted(70, 60) Source(8, 40) + SourceIndex(4) -10>Emitted(70, 61) Source(8, 41) + SourceIndex(4) -11>Emitted(70, 64) Source(8, 43) + SourceIndex(4) +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) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1874,14 +1752,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1 >Emitted(71, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(71, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(71, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(71, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(71, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(71, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(71, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(71, 17) Source(1, 17) + SourceIndex(5) +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) --- >>>c.doSomething(); 1-> @@ -1898,12 +1776,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(72, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(72, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(72, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(72, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(72, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(72, 17) Source(2, 17) + SourceIndex(5) +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) --- >>>function forthirdthird_part1Rest() { 1-> @@ -1914,9 +1792,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > forthirdthird_part1Rest -1->Emitted(73, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(73, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(73, 33) Source(3, 33) + SourceIndex(5) +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) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -1970,31 +1848,31 @@ sourceFile:../../third_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(74, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(74, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(74, 14) Source(4, 24) + SourceIndex(5) -4 >Emitted(74, 16) Source(4, 26) + SourceIndex(5) -5 >Emitted(74, 17) Source(4, 27) + SourceIndex(5) -6 >Emitted(74, 19) Source(4, 29) + SourceIndex(5) -7 >Emitted(74, 21) Source(4, 31) + SourceIndex(5) -8 >Emitted(74, 23) Source(4, 33) + SourceIndex(5) -9 >Emitted(74, 24) Source(4, 34) + SourceIndex(5) -10>Emitted(74, 26) Source(4, 36) + SourceIndex(5) -11>Emitted(74, 28) Source(4, 38) + SourceIndex(5) -12>Emitted(74, 30) Source(4, 40) + SourceIndex(5) -13>Emitted(74, 32) Source(4, 42) + SourceIndex(5) -14>Emitted(74, 34) Source(4, 44) + SourceIndex(5) -15>Emitted(74, 36) Source(4, 46) + SourceIndex(5) -16>Emitted(74, 38) Source(4, 48) + SourceIndex(5) -17>Emitted(74, 40) Source(4, 9) + SourceIndex(5) -18>Emitted(74, 41) Source(4, 10) + SourceIndex(5) -19>Emitted(74, 48) Source(4, 10) + SourceIndex(5) -20>Emitted(74, 50) Source(4, 15) + SourceIndex(5) -21>Emitted(74, 54) Source(4, 19) + SourceIndex(5) -22>Emitted(74, 68) Source(4, 7) + SourceIndex(5) -23>Emitted(74, 73) Source(4, 21) + SourceIndex(5) -24>Emitted(74, 74) Source(4, 48) + SourceIndex(5) -25>Emitted(74, 75) Source(4, 49) + SourceIndex(5) +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 > @@ -2003,8 +1881,8 @@ sourceFile:../../third_part1.ts 1 > > 2 >} -1 >Emitted(75, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(75, 2) Source(5, 2) + SourceIndex(5) +1 >Emitted(55, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(55, 2) Source(5, 2) + SourceIndex(5) --- >>>function thirdthird_part1Spread() { 1-> @@ -2014,9 +1892,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > thirdthird_part1Spread -1->Emitted(76, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(76, 10) Source(6, 10) + SourceIndex(5) -3 >Emitted(76, 32) Source(6, 32) + SourceIndex(5) +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) --- >>> var b = []; 1 >^^^^ @@ -2024,8 +1902,8 @@ sourceFile:../../third_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(77, 5) Source(6, 33) + SourceIndex(5) -2 >Emitted(77, 16) Source(6, 47) + SourceIndex(5) +1 >Emitted(57, 5) Source(6, 33) + SourceIndex(5) +2 >Emitted(57, 16) Source(6, 47) + SourceIndex(5) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -2040,66 +1918,66 @@ sourceFile:../../third_part1.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(78, 10) Source(6, 33) + SourceIndex(5) -2 >Emitted(78, 20) Source(6, 47) + SourceIndex(5) -3 >Emitted(78, 22) Source(6, 33) + SourceIndex(5) -4 >Emitted(78, 43) Source(6, 47) + SourceIndex(5) -5 >Emitted(78, 45) Source(6, 33) + SourceIndex(5) -6 >Emitted(78, 49) Source(6, 47) + SourceIndex(5) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(79, 9) Source(6, 33) + SourceIndex(5) -2 >Emitted(79, 31) Source(6, 47) + SourceIndex(5) +1 >Emitted(59, 9) Source(6, 33) + SourceIndex(5) +2 >Emitted(59, 31) Source(6, 47) + SourceIndex(5) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(81, 1) Source(6, 51) + SourceIndex(5) -2 >Emitted(81, 2) Source(6, 52) + SourceIndex(5) +1 >Emitted(61, 1) Source(6, 51) + SourceIndex(5) +2 >Emitted(61, 2) Source(6, 52) + SourceIndex(5) --- ->>>thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); +>>>thirdthird_part1Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >thirdthird_part1Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(82, 1) Source(7, 1) + SourceIndex(5) -2 >Emitted(82, 23) Source(7, 23) + SourceIndex(5) -3 >Emitted(82, 47) Source(7, 27) + SourceIndex(5) -4 >Emitted(82, 48) Source(7, 28) + SourceIndex(5) -5 >Emitted(82, 50) Source(7, 30) + SourceIndex(5) -6 >Emitted(82, 52) Source(7, 32) + SourceIndex(5) -7 >Emitted(82, 54) Source(7, 34) + SourceIndex(5) -8 >Emitted(82, 56) Source(7, 36) + SourceIndex(5) -9 >Emitted(82, 58) Source(7, 38) + SourceIndex(5) -10>Emitted(82, 59) Source(7, 39) + SourceIndex(5) -11>Emitted(82, 62) Source(7, 41) + SourceIndex(5) +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) --- >>>//# sourceMappingURL=third-output.js.map @@ -2114,59 +1992,45 @@ sourceFile:../../third_part1.ts "sections": [ { "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1178, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 1180, - "end": 1542, + "pos": 502, + "end": 854, "kind": "prepend", "data": "../../../first/bin/first-output.js", "texts": [ { - "pos": 1180, - "end": 1542, + "pos": 502, + "end": 854, "kind": "text" } ] }, { - "pos": 1542, - "end": 2162, + "pos": 854, + "end": 1464, "kind": "prepend", "data": "../../../2/second-output.js", "texts": [ { - "pos": 1542, - "end": 2162, + "pos": 854, + "end": 1464, "kind": "text" } ] }, { - "pos": 2162, - "end": 2527, + "pos": 1464, + "end": 1819, "kind": "text" } ], "sources": { "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spread" + "typescript:rest" ] } }, @@ -2213,31 +2077,7 @@ sourceFile:../../third_part1.ts ====================================================================== File:: /src/third/thirdjs/output/third-output.js ---------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (678-1178):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -2250,9 +2090,9 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -prepend: (1180-1542):: ../../../first/bin/first-output.js texts:: 1 +prepend: (502-854):: ../../../first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1180-1542) +text: (502-854) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { } @@ -2266,12 +2106,12 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +firstfirst_part3Spread.apply(void 0, [10, 20, 30]); ---------------------------------------------------------------------- -prepend: (1542-2162):: ../../../2/second-output.js texts:: 1 +prepend: (854-1464):: ../../../2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1542-2162) +text: (854-1464) var N; (function (N) { function f() { @@ -2296,10 +2136,10 @@ function secondsecond_part2Spread() { b[_i] = arguments[_i]; } } -secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +secondsecond_part2Spread.apply(void 0, [10, 20, 30]); ---------------------------------------------------------------------- -text: (2162-2527) +text: (1464-1819) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { @@ -2311,7 +2151,7 @@ function thirdthird_part1Spread() { b[_i] = arguments[_i]; } } -thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); +thirdthird_part1Spread.apply(void 0, [10, 20, 30]); ====================================================================== ====================================================================== 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 416f702fff33b..6c52166790471 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 @@ -736,26 +736,6 @@ sourceFile:../../third_part1.ts >>>//# 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 __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; 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) @@ -787,7 +767,7 @@ function secondsecond_part1Spread() { b[_i] = arguments[_i]; } } -secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +secondsecond_part1Spread.apply(void 0, [10, 20, 30]); var C = (function () { function C() { } @@ -804,7 +784,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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;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,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"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -817,26 +797,6 @@ 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 __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; >>>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) @@ -865,12 +825,12 @@ sourceFile:../../../first/first_PART1.ts 4 > = 5 > "Hello, world" 6 > ; -1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) --- >>>console.log(s); 1 > @@ -896,14 +856,14 @@ sourceFile:../../../first/first_PART1.ts 6 > s 7 > ) 8 > ; -1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) --- >>>function forfirstfirst_PART1Rest() { } 1-> @@ -917,11 +877,11 @@ sourceFile:../../../first/first_PART1.ts 3 > forfirstfirst_PART1Rest 4 > () { 5 > } -1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) -4 >Emitted(34, 38) Source(12, 38) + SourceIndex(0) -5 >Emitted(34, 39) Source(12, 39) + SourceIndex(0) +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) +4 >Emitted(14, 38) Source(12, 38) + SourceIndex(0) +5 >Emitted(14, 39) Source(12, 39) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -946,15 +906,15 @@ sourceFile:../../../first/first_part2.ts 7 > () 8 > ) 9 > ; -1 >Emitted(35, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(35, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(35, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(35, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(35, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(35, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(35, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(35, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(35, 18) Source(1, 18) + SourceIndex(1) +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(15, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(15, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(15, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(15, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(15, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(15, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(15, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(15, 18) Source(1, 18) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -968,9 +928,9 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -1 >Emitted(36, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(36, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(36, 11) Source(1, 11) + SourceIndex(2) +1 >Emitted(16, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(16, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(16, 11) Source(1, 11) + SourceIndex(2) --- >>> return "JS does hoists"; 1->^^^^ @@ -982,10 +942,10 @@ sourceFile:../../../first/first_part3.ts 2 > return 3 > "JS does hoists" 4 > ; -1->Emitted(37, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(37, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(37, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(37, 29) Source(2, 29) + SourceIndex(2) +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 > @@ -994,8 +954,8 @@ sourceFile:../../../first/first_part3.ts 1 > > 2 >} -1 >Emitted(38, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(38, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(18, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(18, 2) Source(3, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1021,10 +981,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(39, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(39, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(39, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(39, 7) Source(11, 2) + SourceIndex(3) +1->Emitted(19, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(19, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(19, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(19, 7) Source(11, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -1034,9 +994,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(40, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(40, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(40, 13) Source(5, 12) + SourceIndex(3) +1->Emitted(20, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(20, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(20, 13) Source(5, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -1047,9 +1007,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(41, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(41, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(41, 15) Source(6, 15) + SourceIndex(3) +1->Emitted(21, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(21, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(21, 15) Source(6, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -1069,14 +1029,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(42, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(42, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(42, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(42, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(42, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(42, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(42, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(42, 32) Source(7, 32) + SourceIndex(3) +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 >^^^^ @@ -1085,8 +1045,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(43, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(43, 6) Source(8, 6) + SourceIndex(3) +1 >Emitted(23, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(23, 6) Source(8, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -1100,10 +1060,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(44, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(44, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(44, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(44, 9) Source(10, 9) + SourceIndex(3) +1->Emitted(24, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(24, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(24, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(24, 9) Source(10, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -1128,13 +1088,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(45, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(45, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(45, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(45, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(45, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(45, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(45, 19) Source(11, 2) + SourceIndex(3) +1->Emitted(25, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(25, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(25, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(25, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(25, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(25, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(25, 19) Source(11, 2) + SourceIndex(3) --- >>>function secondsecond_part1Spread() { 1-> @@ -1145,9 +1105,9 @@ sourceFile:../../../second/second_part1.ts > 2 >function 3 > secondsecond_part1Spread -1->Emitted(46, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(46, 10) Source(13, 10) + SourceIndex(3) -3 >Emitted(46, 34) Source(13, 34) + SourceIndex(3) +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) --- >>> var b = []; 1 >^^^^ @@ -1155,8 +1115,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(47, 5) Source(13, 35) + SourceIndex(3) -2 >Emitted(47, 16) Source(13, 49) + SourceIndex(3) +1 >Emitted(27, 5) Source(13, 35) + SourceIndex(3) +2 >Emitted(27, 16) Source(13, 49) + SourceIndex(3) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -1171,66 +1131,66 @@ sourceFile:../../../second/second_part1.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(48, 10) Source(13, 35) + SourceIndex(3) -2 >Emitted(48, 20) Source(13, 49) + SourceIndex(3) -3 >Emitted(48, 22) Source(13, 35) + SourceIndex(3) -4 >Emitted(48, 43) Source(13, 49) + SourceIndex(3) -5 >Emitted(48, 45) Source(13, 35) + SourceIndex(3) -6 >Emitted(48, 49) Source(13, 49) + SourceIndex(3) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(49, 9) Source(13, 35) + SourceIndex(3) -2 >Emitted(49, 31) Source(13, 49) + SourceIndex(3) +1 >Emitted(29, 9) Source(13, 35) + SourceIndex(3) +2 >Emitted(29, 31) Source(13, 49) + SourceIndex(3) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(51, 1) Source(13, 53) + SourceIndex(3) -2 >Emitted(51, 2) Source(13, 54) + SourceIndex(3) +1 >Emitted(31, 1) Source(13, 53) + SourceIndex(3) +2 >Emitted(31, 2) Source(13, 54) + SourceIndex(3) --- ->>>secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +>>>secondsecond_part1Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >secondsecond_part1Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(52, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(52, 25) Source(14, 25) + SourceIndex(3) -3 >Emitted(52, 49) Source(14, 29) + SourceIndex(3) -4 >Emitted(52, 50) Source(14, 30) + SourceIndex(3) -5 >Emitted(52, 52) Source(14, 32) + SourceIndex(3) -6 >Emitted(52, 54) Source(14, 34) + SourceIndex(3) -7 >Emitted(52, 56) Source(14, 36) + SourceIndex(3) -8 >Emitted(52, 58) Source(14, 38) + SourceIndex(3) -9 >Emitted(52, 60) Source(14, 40) + SourceIndex(3) -10>Emitted(52, 61) Source(14, 41) + SourceIndex(3) -11>Emitted(52, 64) Source(14, 43) + SourceIndex(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) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1240,13 +1200,13 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(53, 1) Source(1, 1) + SourceIndex(4) +1 >Emitted(33, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(54, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(34, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -1258,8 +1218,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(55, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(55, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(35, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(35, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -1269,9 +1229,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(56, 5) Source(2, 5) + SourceIndex(4) -2 >Emitted(56, 28) Source(2, 16) + SourceIndex(4) -3 >Emitted(56, 31) Source(2, 5) + SourceIndex(4) +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) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -1291,14 +1251,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(57, 9) Source(3, 9) + SourceIndex(4) -2 >Emitted(57, 16) Source(3, 16) + SourceIndex(4) -3 >Emitted(57, 17) Source(3, 17) + SourceIndex(4) -4 >Emitted(57, 20) Source(3, 20) + SourceIndex(4) -5 >Emitted(57, 21) Source(3, 21) + SourceIndex(4) -6 >Emitted(57, 41) Source(3, 41) + SourceIndex(4) -7 >Emitted(57, 42) Source(3, 42) + SourceIndex(4) -8 >Emitted(57, 43) Source(3, 43) + SourceIndex(4) +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 >^^^^ @@ -1307,8 +1267,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(58, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(58, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(38, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(38, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -1316,8 +1276,8 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(59, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(59, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(39, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(39, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > @@ -1333,10 +1293,10 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(60, 1) Source(5, 1) + SourceIndex(4) -2 >Emitted(60, 2) Source(5, 2) + SourceIndex(4) -3 >Emitted(60, 2) Source(1, 1) + SourceIndex(4) -4 >Emitted(60, 6) Source(5, 2) + SourceIndex(4) +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) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -1360,14 +1320,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1->Emitted(61, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(61, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(61, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(61, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(61, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(61, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(61, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(61, 17) Source(1, 17) + SourceIndex(5) +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) --- >>>c.doSomething(); 1-> @@ -1384,12 +1344,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(62, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(62, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(62, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(62, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(62, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(62, 17) Source(2, 17) + SourceIndex(5) +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) --- >>>function forthirdthird_part1Rest() { 1-> @@ -1400,9 +1360,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > forthirdthird_part1Rest -1->Emitted(63, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(63, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(63, 33) Source(3, 33) + SourceIndex(5) +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) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -1456,31 +1416,31 @@ sourceFile:../../third_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(64, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(64, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(64, 14) Source(4, 24) + SourceIndex(5) -4 >Emitted(64, 16) Source(4, 26) + SourceIndex(5) -5 >Emitted(64, 17) Source(4, 27) + SourceIndex(5) -6 >Emitted(64, 19) Source(4, 29) + SourceIndex(5) -7 >Emitted(64, 21) Source(4, 31) + SourceIndex(5) -8 >Emitted(64, 23) Source(4, 33) + SourceIndex(5) -9 >Emitted(64, 24) Source(4, 34) + SourceIndex(5) -10>Emitted(64, 26) Source(4, 36) + SourceIndex(5) -11>Emitted(64, 28) Source(4, 38) + SourceIndex(5) -12>Emitted(64, 30) Source(4, 40) + SourceIndex(5) -13>Emitted(64, 32) Source(4, 42) + SourceIndex(5) -14>Emitted(64, 34) Source(4, 44) + SourceIndex(5) -15>Emitted(64, 36) Source(4, 46) + SourceIndex(5) -16>Emitted(64, 38) Source(4, 48) + SourceIndex(5) -17>Emitted(64, 40) Source(4, 9) + SourceIndex(5) -18>Emitted(64, 41) Source(4, 10) + SourceIndex(5) -19>Emitted(64, 48) Source(4, 10) + SourceIndex(5) -20>Emitted(64, 50) Source(4, 15) + SourceIndex(5) -21>Emitted(64, 54) Source(4, 19) + SourceIndex(5) -22>Emitted(64, 68) Source(4, 7) + SourceIndex(5) -23>Emitted(64, 73) Source(4, 21) + SourceIndex(5) -24>Emitted(64, 74) Source(4, 48) + SourceIndex(5) -25>Emitted(64, 75) Source(4, 49) + SourceIndex(5) +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 > @@ -1489,8 +1449,8 @@ sourceFile:../../third_part1.ts 1 > > 2 >} -1 >Emitted(65, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(65, 2) Source(5, 2) + SourceIndex(5) +1 >Emitted(45, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(45, 2) Source(5, 2) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map @@ -1505,51 +1465,39 @@ sourceFile:../../third_part1.ts "sections": [ { "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1178, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 1180, - "end": 1330, + "pos": 502, + "end": 652, "kind": "prepend", "data": "../../../first/bin/first-output.js", "texts": [ { - "pos": 1180, - "end": 1330, + "pos": 502, + "end": 652, "kind": "text" } ] }, { - "pos": 1330, - "end": 1831, + "pos": 652, + "end": 1143, "kind": "prepend", "data": "../../../2/second-output.js", "texts": [ { - "pos": 1330, - "end": 1831, + "pos": 652, + "end": 1143, "kind": "text" } ] }, { - "pos": 1831, - "end": 1984, + "pos": 1143, + "end": 1296, "kind": "text" } ], @@ -1602,31 +1550,7 @@ sourceFile:../../third_part1.ts ====================================================================== File:: /src/third/thirdjs/output/third-output.js ---------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (678-1178):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -1639,9 +1563,9 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -prepend: (1180-1330):: ../../../first/bin/first-output.js texts:: 1 +prepend: (502-652):: ../../../first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1180-1330) +text: (502-652) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { } @@ -1651,9 +1575,9 @@ function f() { } ---------------------------------------------------------------------- -prepend: (1330-1831):: ../../../2/second-output.js texts:: 1 +prepend: (652-1143):: ../../../2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1330-1831) +text: (652-1143) var N; (function (N) { function f() { @@ -1667,7 +1591,7 @@ function secondsecond_part1Spread() { b[_i] = arguments[_i]; } } -secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +secondsecond_part1Spread.apply(void 0, [10, 20, 30]); var C = (function () { function C() { } @@ -1678,7 +1602,7 @@ var C = (function () { }()); ---------------------------------------------------------------------- -text: (1831-1984) +text: (1143-1296) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { 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 3021e55807eb9..12fb6e0f31f87 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 @@ -341,26 +341,6 @@ 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 __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; var N; (function (N) { function f() { @@ -385,11 +365,11 @@ function secondsecond_part2Spread() { b[_i] = arguments[_i]; } } -secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +secondsecond_part2Spread.apply(void 0, [10, 20, 30]); //# 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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} +{"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"} //// [/src/2/second-output.js.map.baseline.txt] =================================================================== @@ -413,26 +393,6 @@ 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 __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; >>>var N; 1 > 2 >^^^^ @@ -453,10 +413,10 @@ sourceFile:../second/second_part1.ts > > f(); > } -1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(32, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(32, 7) Source(11, 2) + SourceIndex(0) +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) --- >>>(function (N) { 1-> @@ -466,9 +426,9 @@ sourceFile:../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(33, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(33, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(33, 13) Source(5, 12) + SourceIndex(0) +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) --- >>> function f() { 1->^^^^ @@ -479,9 +439,9 @@ sourceFile:../second/second_part1.ts > 2 > function 3 > f -1->Emitted(34, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(34, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(34, 15) Source(6, 15) + SourceIndex(0) +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) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -501,14 +461,14 @@ sourceFile:../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(35, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(35, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(35, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(35, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(35, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(35, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(35, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(35, 32) Source(7, 32) + SourceIndex(0) +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 >^^^^ @@ -517,8 +477,8 @@ sourceFile:../second/second_part1.ts 1 > > 2 > } -1 >Emitted(36, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(36, 6) Source(8, 6) + SourceIndex(0) +1 >Emitted(16, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(16, 6) Source(8, 6) + SourceIndex(0) --- >>> f(); 1->^^^^ @@ -532,10 +492,10 @@ sourceFile:../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(37, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(37, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(37, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(37, 9) Source(10, 9) + SourceIndex(0) +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) --- >>>})(N || (N = {})); 1-> @@ -560,13 +520,13 @@ sourceFile:../second/second_part1.ts > > f(); > } -1->Emitted(38, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(38, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(38, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(38, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(38, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(38, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(38, 19) Source(11, 2) + SourceIndex(0) +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) --- >>>function forsecondsecond_part1Rest() { 1-> @@ -577,9 +537,9 @@ sourceFile:../second/second_part1.ts > 2 >function 3 > forsecondsecond_part1Rest -1->Emitted(39, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(39, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(39, 35) Source(12, 35) + SourceIndex(0) +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) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -633,31 +593,31 @@ sourceFile:../second/second_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(40, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(40, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(40, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(40, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(40, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(40, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(40, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(40, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(40, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(40, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(40, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(40, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(40, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(40, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(40, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(40, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(40, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(40, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(40, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(40, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(40, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(40, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(40, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(40, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(40, 75) Source(13, 49) + SourceIndex(0) +1->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 > @@ -666,8 +626,8 @@ sourceFile:../second/second_part1.ts 1 > > 2 >} -1 >Emitted(41, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(41, 2) Source(14, 2) + SourceIndex(0) +1 >Emitted(21, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(21, 2) Source(14, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.js @@ -677,13 +637,13 @@ sourceFile:../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(42, 1) Source(1, 1) + SourceIndex(1) +1->Emitted(22, 1) Source(1, 1) + SourceIndex(1) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(43, 5) Source(1, 1) + SourceIndex(1) +1->Emitted(23, 5) Source(1, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -695,8 +655,8 @@ sourceFile:../second/second_part2.ts > } > 2 > } -1->Emitted(44, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(44, 6) Source(5, 2) + SourceIndex(1) +1->Emitted(24, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(24, 6) Source(5, 2) + SourceIndex(1) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -706,9 +666,9 @@ sourceFile:../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(45, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(45, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(45, 31) Source(2, 5) + SourceIndex(1) +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) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -728,14 +688,14 @@ sourceFile:../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(46, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(46, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(46, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(46, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(46, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(46, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(46, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(46, 43) Source(3, 43) + SourceIndex(1) +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 >^^^^ @@ -744,8 +704,8 @@ sourceFile:../second/second_part2.ts 1 > > 2 > } -1 >Emitted(47, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(47, 6) Source(4, 6) + SourceIndex(1) +1 >Emitted(27, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(27, 6) Source(4, 6) + SourceIndex(1) --- >>> return C; 1->^^^^ @@ -753,8 +713,8 @@ sourceFile:../second/second_part2.ts 1-> > 2 > } -1->Emitted(48, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(48, 13) Source(5, 2) + SourceIndex(1) +1->Emitted(28, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(28, 13) Source(5, 2) + SourceIndex(1) --- >>>}()); 1 > @@ -770,10 +730,10 @@ sourceFile:../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(49, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(49, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(49, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(49, 6) Source(5, 2) + SourceIndex(1) +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) --- >>>function secondsecond_part2Spread() { 1-> @@ -784,9 +744,9 @@ sourceFile:../second/second_part2.ts > 2 >function 3 > secondsecond_part2Spread -1->Emitted(50, 1) Source(7, 1) + SourceIndex(1) -2 >Emitted(50, 10) Source(7, 10) + SourceIndex(1) -3 >Emitted(50, 34) Source(7, 34) + SourceIndex(1) +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) --- >>> var b = []; 1 >^^^^ @@ -794,8 +754,8 @@ sourceFile:../second/second_part2.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(51, 5) Source(7, 35) + SourceIndex(1) -2 >Emitted(51, 16) Source(7, 49) + SourceIndex(1) +1 >Emitted(31, 5) Source(7, 35) + SourceIndex(1) +2 >Emitted(31, 16) Source(7, 49) + SourceIndex(1) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -810,66 +770,66 @@ sourceFile:../second/second_part2.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(52, 10) Source(7, 35) + SourceIndex(1) -2 >Emitted(52, 20) Source(7, 49) + SourceIndex(1) -3 >Emitted(52, 22) Source(7, 35) + SourceIndex(1) -4 >Emitted(52, 43) Source(7, 49) + SourceIndex(1) -5 >Emitted(52, 45) Source(7, 35) + SourceIndex(1) -6 >Emitted(52, 49) Source(7, 49) + SourceIndex(1) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(53, 9) Source(7, 35) + SourceIndex(1) -2 >Emitted(53, 31) Source(7, 49) + SourceIndex(1) +1 >Emitted(33, 9) Source(7, 35) + SourceIndex(1) +2 >Emitted(33, 31) Source(7, 49) + SourceIndex(1) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(55, 1) Source(7, 53) + SourceIndex(1) -2 >Emitted(55, 2) Source(7, 54) + SourceIndex(1) +1 >Emitted(35, 1) Source(7, 53) + SourceIndex(1) +2 >Emitted(35, 2) Source(7, 54) + SourceIndex(1) --- ->>>secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +>>>secondsecond_part2Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >secondsecond_part2Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(56, 1) Source(8, 1) + SourceIndex(1) -2 >Emitted(56, 25) Source(8, 25) + SourceIndex(1) -3 >Emitted(56, 49) Source(8, 29) + SourceIndex(1) -4 >Emitted(56, 50) Source(8, 30) + SourceIndex(1) -5 >Emitted(56, 52) Source(8, 32) + SourceIndex(1) -6 >Emitted(56, 54) Source(8, 34) + SourceIndex(1) -7 >Emitted(56, 56) Source(8, 36) + SourceIndex(1) -8 >Emitted(56, 58) Source(8, 38) + SourceIndex(1) -9 >Emitted(56, 60) Source(8, 40) + SourceIndex(1) -10>Emitted(56, 61) Source(8, 41) + SourceIndex(1) -11>Emitted(56, 64) Source(8, 43) + SourceIndex(1) +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) --- >>>//# sourceMappingURL=second-output.js.map @@ -891,27 +851,13 @@ sourceFile:../second/second_part2.ts }, { "pos": 502, - "end": 1006, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 1008, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 1180, - "end": 1800, + "end": 1112, "kind": "text" } ], "sources": { "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spread" + "typescript:rest" ] } }, @@ -945,31 +891,7 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -emitHelpers: (502-1006):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (1008-1178):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -text: (1180-1800) +text: (502-1112) var N; (function (N) { function f() { @@ -994,7 +916,7 @@ function secondsecond_part2Spread() { b[_i] = arguments[_i]; } } -secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +secondsecond_part2Spread.apply(void 0, [10, 20, 30]); ====================================================================== ====================================================================== @@ -1220,26 +1142,6 @@ 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 __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -1255,11 +1157,11 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +firstfirst_part3Spread.apply(void 0, [10, 20, 30]); //# 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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} +{"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"} //// [/src/first/bin/first-output.js.map.baseline.txt] =================================================================== @@ -1283,26 +1185,6 @@ 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 __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; >>>var s = "Hello, world"; 1 > 2 >^^^^ @@ -1320,12 +1202,12 @@ sourceFile:../first_PART1.ts 4 > = 5 > "Hello, world" 6 > ; -1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) --- >>>console.log(s); 1 > @@ -1351,14 +1233,14 @@ sourceFile:../first_PART1.ts 6 > s 7 > ) 8 > ; -1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) --- >>>function forfirstfirst_PART1Rest() { 1-> @@ -1369,9 +1251,9 @@ sourceFile:../first_PART1.ts > 2 >function 3 > forfirstfirst_PART1Rest -1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -1425,31 +1307,31 @@ sourceFile:../first_PART1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(35, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(35, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(35, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(35, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(35, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(35, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(35, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(35, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(35, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(35, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(35, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(35, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(35, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(35, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(35, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(35, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(35, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(35, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(35, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(35, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(35, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(35, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(35, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(35, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(35, 75) Source(13, 49) + SourceIndex(0) +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 > @@ -1458,8 +1340,8 @@ sourceFile:../first_PART1.ts 1 > > 2 >} -1 >Emitted(36, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(36, 2) Source(14, 2) + SourceIndex(0) +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/first/bin/first-output.js @@ -1484,15 +1366,15 @@ sourceFile:../first_part2.ts 7 > () 8 > ) 9 > ; -1->Emitted(37, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(37, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(37, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(37, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(37, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(37, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(37, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(37, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(37, 18) Source(1, 18) + SourceIndex(1) +1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/first/bin/first-output.js @@ -1506,9 +1388,9 @@ sourceFile:../first_part3.ts 1 > 2 >function 3 > f -1 >Emitted(38, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(38, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(38, 11) Source(1, 11) + SourceIndex(2) +1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) --- >>> return "JS does hoists"; 1->^^^^ @@ -1520,10 +1402,10 @@ sourceFile:../first_part3.ts 2 > return 3 > "JS does hoists" 4 > ; -1->Emitted(39, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(39, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(39, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(39, 29) Source(2, 29) + SourceIndex(2) +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 > @@ -1532,8 +1414,8 @@ sourceFile:../first_part3.ts 1 > > 2 >} -1 >Emitted(40, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(40, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) --- >>>function firstfirst_part3Spread() { 1-> @@ -1543,9 +1425,9 @@ sourceFile:../first_part3.ts > 2 >function 3 > firstfirst_part3Spread -1->Emitted(41, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(41, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(41, 32) Source(4, 32) + SourceIndex(2) +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) --- >>> var b = []; 1 >^^^^ @@ -1553,8 +1435,8 @@ sourceFile:../first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(42, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(42, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(22, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(22, 16) Source(4, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -1569,66 +1451,66 @@ sourceFile:../first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(43, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(43, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(43, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(43, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(43, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(43, 49) Source(4, 47) + SourceIndex(2) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(44, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(44, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(24, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(24, 31) Source(4, 47) + SourceIndex(2) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(46, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(46, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(26, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(26, 2) Source(4, 52) + SourceIndex(2) --- ->>>firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +>>>firstfirst_part3Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >firstfirst_part3Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(47, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(47, 23) Source(5, 23) + SourceIndex(2) -3 >Emitted(47, 47) Source(5, 27) + SourceIndex(2) -4 >Emitted(47, 48) Source(5, 28) + SourceIndex(2) -5 >Emitted(47, 50) Source(5, 30) + SourceIndex(2) -6 >Emitted(47, 52) Source(5, 32) + SourceIndex(2) -7 >Emitted(47, 54) Source(5, 34) + SourceIndex(2) -8 >Emitted(47, 56) Source(5, 36) + SourceIndex(2) -9 >Emitted(47, 58) Source(5, 38) + SourceIndex(2) -10>Emitted(47, 59) Source(5, 39) + SourceIndex(2) -11>Emitted(47, 62) Source(5, 41) + SourceIndex(2) +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) --- >>>//# sourceMappingURL=first-output.js.map @@ -1651,27 +1533,13 @@ sourceFile:../first_part3.ts }, { "pos": 502, - "end": 1006, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 1008, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 1180, - "end": 1619, + "end": 931, "kind": "text" } ], "sources": { "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spread" + "typescript:rest" ] } }, @@ -1705,31 +1573,7 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -emitHelpers: (502-1006):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (1008-1178):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -text: (1180-1619) +text: (502-931) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -1745,7 +1589,7 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +firstfirst_part3Spread.apply(void 0, [10, 20, 30]); ====================================================================== ====================================================================== @@ -2194,26 +2038,6 @@ 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 __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -2229,7 +2053,7 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +firstfirst_part3Spread.apply(void 0, [10, 20, 30]); var N; (function (N) { function f() { @@ -2254,7 +2078,7 @@ function secondsecond_part2Spread() { b[_i] = arguments[_i]; } } -secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +secondsecond_part2Spread.apply(void 0, [10, 20, 30]); var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { @@ -2266,11 +2090,11 @@ function thirdthird_part1Spread() { b[_i] = arguments[_i]; } } -thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); +thirdthird_part1Spread.apply(void 0, [10, 20, 30]); //# sourceMappingURL=third-output.js.map //// [/src/third/thirdjs/output/third-output.js.map] -{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACAxC,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"} +{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;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"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -2294,26 +2118,6 @@ 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 __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; >>>var s = "Hello, world"; 1 > 2 >^^^^ @@ -2331,12 +2135,12 @@ sourceFile:../../../first/first_PART1.ts 4 > = 5 > "Hello, world" 6 > ; -1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) --- >>>console.log(s); 1 > @@ -2362,14 +2166,14 @@ sourceFile:../../../first/first_PART1.ts 6 > s 7 > ) 8 > ; -1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) --- >>>function forfirstfirst_PART1Rest() { 1-> @@ -2380,9 +2184,9 @@ sourceFile:../../../first/first_PART1.ts > 2 >function 3 > forfirstfirst_PART1Rest -1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -2436,31 +2240,31 @@ sourceFile:../../../first/first_PART1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(35, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(35, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(35, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(35, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(35, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(35, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(35, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(35, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(35, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(35, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(35, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(35, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(35, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(35, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(35, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(35, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(35, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(35, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(35, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(35, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(35, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(35, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(35, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(35, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(35, 75) Source(13, 49) + SourceIndex(0) +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 > @@ -2469,8 +2273,8 @@ sourceFile:../../../first/first_PART1.ts 1 > > 2 >} -1 >Emitted(36, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(36, 2) Source(14, 2) + SourceIndex(0) +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2495,15 +2299,15 @@ sourceFile:../../../first/first_part2.ts 7 > () 8 > ) 9 > ; -1->Emitted(37, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(37, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(37, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(37, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(37, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(37, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(37, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(37, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(37, 18) Source(1, 18) + SourceIndex(1) +1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2517,9 +2321,9 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -1 >Emitted(38, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(38, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(38, 11) Source(1, 11) + SourceIndex(2) +1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) --- >>> return "JS does hoists"; 1->^^^^ @@ -2531,10 +2335,10 @@ sourceFile:../../../first/first_part3.ts 2 > return 3 > "JS does hoists" 4 > ; -1->Emitted(39, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(39, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(39, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(39, 29) Source(2, 29) + SourceIndex(2) +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 > @@ -2543,8 +2347,8 @@ sourceFile:../../../first/first_part3.ts 1 > > 2 >} -1 >Emitted(40, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(40, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) --- >>>function firstfirst_part3Spread() { 1-> @@ -2554,9 +2358,9 @@ sourceFile:../../../first/first_part3.ts > 2 >function 3 > firstfirst_part3Spread -1->Emitted(41, 1) Source(4, 1) + SourceIndex(2) -2 >Emitted(41, 10) Source(4, 10) + SourceIndex(2) -3 >Emitted(41, 32) Source(4, 32) + SourceIndex(2) +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) --- >>> var b = []; 1 >^^^^ @@ -2564,8 +2368,8 @@ sourceFile:../../../first/first_part3.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(42, 5) Source(4, 33) + SourceIndex(2) -2 >Emitted(42, 16) Source(4, 47) + SourceIndex(2) +1 >Emitted(22, 5) Source(4, 33) + SourceIndex(2) +2 >Emitted(22, 16) Source(4, 47) + SourceIndex(2) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -2580,66 +2384,66 @@ sourceFile:../../../first/first_part3.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(43, 10) Source(4, 33) + SourceIndex(2) -2 >Emitted(43, 20) Source(4, 47) + SourceIndex(2) -3 >Emitted(43, 22) Source(4, 33) + SourceIndex(2) -4 >Emitted(43, 43) Source(4, 47) + SourceIndex(2) -5 >Emitted(43, 45) Source(4, 33) + SourceIndex(2) -6 >Emitted(43, 49) Source(4, 47) + SourceIndex(2) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(44, 9) Source(4, 33) + SourceIndex(2) -2 >Emitted(44, 31) Source(4, 47) + SourceIndex(2) +1 >Emitted(24, 9) Source(4, 33) + SourceIndex(2) +2 >Emitted(24, 31) Source(4, 47) + SourceIndex(2) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(46, 1) Source(4, 51) + SourceIndex(2) -2 >Emitted(46, 2) Source(4, 52) + SourceIndex(2) +1 >Emitted(26, 1) Source(4, 51) + SourceIndex(2) +2 >Emitted(26, 2) Source(4, 52) + SourceIndex(2) --- ->>>firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +>>>firstfirst_part3Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >firstfirst_part3Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(47, 1) Source(5, 1) + SourceIndex(2) -2 >Emitted(47, 23) Source(5, 23) + SourceIndex(2) -3 >Emitted(47, 47) Source(5, 27) + SourceIndex(2) -4 >Emitted(47, 48) Source(5, 28) + SourceIndex(2) -5 >Emitted(47, 50) Source(5, 30) + SourceIndex(2) -6 >Emitted(47, 52) Source(5, 32) + SourceIndex(2) -7 >Emitted(47, 54) Source(5, 34) + SourceIndex(2) -8 >Emitted(47, 56) Source(5, 36) + SourceIndex(2) -9 >Emitted(47, 58) Source(5, 38) + SourceIndex(2) -10>Emitted(47, 59) Source(5, 39) + SourceIndex(2) -11>Emitted(47, 62) Source(5, 41) + SourceIndex(2) +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) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2665,10 +2469,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -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) +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) --- >>>(function (N) { 1-> @@ -2678,9 +2482,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -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) +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) --- >>> function f() { 1->^^^^ @@ -2691,9 +2495,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -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) +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) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -2713,14 +2517,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -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->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 >^^^^ @@ -2729,8 +2533,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(52, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(52, 6) Source(8, 6) + SourceIndex(3) +1 >Emitted(32, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(32, 6) Source(8, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -2744,10 +2548,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -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) +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) --- >>>})(N || (N = {})); 1-> @@ -2772,13 +2576,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -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) +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) --- >>>function forsecondsecond_part1Rest() { 1-> @@ -2789,9 +2593,9 @@ sourceFile:../../../second/second_part1.ts > 2 >function 3 > forsecondsecond_part1Rest -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) +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) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -2845,31 +2649,31 @@ sourceFile:../../../second/second_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -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->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 > @@ -2878,8 +2682,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 >} -1 >Emitted(57, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(57, 2) Source(14, 2) + SourceIndex(3) +1 >Emitted(37, 1) Source(14, 1) + SourceIndex(3) +2 >Emitted(37, 2) Source(14, 2) + SourceIndex(3) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2889,13 +2693,13 @@ sourceFile:../../../second/second_part2.ts 1-> 2 >^^^^^^^^^^^^^^^^^^^-> 1-> -1->Emitted(58, 1) Source(1, 1) + SourceIndex(4) +1->Emitted(38, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(59, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(39, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -2907,8 +2711,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(60, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(60, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(40, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(40, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -2918,9 +2722,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -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) +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) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -2940,14 +2744,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -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->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 >^^^^ @@ -2956,8 +2760,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(63, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(63, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(43, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(43, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -2965,8 +2769,8 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(64, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(64, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(44, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(44, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > @@ -2982,10 +2786,10 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -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) +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) --- >>>function secondsecond_part2Spread() { 1-> @@ -2996,9 +2800,9 @@ sourceFile:../../../second/second_part2.ts > 2 >function 3 > secondsecond_part2Spread -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) +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) --- >>> var b = []; 1 >^^^^ @@ -3006,8 +2810,8 @@ sourceFile:../../../second/second_part2.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(67, 5) Source(7, 35) + SourceIndex(4) -2 >Emitted(67, 16) Source(7, 49) + SourceIndex(4) +1 >Emitted(47, 5) Source(7, 35) + SourceIndex(4) +2 >Emitted(47, 16) Source(7, 49) + SourceIndex(4) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -3022,66 +2826,66 @@ sourceFile:../../../second/second_part2.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -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) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(69, 9) Source(7, 35) + SourceIndex(4) -2 >Emitted(69, 31) Source(7, 49) + SourceIndex(4) +1 >Emitted(49, 9) Source(7, 35) + SourceIndex(4) +2 >Emitted(49, 31) Source(7, 49) + SourceIndex(4) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(71, 1) Source(7, 53) + SourceIndex(4) -2 >Emitted(71, 2) Source(7, 54) + SourceIndex(4) +1 >Emitted(51, 1) Source(7, 53) + SourceIndex(4) +2 >Emitted(51, 2) Source(7, 54) + SourceIndex(4) --- ->>>secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +>>>secondsecond_part2Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >secondsecond_part2Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(72, 1) Source(8, 1) + SourceIndex(4) -2 >Emitted(72, 25) Source(8, 25) + SourceIndex(4) -3 >Emitted(72, 49) Source(8, 29) + SourceIndex(4) -4 >Emitted(72, 50) Source(8, 30) + SourceIndex(4) -5 >Emitted(72, 52) Source(8, 32) + SourceIndex(4) -6 >Emitted(72, 54) Source(8, 34) + SourceIndex(4) -7 >Emitted(72, 56) Source(8, 36) + SourceIndex(4) -8 >Emitted(72, 58) Source(8, 38) + SourceIndex(4) -9 >Emitted(72, 60) Source(8, 40) + SourceIndex(4) -10>Emitted(72, 61) Source(8, 41) + SourceIndex(4) -11>Emitted(72, 64) Source(8, 43) + SourceIndex(4) +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) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -3105,14 +2909,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -1 >Emitted(73, 1) Source(1, 1) + SourceIndex(5) -2 >Emitted(73, 5) Source(1, 5) + SourceIndex(5) -3 >Emitted(73, 6) Source(1, 6) + SourceIndex(5) -4 >Emitted(73, 9) Source(1, 9) + SourceIndex(5) -5 >Emitted(73, 13) Source(1, 13) + SourceIndex(5) -6 >Emitted(73, 14) Source(1, 14) + SourceIndex(5) -7 >Emitted(73, 16) Source(1, 16) + SourceIndex(5) -8 >Emitted(73, 17) Source(1, 17) + SourceIndex(5) +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) --- >>>c.doSomething(); 1-> @@ -3129,12 +2933,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -1->Emitted(74, 1) Source(2, 1) + SourceIndex(5) -2 >Emitted(74, 2) Source(2, 2) + SourceIndex(5) -3 >Emitted(74, 3) Source(2, 3) + SourceIndex(5) -4 >Emitted(74, 14) Source(2, 14) + SourceIndex(5) -5 >Emitted(74, 16) Source(2, 16) + SourceIndex(5) -6 >Emitted(74, 17) Source(2, 17) + SourceIndex(5) +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) --- >>>function forthirdthird_part1Rest() { 1-> @@ -3145,9 +2949,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > forthirdthird_part1Rest -1->Emitted(75, 1) Source(3, 1) + SourceIndex(5) -2 >Emitted(75, 10) Source(3, 10) + SourceIndex(5) -3 >Emitted(75, 33) Source(3, 33) + SourceIndex(5) +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) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -3201,31 +3005,31 @@ sourceFile:../../third_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(76, 5) Source(4, 1) + SourceIndex(5) -2 >Emitted(76, 9) Source(4, 7) + SourceIndex(5) -3 >Emitted(76, 14) Source(4, 24) + SourceIndex(5) -4 >Emitted(76, 16) Source(4, 26) + SourceIndex(5) -5 >Emitted(76, 17) Source(4, 27) + SourceIndex(5) -6 >Emitted(76, 19) Source(4, 29) + SourceIndex(5) -7 >Emitted(76, 21) Source(4, 31) + SourceIndex(5) -8 >Emitted(76, 23) Source(4, 33) + SourceIndex(5) -9 >Emitted(76, 24) Source(4, 34) + SourceIndex(5) -10>Emitted(76, 26) Source(4, 36) + SourceIndex(5) -11>Emitted(76, 28) Source(4, 38) + SourceIndex(5) -12>Emitted(76, 30) Source(4, 40) + SourceIndex(5) -13>Emitted(76, 32) Source(4, 42) + SourceIndex(5) -14>Emitted(76, 34) Source(4, 44) + SourceIndex(5) -15>Emitted(76, 36) Source(4, 46) + SourceIndex(5) -16>Emitted(76, 38) Source(4, 48) + SourceIndex(5) -17>Emitted(76, 40) Source(4, 9) + SourceIndex(5) -18>Emitted(76, 41) Source(4, 10) + SourceIndex(5) -19>Emitted(76, 48) Source(4, 10) + SourceIndex(5) -20>Emitted(76, 50) Source(4, 15) + SourceIndex(5) -21>Emitted(76, 54) Source(4, 19) + SourceIndex(5) -22>Emitted(76, 68) Source(4, 7) + SourceIndex(5) -23>Emitted(76, 73) Source(4, 21) + SourceIndex(5) -24>Emitted(76, 74) Source(4, 48) + SourceIndex(5) -25>Emitted(76, 75) Source(4, 49) + SourceIndex(5) +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 > @@ -3234,8 +3038,8 @@ sourceFile:../../third_part1.ts 1 > > 2 >} -1 >Emitted(77, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(77, 2) Source(5, 2) + SourceIndex(5) +1 >Emitted(57, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(57, 2) Source(5, 2) + SourceIndex(5) --- >>>function thirdthird_part1Spread() { 1-> @@ -3245,9 +3049,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > thirdthird_part1Spread -1->Emitted(78, 1) Source(6, 1) + SourceIndex(5) -2 >Emitted(78, 10) Source(6, 10) + SourceIndex(5) -3 >Emitted(78, 32) Source(6, 32) + SourceIndex(5) +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) --- >>> var b = []; 1 >^^^^ @@ -3255,8 +3059,8 @@ sourceFile:../../third_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(79, 5) Source(6, 33) + SourceIndex(5) -2 >Emitted(79, 16) Source(6, 47) + SourceIndex(5) +1 >Emitted(59, 5) Source(6, 33) + SourceIndex(5) +2 >Emitted(59, 16) Source(6, 47) + SourceIndex(5) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -3271,66 +3075,66 @@ sourceFile:../../third_part1.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(80, 10) Source(6, 33) + SourceIndex(5) -2 >Emitted(80, 20) Source(6, 47) + SourceIndex(5) -3 >Emitted(80, 22) Source(6, 33) + SourceIndex(5) -4 >Emitted(80, 43) Source(6, 47) + SourceIndex(5) -5 >Emitted(80, 45) Source(6, 33) + SourceIndex(5) -6 >Emitted(80, 49) Source(6, 47) + SourceIndex(5) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(81, 9) Source(6, 33) + SourceIndex(5) -2 >Emitted(81, 31) Source(6, 47) + SourceIndex(5) +1 >Emitted(61, 9) Source(6, 33) + SourceIndex(5) +2 >Emitted(61, 31) Source(6, 47) + SourceIndex(5) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(83, 1) Source(6, 51) + SourceIndex(5) -2 >Emitted(83, 2) Source(6, 52) + SourceIndex(5) +1 >Emitted(63, 1) Source(6, 51) + SourceIndex(5) +2 >Emitted(63, 2) Source(6, 52) + SourceIndex(5) --- ->>>thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); +>>>thirdthird_part1Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >thirdthird_part1Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(84, 1) Source(7, 1) + SourceIndex(5) -2 >Emitted(84, 23) Source(7, 23) + SourceIndex(5) -3 >Emitted(84, 47) Source(7, 27) + SourceIndex(5) -4 >Emitted(84, 48) Source(7, 28) + SourceIndex(5) -5 >Emitted(84, 50) Source(7, 30) + SourceIndex(5) -6 >Emitted(84, 52) Source(7, 32) + SourceIndex(5) -7 >Emitted(84, 54) Source(7, 34) + SourceIndex(5) -8 >Emitted(84, 56) Source(7, 36) + SourceIndex(5) -9 >Emitted(84, 58) Source(7, 38) + SourceIndex(5) -10>Emitted(84, 59) Source(7, 39) + SourceIndex(5) -11>Emitted(84, 62) Source(7, 41) + SourceIndex(5) +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) --- >>>//# sourceMappingURL=third-output.js.map @@ -3351,53 +3155,39 @@ sourceFile:../../third_part1.ts }, { "pos": 502, - "end": 1006, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 1008, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 1180, - "end": 1619, + "end": 931, "kind": "prepend", "data": "../../../first/bin/first-output.js", "texts": [ { - "pos": 1180, - "end": 1619, + "pos": 502, + "end": 931, "kind": "text" } ] }, { - "pos": 1619, - "end": 2239, + "pos": 931, + "end": 1541, "kind": "prepend", "data": "../../../2/second-output.js", "texts": [ { - "pos": 1619, - "end": 2239, + "pos": 931, + "end": 1541, "kind": "text" } ] }, { - "pos": 2239, - "end": 2604, + "pos": 1541, + "end": 1896, "kind": "text" } ], "sources": { "helpers": [ - "typescript:rest", - "typescript:read", - "typescript:spread" + "typescript:rest" ] } }, @@ -3457,33 +3247,9 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -emitHelpers: (502-1006):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (1008-1178):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -prepend: (1180-1619):: ../../../first/bin/first-output.js texts:: 1 +prepend: (502-931):: ../../../first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1180-1619) +text: (502-931) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -3499,12 +3265,12 @@ function firstfirst_part3Spread() { b[_i] = arguments[_i]; } } -firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); +firstfirst_part3Spread.apply(void 0, [10, 20, 30]); ---------------------------------------------------------------------- -prepend: (1619-2239):: ../../../2/second-output.js texts:: 1 +prepend: (931-1541):: ../../../2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1619-2239) +text: (931-1541) var N; (function (N) { function f() { @@ -3529,10 +3295,10 @@ function secondsecond_part2Spread() { b[_i] = arguments[_i]; } } -secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); +secondsecond_part2Spread.apply(void 0, [10, 20, 30]); ---------------------------------------------------------------------- -text: (2239-2604) +text: (1541-1896) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { @@ -3544,7 +3310,7 @@ function thirdthird_part1Spread() { b[_i] = arguments[_i]; } } -thirdthird_part1Spread.apply(void 0, __spread([10, 20, 30])); +thirdthird_part1Spread.apply(void 0, [10, 20, 30]); ====================================================================== ====================================================================== 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 699c467ceb203..d3400f94cfcb8 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 @@ -304,26 +304,6 @@ sourceFile:../second/second_part2.ts >>>//# 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 __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; var N; (function (N) { function f() { @@ -337,7 +317,7 @@ function secondsecond_part1Spread() { b[_i] = arguments[_i]; } } -secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +secondsecond_part1Spread.apply(void 0, [10, 20, 30]); var C = (function () { function C() { } @@ -349,7 +329,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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;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,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"} //// [/src/2/second-output.js.map.baseline.txt] =================================================================== @@ -362,26 +342,6 @@ 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 __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; >>>var N; 1 > 2 >^^^^ @@ -402,10 +362,10 @@ sourceFile:../second/second_part1.ts > > f(); > } -1 >Emitted(21, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(21, 5) Source(5, 11) + SourceIndex(0) -3 >Emitted(21, 6) Source(5, 12) + SourceIndex(0) -4 >Emitted(21, 7) Source(11, 2) + SourceIndex(0) +1 >Emitted(1, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(1, 5) Source(5, 11) + SourceIndex(0) +3 >Emitted(1, 6) Source(5, 12) + SourceIndex(0) +4 >Emitted(1, 7) Source(11, 2) + SourceIndex(0) --- >>>(function (N) { 1-> @@ -415,9 +375,9 @@ sourceFile:../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(22, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(22, 12) Source(5, 11) + SourceIndex(0) -3 >Emitted(22, 13) Source(5, 12) + SourceIndex(0) +1->Emitted(2, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(2, 12) Source(5, 11) + SourceIndex(0) +3 >Emitted(2, 13) Source(5, 12) + SourceIndex(0) --- >>> function f() { 1->^^^^ @@ -428,9 +388,9 @@ sourceFile:../second/second_part1.ts > 2 > function 3 > f -1->Emitted(23, 5) Source(6, 5) + SourceIndex(0) -2 >Emitted(23, 14) Source(6, 14) + SourceIndex(0) -3 >Emitted(23, 15) Source(6, 15) + SourceIndex(0) +1->Emitted(3, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(3, 14) Source(6, 14) + SourceIndex(0) +3 >Emitted(3, 15) Source(6, 15) + SourceIndex(0) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -450,14 +410,14 @@ sourceFile:../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(24, 9) Source(7, 9) + SourceIndex(0) -2 >Emitted(24, 16) Source(7, 16) + SourceIndex(0) -3 >Emitted(24, 17) Source(7, 17) + SourceIndex(0) -4 >Emitted(24, 20) Source(7, 20) + SourceIndex(0) -5 >Emitted(24, 21) Source(7, 21) + SourceIndex(0) -6 >Emitted(24, 30) Source(7, 30) + SourceIndex(0) -7 >Emitted(24, 31) Source(7, 31) + SourceIndex(0) -8 >Emitted(24, 32) Source(7, 32) + SourceIndex(0) +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 >^^^^ @@ -466,8 +426,8 @@ sourceFile:../second/second_part1.ts 1 > > 2 > } -1 >Emitted(25, 5) Source(8, 5) + SourceIndex(0) -2 >Emitted(25, 6) Source(8, 6) + SourceIndex(0) +1 >Emitted(5, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(5, 6) Source(8, 6) + SourceIndex(0) --- >>> f(); 1->^^^^ @@ -481,10 +441,10 @@ sourceFile:../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(26, 5) Source(10, 5) + SourceIndex(0) -2 >Emitted(26, 6) Source(10, 6) + SourceIndex(0) -3 >Emitted(26, 8) Source(10, 8) + SourceIndex(0) -4 >Emitted(26, 9) Source(10, 9) + SourceIndex(0) +1->Emitted(6, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(6, 6) Source(10, 6) + SourceIndex(0) +3 >Emitted(6, 8) Source(10, 8) + SourceIndex(0) +4 >Emitted(6, 9) Source(10, 9) + SourceIndex(0) --- >>>})(N || (N = {})); 1-> @@ -509,13 +469,13 @@ sourceFile:../second/second_part1.ts > > f(); > } -1->Emitted(27, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(27, 2) Source(11, 2) + SourceIndex(0) -3 >Emitted(27, 4) Source(5, 11) + SourceIndex(0) -4 >Emitted(27, 5) Source(5, 12) + SourceIndex(0) -5 >Emitted(27, 10) Source(5, 11) + SourceIndex(0) -6 >Emitted(27, 11) Source(5, 12) + SourceIndex(0) -7 >Emitted(27, 19) Source(11, 2) + SourceIndex(0) +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) --- >>>function secondsecond_part1Spread() { 1-> @@ -526,9 +486,9 @@ sourceFile:../second/second_part1.ts > 2 >function 3 > secondsecond_part1Spread -1->Emitted(28, 1) Source(13, 1) + SourceIndex(0) -2 >Emitted(28, 10) Source(13, 10) + SourceIndex(0) -3 >Emitted(28, 34) Source(13, 34) + SourceIndex(0) +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) --- >>> var b = []; 1 >^^^^ @@ -536,8 +496,8 @@ sourceFile:../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(29, 5) Source(13, 35) + SourceIndex(0) -2 >Emitted(29, 16) Source(13, 49) + SourceIndex(0) +1 >Emitted(9, 5) Source(13, 35) + SourceIndex(0) +2 >Emitted(9, 16) Source(13, 49) + SourceIndex(0) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -552,66 +512,66 @@ sourceFile:../second/second_part1.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(30, 10) Source(13, 35) + SourceIndex(0) -2 >Emitted(30, 20) Source(13, 49) + SourceIndex(0) -3 >Emitted(30, 22) Source(13, 35) + SourceIndex(0) -4 >Emitted(30, 43) Source(13, 49) + SourceIndex(0) -5 >Emitted(30, 45) Source(13, 35) + SourceIndex(0) -6 >Emitted(30, 49) Source(13, 49) + SourceIndex(0) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(31, 9) Source(13, 35) + SourceIndex(0) -2 >Emitted(31, 31) Source(13, 49) + SourceIndex(0) +1 >Emitted(11, 9) Source(13, 35) + SourceIndex(0) +2 >Emitted(11, 31) Source(13, 49) + SourceIndex(0) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(33, 1) Source(13, 53) + SourceIndex(0) -2 >Emitted(33, 2) Source(13, 54) + SourceIndex(0) +1 >Emitted(13, 1) Source(13, 53) + SourceIndex(0) +2 >Emitted(13, 2) Source(13, 54) + SourceIndex(0) --- ->>>secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +>>>secondsecond_part1Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >secondsecond_part1Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(34, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(34, 25) Source(14, 25) + SourceIndex(0) -3 >Emitted(34, 49) Source(14, 29) + SourceIndex(0) -4 >Emitted(34, 50) Source(14, 30) + SourceIndex(0) -5 >Emitted(34, 52) Source(14, 32) + SourceIndex(0) -6 >Emitted(34, 54) Source(14, 34) + SourceIndex(0) -7 >Emitted(34, 56) Source(14, 36) + SourceIndex(0) -8 >Emitted(34, 58) Source(14, 38) + SourceIndex(0) -9 >Emitted(34, 60) Source(14, 40) + SourceIndex(0) -10>Emitted(34, 61) Source(14, 41) + SourceIndex(0) -11>Emitted(34, 64) Source(14, 43) + SourceIndex(0) +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) --- ------------------------------------------------------------------- emittedFile:/src/2/second-output.js @@ -621,13 +581,13 @@ sourceFile:../second/second_part2.ts 1 > 2 >^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(35, 1) Source(1, 1) + SourceIndex(1) +1 >Emitted(15, 1) Source(1, 1) + SourceIndex(1) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(36, 5) Source(1, 1) + SourceIndex(1) +1->Emitted(16, 5) Source(1, 1) + SourceIndex(1) --- >>> } 1->^^^^ @@ -639,8 +599,8 @@ sourceFile:../second/second_part2.ts > } > 2 > } -1->Emitted(37, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(37, 6) Source(5, 2) + SourceIndex(1) +1->Emitted(17, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(17, 6) Source(5, 2) + SourceIndex(1) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -650,9 +610,9 @@ sourceFile:../second/second_part2.ts 1-> 2 > doSomething 3 > -1->Emitted(38, 5) Source(2, 5) + SourceIndex(1) -2 >Emitted(38, 28) Source(2, 16) + SourceIndex(1) -3 >Emitted(38, 31) Source(2, 5) + SourceIndex(1) +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) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -672,14 +632,14 @@ sourceFile:../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -1->Emitted(39, 9) Source(3, 9) + SourceIndex(1) -2 >Emitted(39, 16) Source(3, 16) + SourceIndex(1) -3 >Emitted(39, 17) Source(3, 17) + SourceIndex(1) -4 >Emitted(39, 20) Source(3, 20) + SourceIndex(1) -5 >Emitted(39, 21) Source(3, 21) + SourceIndex(1) -6 >Emitted(39, 41) Source(3, 41) + SourceIndex(1) -7 >Emitted(39, 42) Source(3, 42) + SourceIndex(1) -8 >Emitted(39, 43) Source(3, 43) + SourceIndex(1) +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 >^^^^ @@ -688,8 +648,8 @@ sourceFile:../second/second_part2.ts 1 > > 2 > } -1 >Emitted(40, 5) Source(4, 5) + SourceIndex(1) -2 >Emitted(40, 6) Source(4, 6) + SourceIndex(1) +1 >Emitted(20, 5) Source(4, 5) + SourceIndex(1) +2 >Emitted(20, 6) Source(4, 6) + SourceIndex(1) --- >>> return C; 1->^^^^ @@ -697,8 +657,8 @@ sourceFile:../second/second_part2.ts 1-> > 2 > } -1->Emitted(41, 5) Source(5, 1) + SourceIndex(1) -2 >Emitted(41, 13) Source(5, 2) + SourceIndex(1) +1->Emitted(21, 5) Source(5, 1) + SourceIndex(1) +2 >Emitted(21, 13) Source(5, 2) + SourceIndex(1) --- >>>}()); 1 > @@ -714,10 +674,10 @@ sourceFile:../second/second_part2.ts > console.log("something got done"); > } > } -1 >Emitted(42, 1) Source(5, 1) + SourceIndex(1) -2 >Emitted(42, 2) Source(5, 2) + SourceIndex(1) -3 >Emitted(42, 2) Source(1, 1) + SourceIndex(1) -4 >Emitted(42, 6) Source(5, 2) + SourceIndex(1) +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) --- >>>//# sourceMappingURL=second-output.js.map @@ -733,28 +693,10 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, - "end": 504, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 506, - "end": 676, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 678, - "end": 1179, + "end": 491, "kind": "text" } - ], - "sources": { - "helpers": [ - "typescript:read", - "typescript:spread" - ] - } + ] }, "dts": { "sections": [ @@ -773,31 +715,7 @@ sourceFile:../second/second_part2.ts ====================================================================== File:: /src/2/second-output.js ---------------------------------------------------------------------- -emitHelpers: (0-504):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (506-676):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -text: (678-1179) +text: (0-491) var N; (function (N) { function f() { @@ -811,7 +729,7 @@ function secondsecond_part1Spread() { b[_i] = arguments[_i]; } } -secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +secondsecond_part1Spread.apply(void 0, [10, 20, 30]); var C = (function () { function C() { } @@ -1717,26 +1635,6 @@ 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 __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -1759,7 +1657,7 @@ function secondsecond_part1Spread() { b[_i] = arguments[_i]; } } -secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +secondsecond_part1Spread.apply(void 0, [10, 20, 30]); var C = (function () { function C() { } @@ -1776,7 +1674,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,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;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,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"} //// [/src/third/thirdjs/output/third-output.js.map.baseline.txt] =================================================================== @@ -1800,26 +1698,6 @@ 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 __spread = (this && this.__spread) || function () { ->>> for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); ->>> return ar; ->>>}; >>>var s = "Hello, world"; 1 > 2 >^^^^ @@ -1837,12 +1715,12 @@ sourceFile:../../../first/first_PART1.ts 4 > = 5 > "Hello, world" 6 > ; -1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0) -2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0) -3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0) -4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0) -5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0) -6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0) +1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0) +3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0) +4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0) +5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0) +6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0) --- >>>console.log(s); 1 > @@ -1868,14 +1746,14 @@ sourceFile:../../../first/first_PART1.ts 6 > s 7 > ) 8 > ; -1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0) -2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0) -3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0) -4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0) -5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0) -6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0) -7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0) -8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0) +1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0) +2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0) +3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0) +4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0) +5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0) +6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0) +7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0) +8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0) --- >>>function forfirstfirst_PART1Rest() { 1-> @@ -1886,9 +1764,9 @@ sourceFile:../../../first/first_PART1.ts > 2 >function 3 > forfirstfirst_PART1Rest -1->Emitted(34, 1) Source(12, 1) + SourceIndex(0) -2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0) -3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0) +1->Emitted(14, 1) Source(12, 1) + SourceIndex(0) +2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0) +3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -1942,31 +1820,31 @@ sourceFile:../../../first/first_PART1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -1->Emitted(35, 5) Source(13, 1) + SourceIndex(0) -2 >Emitted(35, 9) Source(13, 7) + SourceIndex(0) -3 >Emitted(35, 14) Source(13, 24) + SourceIndex(0) -4 >Emitted(35, 16) Source(13, 26) + SourceIndex(0) -5 >Emitted(35, 17) Source(13, 27) + SourceIndex(0) -6 >Emitted(35, 19) Source(13, 29) + SourceIndex(0) -7 >Emitted(35, 21) Source(13, 31) + SourceIndex(0) -8 >Emitted(35, 23) Source(13, 33) + SourceIndex(0) -9 >Emitted(35, 24) Source(13, 34) + SourceIndex(0) -10>Emitted(35, 26) Source(13, 36) + SourceIndex(0) -11>Emitted(35, 28) Source(13, 38) + SourceIndex(0) -12>Emitted(35, 30) Source(13, 40) + SourceIndex(0) -13>Emitted(35, 32) Source(13, 42) + SourceIndex(0) -14>Emitted(35, 34) Source(13, 44) + SourceIndex(0) -15>Emitted(35, 36) Source(13, 46) + SourceIndex(0) -16>Emitted(35, 38) Source(13, 48) + SourceIndex(0) -17>Emitted(35, 40) Source(13, 9) + SourceIndex(0) -18>Emitted(35, 41) Source(13, 10) + SourceIndex(0) -19>Emitted(35, 48) Source(13, 10) + SourceIndex(0) -20>Emitted(35, 50) Source(13, 15) + SourceIndex(0) -21>Emitted(35, 54) Source(13, 19) + SourceIndex(0) -22>Emitted(35, 68) Source(13, 7) + SourceIndex(0) -23>Emitted(35, 73) Source(13, 21) + SourceIndex(0) -24>Emitted(35, 74) Source(13, 48) + SourceIndex(0) -25>Emitted(35, 75) Source(13, 49) + SourceIndex(0) +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 > @@ -1975,8 +1853,8 @@ sourceFile:../../../first/first_PART1.ts 1 > > 2 >} -1 >Emitted(36, 1) Source(14, 1) + SourceIndex(0) -2 >Emitted(36, 2) Source(14, 2) + SourceIndex(0) +1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0) +2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2001,15 +1879,15 @@ sourceFile:../../../first/first_part2.ts 7 > () 8 > ) 9 > ; -1->Emitted(37, 1) Source(1, 1) + SourceIndex(1) -2 >Emitted(37, 8) Source(1, 8) + SourceIndex(1) -3 >Emitted(37, 9) Source(1, 9) + SourceIndex(1) -4 >Emitted(37, 12) Source(1, 12) + SourceIndex(1) -5 >Emitted(37, 13) Source(1, 13) + SourceIndex(1) -6 >Emitted(37, 14) Source(1, 14) + SourceIndex(1) -7 >Emitted(37, 16) Source(1, 16) + SourceIndex(1) -8 >Emitted(37, 17) Source(1, 17) + SourceIndex(1) -9 >Emitted(37, 18) Source(1, 18) + SourceIndex(1) +1->Emitted(17, 1) Source(1, 1) + SourceIndex(1) +2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1) +3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1) +4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1) +5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1) +6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1) +7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1) +8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1) +9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2023,9 +1901,9 @@ sourceFile:../../../first/first_part3.ts 1 > 2 >function 3 > f -1 >Emitted(38, 1) Source(1, 1) + SourceIndex(2) -2 >Emitted(38, 10) Source(1, 10) + SourceIndex(2) -3 >Emitted(38, 11) Source(1, 11) + SourceIndex(2) +1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2) +2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2) +3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2) --- >>> return "JS does hoists"; 1->^^^^ @@ -2037,10 +1915,10 @@ sourceFile:../../../first/first_part3.ts 2 > return 3 > "JS does hoists" 4 > ; -1->Emitted(39, 5) Source(2, 5) + SourceIndex(2) -2 >Emitted(39, 12) Source(2, 12) + SourceIndex(2) -3 >Emitted(39, 28) Source(2, 28) + SourceIndex(2) -4 >Emitted(39, 29) Source(2, 29) + SourceIndex(2) +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 > @@ -2049,8 +1927,8 @@ sourceFile:../../../first/first_part3.ts 1 > > 2 >} -1 >Emitted(40, 1) Source(3, 1) + SourceIndex(2) -2 >Emitted(40, 2) Source(3, 2) + SourceIndex(2) +1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2) +2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2076,10 +1954,10 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(41, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(41, 5) Source(5, 11) + SourceIndex(3) -3 >Emitted(41, 6) Source(5, 12) + SourceIndex(3) -4 >Emitted(41, 7) Source(11, 2) + SourceIndex(3) +1->Emitted(21, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(21, 5) Source(5, 11) + SourceIndex(3) +3 >Emitted(21, 6) Source(5, 12) + SourceIndex(3) +4 >Emitted(21, 7) Source(11, 2) + SourceIndex(3) --- >>>(function (N) { 1-> @@ -2089,9 +1967,9 @@ sourceFile:../../../second/second_part1.ts 1-> 2 >namespace 3 > N -1->Emitted(42, 1) Source(5, 1) + SourceIndex(3) -2 >Emitted(42, 12) Source(5, 11) + SourceIndex(3) -3 >Emitted(42, 13) Source(5, 12) + SourceIndex(3) +1->Emitted(22, 1) Source(5, 1) + SourceIndex(3) +2 >Emitted(22, 12) Source(5, 11) + SourceIndex(3) +3 >Emitted(22, 13) Source(5, 12) + SourceIndex(3) --- >>> function f() { 1->^^^^ @@ -2102,9 +1980,9 @@ sourceFile:../../../second/second_part1.ts > 2 > function 3 > f -1->Emitted(43, 5) Source(6, 5) + SourceIndex(3) -2 >Emitted(43, 14) Source(6, 14) + SourceIndex(3) -3 >Emitted(43, 15) Source(6, 15) + SourceIndex(3) +1->Emitted(23, 5) Source(6, 5) + SourceIndex(3) +2 >Emitted(23, 14) Source(6, 14) + SourceIndex(3) +3 >Emitted(23, 15) Source(6, 15) + SourceIndex(3) --- >>> console.log('testing'); 1->^^^^^^^^ @@ -2124,14 +2002,14 @@ sourceFile:../../../second/second_part1.ts 6 > 'testing' 7 > ) 8 > ; -1->Emitted(44, 9) Source(7, 9) + SourceIndex(3) -2 >Emitted(44, 16) Source(7, 16) + SourceIndex(3) -3 >Emitted(44, 17) Source(7, 17) + SourceIndex(3) -4 >Emitted(44, 20) Source(7, 20) + SourceIndex(3) -5 >Emitted(44, 21) Source(7, 21) + SourceIndex(3) -6 >Emitted(44, 30) Source(7, 30) + SourceIndex(3) -7 >Emitted(44, 31) Source(7, 31) + SourceIndex(3) -8 >Emitted(44, 32) Source(7, 32) + SourceIndex(3) +1->Emitted(24, 9) Source(7, 9) + SourceIndex(3) +2 >Emitted(24, 16) Source(7, 16) + SourceIndex(3) +3 >Emitted(24, 17) Source(7, 17) + SourceIndex(3) +4 >Emitted(24, 20) Source(7, 20) + SourceIndex(3) +5 >Emitted(24, 21) Source(7, 21) + SourceIndex(3) +6 >Emitted(24, 30) Source(7, 30) + SourceIndex(3) +7 >Emitted(24, 31) Source(7, 31) + SourceIndex(3) +8 >Emitted(24, 32) Source(7, 32) + SourceIndex(3) --- >>> } 1 >^^^^ @@ -2140,8 +2018,8 @@ sourceFile:../../../second/second_part1.ts 1 > > 2 > } -1 >Emitted(45, 5) Source(8, 5) + SourceIndex(3) -2 >Emitted(45, 6) Source(8, 6) + SourceIndex(3) +1 >Emitted(25, 5) Source(8, 5) + SourceIndex(3) +2 >Emitted(25, 6) Source(8, 6) + SourceIndex(3) --- >>> f(); 1->^^^^ @@ -2155,10 +2033,10 @@ sourceFile:../../../second/second_part1.ts 2 > f 3 > () 4 > ; -1->Emitted(46, 5) Source(10, 5) + SourceIndex(3) -2 >Emitted(46, 6) Source(10, 6) + SourceIndex(3) -3 >Emitted(46, 8) Source(10, 8) + SourceIndex(3) -4 >Emitted(46, 9) Source(10, 9) + SourceIndex(3) +1->Emitted(26, 5) Source(10, 5) + SourceIndex(3) +2 >Emitted(26, 6) Source(10, 6) + SourceIndex(3) +3 >Emitted(26, 8) Source(10, 8) + SourceIndex(3) +4 >Emitted(26, 9) Source(10, 9) + SourceIndex(3) --- >>>})(N || (N = {})); 1-> @@ -2183,13 +2061,13 @@ sourceFile:../../../second/second_part1.ts > > f(); > } -1->Emitted(47, 1) Source(11, 1) + SourceIndex(3) -2 >Emitted(47, 2) Source(11, 2) + SourceIndex(3) -3 >Emitted(47, 4) Source(5, 11) + SourceIndex(3) -4 >Emitted(47, 5) Source(5, 12) + SourceIndex(3) -5 >Emitted(47, 10) Source(5, 11) + SourceIndex(3) -6 >Emitted(47, 11) Source(5, 12) + SourceIndex(3) -7 >Emitted(47, 19) Source(11, 2) + SourceIndex(3) +1->Emitted(27, 1) Source(11, 1) + SourceIndex(3) +2 >Emitted(27, 2) Source(11, 2) + SourceIndex(3) +3 >Emitted(27, 4) Source(5, 11) + SourceIndex(3) +4 >Emitted(27, 5) Source(5, 12) + SourceIndex(3) +5 >Emitted(27, 10) Source(5, 11) + SourceIndex(3) +6 >Emitted(27, 11) Source(5, 12) + SourceIndex(3) +7 >Emitted(27, 19) Source(11, 2) + SourceIndex(3) --- >>>function secondsecond_part1Spread() { 1-> @@ -2200,9 +2078,9 @@ sourceFile:../../../second/second_part1.ts > 2 >function 3 > secondsecond_part1Spread -1->Emitted(48, 1) Source(13, 1) + SourceIndex(3) -2 >Emitted(48, 10) Source(13, 10) + SourceIndex(3) -3 >Emitted(48, 34) Source(13, 34) + SourceIndex(3) +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) --- >>> var b = []; 1 >^^^^ @@ -2210,8 +2088,8 @@ sourceFile:../../../second/second_part1.ts 3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >( 2 > ...b: number[] -1 >Emitted(49, 5) Source(13, 35) + SourceIndex(3) -2 >Emitted(49, 16) Source(13, 49) + SourceIndex(3) +1 >Emitted(29, 5) Source(13, 35) + SourceIndex(3) +2 >Emitted(29, 16) Source(13, 49) + SourceIndex(3) --- >>> for (var _i = 0; _i < arguments.length; _i++) { 1->^^^^^^^^^ @@ -2226,66 +2104,66 @@ sourceFile:../../../second/second_part1.ts 4 > ...b: number[] 5 > 6 > ...b: number[] -1->Emitted(50, 10) Source(13, 35) + SourceIndex(3) -2 >Emitted(50, 20) Source(13, 49) + SourceIndex(3) -3 >Emitted(50, 22) Source(13, 35) + SourceIndex(3) -4 >Emitted(50, 43) Source(13, 49) + SourceIndex(3) -5 >Emitted(50, 45) Source(13, 35) + SourceIndex(3) -6 >Emitted(50, 49) Source(13, 49) + SourceIndex(3) +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) --- >>> b[_i] = arguments[_i]; 1 >^^^^^^^^ 2 > ^^^^^^^^^^^^^^^^^^^^^^ 1 > 2 > ...b: number[] -1 >Emitted(51, 9) Source(13, 35) + SourceIndex(3) -2 >Emitted(51, 31) Source(13, 49) + SourceIndex(3) +1 >Emitted(31, 9) Source(13, 35) + SourceIndex(3) +2 >Emitted(31, 31) Source(13, 49) + SourceIndex(3) --- >>> } >>>} 1 > 2 >^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> 1 >) { 2 >} -1 >Emitted(53, 1) Source(13, 53) + SourceIndex(3) -2 >Emitted(53, 2) Source(13, 54) + SourceIndex(3) +1 >Emitted(33, 1) Source(13, 53) + SourceIndex(3) +2 >Emitted(33, 2) Source(13, 54) + SourceIndex(3) --- ->>>secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +>>>secondsecond_part1Spread.apply(void 0, [10, 20, 30]); 1-> 2 >^^^^^^^^^^^^^^^^^^^^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^ -4 > ^ -5 > ^^ -6 > ^^ -7 > ^^ -8 > ^^ -9 > ^^ -10> ^ -11> ^^^ +3 > ^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^^ +7 > ^^ +8 > ^^ +9 > ^^ +10> ^ +11> ^^ 1-> > 2 >secondsecond_part1Spread 3 > (... -4 > [ -5 > 10 -6 > , -7 > 20 -8 > , -9 > 30 -10> ] -11> ); -1->Emitted(54, 1) Source(14, 1) + SourceIndex(3) -2 >Emitted(54, 25) Source(14, 25) + SourceIndex(3) -3 >Emitted(54, 49) Source(14, 29) + SourceIndex(3) -4 >Emitted(54, 50) Source(14, 30) + SourceIndex(3) -5 >Emitted(54, 52) Source(14, 32) + SourceIndex(3) -6 >Emitted(54, 54) Source(14, 34) + SourceIndex(3) -7 >Emitted(54, 56) Source(14, 36) + SourceIndex(3) -8 >Emitted(54, 58) Source(14, 38) + SourceIndex(3) -9 >Emitted(54, 60) Source(14, 40) + SourceIndex(3) -10>Emitted(54, 61) Source(14, 41) + SourceIndex(3) -11>Emitted(54, 64) Source(14, 43) + SourceIndex(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) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2295,13 +2173,13 @@ sourceFile:../../../second/second_part2.ts 1 > 2 >^^^^^^^^^^^^^^^^^^^-> 1 > -1 >Emitted(55, 1) Source(1, 1) + SourceIndex(4) +1 >Emitted(35, 1) Source(1, 1) + SourceIndex(4) --- >>> function C() { 1->^^^^ 2 > ^^-> 1-> -1->Emitted(56, 5) Source(1, 1) + SourceIndex(4) +1->Emitted(36, 5) Source(1, 1) + SourceIndex(4) --- >>> } 1->^^^^ @@ -2313,8 +2191,8 @@ sourceFile:../../../second/second_part2.ts > } > 2 > } -1->Emitted(57, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(57, 6) Source(5, 2) + SourceIndex(4) +1->Emitted(37, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(37, 6) Source(5, 2) + SourceIndex(4) --- >>> C.prototype.doSomething = function () { 1->^^^^ @@ -2324,9 +2202,9 @@ sourceFile:../../../second/second_part2.ts 1-> 2 > doSomething 3 > -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) +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) --- >>> console.log("something got done"); 1->^^^^^^^^ @@ -2346,14 +2224,14 @@ sourceFile:../../../second/second_part2.ts 6 > "something got done" 7 > ) 8 > ; -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->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 >^^^^ @@ -2362,8 +2240,8 @@ sourceFile:../../../second/second_part2.ts 1 > > 2 > } -1 >Emitted(60, 5) Source(4, 5) + SourceIndex(4) -2 >Emitted(60, 6) Source(4, 6) + SourceIndex(4) +1 >Emitted(40, 5) Source(4, 5) + SourceIndex(4) +2 >Emitted(40, 6) Source(4, 6) + SourceIndex(4) --- >>> return C; 1->^^^^ @@ -2371,8 +2249,8 @@ sourceFile:../../../second/second_part2.ts 1-> > 2 > } -1->Emitted(61, 5) Source(5, 1) + SourceIndex(4) -2 >Emitted(61, 13) Source(5, 2) + SourceIndex(4) +1->Emitted(41, 5) Source(5, 1) + SourceIndex(4) +2 >Emitted(41, 13) Source(5, 2) + SourceIndex(4) --- >>>}()); 1 > @@ -2388,10 +2266,10 @@ sourceFile:../../../second/second_part2.ts > console.log("something got done"); > } > } -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) +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) --- ------------------------------------------------------------------- emittedFile:/src/third/thirdjs/output/third-output.js @@ -2415,14 +2293,14 @@ sourceFile:../../third_part1.ts 6 > C 7 > () 8 > ; -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) +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) --- >>>c.doSomething(); 1-> @@ -2439,12 +2317,12 @@ sourceFile:../../third_part1.ts 4 > doSomething 5 > () 6 > ; -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) +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) --- >>>function forthirdthird_part1Rest() { 1-> @@ -2455,9 +2333,9 @@ sourceFile:../../third_part1.ts > 2 >function 3 > forthirdthird_part1Rest -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) +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) --- >>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]); 1->^^^^ @@ -2511,31 +2389,31 @@ sourceFile:../../third_part1.ts 23> { b, ...rest } 24> = { a: 10, b: 30, yy: 30 } 25> ; -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->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 > @@ -2544,8 +2422,8 @@ sourceFile:../../third_part1.ts 1 > > 2 >} -1 >Emitted(67, 1) Source(5, 1) + SourceIndex(5) -2 >Emitted(67, 2) Source(5, 2) + SourceIndex(5) +1 >Emitted(47, 1) Source(5, 1) + SourceIndex(5) +2 >Emitted(47, 2) Source(5, 2) + SourceIndex(5) --- >>>//# sourceMappingURL=third-output.js.map @@ -2566,45 +2444,33 @@ sourceFile:../../third_part1.ts }, { "pos": 502, - "end": 1006, - "kind": "emitHelpers", - "data": "typescript:read" - }, - { - "pos": 1008, - "end": 1178, - "kind": "emitHelpers", - "data": "typescript:spread" - }, - { - "pos": 1180, - "end": 1407, + "end": 729, "kind": "prepend", "data": "../../../first/bin/first-output.js", "texts": [ { - "pos": 1180, - "end": 1407, + "pos": 502, + "end": 729, "kind": "text" } ] }, { - "pos": 1407, - "end": 1908, + "pos": 729, + "end": 1220, "kind": "prepend", "data": "../../../2/second-output.js", "texts": [ { - "pos": 1407, - "end": 1908, + "pos": 729, + "end": 1220, "kind": "text" } ] }, { - "pos": 1908, - "end": 2061, + "pos": 1220, + "end": 1373, "kind": "text" } ], @@ -2670,33 +2536,9 @@ var __rest = (this && this.__rest) || function (s, e) { return t; }; ---------------------------------------------------------------------- -emitHelpers: (502-1006):: typescript:read -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; ----------------------------------------------------------------------- -emitHelpers: (1008-1178):: typescript:spread -var __spread = (this && this.__spread) || function () { - for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); - return ar; -}; ----------------------------------------------------------------------- -prepend: (1180-1407):: ../../../first/bin/first-output.js texts:: 1 +prepend: (502-729):: ../../../first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1180-1407) +text: (502-729) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -2708,9 +2550,9 @@ function f() { } ---------------------------------------------------------------------- -prepend: (1407-1908):: ../../../2/second-output.js texts:: 1 +prepend: (729-1220):: ../../../2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1407-1908) +text: (729-1220) var N; (function (N) { function f() { @@ -2724,7 +2566,7 @@ function secondsecond_part1Spread() { b[_i] = arguments[_i]; } } -secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30])); +secondsecond_part1Spread.apply(void 0, [10, 20, 30]); var C = (function () { function C() { } @@ -2735,7 +2577,7 @@ var C = (function () { }()); ---------------------------------------------------------------------- -text: (1908-2061) +text: (1220-1373) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { diff --git a/tests/baselines/reference/tsxEmit1.js b/tests/baselines/reference/tsxEmit1.js index 6ca6d91bbe22f..b4c737c249894 100644 --- a/tests/baselines/reference/tsxEmit1.js +++ b/tests/baselines/reference/tsxEmit1.js @@ -41,12 +41,10 @@ var whitespace3 =
//// [file.jsx] -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; +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 p; var selfClosed1 =
; @@ -67,10 +65,10 @@ var SomeClass = /** @class */ (function () { SomeClass.prototype.f = function () { var _this = this; var rewrites1 =
{function () { return _this; }}
; - var rewrites2 =
{__spreadArrays([p], p, [p])}
; + var rewrites2 =
{__spreadArray(__spreadArray([p], p), [p])}
; var rewrites3 =
{{ p: p }}
; var rewrites4 =
; - var rewrites5 =
; + var rewrites5 =
; var rewrites6 =
; }; return SomeClass; diff --git a/tests/baselines/reference/tsxReactEmit1.js b/tests/baselines/reference/tsxReactEmit1.js index 28454c4dfb563..672a12d6a8c97 100644 --- a/tests/baselines/reference/tsxReactEmit1.js +++ b/tests/baselines/reference/tsxReactEmit1.js @@ -42,12 +42,10 @@ var whitespace3 =
//// [file.js] -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; +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 p; var selfClosed1 = React.createElement("div", null); @@ -68,10 +66,10 @@ var SomeClass = /** @class */ (function () { SomeClass.prototype.f = function () { var _this = this; var rewrites1 = React.createElement("div", null, function () { return _this; }); - var rewrites2 = React.createElement("div", null, __spreadArrays([p], p, [p])); + var rewrites2 = React.createElement("div", null, __spreadArray(__spreadArray([p], p), [p])); var rewrites3 = React.createElement("div", null, { p: p }); var rewrites4 = React.createElement("div", { a: function () { return _this; } }); - var rewrites5 = React.createElement("div", { a: __spreadArrays([p], p, [p]) }); + var rewrites5 = React.createElement("div", { a: __spreadArray(__spreadArray([p], p), [p]) }); var rewrites6 = React.createElement("div", { a: { p: p } }); }; return SomeClass; diff --git a/tests/baselines/reference/variadicTuples1.js b/tests/baselines/reference/variadicTuples1.js index 03e0167d8dc28..f23c419b8a694 100644 --- a/tests/baselines/reference/variadicTuples1.js +++ b/tests/baselines/reference/variadicTuples1.js @@ -1,445 +1,443 @@ //// [variadicTuples1.ts] -// Variadics in tuple types - -type TV0 = [string, ...T]; -type TV1 = [string, ...T, number]; -type TV2 = [string, ...T, number, ...T]; -type TV3 = [string, ...T, ...number[], ...T]; - -// Normalization - -type TN1 = TV1<[boolean, string]>; -type TN2 = TV1<[]>; -type TN3 = TV1<[boolean?]>; -type TN4 = TV1; -type TN5 = TV1<[boolean] | [symbol, symbol]>; -type TN6 = TV1; -type TN7 = TV1; - -// Variadics in array literals - -function tup2(t: [...T], u: [...U]) { - return [1, ...t, 2, ...u, 3] as const; -} - -const t2 = tup2(['hello'], [10, true]); - -function concat(t: [...T], u: [...U]): [...T, ...U] { - return [...t, ...u]; -} - -declare const sa: string[]; - -const tc1 = concat([], []); -const tc2 = concat(['hello'], [42]); -const tc3 = concat([1, 2, 3], sa); -const tc4 = concat(sa, [1, 2, 3]); // Ideally would be [...string[], number, number, number] - -function concat2(t: T, u: U) { - return [...t, ...u]; // (T[number] | U[number])[] -} - -const tc5 = concat2([1, 2, 3] as const, [4, 5, 6] as const); // (1 | 2 | 3 | 4 | 5 | 6)[] - -// Spread arguments - -declare function foo1(a: number, b: string, c: boolean, ...d: number[]): void; - -function foo2(t1: [number, string], t2: [boolean], a1: number[]) { - foo1(1, 'abc', true, 42, 43, 44); - foo1(...t1, true, 42, 43, 44); - foo1(...t1, ...t2, 42, 43, 44); - foo1(...t1, ...t2, ...a1); - foo1(...t1); // Error - foo1(...t1, 45); // Error -} - -declare function foo3(x: number, ...args: [...T, number]): T; - -function foo4(u: U) { - foo3(1, 2); - foo3(1, 'hello', true, 2); - foo3(1, ...u, 'hi', 2); - foo3(1); -} - -// Contextual typing of array literals - -declare function ft1(t: T): T; -declare function ft2(t: T): readonly [...T]; -declare function ft3(t: [...T]): T; -declare function ft4(t: [...T]): readonly [...T]; - -ft1(['hello', 42]); // (string | number)[] -ft2(['hello', 42]); // readonly (string | number)[] -ft3(['hello', 42]); // [string, number] -ft4(['hello', 42]); // readonly [string, number] - -// Indexing variadic tuple types - -function f0(t: [string, ...T], n: number) { - const a = t[0]; // string - const b = t[1]; // [string, ...T][1] - const c = t[2]; // [string, ...T][2] - const d = t[n]; // [string, ...T][number] -} - -function f1(t: [string, ...T, number], n: number) { - const a = t[0]; // string - const b = t[1]; // [string, ...T, number][1] - const c = t[2]; // [string, ...T, number][2] - const d = t[n]; // [string, ...T, number][number] -} - -// Destructuring variadic tuple types - -function f2(t: [string, ...T]) { - let [...ax] = t; // [string, ...T] - let [b1, ...bx] = t; // string, [...T] - let [c1, c2, ...cx] = t; // string, [string, ...T][1], T[number][] -} - -function f3(t: [string, ...T, number]) { - let [...ax] = t; // [string, ...T, number] - let [b1, ...bx] = t; // string, [...T, number] - let [c1, c2, ...cx] = t; // string, [string, ...T, number][1], (number | T[number])[] -} - -// Mapped types applied to variadic tuple types - -type Arrayify = { [P in keyof T]: T[P][] }; - -type TM1 = Arrayify; // [string[], (number | undefined)[]?, Arrayify, ...boolean[][]] - -type TP1 = Partial<[string, ...T, number]>; // [string?, Partial, number?] -type TP2 = Partial<[string, ...T, ...number[]]>; // [string?, Partial, ...(number | undefined)[]] - -// Reverse mapping through mapped type applied to variadic tuple type - -declare function fm1(t: Arrayify<[string, number, ...T]>): T; - -let tm1 = fm1([['abc'], [42], [true], ['def']]); // [boolean, string] - -// Spread of readonly array-like infers mutable array-like - -declare function fx1(a: string, ...args: T): T; - -function gx1(u: U, v: V) { - fx1('abc'); // [] - fx1('abc', ...u); // U - fx1('abc', ...v); // [...V] - fx1('abc', ...u); // U - fx1('abc', ...v); // Error -} - -declare function fx2(a: string, ...args: T): T; - -function gx2(u: U, v: V) { - fx2('abc'); // [] - fx2('abc', ...u); // U - fx2('abc', ...v); // [...V] - fx2('abc', ...u); // U - fx2('abc', ...v); // V -} - -// Relations involving variadic tuple types - -function f10(x: [string, ...unknown[]], y: [string, ...T], z: [string, ...U]) { - x = y; - x = z; - y = x; // Error - y = z; - z = x; // Error - z = y; // Error -} - -// For a generic type T, [...T] is assignable to T, T is assignable to readonly [...T], and T is assignable -// to [...T] when T is constrained to a mutable array or tuple type. - -function f11(t: T, m: [...T], r: readonly [...T]) { - t = m; - t = r; // Error - m = t; - m = r; // Error - r = t; - r = m; -} - -function f12(t: T, m: [...T], r: readonly [...T]) { - t = m; - t = r; // Error - m = t; // Error - m = r; // Error - r = t; - r = m; -} - -function f13(t0: T, t1: [...T], t2: [...U]) { - t0 = t1; - t0 = t2; - t1 = t0; - t1 = t2; - t2 = t0; // Error - t2 = t1; // Error -} - -function f14(t0: T, t1: [...T], t2: [...U]) { - t0 = t1; - t0 = t2; - t1 = t0; // Error - t1 = t2; - t2 = t0; // Error - t2 = t1; // Error -} - -function f15(k0: keyof T, k1: keyof [...T], k2: keyof [...U], k3: keyof [1, 2, ...T]) { - k0 = 'length'; - k1 = 'length'; - k2 = 'length'; - k0 = 'slice'; - k1 = 'slice'; - k2 = 'slice'; - k3 = '0'; - k3 = '1'; - k3 = '2'; // Error -} - -// Inference between variadic tuple types - -type First = - T extends readonly [unknown, ...unknown[]] ? T[0] : - T[0] | undefined; - -type DropFirst = T extends readonly [unknown?, ...infer U] ? U : [...T]; - -type Last = - T extends readonly [...unknown[], infer U] ? U : - T extends readonly [unknown, ...unknown[]] ? T[number] : - T[number] | undefined; - -type DropLast = T extends readonly [...infer U, unknown] ? U : [...T]; - -type T00 = First<[number, symbol, string]>; -type T01 = First<[symbol, string]>; -type T02 = First<[string]>; -type T03 = First<[number, symbol, ...string[]]>; -type T04 = First<[symbol, ...string[]]>; -type T05 = First<[string?]>; -type T06 = First; -type T07 = First<[]>; -type T08 = First; -type T09 = First; - -type T10 = DropFirst<[number, symbol, string]>; -type T11 = DropFirst<[symbol, string]>; -type T12 = DropFirst<[string]>; -type T13 = DropFirst<[number, symbol, ...string[]]>; -type T14 = DropFirst<[symbol, ...string[]]>; -type T15 = DropFirst<[string?]>; -type T16 = DropFirst; -type T17 = DropFirst<[]>; -type T18 = DropFirst; -type T19 = DropFirst; - -type T20 = Last<[number, symbol, string]>; -type T21 = Last<[symbol, string]>; -type T22 = Last<[string]>; -type T23 = Last<[number, symbol, ...string[]]>; -type T24 = Last<[symbol, ...string[]]>; -type T25 = Last<[string?]>; -type T26 = Last; -type T27 = Last<[]>; -type T28 = Last; -type T29 = Last; - -type T30 = DropLast<[number, symbol, string]>; -type T31 = DropLast<[symbol, string]>; -type T32 = DropLast<[string]>; -type T33 = DropLast<[number, symbol, ...string[]]>; -type T34 = DropLast<[symbol, ...string[]]>; -type T35 = DropLast<[string?]>; -type T36 = DropLast; -type T37 = DropLast<[]>; // unknown[], maybe should be [] -type T38 = DropLast; -type T39 = DropLast; - -type R00 = First; -type R01 = First; -type R02 = First; -type R03 = First; -type R04 = First; -type R05 = First; -type R06 = First; - -type R10 = DropFirst; -type R11 = DropFirst; -type R12 = DropFirst; -type R13 = DropFirst; -type R14 = DropFirst; -type R15 = DropFirst; -type R16 = DropFirst; - -type R20 = Last; -type R21 = Last; -type R22 = Last; -type R23 = Last; -type R24 = Last; -type R25 = Last; -type R26 = Last; - -type R30 = DropLast; -type R31 = DropLast; -type R32 = DropLast; -type R33 = DropLast; -type R34 = DropLast; -type R35 = DropLast; -type R36 = DropLast; - -// Inference to [...T, ...U] with implied arity for T - -function curry(f: (...args: [...T, ...U]) => R, ...a: T) { - return (...b: U) => f(...a, ...b); -} - -const fn1 = (a: number, b: string, c: boolean, d: string[]) => 0; - -const c0 = curry(fn1); // (a: number, b: string, c: boolean, d: string[]) => number -const c1 = curry(fn1, 1); // (b: string, c: boolean, d: string[]) => number -const c2 = curry(fn1, 1, 'abc'); // (c: boolean, d: string[]) => number -const c3 = curry(fn1, 1, 'abc', true); // (d: string[]) => number -const c4 = curry(fn1, 1, 'abc', true, ['x', 'y']); // () => number - -const fn2 = (x: number, b: boolean, ...args: string[]) => 0; - -const c10 = curry(fn2); // (x: number, b: boolean, ...args: string[]) => number -const c11 = curry(fn2, 1); // (b: boolean, ...args: string[]) => number -const c12 = curry(fn2, 1, true); // (...args: string[]) => number -const c13 = curry(fn2, 1, true, 'abc', 'def'); // (...args: string[]) => number - -const fn3 = (...args: string[]) => 0; - -const c20 = curry(fn3); // (...args: string[]) => number -const c21 = curry(fn3, 'abc', 'def'); // (...args: string[]) => number -const c22 = curry(fn3, ...sa); // (...args: string[]) => number - -// No inference to [...T, ...U] when there is no implied arity - -function curry2(f: (...args: [...T, ...U]) => R, t: [...T], u: [...U]) { - return f(...t, ...u); -} - -declare function fn10(a: string, b: number, c: boolean): string[]; - -curry2(fn10, ['hello', 42], [true]); -curry2(fn10, ['hello'], [42, true]); - -// Inference to [...T] has higher priority than inference to [...T, number?] - -declare function ft(t1: [...T], t2: [...T, number?]): T; - -ft([1, 2, 3], [1, 2, 3]); -ft([1, 2], [1, 2, 3]); -ft(['a', 'b'], ['c', 'd']) -ft(['a', 'b'], ['c', 'd', 42]) - -// Last argument is contextually typed - -declare function call(...args: [...T, (...args: T) => R]): [T, R]; - -call('hello', 32, (a, b) => 42); -call(...sa, (...x) => 42); - -// No inference to ending optional elements (except with identical structure) - -declare function f20(args: [...T, number?]): T; - -function f21(args: [...U, number?]) { - let v1 = f20(args); // U - let v2 = f20(["foo", "bar"]); // [string] - let v3 = f20(["foo", 42]); // [string] -} - -declare function f22(args: [...T, number]): T; -declare function f22(args: [...T]): T; - -function f23(args: [...U, number]) { - let v1 = f22(args); // U - let v2 = f22(["foo", "bar"]); // [string, string] - let v3 = f22(["foo", 42]); // [string] -} - -// Repro from #39327 - -interface Desc { - readonly f: (...args: A) => T; - bind(this: Desc<[...T, ...U], R>, ...args: T): Desc<[...U], R>; -} - -declare const a: Desc<[string, number, boolean], object>; -const b = a.bind("", 1); // Desc<[boolean], object> - -// Repro from #39607 - -declare function getUser(id: string, options?: { x?: string }): string; - -declare function getOrgUser(id: string, orgId: number, options?: { y?: number, z?: boolean }): void; - -function callApi(method: (...args: [...T, object]) => U) { - return (...args: [...T]) => method(...args, {}); -} - -callApi(getUser); -callApi(getOrgUser); - -// Repro from #40235 - -type Numbers = number[]; -type Unbounded = [...Numbers, boolean]; -const data: Unbounded = [false, false]; // Error - -type U1 = [string, ...Numbers, boolean]; -type U2 = [...[string, ...Numbers], boolean]; -type U3 = [...[string, number], boolean]; +// Variadics in tuple types + +type TV0 = [string, ...T]; +type TV1 = [string, ...T, number]; +type TV2 = [string, ...T, number, ...T]; +type TV3 = [string, ...T, ...number[], ...T]; + +// Normalization + +type TN1 = TV1<[boolean, string]>; +type TN2 = TV1<[]>; +type TN3 = TV1<[boolean?]>; +type TN4 = TV1; +type TN5 = TV1<[boolean] | [symbol, symbol]>; +type TN6 = TV1; +type TN7 = TV1; + +// Variadics in array literals + +function tup2(t: [...T], u: [...U]) { + return [1, ...t, 2, ...u, 3] as const; +} + +const t2 = tup2(['hello'], [10, true]); + +function concat(t: [...T], u: [...U]): [...T, ...U] { + return [...t, ...u]; +} + +declare const sa: string[]; + +const tc1 = concat([], []); +const tc2 = concat(['hello'], [42]); +const tc3 = concat([1, 2, 3], sa); +const tc4 = concat(sa, [1, 2, 3]); // Ideally would be [...string[], number, number, number] + +function concat2(t: T, u: U) { + return [...t, ...u]; // (T[number] | U[number])[] +} + +const tc5 = concat2([1, 2, 3] as const, [4, 5, 6] as const); // (1 | 2 | 3 | 4 | 5 | 6)[] + +// Spread arguments + +declare function foo1(a: number, b: string, c: boolean, ...d: number[]): void; + +function foo2(t1: [number, string], t2: [boolean], a1: number[]) { + foo1(1, 'abc', true, 42, 43, 44); + foo1(...t1, true, 42, 43, 44); + foo1(...t1, ...t2, 42, 43, 44); + foo1(...t1, ...t2, ...a1); + foo1(...t1); // Error + foo1(...t1, 45); // Error +} + +declare function foo3(x: number, ...args: [...T, number]): T; + +function foo4(u: U) { + foo3(1, 2); + foo3(1, 'hello', true, 2); + foo3(1, ...u, 'hi', 2); + foo3(1); +} + +// Contextual typing of array literals + +declare function ft1(t: T): T; +declare function ft2(t: T): readonly [...T]; +declare function ft3(t: [...T]): T; +declare function ft4(t: [...T]): readonly [...T]; + +ft1(['hello', 42]); // (string | number)[] +ft2(['hello', 42]); // readonly (string | number)[] +ft3(['hello', 42]); // [string, number] +ft4(['hello', 42]); // readonly [string, number] + +// Indexing variadic tuple types + +function f0(t: [string, ...T], n: number) { + const a = t[0]; // string + const b = t[1]; // [string, ...T][1] + const c = t[2]; // [string, ...T][2] + const d = t[n]; // [string, ...T][number] +} + +function f1(t: [string, ...T, number], n: number) { + const a = t[0]; // string + const b = t[1]; // [string, ...T, number][1] + const c = t[2]; // [string, ...T, number][2] + const d = t[n]; // [string, ...T, number][number] +} + +// Destructuring variadic tuple types + +function f2(t: [string, ...T]) { + let [...ax] = t; // [string, ...T] + let [b1, ...bx] = t; // string, [...T] + let [c1, c2, ...cx] = t; // string, [string, ...T][1], T[number][] +} + +function f3(t: [string, ...T, number]) { + let [...ax] = t; // [string, ...T, number] + let [b1, ...bx] = t; // string, [...T, number] + let [c1, c2, ...cx] = t; // string, [string, ...T, number][1], (number | T[number])[] +} + +// Mapped types applied to variadic tuple types + +type Arrayify = { [P in keyof T]: T[P][] }; + +type TM1 = Arrayify; // [string[], (number | undefined)[]?, Arrayify, ...boolean[][]] + +type TP1 = Partial<[string, ...T, number]>; // [string?, Partial, number?] +type TP2 = Partial<[string, ...T, ...number[]]>; // [string?, Partial, ...(number | undefined)[]] + +// Reverse mapping through mapped type applied to variadic tuple type + +declare function fm1(t: Arrayify<[string, number, ...T]>): T; + +let tm1 = fm1([['abc'], [42], [true], ['def']]); // [boolean, string] + +// Spread of readonly array-like infers mutable array-like + +declare function fx1(a: string, ...args: T): T; + +function gx1(u: U, v: V) { + fx1('abc'); // [] + fx1('abc', ...u); // U + fx1('abc', ...v); // [...V] + fx1('abc', ...u); // U + fx1('abc', ...v); // Error +} + +declare function fx2(a: string, ...args: T): T; + +function gx2(u: U, v: V) { + fx2('abc'); // [] + fx2('abc', ...u); // U + fx2('abc', ...v); // [...V] + fx2('abc', ...u); // U + fx2('abc', ...v); // V +} + +// Relations involving variadic tuple types + +function f10(x: [string, ...unknown[]], y: [string, ...T], z: [string, ...U]) { + x = y; + x = z; + y = x; // Error + y = z; + z = x; // Error + z = y; // Error +} + +// For a generic type T, [...T] is assignable to T, T is assignable to readonly [...T], and T is assignable +// to [...T] when T is constrained to a mutable array or tuple type. + +function f11(t: T, m: [...T], r: readonly [...T]) { + t = m; + t = r; // Error + m = t; + m = r; // Error + r = t; + r = m; +} + +function f12(t: T, m: [...T], r: readonly [...T]) { + t = m; + t = r; // Error + m = t; // Error + m = r; // Error + r = t; + r = m; +} + +function f13(t0: T, t1: [...T], t2: [...U]) { + t0 = t1; + t0 = t2; + t1 = t0; + t1 = t2; + t2 = t0; // Error + t2 = t1; // Error +} + +function f14(t0: T, t1: [...T], t2: [...U]) { + t0 = t1; + t0 = t2; + t1 = t0; // Error + t1 = t2; + t2 = t0; // Error + t2 = t1; // Error +} + +function f15(k0: keyof T, k1: keyof [...T], k2: keyof [...U], k3: keyof [1, 2, ...T]) { + k0 = 'length'; + k1 = 'length'; + k2 = 'length'; + k0 = 'slice'; + k1 = 'slice'; + k2 = 'slice'; + k3 = '0'; + k3 = '1'; + k3 = '2'; // Error +} + +// Inference between variadic tuple types + +type First = + T extends readonly [unknown, ...unknown[]] ? T[0] : + T[0] | undefined; + +type DropFirst = T extends readonly [unknown?, ...infer U] ? U : [...T]; + +type Last = + T extends readonly [...unknown[], infer U] ? U : + T extends readonly [unknown, ...unknown[]] ? T[number] : + T[number] | undefined; + +type DropLast = T extends readonly [...infer U, unknown] ? U : [...T]; + +type T00 = First<[number, symbol, string]>; +type T01 = First<[symbol, string]>; +type T02 = First<[string]>; +type T03 = First<[number, symbol, ...string[]]>; +type T04 = First<[symbol, ...string[]]>; +type T05 = First<[string?]>; +type T06 = First; +type T07 = First<[]>; +type T08 = First; +type T09 = First; + +type T10 = DropFirst<[number, symbol, string]>; +type T11 = DropFirst<[symbol, string]>; +type T12 = DropFirst<[string]>; +type T13 = DropFirst<[number, symbol, ...string[]]>; +type T14 = DropFirst<[symbol, ...string[]]>; +type T15 = DropFirst<[string?]>; +type T16 = DropFirst; +type T17 = DropFirst<[]>; +type T18 = DropFirst; +type T19 = DropFirst; + +type T20 = Last<[number, symbol, string]>; +type T21 = Last<[symbol, string]>; +type T22 = Last<[string]>; +type T23 = Last<[number, symbol, ...string[]]>; +type T24 = Last<[symbol, ...string[]]>; +type T25 = Last<[string?]>; +type T26 = Last; +type T27 = Last<[]>; +type T28 = Last; +type T29 = Last; + +type T30 = DropLast<[number, symbol, string]>; +type T31 = DropLast<[symbol, string]>; +type T32 = DropLast<[string]>; +type T33 = DropLast<[number, symbol, ...string[]]>; +type T34 = DropLast<[symbol, ...string[]]>; +type T35 = DropLast<[string?]>; +type T36 = DropLast; +type T37 = DropLast<[]>; // unknown[], maybe should be [] +type T38 = DropLast; +type T39 = DropLast; + +type R00 = First; +type R01 = First; +type R02 = First; +type R03 = First; +type R04 = First; +type R05 = First; +type R06 = First; + +type R10 = DropFirst; +type R11 = DropFirst; +type R12 = DropFirst; +type R13 = DropFirst; +type R14 = DropFirst; +type R15 = DropFirst; +type R16 = DropFirst; + +type R20 = Last; +type R21 = Last; +type R22 = Last; +type R23 = Last; +type R24 = Last; +type R25 = Last; +type R26 = Last; + +type R30 = DropLast; +type R31 = DropLast; +type R32 = DropLast; +type R33 = DropLast; +type R34 = DropLast; +type R35 = DropLast; +type R36 = DropLast; + +// Inference to [...T, ...U] with implied arity for T + +function curry(f: (...args: [...T, ...U]) => R, ...a: T) { + return (...b: U) => f(...a, ...b); +} + +const fn1 = (a: number, b: string, c: boolean, d: string[]) => 0; + +const c0 = curry(fn1); // (a: number, b: string, c: boolean, d: string[]) => number +const c1 = curry(fn1, 1); // (b: string, c: boolean, d: string[]) => number +const c2 = curry(fn1, 1, 'abc'); // (c: boolean, d: string[]) => number +const c3 = curry(fn1, 1, 'abc', true); // (d: string[]) => number +const c4 = curry(fn1, 1, 'abc', true, ['x', 'y']); // () => number + +const fn2 = (x: number, b: boolean, ...args: string[]) => 0; + +const c10 = curry(fn2); // (x: number, b: boolean, ...args: string[]) => number +const c11 = curry(fn2, 1); // (b: boolean, ...args: string[]) => number +const c12 = curry(fn2, 1, true); // (...args: string[]) => number +const c13 = curry(fn2, 1, true, 'abc', 'def'); // (...args: string[]) => number + +const fn3 = (...args: string[]) => 0; + +const c20 = curry(fn3); // (...args: string[]) => number +const c21 = curry(fn3, 'abc', 'def'); // (...args: string[]) => number +const c22 = curry(fn3, ...sa); // (...args: string[]) => number + +// No inference to [...T, ...U] when there is no implied arity + +function curry2(f: (...args: [...T, ...U]) => R, t: [...T], u: [...U]) { + return f(...t, ...u); +} + +declare function fn10(a: string, b: number, c: boolean): string[]; + +curry2(fn10, ['hello', 42], [true]); +curry2(fn10, ['hello'], [42, true]); + +// Inference to [...T] has higher priority than inference to [...T, number?] + +declare function ft(t1: [...T], t2: [...T, number?]): T; + +ft([1, 2, 3], [1, 2, 3]); +ft([1, 2], [1, 2, 3]); +ft(['a', 'b'], ['c', 'd']) +ft(['a', 'b'], ['c', 'd', 42]) + +// Last argument is contextually typed + +declare function call(...args: [...T, (...args: T) => R]): [T, R]; + +call('hello', 32, (a, b) => 42); +call(...sa, (...x) => 42); + +// No inference to ending optional elements (except with identical structure) + +declare function f20(args: [...T, number?]): T; + +function f21(args: [...U, number?]) { + let v1 = f20(args); // U + let v2 = f20(["foo", "bar"]); // [string] + let v3 = f20(["foo", 42]); // [string] +} + +declare function f22(args: [...T, number]): T; +declare function f22(args: [...T]): T; + +function f23(args: [...U, number]) { + let v1 = f22(args); // U + let v2 = f22(["foo", "bar"]); // [string, string] + let v3 = f22(["foo", 42]); // [string] +} + +// Repro from #39327 + +interface Desc { + readonly f: (...args: A) => T; + bind(this: Desc<[...T, ...U], R>, ...args: T): Desc<[...U], R>; +} + +declare const a: Desc<[string, number, boolean], object>; +const b = a.bind("", 1); // Desc<[boolean], object> + +// Repro from #39607 + +declare function getUser(id: string, options?: { x?: string }): string; + +declare function getOrgUser(id: string, orgId: number, options?: { y?: number, z?: boolean }): void; + +function callApi(method: (...args: [...T, object]) => U) { + return (...args: [...T]) => method(...args, {}); +} + +callApi(getUser); +callApi(getOrgUser); + +// Repro from #40235 + +type Numbers = number[]; +type Unbounded = [...Numbers, boolean]; +const data: Unbounded = [false, false]; // Error + +type U1 = [string, ...Numbers, boolean]; +type U2 = [...[string, ...Numbers], boolean]; +type U3 = [...[string, number], boolean]; //// [variadicTuples1.js] "use strict"; // Variadics in tuple types -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; +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; }; // Variadics in array literals function tup2(t, u) { - return __spreadArrays([1], t, [2], u, [3]); + return __spreadArray(__spreadArray(__spreadArray(__spreadArray([1], t), [2]), u), [3]); } var t2 = tup2(['hello'], [10, true]); function concat(t, u) { - return __spreadArrays(t, u); + return __spreadArray(__spreadArray([], t), u); } var tc1 = concat([], []); var tc2 = concat(['hello'], [42]); var tc3 = concat([1, 2, 3], sa); var tc4 = concat(sa, [1, 2, 3]); // Ideally would be [...string[], number, number, number] function concat2(t, u) { - return __spreadArrays(t, u); // (T[number] | U[number])[] + return __spreadArray(__spreadArray([], t), u); // (T[number] | U[number])[] } var tc5 = concat2([1, 2, 3], [4, 5, 6]); // (1 | 2 | 3 | 4 | 5 | 6)[] function foo2(t1, t2, a1) { foo1(1, 'abc', true, 42, 43, 44); - foo1.apply(void 0, __spreadArrays(t1, [true, 42, 43, 44])); - foo1.apply(void 0, __spreadArrays(t1, t2, [42, 43, 44])); - foo1.apply(void 0, __spreadArrays(t1, t2, a1)); + foo1.apply(void 0, __spreadArray(__spreadArray([], t1), [true, 42, 43, 44])); + foo1.apply(void 0, __spreadArray(__spreadArray(__spreadArray([], t1), t2), [42, 43, 44])); + foo1.apply(void 0, __spreadArray(__spreadArray(__spreadArray([], t1), t2), a1)); foo1.apply(void 0, t1); // Error - foo1.apply(void 0, __spreadArrays(t1, [45])); // Error + foo1.apply(void 0, __spreadArray(__spreadArray([], t1), [45])); // Error } function foo4(u) { foo3(1, 2); foo3(1, 'hello', true, 2); - foo3.apply(void 0, __spreadArrays([1], u, ['hi', 2])); + foo3.apply(void 0, __spreadArray(__spreadArray([1], u), ['hi', 2])); foo3(1); } ft1(['hello', 42]); // (string | number)[] @@ -473,17 +471,17 @@ function f3(t) { var tm1 = fm1([['abc'], [42], [true], ['def']]); // [boolean, string] function gx1(u, v) { fx1('abc'); // [] - fx1.apply(void 0, __spreadArrays(['abc'], u)); // U - fx1.apply(void 0, __spreadArrays(['abc'], v)); // [...V] - fx1.apply(void 0, __spreadArrays(['abc'], u)); // U - fx1.apply(void 0, __spreadArrays(['abc'], v)); // Error + fx1.apply(void 0, __spreadArray(['abc'], u)); // U + fx1.apply(void 0, __spreadArray(['abc'], v)); // [...V] + fx1.apply(void 0, __spreadArray(['abc'], u)); // U + fx1.apply(void 0, __spreadArray(['abc'], v)); // Error } function gx2(u, v) { fx2('abc'); // [] - fx2.apply(void 0, __spreadArrays(['abc'], u)); // U - fx2.apply(void 0, __spreadArrays(['abc'], v)); // [...V] - fx2.apply(void 0, __spreadArrays(['abc'], u)); // U - fx2.apply(void 0, __spreadArrays(['abc'], v)); // V + fx2.apply(void 0, __spreadArray(['abc'], u)); // U + fx2.apply(void 0, __spreadArray(['abc'], v)); // [...V] + fx2.apply(void 0, __spreadArray(['abc'], u)); // U + fx2.apply(void 0, __spreadArray(['abc'], v)); // V } // Relations involving variadic tuple types function f10(x, y, z) { @@ -550,7 +548,7 @@ function curry(f) { for (var _i = 0; _i < arguments.length; _i++) { b[_i] = arguments[_i]; } - return f.apply(void 0, __spreadArrays(a, b)); + return f.apply(void 0, __spreadArray(__spreadArray([], a), b)); }; } var fn1 = function (a, b, c, d) { return 0; }; @@ -579,10 +577,10 @@ var fn3 = function () { }; var c20 = curry(fn3); // (...args: string[]) => number var c21 = curry(fn3, 'abc', 'def'); // (...args: string[]) => number -var c22 = curry.apply(void 0, __spreadArrays([fn3], sa)); // (...args: string[]) => number +var c22 = curry.apply(void 0, __spreadArray([fn3], sa)); // (...args: string[]) => number // No inference to [...T, ...U] when there is no implied arity function curry2(f, t, u) { - return f.apply(void 0, __spreadArrays(t, u)); + return f.apply(void 0, __spreadArray(__spreadArray([], t), u)); } curry2(fn10, ['hello', 42], [true]); curry2(fn10, ['hello'], [42, true]); @@ -591,7 +589,7 @@ ft([1, 2], [1, 2, 3]); ft(['a', 'b'], ['c', 'd']); ft(['a', 'b'], ['c', 'd', 42]); call('hello', 32, function (a, b) { return 42; }); -call.apply(void 0, __spreadArrays(sa, [function () { +call.apply(void 0, __spreadArray(__spreadArray([], sa), [function () { var x = []; for (var _i = 0; _i < arguments.length; _i++) { x[_i] = arguments[_i]; @@ -615,7 +613,7 @@ function callApi(method) { for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } - return method.apply(void 0, __spreadArrays(args, [{}])); + return method.apply(void 0, __spreadArray(__spreadArray([], args), [{}])); }; } callApi(getUser); From d1701a37a7f968b9c075f5009bef1d483d780ee7 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Tue, 17 Nov 2020 22:49:45 -0800 Subject: [PATCH 2/2] Minor cleanup, ensure multiple emit helpers for outfile tests --- src/compiler/factory/emitHelpers.ts | 37 +- src/compiler/transformers/es2015.ts | 38 +- src/compiler/utilities.ts | 11 + src/testRunner/unittests/tsbuild/helpers.ts | 3 +- ...cturingParameterDeclaration3ES5iterable.js | 2 +- .../multiple-emitHelpers-in-all-projects.js | 923 +++++---- .../multiple-emitHelpers-in-all-projects.js | 791 ++++--- .../multiple-emitHelpers-in-all-projects.js | 1091 ++++++---- .../multiple-emitHelpers-in-all-projects.js | 1252 ++++++----- ...tiple-emitHelpers-in-different-projects.js | 580 +++--- .../multiple-emitHelpers-in-all-projects.js | 1314 +++++++----- ...tiple-emitHelpers-in-different-projects.js | 575 ++++-- .../multiple-emitHelpers-in-all-projects.js | 1823 +++++++++++------ ...tiple-emitHelpers-in-different-projects.js | 985 +++++---- tests/baselines/reference/variadicTuples1.js | 802 ++++---- tests/baselines/reference/variadicTuples2.js | 14 +- 16 files changed, 6293 insertions(+), 3948 deletions(-) diff --git a/src/compiler/factory/emitHelpers.ts b/src/compiler/factory/emitHelpers.ts index 40694514a57a9..4333272616da6 100644 --- a/src/compiler/factory/emitHelpers.ts +++ b/src/compiler/factory/emitHelpers.ts @@ -617,34 +617,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", @@ -888,8 +860,6 @@ namespace ts { awaiterHelper, extendsHelper, templateObjectHelper, - spreadHelper, - spreadArraysHelper, spreadArrayHelper, valuesHelper, readHelper, @@ -920,4 +890,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 184b5fbb12cbb..6f28a651190e7 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 476a73f55c07a..0e0c589e8a9fa 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -7033,6 +7033,17 @@ namespace ts { } } + 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); + } + /** * Indicates whether the result of an `Expression` will be unused. * diff --git a/src/testRunner/unittests/tsbuild/helpers.ts b/src/testRunner/unittests/tsbuild/helpers.ts index d9a41fdf1a797..1701f895378ba 100644 --- a/src/testRunner/unittests/tsbuild/helpers.ts +++ b/src/testRunner/unittests/tsbuild/helpers.ts @@ -615,7 +615,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; diff --git a/tests/baselines/reference/variadicTuples1.js b/tests/baselines/reference/variadicTuples1.js index f23c419b8a694..908f018c87a39 100644 --- a/tests/baselines/reference/variadicTuples1.js +++ b/tests/baselines/reference/variadicTuples1.js @@ -1,405 +1,405 @@ //// [variadicTuples1.ts] -// Variadics in tuple types - -type TV0 = [string, ...T]; -type TV1 = [string, ...T, number]; -type TV2 = [string, ...T, number, ...T]; -type TV3 = [string, ...T, ...number[], ...T]; - -// Normalization - -type TN1 = TV1<[boolean, string]>; -type TN2 = TV1<[]>; -type TN3 = TV1<[boolean?]>; -type TN4 = TV1; -type TN5 = TV1<[boolean] | [symbol, symbol]>; -type TN6 = TV1; -type TN7 = TV1; - -// Variadics in array literals - -function tup2(t: [...T], u: [...U]) { - return [1, ...t, 2, ...u, 3] as const; -} - -const t2 = tup2(['hello'], [10, true]); - -function concat(t: [...T], u: [...U]): [...T, ...U] { - return [...t, ...u]; -} - -declare const sa: string[]; - -const tc1 = concat([], []); -const tc2 = concat(['hello'], [42]); -const tc3 = concat([1, 2, 3], sa); -const tc4 = concat(sa, [1, 2, 3]); // Ideally would be [...string[], number, number, number] - -function concat2(t: T, u: U) { - return [...t, ...u]; // (T[number] | U[number])[] -} - -const tc5 = concat2([1, 2, 3] as const, [4, 5, 6] as const); // (1 | 2 | 3 | 4 | 5 | 6)[] - -// Spread arguments - -declare function foo1(a: number, b: string, c: boolean, ...d: number[]): void; - -function foo2(t1: [number, string], t2: [boolean], a1: number[]) { - foo1(1, 'abc', true, 42, 43, 44); - foo1(...t1, true, 42, 43, 44); - foo1(...t1, ...t2, 42, 43, 44); - foo1(...t1, ...t2, ...a1); - foo1(...t1); // Error - foo1(...t1, 45); // Error -} - -declare function foo3(x: number, ...args: [...T, number]): T; - -function foo4(u: U) { - foo3(1, 2); - foo3(1, 'hello', true, 2); - foo3(1, ...u, 'hi', 2); - foo3(1); -} - -// Contextual typing of array literals - -declare function ft1(t: T): T; -declare function ft2(t: T): readonly [...T]; -declare function ft3(t: [...T]): T; -declare function ft4(t: [...T]): readonly [...T]; - -ft1(['hello', 42]); // (string | number)[] -ft2(['hello', 42]); // readonly (string | number)[] -ft3(['hello', 42]); // [string, number] -ft4(['hello', 42]); // readonly [string, number] - -// Indexing variadic tuple types - -function f0(t: [string, ...T], n: number) { - const a = t[0]; // string - const b = t[1]; // [string, ...T][1] - const c = t[2]; // [string, ...T][2] - const d = t[n]; // [string, ...T][number] -} - -function f1(t: [string, ...T, number], n: number) { - const a = t[0]; // string - const b = t[1]; // [string, ...T, number][1] - const c = t[2]; // [string, ...T, number][2] - const d = t[n]; // [string, ...T, number][number] -} - -// Destructuring variadic tuple types - -function f2(t: [string, ...T]) { - let [...ax] = t; // [string, ...T] - let [b1, ...bx] = t; // string, [...T] - let [c1, c2, ...cx] = t; // string, [string, ...T][1], T[number][] -} - -function f3(t: [string, ...T, number]) { - let [...ax] = t; // [string, ...T, number] - let [b1, ...bx] = t; // string, [...T, number] - let [c1, c2, ...cx] = t; // string, [string, ...T, number][1], (number | T[number])[] -} - -// Mapped types applied to variadic tuple types - -type Arrayify = { [P in keyof T]: T[P][] }; - -type TM1 = Arrayify; // [string[], (number | undefined)[]?, Arrayify, ...boolean[][]] - -type TP1 = Partial<[string, ...T, number]>; // [string?, Partial, number?] -type TP2 = Partial<[string, ...T, ...number[]]>; // [string?, Partial, ...(number | undefined)[]] - -// Reverse mapping through mapped type applied to variadic tuple type - -declare function fm1(t: Arrayify<[string, number, ...T]>): T; - -let tm1 = fm1([['abc'], [42], [true], ['def']]); // [boolean, string] - -// Spread of readonly array-like infers mutable array-like - -declare function fx1(a: string, ...args: T): T; - -function gx1(u: U, v: V) { - fx1('abc'); // [] - fx1('abc', ...u); // U - fx1('abc', ...v); // [...V] - fx1('abc', ...u); // U - fx1('abc', ...v); // Error -} - -declare function fx2(a: string, ...args: T): T; - -function gx2(u: U, v: V) { - fx2('abc'); // [] - fx2('abc', ...u); // U - fx2('abc', ...v); // [...V] - fx2('abc', ...u); // U - fx2('abc', ...v); // V -} - -// Relations involving variadic tuple types - -function f10(x: [string, ...unknown[]], y: [string, ...T], z: [string, ...U]) { - x = y; - x = z; - y = x; // Error - y = z; - z = x; // Error - z = y; // Error -} - -// For a generic type T, [...T] is assignable to T, T is assignable to readonly [...T], and T is assignable -// to [...T] when T is constrained to a mutable array or tuple type. - -function f11(t: T, m: [...T], r: readonly [...T]) { - t = m; - t = r; // Error - m = t; - m = r; // Error - r = t; - r = m; -} - -function f12(t: T, m: [...T], r: readonly [...T]) { - t = m; - t = r; // Error - m = t; // Error - m = r; // Error - r = t; - r = m; -} - -function f13(t0: T, t1: [...T], t2: [...U]) { - t0 = t1; - t0 = t2; - t1 = t0; - t1 = t2; - t2 = t0; // Error - t2 = t1; // Error -} - -function f14(t0: T, t1: [...T], t2: [...U]) { - t0 = t1; - t0 = t2; - t1 = t0; // Error - t1 = t2; - t2 = t0; // Error - t2 = t1; // Error -} - -function f15(k0: keyof T, k1: keyof [...T], k2: keyof [...U], k3: keyof [1, 2, ...T]) { - k0 = 'length'; - k1 = 'length'; - k2 = 'length'; - k0 = 'slice'; - k1 = 'slice'; - k2 = 'slice'; - k3 = '0'; - k3 = '1'; - k3 = '2'; // Error -} - -// Inference between variadic tuple types - -type First = - T extends readonly [unknown, ...unknown[]] ? T[0] : - T[0] | undefined; - -type DropFirst = T extends readonly [unknown?, ...infer U] ? U : [...T]; - -type Last = - T extends readonly [...unknown[], infer U] ? U : - T extends readonly [unknown, ...unknown[]] ? T[number] : - T[number] | undefined; - -type DropLast = T extends readonly [...infer U, unknown] ? U : [...T]; - -type T00 = First<[number, symbol, string]>; -type T01 = First<[symbol, string]>; -type T02 = First<[string]>; -type T03 = First<[number, symbol, ...string[]]>; -type T04 = First<[symbol, ...string[]]>; -type T05 = First<[string?]>; -type T06 = First; -type T07 = First<[]>; -type T08 = First; -type T09 = First; - -type T10 = DropFirst<[number, symbol, string]>; -type T11 = DropFirst<[symbol, string]>; -type T12 = DropFirst<[string]>; -type T13 = DropFirst<[number, symbol, ...string[]]>; -type T14 = DropFirst<[symbol, ...string[]]>; -type T15 = DropFirst<[string?]>; -type T16 = DropFirst; -type T17 = DropFirst<[]>; -type T18 = DropFirst; -type T19 = DropFirst; - -type T20 = Last<[number, symbol, string]>; -type T21 = Last<[symbol, string]>; -type T22 = Last<[string]>; -type T23 = Last<[number, symbol, ...string[]]>; -type T24 = Last<[symbol, ...string[]]>; -type T25 = Last<[string?]>; -type T26 = Last; -type T27 = Last<[]>; -type T28 = Last; -type T29 = Last; - -type T30 = DropLast<[number, symbol, string]>; -type T31 = DropLast<[symbol, string]>; -type T32 = DropLast<[string]>; -type T33 = DropLast<[number, symbol, ...string[]]>; -type T34 = DropLast<[symbol, ...string[]]>; -type T35 = DropLast<[string?]>; -type T36 = DropLast; -type T37 = DropLast<[]>; // unknown[], maybe should be [] -type T38 = DropLast; -type T39 = DropLast; - -type R00 = First; -type R01 = First; -type R02 = First; -type R03 = First; -type R04 = First; -type R05 = First; -type R06 = First; - -type R10 = DropFirst; -type R11 = DropFirst; -type R12 = DropFirst; -type R13 = DropFirst; -type R14 = DropFirst; -type R15 = DropFirst; -type R16 = DropFirst; - -type R20 = Last; -type R21 = Last; -type R22 = Last; -type R23 = Last; -type R24 = Last; -type R25 = Last; -type R26 = Last; - -type R30 = DropLast; -type R31 = DropLast; -type R32 = DropLast; -type R33 = DropLast; -type R34 = DropLast; -type R35 = DropLast; -type R36 = DropLast; - -// Inference to [...T, ...U] with implied arity for T - -function curry(f: (...args: [...T, ...U]) => R, ...a: T) { - return (...b: U) => f(...a, ...b); -} - -const fn1 = (a: number, b: string, c: boolean, d: string[]) => 0; - -const c0 = curry(fn1); // (a: number, b: string, c: boolean, d: string[]) => number -const c1 = curry(fn1, 1); // (b: string, c: boolean, d: string[]) => number -const c2 = curry(fn1, 1, 'abc'); // (c: boolean, d: string[]) => number -const c3 = curry(fn1, 1, 'abc', true); // (d: string[]) => number -const c4 = curry(fn1, 1, 'abc', true, ['x', 'y']); // () => number - -const fn2 = (x: number, b: boolean, ...args: string[]) => 0; - -const c10 = curry(fn2); // (x: number, b: boolean, ...args: string[]) => number -const c11 = curry(fn2, 1); // (b: boolean, ...args: string[]) => number -const c12 = curry(fn2, 1, true); // (...args: string[]) => number -const c13 = curry(fn2, 1, true, 'abc', 'def'); // (...args: string[]) => number - -const fn3 = (...args: string[]) => 0; - -const c20 = curry(fn3); // (...args: string[]) => number -const c21 = curry(fn3, 'abc', 'def'); // (...args: string[]) => number -const c22 = curry(fn3, ...sa); // (...args: string[]) => number - -// No inference to [...T, ...U] when there is no implied arity - -function curry2(f: (...args: [...T, ...U]) => R, t: [...T], u: [...U]) { - return f(...t, ...u); -} - -declare function fn10(a: string, b: number, c: boolean): string[]; - -curry2(fn10, ['hello', 42], [true]); -curry2(fn10, ['hello'], [42, true]); - -// Inference to [...T] has higher priority than inference to [...T, number?] - -declare function ft(t1: [...T], t2: [...T, number?]): T; - -ft([1, 2, 3], [1, 2, 3]); -ft([1, 2], [1, 2, 3]); -ft(['a', 'b'], ['c', 'd']) -ft(['a', 'b'], ['c', 'd', 42]) - -// Last argument is contextually typed - -declare function call(...args: [...T, (...args: T) => R]): [T, R]; - -call('hello', 32, (a, b) => 42); -call(...sa, (...x) => 42); - -// No inference to ending optional elements (except with identical structure) - -declare function f20(args: [...T, number?]): T; - -function f21(args: [...U, number?]) { - let v1 = f20(args); // U - let v2 = f20(["foo", "bar"]); // [string] - let v3 = f20(["foo", 42]); // [string] -} - -declare function f22(args: [...T, number]): T; -declare function f22(args: [...T]): T; - -function f23(args: [...U, number]) { - let v1 = f22(args); // U - let v2 = f22(["foo", "bar"]); // [string, string] - let v3 = f22(["foo", 42]); // [string] -} - -// Repro from #39327 - -interface Desc { - readonly f: (...args: A) => T; - bind(this: Desc<[...T, ...U], R>, ...args: T): Desc<[...U], R>; -} - -declare const a: Desc<[string, number, boolean], object>; -const b = a.bind("", 1); // Desc<[boolean], object> - -// Repro from #39607 - -declare function getUser(id: string, options?: { x?: string }): string; - -declare function getOrgUser(id: string, orgId: number, options?: { y?: number, z?: boolean }): void; - -function callApi(method: (...args: [...T, object]) => U) { - return (...args: [...T]) => method(...args, {}); -} - -callApi(getUser); -callApi(getOrgUser); - -// Repro from #40235 - -type Numbers = number[]; -type Unbounded = [...Numbers, boolean]; -const data: Unbounded = [false, false]; // Error - -type U1 = [string, ...Numbers, boolean]; -type U2 = [...[string, ...Numbers], boolean]; -type U3 = [...[string, number], boolean]; +// Variadics in tuple types + +type TV0 = [string, ...T]; +type TV1 = [string, ...T, number]; +type TV2 = [string, ...T, number, ...T]; +type TV3 = [string, ...T, ...number[], ...T]; + +// Normalization + +type TN1 = TV1<[boolean, string]>; +type TN2 = TV1<[]>; +type TN3 = TV1<[boolean?]>; +type TN4 = TV1; +type TN5 = TV1<[boolean] | [symbol, symbol]>; +type TN6 = TV1; +type TN7 = TV1; + +// Variadics in array literals + +function tup2(t: [...T], u: [...U]) { + return [1, ...t, 2, ...u, 3] as const; +} + +const t2 = tup2(['hello'], [10, true]); + +function concat(t: [...T], u: [...U]): [...T, ...U] { + return [...t, ...u]; +} + +declare const sa: string[]; + +const tc1 = concat([], []); +const tc2 = concat(['hello'], [42]); +const tc3 = concat([1, 2, 3], sa); +const tc4 = concat(sa, [1, 2, 3]); // Ideally would be [...string[], number, number, number] + +function concat2(t: T, u: U) { + return [...t, ...u]; // (T[number] | U[number])[] +} + +const tc5 = concat2([1, 2, 3] as const, [4, 5, 6] as const); // (1 | 2 | 3 | 4 | 5 | 6)[] + +// Spread arguments + +declare function foo1(a: number, b: string, c: boolean, ...d: number[]): void; + +function foo2(t1: [number, string], t2: [boolean], a1: number[]) { + foo1(1, 'abc', true, 42, 43, 44); + foo1(...t1, true, 42, 43, 44); + foo1(...t1, ...t2, 42, 43, 44); + foo1(...t1, ...t2, ...a1); + foo1(...t1); // Error + foo1(...t1, 45); // Error +} + +declare function foo3(x: number, ...args: [...T, number]): T; + +function foo4(u: U) { + foo3(1, 2); + foo3(1, 'hello', true, 2); + foo3(1, ...u, 'hi', 2); + foo3(1); +} + +// Contextual typing of array literals + +declare function ft1(t: T): T; +declare function ft2(t: T): readonly [...T]; +declare function ft3(t: [...T]): T; +declare function ft4(t: [...T]): readonly [...T]; + +ft1(['hello', 42]); // (string | number)[] +ft2(['hello', 42]); // readonly (string | number)[] +ft3(['hello', 42]); // [string, number] +ft4(['hello', 42]); // readonly [string, number] + +// Indexing variadic tuple types + +function f0(t: [string, ...T], n: number) { + const a = t[0]; // string + const b = t[1]; // [string, ...T][1] + const c = t[2]; // [string, ...T][2] + const d = t[n]; // [string, ...T][number] +} + +function f1(t: [string, ...T, number], n: number) { + const a = t[0]; // string + const b = t[1]; // [string, ...T, number][1] + const c = t[2]; // [string, ...T, number][2] + const d = t[n]; // [string, ...T, number][number] +} + +// Destructuring variadic tuple types + +function f2(t: [string, ...T]) { + let [...ax] = t; // [string, ...T] + let [b1, ...bx] = t; // string, [...T] + let [c1, c2, ...cx] = t; // string, [string, ...T][1], T[number][] +} + +function f3(t: [string, ...T, number]) { + let [...ax] = t; // [string, ...T, number] + let [b1, ...bx] = t; // string, [...T, number] + let [c1, c2, ...cx] = t; // string, [string, ...T, number][1], (number | T[number])[] +} + +// Mapped types applied to variadic tuple types + +type Arrayify = { [P in keyof T]: T[P][] }; + +type TM1 = Arrayify; // [string[], (number | undefined)[]?, Arrayify, ...boolean[][]] + +type TP1 = Partial<[string, ...T, number]>; // [string?, Partial, number?] +type TP2 = Partial<[string, ...T, ...number[]]>; // [string?, Partial, ...(number | undefined)[]] + +// Reverse mapping through mapped type applied to variadic tuple type + +declare function fm1(t: Arrayify<[string, number, ...T]>): T; + +let tm1 = fm1([['abc'], [42], [true], ['def']]); // [boolean, string] + +// Spread of readonly array-like infers mutable array-like + +declare function fx1(a: string, ...args: T): T; + +function gx1(u: U, v: V) { + fx1('abc'); // [] + fx1('abc', ...u); // U + fx1('abc', ...v); // [...V] + fx1('abc', ...u); // U + fx1('abc', ...v); // Error +} + +declare function fx2(a: string, ...args: T): T; + +function gx2(u: U, v: V) { + fx2('abc'); // [] + fx2('abc', ...u); // U + fx2('abc', ...v); // [...V] + fx2('abc', ...u); // U + fx2('abc', ...v); // V +} + +// Relations involving variadic tuple types + +function f10(x: [string, ...unknown[]], y: [string, ...T], z: [string, ...U]) { + x = y; + x = z; + y = x; // Error + y = z; + z = x; // Error + z = y; // Error +} + +// For a generic type T, [...T] is assignable to T, T is assignable to readonly [...T], and T is assignable +// to [...T] when T is constrained to a mutable array or tuple type. + +function f11(t: T, m: [...T], r: readonly [...T]) { + t = m; + t = r; // Error + m = t; + m = r; // Error + r = t; + r = m; +} + +function f12(t: T, m: [...T], r: readonly [...T]) { + t = m; + t = r; // Error + m = t; // Error + m = r; // Error + r = t; + r = m; +} + +function f13(t0: T, t1: [...T], t2: [...U]) { + t0 = t1; + t0 = t2; + t1 = t0; + t1 = t2; + t2 = t0; // Error + t2 = t1; // Error +} + +function f14(t0: T, t1: [...T], t2: [...U]) { + t0 = t1; + t0 = t2; + t1 = t0; // Error + t1 = t2; + t2 = t0; // Error + t2 = t1; // Error +} + +function f15(k0: keyof T, k1: keyof [...T], k2: keyof [...U], k3: keyof [1, 2, ...T]) { + k0 = 'length'; + k1 = 'length'; + k2 = 'length'; + k0 = 'slice'; + k1 = 'slice'; + k2 = 'slice'; + k3 = '0'; + k3 = '1'; + k3 = '2'; // Error +} + +// Inference between variadic tuple types + +type First = + T extends readonly [unknown, ...unknown[]] ? T[0] : + T[0] | undefined; + +type DropFirst = T extends readonly [unknown?, ...infer U] ? U : [...T]; + +type Last = + T extends readonly [...unknown[], infer U] ? U : + T extends readonly [unknown, ...unknown[]] ? T[number] : + T[number] | undefined; + +type DropLast = T extends readonly [...infer U, unknown] ? U : [...T]; + +type T00 = First<[number, symbol, string]>; +type T01 = First<[symbol, string]>; +type T02 = First<[string]>; +type T03 = First<[number, symbol, ...string[]]>; +type T04 = First<[symbol, ...string[]]>; +type T05 = First<[string?]>; +type T06 = First; +type T07 = First<[]>; +type T08 = First; +type T09 = First; + +type T10 = DropFirst<[number, symbol, string]>; +type T11 = DropFirst<[symbol, string]>; +type T12 = DropFirst<[string]>; +type T13 = DropFirst<[number, symbol, ...string[]]>; +type T14 = DropFirst<[symbol, ...string[]]>; +type T15 = DropFirst<[string?]>; +type T16 = DropFirst; +type T17 = DropFirst<[]>; +type T18 = DropFirst; +type T19 = DropFirst; + +type T20 = Last<[number, symbol, string]>; +type T21 = Last<[symbol, string]>; +type T22 = Last<[string]>; +type T23 = Last<[number, symbol, ...string[]]>; +type T24 = Last<[symbol, ...string[]]>; +type T25 = Last<[string?]>; +type T26 = Last; +type T27 = Last<[]>; +type T28 = Last; +type T29 = Last; + +type T30 = DropLast<[number, symbol, string]>; +type T31 = DropLast<[symbol, string]>; +type T32 = DropLast<[string]>; +type T33 = DropLast<[number, symbol, ...string[]]>; +type T34 = DropLast<[symbol, ...string[]]>; +type T35 = DropLast<[string?]>; +type T36 = DropLast; +type T37 = DropLast<[]>; // unknown[], maybe should be [] +type T38 = DropLast; +type T39 = DropLast; + +type R00 = First; +type R01 = First; +type R02 = First; +type R03 = First; +type R04 = First; +type R05 = First; +type R06 = First; + +type R10 = DropFirst; +type R11 = DropFirst; +type R12 = DropFirst; +type R13 = DropFirst; +type R14 = DropFirst; +type R15 = DropFirst; +type R16 = DropFirst; + +type R20 = Last; +type R21 = Last; +type R22 = Last; +type R23 = Last; +type R24 = Last; +type R25 = Last; +type R26 = Last; + +type R30 = DropLast; +type R31 = DropLast; +type R32 = DropLast; +type R33 = DropLast; +type R34 = DropLast; +type R35 = DropLast; +type R36 = DropLast; + +// Inference to [...T, ...U] with implied arity for T + +function curry(f: (...args: [...T, ...U]) => R, ...a: T) { + return (...b: U) => f(...a, ...b); +} + +const fn1 = (a: number, b: string, c: boolean, d: string[]) => 0; + +const c0 = curry(fn1); // (a: number, b: string, c: boolean, d: string[]) => number +const c1 = curry(fn1, 1); // (b: string, c: boolean, d: string[]) => number +const c2 = curry(fn1, 1, 'abc'); // (c: boolean, d: string[]) => number +const c3 = curry(fn1, 1, 'abc', true); // (d: string[]) => number +const c4 = curry(fn1, 1, 'abc', true, ['x', 'y']); // () => number + +const fn2 = (x: number, b: boolean, ...args: string[]) => 0; + +const c10 = curry(fn2); // (x: number, b: boolean, ...args: string[]) => number +const c11 = curry(fn2, 1); // (b: boolean, ...args: string[]) => number +const c12 = curry(fn2, 1, true); // (...args: string[]) => number +const c13 = curry(fn2, 1, true, 'abc', 'def'); // (...args: string[]) => number + +const fn3 = (...args: string[]) => 0; + +const c20 = curry(fn3); // (...args: string[]) => number +const c21 = curry(fn3, 'abc', 'def'); // (...args: string[]) => number +const c22 = curry(fn3, ...sa); // (...args: string[]) => number + +// No inference to [...T, ...U] when there is no implied arity + +function curry2(f: (...args: [...T, ...U]) => R, t: [...T], u: [...U]) { + return f(...t, ...u); +} + +declare function fn10(a: string, b: number, c: boolean): string[]; + +curry2(fn10, ['hello', 42], [true]); +curry2(fn10, ['hello'], [42, true]); + +// Inference to [...T] has higher priority than inference to [...T, number?] + +declare function ft(t1: [...T], t2: [...T, number?]): T; + +ft([1, 2, 3], [1, 2, 3]); +ft([1, 2], [1, 2, 3]); +ft(['a', 'b'], ['c', 'd']) +ft(['a', 'b'], ['c', 'd', 42]) + +// Last argument is contextually typed + +declare function call(...args: [...T, (...args: T) => R]): [T, R]; + +call('hello', 32, (a, b) => 42); +call(...sa, (...x) => 42); + +// No inference to ending optional elements (except with identical structure) + +declare function f20(args: [...T, number?]): T; + +function f21(args: [...U, number?]) { + let v1 = f20(args); // U + let v2 = f20(["foo", "bar"]); // [string] + let v3 = f20(["foo", 42]); // [string] +} + +declare function f22(args: [...T, number]): T; +declare function f22(args: [...T]): T; + +function f23(args: [...U, number]) { + let v1 = f22(args); // U + let v2 = f22(["foo", "bar"]); // [string, string] + let v3 = f22(["foo", 42]); // [string] +} + +// Repro from #39327 + +interface Desc { + readonly f: (...args: A) => T; + bind(this: Desc<[...T, ...U], R>, ...args: T): Desc<[...U], R>; +} + +declare const a: Desc<[string, number, boolean], object>; +const b = a.bind("", 1); // Desc<[boolean], object> + +// Repro from #39607 + +declare function getUser(id: string, options?: { x?: string }): string; + +declare function getOrgUser(id: string, orgId: number, options?: { y?: number, z?: boolean }): void; + +function callApi(method: (...args: [...T, object]) => U) { + return (...args: [...T]) => method(...args, {}); +} + +callApi(getUser); +callApi(getOrgUser); + +// Repro from #40235 + +type Numbers = number[]; +type Unbounded = [...Numbers, boolean]; +const data: Unbounded = [false, false]; // Error + +type U1 = [string, ...Numbers, boolean]; +type U2 = [...[string, ...Numbers], boolean]; +type U3 = [...[string, number], boolean]; //// [variadicTuples1.js] diff --git a/tests/baselines/reference/variadicTuples2.js b/tests/baselines/reference/variadicTuples2.js index 95f1a6b721069..3b8c0c776b623 100644 --- a/tests/baselines/reference/variadicTuples2.js +++ b/tests/baselines/reference/variadicTuples2.js @@ -134,12 +134,10 @@ const e1 = foo('blah1', 'blah2', 1, 2, 3); // Error //// [variadicTuples2.js] "use strict"; // Declarations -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; +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; }; tt1 = [5]; tt1 = ['abc', 5]; @@ -193,14 +191,14 @@ pipe("foo", 123, true, function () { } x; // [string, number, boolean] }); -pipe.apply(void 0, __spreadArrays(sa, [function () { +pipe.apply(void 0, __spreadArray(__spreadArray([], sa), [function () { var x = []; for (var _i = 0; _i < arguments.length; _i++) { x[_i] = arguments[_i]; } x; // string[] }])); -pipe.apply(void 0, __spreadArrays([1], sa, [2, function () { +pipe.apply(void 0, __spreadArray(__spreadArray([1], sa), [2, function () { var x = []; for (var _i = 0; _i < arguments.length; _i++) { x[_i] = arguments[_i];